System and method to minimize double hunting in interoffice trunk allocation

Abstract: A system and method for allocating trunks in order to minimize glare. Trunk groups between switches are subdivided and each subgroup uses different allocation algorithms. A first switch hunts a first subgroup using a first algorithm and the second subgroup using a second algorithm. The switch on the other end of the trunk uses the second algorithm to hunt on the first trunk subgroup, and the first algorithm to hunt on the second trunk subgroup. In order to minimize glare, a determination can be made that one of the two algorithms will have precedence, i.e., if both switches seize the same trunk, then the switch using the algorithm of higher precedence to set up its call.

Description: Technical Field This invention relates to the field of telephony and, more specifically, to the area of allocation of trunks between telephone switching systems. Background of the Invention Telephone exchanges, also known as switching offices or simply switches, are connected to each other by means of trunks. These trunks (known in the art as a "trunk group") may connect a switch to another switch, to a tandem switch or to a long distance network switch. When a switch determines that a call must be routed to or through another switch, the switch sets up a trunk in the appropriate trunk group to connect the switch and the destination (or intermediary) switch. In the art, the selection process is known as "hunt". A switch "seizes" a free trunk between itself and the destination switch. The originating switch will then signal to the destination switch that the trunk has been seized. This signaling may be on the trunk itself or through a separate signaling network. The destination switch then allocates that seized trunk to the call and extends the call, either to a destination or to another switch. Most inter office trunks are bi-directional. That is, one portion of the trunk delivers voice or data to the destination switch and the destination switch uses the other portion of the trunk to deliver voice or data to the originating switch. A known problem in the art is that of "glare" in bi-directional trunks. Glare occurs when two switches seize the same trunk for two different telephone calls at roughly the same time. Such glare conditions cause calls to be delayed in setup or may even cause an origination to fail. There have been many attempts to alleviate the glare problem, however, the problem is still present in current switching networks. EP-A-0 389 887 discloses a system and a method for preventing glare between a first and a second telephone switching systems, wherein a plurality of two way trunks connecting the switching systems are organized into at least one group subdivided into at least two subgroups ("high-priority group";"low-priority group"). When a call received at the first switching system is to be routed to the second switching system, the first switching system selects a trunk from a first subgroup ("high-priority group") using a first algorithm ("both-way line which has been free from a longest time period", i.e., FIFO) and, if there are no trunks available in the first subgroup ("no freed circuit is found in the high-priority group"), the first switching system selects a trunk from the second subgroup using a second algorithm ("circuit which has been free most recently", i.e., LIFO); the second switching system selects a trunk from the first subgroup using the second algorithm and, if there are no trunks available in the first subgroup, a trunk from the second subgroup is selected using the first algorithm. Patents Abstracts of Japan Vol. 5 No. 197 (E-086), 15 December 1981 and J.P.-A-56 117466, 14 December 1981 discloses a similar system to that of EP-A-0389887. EP-A-0 005687A discloses an algorithm for hunting from two trunk groups, one having priority over the other. The higher priority group is searched first. If an available trunk is not found in the priority group, then the other group is searched. If a trunk is found, it is seized. When the trunk is released, it is moved to the high priory group. According to the present invention, there is provided a system as defined in claim 1 or a method as defined in claim 4. In an embodiment of the present invention, the trunk groups are subdivided into subgroups. Each subgroup is hunted by a different algorithm on each end. Further, each subgroup in a switch has a priority assigned to each algorithm. The first priority algorithm is tried, and, if no available trunks are found, then the second priority algorithm is tried, etc., until an available trunk in the group is found or there are no more subgroups to check. In the unlikely event that a trunk is seized by both switches at the same time (i.e., a glare condition occurs), the switch using the higher priority algorithm "wins". Thus, as soon as a glare condition is recognized, the processors in the respective switches know what to do. One switch retains the trunk and the other continues its search, thus reducing or eliminating any time spent negotiating over the trunk as is performed in the prior art. By using a priority ranking for algorithms in each subgroup, the invention facilitates trunk hunting and seizing in a manner not taught or suggested by the prior art. This problem to be solved by the present invention is to minimize glare. Different hunting algorithms are used for each subdivided trunk subgroup in each of the two switches. A first switch hunts a first subgroup using a first algorithm and the second subgroup using a second algorithm. The switch on the other end of the trunk uses the second algorithm to hunt on the first trunk subgroup, and the first algorithm to hunt on the second trunk subgroup. Further, one of the two algorithms is designated as having precedence, i.e., if both switches still seize the same trunk, then the switch using the higher precedence algorithm seizes the trunk and sets up its call. In an exemplary embodiment of this invention, two switches are connected via a trunk group containing, for purposes of describing this invention, six individual members. This trunk group is then broken into two subgroups comprising three members each. In the first switch, the first subgroup is selected in a first-in-first-out (FIFO) manner and the second subgroup is selected in a last-in-first-out (LIFO) manner. In the second switch, the first subgroup is selected in a LIFO manner and the second subgroup is selected in a FIFO manner. Advantageously, the subgroup being selected using the FIFO system takes precedence over the LIFO. In this manner, there is a much less likelihood of instances of glare, because trunks released at the same time will be in a different order in the allocation scheme for the next selection process. Brief Description of the Drawings A more complete understanding of the invention may be obtained in consideration of the following description in conjunction with the drawings in which: FIG. 1 is a block diagram of exemplary network of switching systems employing the trunk allocation algorithm of this invention; FIG. 2 is a more detailed illustration of a block diagram of this invention showing subgrouping of the trunks; and FIGS. 3 and 4 are flow charts of allocation and deallocation, respectively, of the trunks according to this invention. Detailed Description FIG. 1 illustrates a simplified telephone switching network employing an exemplary embodiment of the current invention. In this telephone network, there are three switches, 1, 3, and 5. These switches are interconnected via trunks which are configured in trunk groups, so that switches 1 and 3 are connected by trunk group 7, switches 1 and 5 are connected by trunk group 8, and switches 3 and 5 are connected by trunk group 9. Illustratively, switches 1, 3, and 5 may be distributed control, analog or digital switches, such as a 5ESS® switch manufactured by Lucent Technologies and described in the AT&T Technical Journal, vol. 64, No. 6, July-August, 1985, pp. 1303-1564. Illustratively, switches 1, 3, and 5 include a plurality of switch modules (SMs) 11, 13, and 15, respectively, each associated with a different set of telephone station sets or trunks. Each SM includes a processor 21, 23, and 25 for controlling connections to and from its associated telephone station sets and trunks. The architecture of each switch 1, 3, and 5 includes a communication module 31, 33, and 35 as a hub with the plurality of switching modules and an administrative module 41, 43, and 45, emanating therefrom. To complete the description of switches 1, 3, and 5, communications modules 31, 33, and 35 act as a switch fabric for communication among switch modules and their respective administrative module 41, 43, or 45. Administrative modules provide coordination of functional components of the respective switches and a human machine interface. Each SM 11, 13, and 15 includes one or more line units and trunk units. For purposes of describing this invention, each SM 11, 13, 15 contains at least one trunk unit 51, 53, and 55, respectively. Trunk units 51, 53, and 55 connect and disconnect trunks among the various switches. Optionally, switches may communicate on a signaling network 75 (such as a CCS 7 network) as is known in the art. In setting up an inter-switch call, for example, between switch 1 and switch 3, a determination is made in switch 1 that the interconnecting trunks to switch 3 are connected to trunk unit 51 and SM 11. The call is, therefore, routed through CM 31 (if necessary) to SM 11. AM 41 determines which trunk in trunk group 7 is available, if any, for allocation to this call. The process for allocation ("hunting") will be discussed further below in connection with figures 2 and 3. Once a trunk of trunk group 7 has been selected, the trunk is "seized" and, according to this embodiment of this invention, a message including the group and member numbers of that seized trunk is sent through signaling network 75 to switch 3. SM 13, the AM 43 marks the trunk "in use" and completes the call, according to the prior art. According to the prior art, if AM 41 seized a member of trunk group 7, and AM 43 seized the same member of group 7 simultaneously, a glare condition occurs and various techniques as known in the art would be used in order to resolve this condition. Alternatively, both calls may fail (routed to fast busy signal). According to an exemplary embodiment of this invention, however, the likelihood of glare is reduced significantly. Turning now to FIG. 2, allocation of trunks between trunk unit 51 and trunk unit 53 of FIG. 1 is illustrated. The trunk group herein comprises six trunks (there may be more or fewer according to the engineering of the network) and are divided into two equal subgroups of three. Again, these groupings may be varied according to traffic patterns between the offices without departing from the scope of this invention. There may be as many or as few trunks in each subgroup according to traffic patterns. In an extreme case, a subgroup may have all trunks in a subgroup, with that subgroup having higher precedence, if the majority of traffic originates from that switch. The switch on the other end of the trunk group, then, has all members of a trunk group in the lower precedence subgroup. According to one exemplary embodiment of this invention, subgroup 200 is hunted in a first-in-first-out (FIFO) manner in trunk unit 51 by processor 21 and subgroup 202 is hunted in a last-in-first-out (LIFO) manner by processor 21. In trunk unit 53, the algorithms are reversed. That is, subgroup 200 is hunted in a LIFO manner and trunk subgroup 202 is hunted in a FIFO manner. In this way, when a trunk is released, it does not reach the end (or beginning) of the free lists in both systems at the same time, and, therefore, there is a better chance that the trunk will not be seized at the same time in the future. Subdivision of trunk groups is new in the art and searching via opposite algorithms at either end is also a contribution to the art by this invention. Further, one of these hunting algorithms is designated as having precedence. Therefore, a switch will hunt a FIFO subgroup first, and then, if there are no free members in the FIFO subgroup, the switch will hunt the LIFO subgroup. In this manner, glare conditions are minimized, because both ends of a trunk group start to hunt an idle trunk from separate subgroups. These hunting algorithms are exemplary, and, thus, any algorithm may be used without departing from the scope of this invention. For example, Forward Linear (selects an idle trunk on ascending member number) and Backward Linear (selects an idle trunk on descending member number) may be used. The central point is that there are a plurality of trunk subgroups, each hunted in a different manner at each end, and that one of the hunting algorithms has precedence. Turning now to FIG. 3, a flow chart of selection of trunks as practiced in AM 41, for example, or any of the other processors is described. Processing starts at circle 300 and proceeds to decision diamond 302. A determination is made in decision diamond 302 whether all trunks are busy. If all trunks are busy, then this function returns an all trunk busy indication 304 and the call is routed to an all trunk busy signal (fast busy). If all trunks are not busy in decision diamond 302, then a decision is made in decision diamond 306 which algorithm has precedence in this switch. The algorithm having precedence is determined by agreement between the two switches. If, for example, the trunk group is a LIFO trunk group (that is searched last-in-first-out), then a determination is made in decision diamond 308 whether a trunk is available on the LIFO free list. If it is, then processing proceeds to action box 310 where the head of the LIFO queue is removed (seized or allocated) and the LIFO idle count is decremented. Processing proceeds to box 312 where the member is linked to the head of the busy LIFO list. Processing ends at box 314 where success is returned (along with the trunk group and member number). If, in decision diamond 308, no LIFO trunk was available, then processing proceeds to decision diamond 316 to determine whether a member in the FIFO trunk subgroup is available. If a member in the FIFO trunk subgroup is available, then processing proceeds to box 318 where a trunk member is removed from the head of the FIFO queue and the FIFO idle count is decremented. Processing proceeds to action box 320 where the seized member is linked to the tail of the busy FIFO list. Processing then proceeds to box 314 where success and the trunk group and member number is returned. If, in decision diamond 316, a FIFO trunk was not available, then in box 322 processing returns "trunks busy". If, in decision diamond 306, it is determined that the FIFO subgroup has precedence, then a determination is made in decision 324 whether a FIFO trunk is available. If a FIFO trunk is available, then processing proceeds to action box 326 where the first trunk group member in the FIFO queue is removed and the FIFO idle count is decremented. Processing proceeds to action box 328 where the member is linked to the tail of the busy FIFO list. Processing then proceeds to action box 330 where success and the trunk group and member number is returned. If there were no a FIFO trunks available in decision diamond 324, then processing proceeds to decision diamond 332 where a determination is made if a LIFO trunk is available. If there is, then processing proceeds to action box 334 where the head of the LIFO queue is removed and the LIFO idle count is decremented. Processing proceeds to action box 336, where the member is linked to the head of the busy LIFO list and processing returns successfully with the group and member number in action box 330. If a LIFO trunk was not available in decision diamond 332, then processing proceeds to action box 338, where trunks busy is returned. FIG. 4 shows action on deallocation (hang up). Processing starts in circle 400 and proceeds to decision diamond 402 where a determination is made if the trunk being deallocated is a LIFO or a FIFO trunk. If the trunk is a LIFO trunk, processing proceeds to action box 404 where it is attached to the head of the LIFO list, implying that it will be the first one selected the next time a trunk request occurs. Processing proceeds to action box 406 where the FIFO free count is incrementing and processing ends in circle 412. If, in decision diamond 402, a determination is made that the member is a FIFO trunk, then processing proceeds to action box 408 where the member number is attached to the tail of the FIFO list and then in box 410 the FIFO free count is incremented. Processing ends at circle 412.

Claims: A system for preventing glare between a first telephone switching system (11) and a second telephone switching system (13) connected by a trunk group (7) comprising a plurality of trunks organized into subgroups (200,202) hunted according to a plurality of algorithms, said system CHARACTERIZED BY : a first processor (21) in the first telephone switching system (11) configured to utilize a different one of said plurality of algorithms to hunt for available trunks in each subgroup and further configured to seize a trunk when using a first of said plurality of algorithms and to relinquish the trunk when using a second one of said plurality of algorithms if the same trunk is selected at both switching systems at the same time; and a second processor (23) in the second telephone switching system (13) configured to utilize a different one of a plurality of algorithms to hunt for available trunks in each subgroup wherein said first processor and said second processor are configured to use a different one of said plurality of algorithms to hunt trunks from the same subgroup and wherein one of said first processor or said second processor is configured to seize a trunk based on which of the algorithms used has precedence over the other when both said first and second processors attempt to seize a trunk in the same subgroup. The system of claim 1 wherein one of said plurality of algorithms comprises LIFO. The system of claim 2 wherein one of said plurality of algorithms comprises FIFO. A method for preventing glare between a first switching system (11) and a second switching system (13) for hunting trunks in a trunk group responsive to receipt of a call in the first switching system to be routed to the second switching system, said trunk group being divided into subgroups (200,203), each subgroup being hunted according to a different one of said plurality of algorithms, wherein the first switching system hunts trunks in each subgroup using an algorithm that is different from the algorithm used by second switching system on the same subgroup, said method characterized by the steps of: hunting a trunk to the second switching system from a first of the plurality of subgroups using a first algorithm; hunting a trunk to the second switching system from a second of the subgroups using a second algorithm if there are no trunks available in the first subgroup; determining which of the algorithms used by the first or second switching systems has precedence if the first and second switching systems select the same trunk at the same time; said first or second switching system using the algorithm which has precedence seizing said trunk; and said first or second switching system using the other algorithm that does not have precedence relinguishing said trunk.

Inventors: MO CHI-CHIANG, MO, CHI-CHIANG
Applicants: LUCENT TECHNOLOGIES INC, LUCENT TECHNOLOGIES INC.
Application year: 1998
Main classification: H04Q3
IPC codes: H04M7, H04Q3