[go: up one dir, main page]

CN103781119B - MGW selection method and device - Google Patents

MGW selection method and device Download PDF

Info

Publication number
CN103781119B
CN103781119B CN201410021551.6A CN201410021551A CN103781119B CN 103781119 B CN103781119 B CN 103781119B CN 201410021551 A CN201410021551 A CN 201410021551A CN 103781119 B CN103781119 B CN 103781119B
Authority
CN
China
Prior art keywords
mgw
user
candidate list
load
threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410021551.6A
Other languages
Chinese (zh)
Other versions
CN103781119A (en
Inventor
童磊
陈崴嵬
葛瑾
黄志勇
蔡子龙
赫罡
陆钧
陈璇
南作用
任驰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201410021551.6A priority Critical patent/CN103781119B/en
Publication of CN103781119A publication Critical patent/CN103781119A/en
Application granted granted Critical
Publication of CN103781119B publication Critical patent/CN103781119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a MGW selection method and device, and relates to the technical field of communication. The method and device are used to improve the network resource utilization rate. The method comprises the following steps: a first mobile center switching server MSC Server is used to acquire common media gateway MGW candidate list collection of the calling party and the called party, wherein the common MGW candidate list collection comprises identifiers and loads of each candidate MGW for providing services for both of the calling party and the called party; and if the common MGW candidate list collection includes MGWs having a load which is less than a first threshold value, then one of the MGWs having a load which is less than the first threshold value is selected as the common MGW for serving the calling party and the called party.

Description

一种选择MGW的方法和装置A method and device for selecting MGW

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种选择MGW的方法和装置。The present invention relates to the field of communication technology, in particular to a method and device for selecting an MGW.

背景技术Background technique

随着移动通信网络的发展,为了保证业务的高效、安全、可靠,移动核心网的网络架构不断改进,使得目前的网络架构存在很多中间状态,例如:2G、3G无线网络采用共有的核心网节点、移动交换中心服务器(Mobile Switching Center server,简称MSC server)和GPRS服务支持节点(Serving GPRS Support Node,简称SGSN)呈现池组化结构,媒体网关(Media Gateway,简称MGW)与MSC server呈现多对一的对应关系等。因此,在目前的网络架构以及不同的业务条件下,需要对网络资源进行合理有效的调度,其中MGW的优化选择是面临的一个重要问题。With the development of mobile communication networks, in order to ensure efficient, safe and reliable services, the network architecture of the mobile core network has been continuously improved, resulting in many intermediate states in the current network architecture, for example: 2G and 3G wireless networks use shared core network nodes , Mobile Switching Center server (MSC server for short) and GPRS service support node (Serving GPRS Support Node, SGSN for short) present a pool structure, and the media gateway (MGW for short) and MSC server present a multi-pair One's corresponding relationship, etc. Therefore, under the current network architecture and different service conditions, network resources need to be scheduled reasonably and effectively, among which the optimal selection of the MGW is an important issue.

目前,在局内呼叫场景下的MGW优选方案是在获取主被叫双方的关联MGW列表后,通过比较选取共有的MGW来实现MGW的优选;在局间呼叫场景下的MGW优选方案主要通过在MSC server上静态配置数据、或者主叫侧先进行MGW选择,被叫侧后进行MGW选择、或者被叫侧先进行MGW选择,主叫侧后进行MGW选择,以实现对MGW的选择。At present, the MGW optimization scheme in the intra-office call scenario is to achieve MGW optimization by comparing and selecting the shared MGW after obtaining the associated MGW list of the calling party and the called party; the MGW optimization scheme in the inter-office call scenario is mainly through the Static configuration data on the server, or the calling side selects the MGW first, and the called side selects the MGW later, or the called side selects the MGW first, and the calling side selects the MGW later, so as to realize the selection of the MGW.

但是,现有MGW优选方案在某些场景下,即使主被叫侧存在共有的MGW,也可能无法实现对于MGW的选择,降低了网络资源的利用率。However, in some scenarios in the existing MGW optimization scheme, even if there is a shared MGW on the calling and called sides, the selection of the MGW may not be realized, which reduces the utilization rate of network resources.

发明内容Contents of the invention

本发明的实施例提供了一种选择MGW的方法和装置,以提高网络资源的利用率。Embodiments of the present invention provide a method and device for selecting an MGW, so as to improve the utilization rate of network resources.

为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:

第一方面,本发明实施例提供了一种选择MGW的方法,包括:In a first aspect, an embodiment of the present invention provides a method for selecting an MGW, including:

第一移动中心交换服务器MSC Server获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;所述共同的MGW候选列表集合包括:为所述主叫用户和所述被叫用户均提供服务的各个候选MGW的标识和负荷;The first mobile center switching server MSC Server obtains the common media gateway MGW candidate list set of the calling user and the called user; the common MGW candidate list set includes: providing services for both the calling user and the called user The identification and load of each candidate MGW;

若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW。If the common MGW candidate list set contains an MGW with a load less than the first threshold, select one of the MGWs with the load less than the first threshold as the MGW that serves the calling user and the called user .

在第一方面的第一种可能的实现方式中,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,所述第一MSC Server获取主叫用户和被叫用户共同的MGW候选列表集合包括:In the first possible implementation manner of the first aspect, if the call type between the calling user and the called user is an intra-office call, the first MSC Server obtains the common The MGW candidate list set includes:

根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合P;所述P中包含主叫接入侧每个候选MGW的标识和负荷;Obtain the MGW candidate list set P of the calling access side according to the location information of the calling user; said P includes the identification and load of each candidate MGW of the calling access side;

根据被叫用户的位置信息获取被叫接入侧的MGW候选列表集合Q;所述Q中包含被叫接入侧每个候选MGW的标识和负荷;Acquire the MGW candidate list set Q of the called access side according to the location information of the called user; the Q includes the identification and load of each candidate MGW of the called access side;

获取所述P和Q的交集R,将所述交集R作为所述主叫用户和所述被叫用户共同的MGW候选列表集合。The intersection R of the P and Q is obtained, and the intersection R is used as a set of MGW candidate lists common to the calling user and the called user.

在第一方面或第一方面的第一种可能的实现方式中,还提供了第一方面的第二种可能的实现方式,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,所述方法还包括:若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,In the first aspect or the first possible implementation of the first aspect, the second possible implementation of the first aspect is also provided, if the call type between the calling user and the called user is For an intra-office call, the method further includes: if the common MGW candidate list set does not include an MGW with a load less than the first threshold,

获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,以及被叫接入侧的MGW候选列表集合Q中负荷小于第三阈值的MGW;Obtaining MGWs whose load is less than the second threshold in the MGW candidate list set P on the calling access side, and MGWs whose load is less than the third threshold in the MGW candidate list set Q on the called access side;

选择所述负荷小于第二阈值的MGW中的一个作为服务所述主叫用户的MGW、所述负荷小于第三阈值的MGW中的一个作为服务所述被叫用户的MGW。Selecting one of the MGWs whose load is less than the second threshold as the MGW serving the calling user, and one of the MGWs whose load is less than a third threshold as the MGW serving the called user.

在第一方面的第三种可能的实现方式中,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,所述第一MSC Server获取主叫用户和被叫用户的共同的MGW候选列表集合包括:In the third possible implementation manner of the first aspect, if the call type between the calling user and the called user is an inter-office call, the first MSC Server obtains the calling user and the called user The common set of MGW candidate lists includes:

接收第二MSC Server发送的包含主叫用户侧的负荷小于第二阈值的MGW候选列表集合M;所述M为所述第二MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集S,若所述A与B的交集为空集,S等于A或B,从所述交集S中获取负荷小于第二阈值的MGW候选列表集合M,所述M中包含所述主叫用户侧每个候选MGW的标识和负荷;Receive the MGW candidate list set M sent by the second MSC Server and include the load of the calling user side less than the second threshold; the M is the MGW on the calling access side obtained by the second MSC Server according to the location information of the calling user The candidate list set A, and the MGW candidate list set B obtained on the outgoing relay side according to the configuration information of the outgoing relay side, and the intersection S of the A and B are obtained. If the intersection of the A and B is an empty set, S is equal to A or B, obtaining the MGW candidate list set M whose load is less than the second threshold from the intersection S, where the M contains the identification and load of each candidate MGW on the calling user side;

根据被叫用户的位置信息获取得到的被叫接入侧的MGW候选列表集合C,以及根据入局中继侧配置信息获取得到的入局中继侧的MGW候选列表集合D,得到所述C与D的交集N,若C与D的交集为空集,N等于D,所述N中包含所述被叫用户侧每个候选MGW的标识和负荷;The MGW candidate list set C of the called access side obtained according to the location information of the called user, and the MGW candidate list set D of the incoming relay side obtained according to the configuration information of the incoming relay side, obtain the C and D The intersection N of C, if the intersection of C and D is an empty set, N is equal to D, and said N includes the identification and load of each candidate MGW on the called user side;

获取所述M和N的交集R,将所述交集R作为所述主叫用户和被叫用户共同的MGW候选列表集合。The intersection R of the M and N is obtained, and the intersection R is used as a set of MGW candidate lists common to the calling user and the called user.

在第一方面或第一方面的第三种可能的实现方式中,还提供了第一方面的第四种可能的实现方式,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,所述方法还包括:若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,In the first aspect or the third possible implementation of the first aspect, a fourth possible implementation of the first aspect is also provided, if the call type between the calling user and the called user is For an inter-office call, the method further includes: if the common MGW candidate list set does not include an MGW with a load less than the first threshold,

获取被叫接入侧的MGW候选列表集合N中负荷小于第三阈值的MGW,选择所述负荷小于第三阈值的MGW中的一个作为服务被叫用户的MGW;Obtain an MGW whose load is less than a third threshold in the MGW candidate list set N on the called access side, and select one of the MGWs whose load is less than the third threshold as an MGW serving the called user;

将包含有被叫用户所选择的MGW的消息发送给第二MSC Server,以使得第二MSCServer获取主叫接入侧的MGW候选列表集合M中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务主叫用户的MGW。Send a message containing the MGW selected by the called user to the second MSC Server, so that the second MSC Server obtains the MGW whose load is less than the second threshold in the MGW candidate list set M of the calling access side, and selects the MGW whose load is less than the second threshold. One of the MGWs with the second threshold serves as the MGW serving the calling user.

在第一方面或第一方面的前四种任一可能的实现方式中,还提供了第一方面的第五种可能的实现方式,所述各个MGW的负荷为各个MGW的可用空闲电路数与各个MGW的总电路数之间的比值;或者,为在当前各个MGW上的会话数量与各个MGW所能提供的最大会话数量之间的比值。In the first aspect or any of the first four possible implementations of the first aspect, a fifth possible implementation of the first aspect is also provided, the load of each MGW is the number of available idle circuits of each MGW and The ratio between the total number of circuits of each MGW; or, the ratio between the current number of sessions on each MGW and the maximum number of sessions that each MGW can provide.

第二方面,本发明实施例提供了一种选择MGW的方法,包括:In a second aspect, an embodiment of the present invention provides a method for selecting an MGW, including:

第一MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集M;所述M中包含每个候选MGW的标识和负荷;The first MSC Server obtains the MGW candidate list set A of the calling access side according to the location information of the calling user, and obtains the MGW candidate list set B of the outgoing trunk side according to the configuration information of the outgoing trunk side, and obtains the A and B The intersection M of; Said M contains the identification and the load of each candidate MGW;

获取所述M中负荷小于第一阈值的MGW候选列表集合P;所述P为主叫用户侧的MGW候选列表集合,包含每个候选MGW的标识和负荷;Obtaining the MGW candidate list set P whose load is less than the first threshold in the M; the P is the MGW candidate list set on the calling user side, including the identifier and load of each candidate MGW;

将包含所述P的消息发送给第二MSC Server,以使得所述第二MSC Server选择服务所述主叫用户与所述被叫用户共同的MGW,或者选择服务被叫用户的MGW;Sending the message containing the P to the second MSC Server, so that the second MSC Server selects the MGW that serves the calling user and the called user, or selects the MGW that serves the called user;

若所述第二MSC Server仅选择被叫用户侧的MGW,所述第一MSC Server接收第二MSC Server发送的包含服务被叫用户的MGW的消息;If the second MSC Server only selects the MGW on the side of the called user, the first MSC Server receives a message sent by the second MSC Server that includes the MGW serving the called user;

获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务主叫用户的MGW。Acquiring MGWs whose loads are less than the second threshold in the MGW candidate list set P on the calling access side, and selecting one of the MGWs whose loads are less than the second threshold as the MGW serving the calling user.

在第二方面的第一种可能的实现方式中,所述各个MGW的负荷为各个MGW的可用空闲电路数与各个MGW的总电路数之间的比值;或者,为在当前各个MGW上的会话数量与各个MGW所能提供的最大会话数量之间的比值。In the first possible implementation of the second aspect, the load of each MGW is the ratio between the number of available idle circuits of each MGW and the total number of circuits of each MGW; or, it is the current session on each MGW The ratio between the number and the maximum number of sessions that each MGW can provide.

第三方面,本发明实施例提供了一种移动交换服务器,包括:In a third aspect, the embodiment of the present invention provides a mobile switching server, including:

第一获取模块,用于获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;所述共同的MGW候选列表集合包括:为所述主叫用户和所述被叫用户均提供服务的各个候选MGW的标识和负荷;The first acquiring module is configured to acquire a media gateway MGW candidate list set common to the calling user and the called user; the common MGW candidate list set includes: services provided for both the calling user and the called user Identification and load of each candidate MGW;

选择模块,用于若所述第一获取模块得到的所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW。A selection module, configured to select one of the MGWs with a load smaller than the first threshold as the serving station if the common MGW candidate list set obtained by the first acquisition module includes an MGW with a load smaller than the first threshold. The MGW common to the calling user and the called user.

在第三方面的第一种可能的实现方式中,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,所述第一获取模块包括:In a first possible implementation manner of the third aspect, if the call type between the calling user and the called user is an intra-office call, the first obtaining module includes:

第一获取单元,用于根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合P;所述P中包含主叫接入侧每个候选MGW的标识和负荷;The first obtaining unit is configured to obtain the MGW candidate list set P of the calling access side according to the location information of the calling user; the P includes the identification and load of each candidate MGW of the calling access side;

第二获取单元,用于根据被叫用户的位置信息获取被叫接入侧的MGW候选列表集合Q;所述Q中包含被叫接入侧每个候选MGW的标识和负荷;The second obtaining unit is used to obtain the MGW candidate list set Q of the called access side according to the location information of the called user; the Q includes the identification and load of each candidate MGW of the called access side;

第三获取单元,用于获取所述第一获取单元得到的P和所述第二获取单元得到的Q的交集R,将所述交集R作为所述主叫用户和所述被叫用户共同的MGW候选列表集合。The third acquisition unit is configured to acquire the intersection R of the P obtained by the first acquisition unit and the Q obtained by the second acquisition unit, and use the intersection R as the common value of the calling user and the called user MGW candidate list set.

在第三方面或第三方面的第一种可能的实现方式中,还提供了第三方面的第二种可能的实现方式,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,当所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,所述移动交换服务器还包括:In the third aspect or the first possible implementation of the third aspect, a second possible implementation of the third aspect is also provided, if the call type between the calling user and the called user is For an intra-office call, when the common MGW candidate list set does not include an MGW with a load less than the first threshold, the mobile switching server further includes:

第二获取模块,用于获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,以及被叫接入侧的MGW候选列表集合Q中负荷小于第三阈值的MGW;The second acquisition module is configured to acquire MGWs whose load is less than the second threshold in the MGW candidate list set P of the calling access side, and MGWs whose load is less than the third threshold in the MGW candidate list set Q of the called access side;

所述选择模块,还用于选择所述第二获取模块得到的负荷小于第二阈值的MGW中的一个作为主叫用户的MGW、选择所述第二获取模块得到的负荷小于第三阈值的MGW中的一个作为被叫用户的MGW。The selection module is further configured to select one of the MGWs whose load obtained by the second acquisition module is less than a second threshold as the calling user's MGW, and select an MGW whose load obtained by the second acquisition module is less than a third threshold One of them is the MGW of the called user.

在第三方面的第三种可能的实现方式中,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,所述移动交换服务器还包括:接收模块、第三获取模块;In a third possible implementation manner of the third aspect, if the call type between the calling user and the called user is an inter-office call, the mobile switching server further includes: a receiving module, a third acquiring module;

所述接收模块,用于接收第二MSC Server发送的包含主叫用户侧的负荷小于第二阈值的MGW候选列表集合M;所述M为所述第二MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集S,若所述A与B的交集为空集,S等于A或B,获取所述交集S中负荷小于第二阈值的MGW候选列表集合M,所述M中包含所述主叫用户侧每个候选MGW的标识和负荷;The receiving module is configured to receive the MGW candidate list set M sent by the second MSC Server and containing the load of the calling user side less than the second threshold; the M is obtained by the second MSC Server according to the location information of the calling user The MGW candidate list set A of the calling access side, and the MGW candidate list set B of the outgoing relay side obtained according to the configuration information of the outgoing relay side, to obtain the intersection S of the A and B, if the intersection of the A and B It is an empty set, S is equal to A or B, and the MGW candidate list set M whose load is less than the second threshold in the intersection S is obtained, and the M includes the identification and load of each candidate MGW on the calling user side;

所述第三获取模块,用于根据被叫用户的位置信息获取得到的被叫接入侧的MGW候选列表集合C,以及根据入局中继侧配置信息获取得到的入局中继侧的MGW候选列表集合D,得到所述C与D的交集N,若C与D的交集为空集,N等于D,所述N中包含所述被叫用户侧每个候选MGW的标识和负荷;The third acquisition module is configured to acquire the MGW candidate list set C of the called access side obtained according to the location information of the called user, and the MGW candidate list of the incoming relay side obtained according to the configuration information of the incoming relay side Set D to obtain the intersection N of the C and D, if the intersection of C and D is an empty set, N is equal to D, and the N includes the identification and load of each candidate MGW on the called user side;

所述第一获取模块,还用于获取所述接收模块得到的M和所述第三获取模块得到的N的交集R,将所述交集R作为所述主叫用户和所述被叫用户共同的MGW候选列表集合。The first obtaining module is further configured to obtain an intersection R of M obtained by the receiving module and N obtained by the third obtaining module, and use the intersection R as the common value of the calling user and the called user. MGW candidate list set.

在第三方面或第三方面的第三种可能的实现方式中,还提供了第三方面的第四种可能的实现方式,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,当所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,所述移动交换服务器还包括:In the third aspect or the third possible implementation of the third aspect, a fourth possible implementation of the third aspect is also provided, if the call type between the calling user and the called user is For an inter-office call, when the common MGW candidate list set does not include an MGW with a load less than the first threshold, the mobile switching server further includes:

第四获取模块,用于获取被叫接入侧的MGW候选列表集合N中负荷小于第三阈值的MGW,并选择所述负荷小于第三阈值的MGW中的一个作为服务所述被叫用户的MGW;The fourth acquisition module is configured to acquire the MGWs whose load is less than the third threshold in the MGW candidate list set N on the called access side, and select one of the MGWs whose load is less than the third threshold as the one serving the called user MGW;

发送模块,用于将包含有被叫用户所选择的MGW的消息发送给第二MSC Server,以使得第二MSC Server获取主叫接入侧的MGW候选列表集合M中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务所述主叫用户的MGW。The sending module is configured to send the message containing the MGW selected by the called user to the second MSC Server, so that the second MSC Server obtains the MGW whose load is less than the second threshold in the MGW candidate list set M of the calling access side and selecting one of the MGWs whose load is smaller than a second threshold as the MGW serving the calling user.

在第三方面或第三方面的前四种任一可能的实现方式中,还提供了第三方面的第五种可能的实现方式,所述各个MGW的负荷为各个MGW的可用空闲电路数与各个MGW的总电路数之间的比值;或者,为在当前各个MGW上的会话数量与各个MGW所能提供的最大会话数量之间的比值。In the third aspect or any of the first four possible implementations of the third aspect, a fifth possible implementation of the third aspect is also provided, the load of each MGW is the number of available idle circuits of each MGW and The ratio between the total number of circuits of each MGW; or, the ratio between the current number of sessions on each MGW and the maximum number of sessions that each MGW can provide.

第四方面,本发明实施例提供了一种移动交换服务器,包括:In a fourth aspect, the embodiment of the present invention provides a mobile switching server, including:

第一获取模块,用于根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集M;所述M中包含每个候选MGW的标识和负荷;The first obtaining module is used to obtain the MGW candidate list set A of the calling access side according to the location information of the calling user, and obtain the MGW candidate list set B of the outgoing relay side according to the configuration information of the outgoing relay side, and obtain the The intersection M of A and B; said M contains the identification and load of each candidate MGW;

第二获取模块,用于获取所述第一获取模块得到的M中负荷小于第二阈值的MGW候选列表集合P;所述P为主叫用户侧的MGW候选列表集合,包含每个候选MGW的标识和负荷;The second acquisition module is used to acquire the MGW candidate list set P whose load is less than the second threshold in M obtained by the first acquisition module; the P is the MGW candidate list set on the calling user side, including each candidate MGW identification and load;

发送模块,用于将包含所述第二获取模块得到的集合P的消息发送给第一MSCServer,以使得所述第一MSC Server选择共同服务所述主叫用户与所述被叫用户的MGW,或者选择服务所述被叫用户的MGW;a sending module, configured to send a message containing the set P obtained by the second obtaining module to the first MSC Server, so that the first MSC Server selects an MGW that jointly serves the calling user and the called user, Or select the MGW serving the called user;

接收模块,用于若所述第一MSC Server仅选择被叫用户侧的MGW,接收第一MSCServer发送的包含所述服务被叫用户的MGW的消息;A receiving module, configured to receive a message sent by the first MSC Server that includes the MGW serving the called user if the first MSC Server only selects the MGW on the called user side;

第三获取模块,用于获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务所述主叫用户的MGW。A third acquisition module, configured to acquire an MGW with a load less than the second threshold in the MGW candidate list set P at the calling access side, and select one of the MGWs with the load less than the second threshold as the MGW serving the calling user .

在第四方面的第一种可能的实现方式中,所述各个MGW的负荷为各个MGW的可用空闲电路数与各个MGW的总电路数之间的比值;或者,为在当前各个MGW上的会话数量与各个MGW所能提供的最大会话数量之间的比值。In the first possible implementation manner of the fourth aspect, the load of each MGW is the ratio between the number of available idle circuits of each MGW and the total number of circuits of each MGW; or, it is the current session on each MGW The ratio between the number and the maximum number of sessions that each MGW can provide.

本发明实施例提供的一种选择MGW的方法和装置,第一移动中心交换服务器MSCServer获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW;进一步的,若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,则分别选择主叫用户与被叫用户的MGW,以提高网络资源的利用率。According to a method and device for selecting an MGW provided by an embodiment of the present invention, the first mobile center switching server MSCServer acquires a media gateway MGW candidate list set common to both the calling user and the called user; if the common MGW candidate list set includes If there is an MGW with a load less than the first threshold, select one of the MGWs with the load less than the first threshold as the common MGW serving the calling user and the called user; further, if the common MGW candidate If the list set does not contain MGWs with loads smaller than the first threshold, the MGWs of the calling user and the called user are selected respectively, so as to improve the utilization rate of network resources.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1为本发明实施例提供的一种传统组网的场景示意图;FIG. 1 is a schematic diagram of a traditional networking scenario provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种传统组网的场景示意图;FIG. 2 is a schematic diagram of another traditional networking scenario provided by an embodiment of the present invention;

图3为本发明实施例提供的一种MSC Pool的场景示意图;FIG. 3 is a schematic diagram of a scenario of an MSC Pool provided by an embodiment of the present invention;

图4为本发明实施例提供的另一种MSC Pool的场景示意图;FIG. 4 is a schematic diagram of another MSC Pool scene provided by an embodiment of the present invention;

图5为本发明实施例提供的另一种MSC Pool的场景示意图;FIG. 5 is a schematic diagram of another MSC Pool scene provided by an embodiment of the present invention;

图6为本发明实施例提供的另一种MSC Pool的场景示意图;FIG. 6 is a schematic diagram of another MSC Pool scenario provided by an embodiment of the present invention;

图7为本发明实施例提供的一种选择MGW的方法示意图;FIG. 7 is a schematic diagram of a method for selecting an MGW provided by an embodiment of the present invention;

图8为本发明实施例提供的另一种选择MGW的方法示意图;FIG. 8 is a schematic diagram of another method for selecting an MGW provided by an embodiment of the present invention;

图9为本发明实施例提供的一种选择MGW的流程示意图;FIG. 9 is a schematic flow chart of selecting an MGW provided by an embodiment of the present invention;

图10为本发明实施例提供的一种局间呼叫的MSC Pool的场景示意图;FIG. 10 is a schematic diagram of a scenario of an MSC Pool for an inter-office call provided by an embodiment of the present invention;

图11为本发明实施例提供的一种移动交换服务器的结构示意图;FIG. 11 is a schematic structural diagram of a mobile switching server provided by an embodiment of the present invention;

图12为本发明实施例提供的另一种移动交换服务器的结构示意图;FIG. 12 is a schematic structural diagram of another mobile switching server provided by an embodiment of the present invention;

图13为本发明实施例提供的另一种移动交换服务器的结构示意图;FIG. 13 is a schematic structural diagram of another mobile switching server provided by an embodiment of the present invention;

图14为本发明实施例提供的一种移动交换服务器的实体结构示意图;FIG. 14 is a schematic diagram of the physical structure of a mobile switching server provided by an embodiment of the present invention;

图15为本发明实施例提供的另一种移动交换服务器的实体结构示意图。FIG. 15 is a schematic diagram of the physical structure of another mobile switching server provided by an embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

为了方便理解本发明实施例,首先在此介绍本发明实施例描述中相关的组网场景。In order to facilitate the understanding of the embodiments of the present invention, the relevant networking scenarios in the description of the embodiments of the present invention are firstly introduced here.

1、传统组网:MGW只能受到一个MSC Server的控制,基站控制器(Base StationController,简称BSC)或无线网络控制器(Wireless Access Point Controller,简称RNC)上联到MGW,用户通过BSC或RNC接入核心网。1. Traditional networking: MGW can only be controlled by one MSC Server. The base station controller (Base Station Controller, referred to as BSC) or wireless network controller (Wireless Access Point Controller, referred to as RNC) is uplinked to the MGW, and users pass BSC or RNC Access to the core network.

场景A:如图1所示,用户A与用户B均注册在MSC Server1上,用户A通过BSC1或RNC1接入核心网,用户B通过BSC2或RNC2接入核心网,BSC1/RNC1、BSC2/RNC2上联到MGW1,BSC2/RNC2上联到MGW2。Scenario A: As shown in Figure 1, user A and user B are both registered on MSC Server1, user A accesses the core network through BSC1 or RNC1, user B accesses the core network through BSC2 or RNC2, BSC1/RNC1, BSC2/RNC2 Uplink to MGW1, BSC2/RNC2 uplink to MGW2.

场景B:如图2所示,用户A与用户B均注册在MSC Server1上,用户A通过BSC1或RNC1接入核心网,用户B通过BSC2或RNC2接入核心网,BSC1/RNC1、BSC2/RNC2上联到MGW1,BSC1/RNC1、BSC2/RNC2上联到MGW2。Scenario B: As shown in Figure 2, both user A and user B are registered on MSC Server1, user A accesses the core network through BSC1 or RNC1, user B accesses the core network through BSC2 or RNC2, BSC1/RNC1, BSC2/RNC2 Uplink to MGW1, BSC1/RNC1, BSC2/RNC2 uplink to MGW2.

在传统组网的场景下,仅在进行局内呼叫时存在对MGW进行优化选择的问题,对于在局间呼叫时不存在对MGW进行优化选择的问题。In the traditional networking scenario, the problem of optimal selection of the MGW exists only during intra-office calls, and there is no problem of optimal selection of the MGW during inter-office calls.

2、移动交换中心池组网(MSC Pool):所述MSC Pool包括至少两个MSC Server,且所述MSC Pool中的MGW都可以受控于池内所有的MSC Server。2. Mobile switching center pool networking (MSC Pool): the MSC Pool includes at least two MSC Servers, and the MGWs in the MSC Pool can be controlled by all the MSC Servers in the pool.

场景C:如图3所示,MGW实现非接入层节点选择功能(Non Access Stratum NodeSelection Function,简称NNSF)。其中,MSC Server1和MSC Server2组成MSC Pool,用户A与用户C均注册在MSC Server1上,用户B注册MSC Server2上,用户A通过BSC1或RNC1接入核心网,用户B和用户C通过BSC2或RNC2接入核心网,BSC1/RNC1、BSC2/RNC2上联到MGW1,BSC2/RNC2上联到MGW2。Scenario C: As shown in Figure 3, the MGW implements the Non Access Stratum Node Selection Function (NNSF for short). Among them, MSC Server1 and MSC Server2 form the MSC Pool, user A and user C are both registered on MSC Server1, user B is registered on MSC Server2, user A accesses the core network through BSC1 or RNC1, user B and user C through BSC2 or RNC2 Access to the core network, BSC1/RNC1, BSC2/RNC2 uplink to MGW1, BSC2/RNC2 uplink to MGW2.

场景D:如图4所示,MGW实现NNSF功能。其中,MSC Server1和MSC Server2组成MSCPool,用户A与用户C均注册在MSC Server1上,用户B注册MSC Server2上,用户A通过BSC1或RNC1接入核心网,用户B和用户C通过BSC2或RNC2接入核心网,BSC1/RNC1、BSC2/RNC2上联到MGW1,BSC1/RNC1、BSC2/RNC2上联到MGW2。Scenario D: As shown in Figure 4, the MGW implements the NNSF function. Among them, MSC Server1 and MSC Server2 form an MSCPool, user A and user C are both registered on MSC Server1, user B is registered on MSC Server2, user A accesses the core network through BSC1 or RNC1, and user B and user C connect to the core network through BSC2 or RNC2. Enter the core network, BSC1/RNC1, BSC2/RNC2 uplink to MGW1, BSC1/RNC1, BSC2/RNC2 uplink to MGW2.

场景E:如图5所示,BSC或RNC实现NNSF功能。其中,MSC Server1和MSC Server2组成MSC Pool,用户A与用户C均注册在MSC Server1上,用户B注册MSC Server2上,用户A通过BSC1或RNC1接入核心网,用户B和用户C通过BSC2或RNC2接入核心网,BSC1/RNC1、BSC2/RNC2上联到MGW1,BSC2/RNC2上联到MGW2。Scenario E: As shown in Figure 5, the BSC or RNC implements the NNSF function. Among them, MSC Server1 and MSC Server2 form the MSC Pool, user A and user C are both registered on MSC Server1, user B is registered on MSC Server2, user A accesses the core network through BSC1 or RNC1, user B and user C through BSC2 or RNC2 Access to the core network, BSC1/RNC1, BSC2/RNC2 uplink to MGW1, BSC2/RNC2 uplink to MGW2.

场景F:如图6所示,BSC或RNC实现NNSF功能。其中,MSC Server1和MSC Server2组成MSC Pool,用户A与用户C均注册在MSC Server1上,用户B注册MSC Server2上,用户A通过BSC1或RNC1接入核心网,用户B和用户C通过BSC2或RNC2接入核心网,BSC1/RNC1、BSC2/RNC2上联到MGW1,BSC1/RNC1、BSC2/RNC2上联到MGW2。Scenario F: As shown in Figure 6, the BSC or RNC implements the NNSF function. Among them, MSC Server1 and MSC Server2 form the MSC Pool, user A and user C are both registered on MSC Server1, user B is registered on MSC Server2, user A accesses the core network through BSC1 or RNC1, user B and user C through BSC2 or RNC2 Access to the core network, BSC1/RNC1, BSC2/RNC2 uplink to MGW1, BSC1/RNC1, BSC2/RNC2 uplink to MGW2.

其中,场景C与场景E的区别仅在于,场景C中由MGW实现NNSF功能,场景E中由BSC或RNC实现NNSF功能;场景D与场景F的区别仅在于,场景D中由MGW实现NNSF功能,场景F中由BSC或RNC实现NNSF功能。Among them, the difference between Scenario C and Scenario E is only that in Scenario C, the MGW implements the NNSF function, and in Scenario E, the BSC or RNC implements the NNSF function; the difference between Scenario D and Scenario F is that in Scenario D, the MGW implements the NNSF function , in scenario F, the BSC or RNC implements the NNSF function.

在MSC Pool的场景下,在进行局内呼叫和局间呼叫时均存在对MGW进行优化选择的问题。In the MSC Pool scenario, there is a problem of optimizing the selection of the MGW when both intra-office calls and inter-office calls are made.

其中,所述局内呼叫为主叫用户与被叫用户注册在同一个MSC Server上,所述局间呼叫为主叫用户与被叫用户分别注册在不同的MSC Server上,无论是局内呼叫,还是局间呼叫,为所述主叫用户和所述被叫用户服务的MGW可以相同,也可以不同。Wherein, the intra-office call is that the calling user and the called user are registered on the same MSC Server, and the inter-office call is that the calling user and the called user are registered on different MSC Servers respectively. For an inter-office call, the MGWs serving the calling user and the called user may be the same or different.

需要说明的是,上述场景A至场景F仅仅为本发明实施例的示意图,其他任何与上述场景相类似的场景描述,均属于本发明实施例所要保护的范围。It should be noted that the above scenarios A to F are only schematic diagrams of the embodiments of the present invention, and any other descriptions of scenarios similar to the above scenarios belong to the protection scope of the embodiments of the present invention.

实施例一、Embodiment one,

针对上述不同的场景,本发明实施例提供了一种选择MGW的方法,以实现对MGW的优化选择。如图7所示,包括:For the above different scenarios, the embodiment of the present invention provides a method for selecting an MGW, so as to realize optimal selection of the MGW. As shown in Figure 7, including:

S101、第一移动中心交换服务器MSC Server获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;所述共同的MGW候选列表集合包括:为所述主叫用户和所述被叫用户均提供服务的各个候选MGW的标识和负荷。S101. The first mobile center switching server MSC Server obtains a media gateway MGW candidate list set common to both the calling user and the called user; the common MGW candidate list set includes: The identification and load of each candidate MGW that provides the service.

其中,所述第一MSC Server控制至少一个MGW,所述至少一个MGW服务于至少一个用户。Wherein, the first MSC Server controls at least one MGW, and the at least one MGW serves at least one user.

若所述主叫用户和被叫用户之间的呼叫类型为局内呼叫时,所述第一MSC Server为所述主叫用户与所述被叫用户共同注册的MSC Server;若所述主叫用户和被叫用户之间的呼叫类型为局间呼叫时,所述第一MSC Server为所述被叫用户侧的MSC Server。If the call type between the calling user and the called user is an intra-office call, the first MSC Server is the MSC Server jointly registered by the calling user and the called user; if the calling user When the type of the call with the called user is an inter-office call, the first MSC Server is the MSC Server on the side of the called user.

可选的,若所述主叫用户和被叫用户之间的呼叫类型为局内呼叫时,所述第一移动中心交换服务器MSC Server获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合包括:Optionally, if the call type between the calling user and the called user is an intra-office call, the first mobile center switching server MSC Server obtains a media gateway MGW candidate list set common to the calling user and the called user include:

根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合P;所述P中包含主叫接入侧每个候选MGW的标识和负荷;Obtain the MGW candidate list set P of the calling access side according to the location information of the calling user; said P includes the identification and load of each candidate MGW of the calling access side;

根据被叫用户的位置信息获取被叫接入侧的MGW候选列表集合Q;所述Q中包含被叫接入侧每个候选MGW的标识和负荷;Acquire the MGW candidate list set Q of the called access side according to the location information of the called user; the Q includes the identification and load of each candidate MGW of the called access side;

获取所述P和Q的交集R,将所述交集R作为所述主叫用户和被叫用户共同的MGW候选列表集合。The intersection R of the P and Q is obtained, and the intersection R is used as a set of MGW candidate lists common to the calling user and the called user.

可选的,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,所述第一MSC Server获取主叫用户和被叫用户的共同的MGW候选列表集合包括:Optionally, if the call type between the calling user and the called user is an inter-office call, the common MGW candidate list set obtained by the first MSC Server for the calling user and the called user includes:

接收第二MSC Server发送的包含主叫用户侧的负荷小于第二阈值的MGW候选列表集合M;所述M为所述第二MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到的所述A与B的交集S,若所述A与B的交集为空集,S等于A或B,从所述交集S中获取负荷小于第二阈值的MGW候选列表集合M,所述M中包含所述主叫用户侧每个候选MGW的标识和负荷;Receive the MGW candidate list set M sent by the second MSC Server and include the load of the calling user side less than the second threshold; the M is the MGW on the calling access side obtained by the second MSC Server according to the location information of the calling user The candidate list set A, and the MGW candidate list set B on the outgoing relay side obtained according to the outgoing relay side configuration information, the intersection S of the A and B obtained, if the intersection of the A and B is an empty set, S is equal to A or B, obtaining the MGW candidate list set M whose load is less than the second threshold from the intersection S, the M containing the identity and load of each candidate MGW on the calling user side;

根据被叫用户的位置信息获取得到的被叫接入侧的MGW候选列表集合C,以及根据入局中继侧配置信息获取得到的入局中继侧的MGW候选列表集合D,得到所述C与D的交集N,若C与D的交集为空集,N等于D,所述N中包含所述被叫用户侧每个候选MGW的标识和负荷;The MGW candidate list set C of the called access side obtained according to the location information of the called user, and the MGW candidate list set D of the incoming relay side obtained according to the configuration information of the incoming relay side, obtain the C and D The intersection N of C, if the intersection of C and D is an empty set, N is equal to D, and said N includes the identification and load of each candidate MGW on the called user side;

获取所述M和N的交集R,将所述交集R作为所述主叫用户和被叫用户共同的MGW候选列表集合。The intersection R of the M and N is obtained, and the intersection R is used as a set of MGW candidate lists common to the calling user and the called user.

S102、若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW。S102. If the common MGW candidate list set contains MGWs with a load less than the first threshold, select one of the MGWs with the load less than the first threshold to serve the calling user and the called user. The MGW.

其中,所述第一阈值可以为根据实际的业务情况、网络情况进行设定;所述各个MGW的负荷为各个MGW的可用空闲电路数与各个MGW的总电路数之间的比值;或者,为在当前各个MGW上的会话数量与各个MGW所能提供的最大会话数量之间的比值。Wherein, the first threshold may be set according to actual business conditions and network conditions; the load of each MGW is the ratio between the number of available idle circuits of each MGW and the total number of circuits of each MGW; or, The ratio between the current number of sessions on each MGW and the maximum number of sessions that each MGW can provide.

优选的,若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,可以考虑整体网络的负载均衡,选择所述负荷小于第一阈值的MGW中负荷最小的一个MGW作为服务所述主叫用户和所述被叫用户共同的MGW。Preferably, if the common MGW candidate list set contains MGWs with a load less than the first threshold, the load balance of the entire network may be considered, and the MGW with the smallest load among the MGWs with the load less than the first threshold may be selected as the service provider. The MGW common to the calling user and the called user.

具体的,在TDM承载的A接口电路是配置在MSC Server上,由MSC Server进行管理,MSC Server可以随时查看其管理的A接口电路的负荷状况,MSC Server通过动态比较各MGW可用的空闲电路数与各个MGW的总电路数之间的比值,以选择负荷较低的MGW作为服务所述主叫用户和所述被叫用户共同的MGW。Specifically, the A interface circuit carried by TDM is configured on the MSC Server and managed by the MSC Server. The MSC Server can check the load status of the A interface circuit it manages at any time. The MSC Server dynamically compares the number of idle circuits available in each MGW The ratio between the total number of circuits of each MGW is used to select an MGW with a lower load as the common MGW serving the calling user and the called user.

示例的,假设BSC连到MGW1下的A接口电路总数为M1,空闲电路数为N1;BSC连到MGW2下的A接口电路总数为M2,空闲电路数为N2,其中,的比值均小于第一阈值。当时,可以选择MGW1作为服务所述主叫用户与所述被叫用户共同的MGW;当时,可以选择MGW2作为服务所述主叫用户与所述被叫用户共同的MGW;当时,可以随机选择MGW1或MGW2中的一个作为服务所述主叫用户与所述被叫用户共同的MGW。For example, assume that the total number of A interface circuits connected to MGW1 from the BSC is M 1 , and the number of idle circuits is N 1 ; the total number of A interface circuits connected from the BSC to MGW2 is M 2 , and the number of idle circuits is N 2 , where, The ratios of are all less than the first threshold. when , choose MGW1 as the common MGW serving the calling user and the called user; when , choose MGW2 as the common MGW serving the calling user and the called user; when , one of MGW1 or MGW2 may be randomly selected as the common MGW serving the calling user and the called user.

具体的,ATM承载的MGW动态负荷分担方法是根据当前各个MGW上的会话数量与各个MGW能够提供的最大会话数量之间的比值,以选择负荷较低的MGW作为服务所述主叫用户和所述被叫用户共同的MGW。Specifically, the MGW dynamic load sharing method carried by ATM is based on the ratio between the number of sessions on each MGW and the maximum number of sessions that each MGW can provide, so as to select an MGW with a lower load to serve the calling user and all parties. Describe the common MGW of the called user.

示例的,假设MGW1能够提供的最大会话数量为M1,MGW1上当前的会话数量为N1;MGW2能够提供的最大会话数量为M2,MGW2上当前的会话数量为N2,其中,的比值均小于第一阈值。当时,可以选择MGW1作为服务所述主叫用户和所述被叫用户共同的MGW;当时,可以选择MGW2作为服务所述主叫用户和所述被叫用户共同的MGW;当时,可以随机选择MGW1和MGW2中一个作为服务所述主叫用户和所述被叫用户共同的MGW。For example, assume that the maximum number of sessions that MGW1 can provide is M1, and the current number of sessions on MGW1 is N 1 ; the maximum number of sessions that MGW2 can provide is M 2 , and the current number of sessions on MGW2 is N 2 , where, The ratios of are all less than the first threshold. when , choose MGW1 as the common MGW serving the calling user and the called user; when , choose MGW2 as the common MGW serving the calling user and the called user; when , one of MGW1 and MGW2 may be randomly selected as the common MGW serving the calling user and the called user.

进一步的,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,且所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,所述方法还包括:Further, if the call type between the calling user and the called user is an intra-office call, and the common MGW candidate list set does not include an MGW with a load less than the first threshold, the method further includes :

获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,以及被叫接入侧的MGW候选列表集合Q中负荷小于第三阈值的MGW;Obtaining MGWs whose load is less than the second threshold in the MGW candidate list set P on the calling access side, and MGWs whose load is less than the third threshold in the MGW candidate list set Q on the called access side;

选择所述负荷小于第二阈值的MGW中的一个作为服务主叫用户的MGW、所述负荷小于第三阈值的MGW中的一个作为服务被叫用户的MGW。One of the MGWs whose load is smaller than the second threshold is selected as the MGW serving the calling user, and one of the MGWs whose load is smaller than the third threshold is selected as the MGW serving the called user.

进一步的,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,且所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,所述方法还包括:Further, if the call type between the calling user and the called user is an inter-office call, and the common MGW candidate list set does not include an MGW with a load less than the first threshold, the method further include:

获取被叫接入侧的MGW候选列表集合N中负荷小于第三阈值的MGW,选择所述负荷小于第三阈值的MGW中的一个作为服务被叫用户的MGW;Obtain an MGW whose load is less than a third threshold in the MGW candidate list set N on the called access side, and select one of the MGWs whose load is less than the third threshold as an MGW serving the called user;

将包含有被叫用户所选择的MGW的消息发送给第二MSC Server,以使得第二MSCServer获取主叫接入侧的MGW候选列表集合M中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务所述主叫用户的MGW。Send a message containing the MGW selected by the called user to the second MSC Server, so that the second MSC Server obtains the MGW whose load is less than the second threshold in the MGW candidate list set M of the calling access side, and selects the MGW whose load is less than the second threshold. One of the MGWs with the second threshold is used as the MGW serving the calling user.

其中,上述所述各个MGW的负荷为各个MGW的可用空闲电路数与各个MGW的总电路数之间的比值;或者,为在当前各个MGW上的会话数量与各个MGW所能提供的最大会话数量之间的比值。Wherein, the above-mentioned load of each MGW is the ratio between the number of available idle circuits of each MGW and the total number of circuits of each MGW; or, it is the number of sessions currently on each MGW and the maximum number of sessions that each MGW can provide ratio between.

通过上述对MGW的选择方法,可以解决在传统组网场景下进行局内呼叫时对MGW的优化选择,也可以解决在MSC Pool的场景下对于局内呼叫或局间呼叫时对MGW的优化选择。Through the above method for selecting the MGW, the optimal selection of the MGW for intra-office calls in the traditional networking scenario can be solved, and the optimal selection of the MGW for intra-office calls or inter-office calls in the MSC Pool scenario can also be solved.

具体的,对于传统组网的场景A而言,在非全上联的场景下进行局内呼叫时,MGW1为优选期望的MGW,即用户A呼叫用户B、以及用户B呼叫用户A两种情景均能实现优选;对于传统组网的场景B而言,在全上联的场景下进行局内呼叫时,用户A与B共选MGW1或MGW2均能实现优选。Specifically, for the scenario A of the traditional networking, when an intra-office call is made in a non-full uplink scenario, MGW1 is the preferred desired MGW, that is, the two scenarios of user A calling user B and user B calling user A are both Optimization can be achieved; for scenario B of traditional networking, when making an intra-office call in the scenario of full uplink, users A and B can select MGW1 or MGW2 to achieve optimization.

对于MSC Pool的场景C和场景E而言,在非全上联的场景下进行局内呼叫或局间呼叫时,MGW1为优选期望的MGW;在进行局内呼叫时,用户A呼叫用户C、以及用户C呼叫用户A两种情景均需达到优选,在进行局间呼叫时,用户A呼叫用户B、以及用户B呼叫用户C这两种情景均能实现优选;对于MSC Pool的场景D和场景F而言,在全上联的场景下进行局内呼叫或局间呼叫时,用户A、用户B、以及用户C公选MGW1或MGW2均能实现优选。For Scenario C and Scenario E of MSC Pool, when making an intra-office call or an inter-office call in a non-full uplink scenario, MGW1 is the preferred desired MGW; when making an intra-office call, user A calls user C and user The two scenarios of C calling user A need to be optimized. During the inter-office call, the two scenarios of user A calling user B and user B calling user C can be optimized; for scenarios D and F of MSC Pool In other words, when an intra-office call or an inter-office call is made in the full uplink scenario, user A, user B, and user C can all select MGW1 or MGW2 to be preferred.

本发明实施例提供的一种选择MGW的方法,第一移动中心交换服务器MSC Server获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW;进一步的,若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,则分别选择主叫用户与被叫用户的MGW,以提高网络资源的利用率。According to a method for selecting an MGW provided by an embodiment of the present invention, the first mobile center switching server MSC Server acquires a media gateway MGW candidate list set common to the calling user and the called user; if the common MGW candidate list set contains For MGWs whose load is less than the first threshold, select one of the MGWs whose load is less than the first threshold as the common MGW serving the calling user and the called user; further, if the common MGW candidate list If the set does not contain MGWs with loads smaller than the first threshold, the MGWs of the calling user and the called user are selected respectively, so as to improve the utilization rate of network resources.

实施例二、Embodiment two,

针对上述不同的场景,本发明实施例提供了一种选择MGW的方法,以实现对MGW的优化选择。如图8所示,包括:For the above different scenarios, the embodiment of the present invention provides a method for selecting an MGW, so as to realize optimal selection of the MGW. As shown in Figure 8, including:

S201、第一MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集M;所述M中包含每个候选MGW的标识和负荷。S201. The first MSC Server obtains the MGW candidate list set A of the calling access side according to the location information of the calling user, and obtains the MGW candidate list set B of the outgoing relay side according to the configuration information of the outgoing relay side, and obtains the A The intersection M with B; said M includes the identification and load of each candidate MGW.

其中,所述第一MSC Server为主叫用户侧的MSC Server。Wherein, the first MSC Server is an MSC Server on the calling party side.

S202、获取所述M中负荷小于第一阈值的MGW候选列表集合P;所述P为主叫用户侧的MGW候选列表集合,包含每个候选MGW的标识和负荷。S202. Acquire a set P of MGW candidate lists in the M whose load is smaller than a first threshold; the P is a set of MGW candidate lists on the calling user side, and includes the identifier and load of each candidate MGW.

其中,所述第一阈值可以为根据实际的业务情况、网络情况进行设定。Wherein, the first threshold may be set according to actual service conditions and network conditions.

S203、将包含所述P的消息发送给第二MSC Server,以使得所述第二MSC Server选择服务所述主叫用户与所述被叫用户的共同的MGW,或者选择服务被叫用户的MGW。S203. Send the message containing the P to the second MSC Server, so that the second MSC Server selects the common MGW serving the calling user and the called user, or selects the MGW serving the called user .

其中,所述第二MSC Server为被叫用户侧的MSC Server。若所述第二MSC Server已选择服务所述主叫用户与所述被叫用户的共同的MGW,则所述主叫用户与所述被叫用户在所选择的共同的MGW下进行呼叫;若所述第二MSC Server仅选择服务与被叫用户的MGW,则所述第一MSC Server继续执行步骤S204-步骤S205。Wherein, the second MSC Server is an MSC Server on the side of the called user. If the second MSC Server has selected the common MGW serving the calling user and the called user, then the calling user and the called user make a call under the selected common MGW; if The second MSC Server only selects the MGW serving the called user, and the first MSC Server continues to execute step S204-step S205.

S204、若所述第二MSC Server仅选择服务被叫用户的MGW,所述第一MSC Server接收第二MSC Server发送的包含服务被叫用户的MGW的消息。S204. If the second MSC Server only selects the MGW serving the called user, the first MSC Server receives a message including the MGW serving the called user sent by the second MSC Server.

S205、获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务主叫用户的MGW。S205. Acquire MGWs whose loads are smaller than the second threshold in the MGW candidate list set P on the calling access side, and select one of the MGWs whose loads are smaller than the second threshold as the MGW serving the calling user.

本发明实施例提供了一种选择MGW的方法,在局间呼叫的场景下,将获取得到的主叫用户侧的MGW候选列表集合发送给第二MSC Server,以使得所述第二MSC Server选择服务所述主叫用户与所述被叫用户的共同的MGW,或者选择服务被叫用户的MGW;若所述第二MSC Server仅选择服务被叫用户的MGW,接收第二MSC Server发送的包含服务被叫用户的MGW的消息,并选择服务主叫用户的MGW,以提高网络资源的利用率。An embodiment of the present invention provides a method for selecting an MGW. In the scenario of an inter-office call, the acquired MGW candidate list set on the calling user side is sent to the second MSC Server, so that the second MSC Server selects Serving the common MGW of the calling user and the called user, or selecting the MGW serving the called user; if the second MSC Server only selects the MGW serving the called user, receiving the message sent by the second MSC Server containing The message of the MGW serving the called user is selected, and the MGW serving the calling user is selected to improve the utilization rate of network resources.

实施例三、Embodiment three,

本发明实施例提供了一种选择MGW的方法,如图9所示,包括:An embodiment of the present invention provides a method for selecting an MGW, as shown in FIG. 9 , including:

步骤301、在获取被叫路由信息流程之后,判断主叫用户与被叫用户之间的呼叫类型;若所述呼叫类型为局内呼叫,跳转至步骤302;若所述呼叫类型为局间呼叫,跳转至步骤309。Step 301, after obtaining the called routing information flow, determine the call type between the calling user and the called user; if the call type is an intra-office call, jump to step 302; if the call type is an inter-office call , skip to step 309.

步骤302、若所述主叫用户与被叫用户的呼叫类型为局内呼叫,MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合P={P1,P2,...,Pi},Pi=(nPi,wPi),其中Pi表示集合P中第i个MGW,nPi表示第i个MGW的标识,wPi表示第i个MGW的负荷。Step 302: If the call type between the calling user and the called user is an intra-office call, the MSC Server obtains the MGW candidate list set P={P 1 ,P 2 ,. ..,P i }, P i =(nP i ,wP i ), where P i represents the i-th MGW in the set P, nP i represents the identity of the i-th MGW, and wP i represents the load of the i-th MGW.

步骤303、在被叫流程中的呼叫确认Call Confirmed消息之后,根据被叫用户的位置信息获取被叫接入侧的MGW候选列表集合Q={Q1,Q2,...,Qj},Qj=(nQj,wQj),其中Qj表示被叫接入侧的MGW候选列表集合Q中第j个MGW,nQi表示第j个MGW的标识,wQi表示第j个MGW的负荷。Step 303, after the Call Confirmed message in the called flow, obtain the MGW candidate list set Q={Q 1 ,Q 2 ,...,Q j } at the called access side according to the location information of the called user , Q j =(nQ j ,wQ j ), where Q j represents the jth MGW in the MGW candidate list set Q at the called access side, nQ i represents the identity of the jth MGW, and wQ i represents the jth MGW load.

步骤304、获取P与Q的交集R,其中,Rk=(nRk,WRk),nRk表示第k个MGW的标识,wRk表示第k个MGW的负荷。Step 304: Obtain the intersection R of P and Q, where R k = (nR k , WR k ), nR k represents the identity of the kth MGW, and wR k represents the load of the kth MGW.

若交集R为空集时,执行步骤305;若交集R中只包含有一个MGW时,执行至步骤306;若交集R中包含至少一个MGW时,执行步骤307。If the intersection R is an empty set, execute step 305; if the intersection R contains only one MGW, execute step 306; if the intersection R includes at least one MGW, execute step 307.

步骤305、若交集执行步骤308。Step 305, if intersection Execute step 308 .

步骤306、若交集R中只包含有一个MGW时,若该MGW的负荷小于第一阈值时,选择该MGW作为主叫用户和被叫用户共同的服务MGW,执行步骤320;若该MGW的负荷大于所述第一阈值时,执行步骤308。Step 306: If there is only one MGW in the intersection R, and if the load of the MGW is less than the first threshold, select the MGW as the serving MGW for both the calling user and the called user, and perform step 320; if the load of the MGW If it is greater than the first threshold, perform step 308 .

具体的,若R={R0},当时,选择R0作为主叫用户与被叫用户共同的服务MGW,执行步骤320;当时,执行步骤308。Specifically, if R={R 0 }, when , select R 0 as the common serving MGW for the calling user and the called user, and perform step 320; when , execute step 308.

其中,为所述第一阈值,所述第一阈值可以根据实际的业务情况、网络的情况进行设定。in, is the first threshold, and the first threshold may be set according to actual service conditions and network conditions.

步骤307、若交集R中包含有至少一个MGW时,选出所述R中负荷最小的一个MGW,当该MGW的负荷小于所述第一阈值时,选择该MGW为主叫用户与被叫用户共同的服务MGW,执行步骤320;若该MGW的负荷大于所述第一阈值时,执行步骤308。Step 307: If at least one MGW is included in the intersection R, select an MGW with the smallest load in R, and select the MGW as the calling user and the called user when the load of the MGW is less than the first threshold For the common serving MGW, execute step 320; if the load of the MGW is greater than the first threshold, execute step 308.

具体的,若R={R1,R2,...,RK},其中,K>1。选出R0,其中wR0=min{wR1,wR2,...,wRK}。当时,选择R0作为主叫用户与被叫用户共同的服务MGW,执行步骤320;当时,执行步骤308。Specifically, if R={R 1 , R 2 ,...,R K }, where K>1. Select R 0 , where wR 0 =min{wR 1 ,wR 2 ,...,wR K }. when , select R 0 as the common serving MGW for the calling user and the called user, and perform step 320; when , execute step 308.

步骤308、分别获取P和Q中负荷最小的MGW,且P中所选择的MGW的负荷小于第二阈值,Q中所选择的MGW的负荷小于第三阈值,则选择这两个MGW分别作为服务主叫用户和被叫用户的MGW,执行步骤320。Step 308: Obtain the MGW with the smallest load among P and Q respectively, and the load of the MGW selected in P is less than the second threshold, and the load of the MGW selected in Q is less than the third threshold, then select these two MGWs as serving The MGWs of the calling user and the called user perform step 320 .

具体的,选出P中负荷最小的MGW,记为P0,其中wP0=min{wP1,wP2,...,wPK};选出Q中负荷最小的MGW,记为Q0,其中,wQ0=min{wQ1,wQ2,...,wQK}。当时,选择P0指代的MGW作为主叫用户的服务MGW,选择Q0指代的MGW作为被叫用户的服务MGW;其中,为所述第二阈值,为所述第三阈值。Specifically, select the MGW with the smallest load in P, denoted as P 0 , where wP 0 =min{wP 1 ,wP 2 ,...,wP K }; select the MGW with the smallest load in Q, denoted as Q 0 , where, wQ 0 =min{wQ 1 ,wQ 2 ,...,wQ K }. when and , select the MGW indicated by P 0 as the serving MGW for the calling user, and select the MGW indicated by Q 0 as the serving MGW for the called user; where, is the second threshold, is the third threshold.

需要说明的是,所述第二阈值与所述第三阈值大于或等于所述第一阈值,所述第二阈值与所述第三阈值可以相等,也可以不等,所述第二阈值、第三阈值为根据实际的业务情况、网络的情况设定的。It should be noted that, the second threshold and the third threshold are greater than or equal to the first threshold, the second threshold and the third threshold may be equal to or unequal, and the second threshold, The third threshold is set according to actual service conditions and network conditions.

时,或者时,或者时,选择失败。like and when, or and when, or and , the selection fails.

步骤309、主叫用户侧的MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表为集合A,根据出局中继侧配置信息获得出局中继侧的MGW候选列表为集合B,并获取A与B的交集M(即M=A∩B),若A与B的交集为空集,则令M=A或B。Step 309, the MSC Server on the calling user side obtains the MGW candidate list on the calling access side as set A according to the location information of the calling user, and obtains the MGW candidate list on the outgoing trunk side as set B according to the configuration information on the outgoing trunk side , and get the intersection M of A and B (that is, M=A∩B), if the intersection of A and B is an empty set, then set M=A or B.

步骤310、获取所述M中负荷小于第二阈值的MGW候选列表集合P;所述P为主叫用户侧的MGW候选列表集合,包含每个候选MGW的标识和负荷。Step 310: Obtain a set P of MGW candidate lists in the M whose load is smaller than the second threshold; the P is a set of MGW candidate lists on the calling user side, and includes the identifier and load of each candidate MGW.

步骤311、将携带所述集合P的IAM消息发送给被叫用户侧的MSC Server;相应的,被叫用户侧MSC Server接收主叫用户侧MSC Server发送的包含所述集合P的IAM消息。Step 311: Send the IAM message carrying the set P to the MSC Server at the called user side; correspondingly, the MSC Server at the called user side receives the IAM message containing the set P sent by the MSC Server at the calling user side.

步骤312、在Call Confirmed消息之后,被叫用户侧的MSC Server根据被叫用户的位置信息获取被叫接入侧的MGW候选列表为集合C,根据入局中继侧配置信息获得入局中继侧的MGW候选列表为集合D,获取C与D的交集Q,若C与D的交集为空集,令Q=D。Step 312, after the Call Confirmed message, the MSC Server on the called user side obtains the MGW candidate list on the called access side as set C according to the location information of the called user, and obtains the MGW candidate list on the incoming relay side according to the incoming relay side configuration information. The MGW candidate list is a set D, and the intersection Q of C and D is obtained. If the intersection of C and D is an empty set, Q=D.

步骤313、获取P与Q的交集R,其中,Rk=(nRk,WRk)。Step 313. Obtain the intersection R of P and Q, where R k =(nR k , WR k ).

若交集R为空集,执行步骤314;若交集R中只包含有一个MGW时,执行步骤315;若交集R中包含至少一个MGW时,执行步骤316。If the intersection R is an empty set, perform step 314; if the intersection R contains only one MGW, perform step 315; if the intersection R contains at least one MGW, perform step 316.

步骤314、若交集R为空集,执行步骤317-319。Step 314. If the intersection R is an empty set, execute steps 317-319.

步骤315、若交集R中只包含有一个MGW时,若该MGW的负荷小于第一阈值时,选择该MGW作为主叫用户和被叫用户共同的服务MGW,执行步骤320;若该MGW的负荷大于所述第一阈值时,执行步骤317-319。Step 315. If there is only one MGW in the intersection R, and if the load of the MGW is less than the first threshold, select the MGW as the serving MGW for both the calling user and the called user, and perform step 320; if the load of the MGW If it is greater than the first threshold, execute steps 317-319.

若R={R0},当时,选择R0作为主叫用户与被叫用户共同的服务MGW,执行步骤320;当时,执行步骤317-319。If R={R 0 }, when , select R 0 as the common serving MGW for the calling user and the called user, and perform step 320; when , execute steps 317-319.

其中,为所述第一阈值,所述第一阈值可以根据实际的业务情况、网络的情况进行设定。in, is the first threshold, and the first threshold may be set according to actual service conditions and network conditions.

步骤316、若交集R中只包含有至少一个MGW时,选出所述R中负荷最小的一个MGW,当该MGW的负荷小于所述第一阈值时,选择该MGW为主叫用户与被叫用户共同的服务MGW,执行步骤320;若该MGW的负荷大于所述第一阈值时,执行步骤317-319。Step 316: If the intersection R contains only at least one MGW, select an MGW with the smallest load in R, and select the MGW as the calling user and called party when the load of the MGW is less than the first threshold. For the common serving MGW of the user, execute step 320; if the load of the MGW is greater than the first threshold, execute steps 317-319.

具体的,若R={R1,R2,...,RK},其中,K>1。选出R0,其中wR0=min{wR1,wR2,...,wRK}。当时,选择R0指代的MGW作为主叫用户与被叫用户共同的服务MGW,执行步骤320;当时,执行步骤317-319。Specifically, if R={R 1 , R 2 ,...,R K }, where K>1. Select R 0 , where wR 0 =min{wR 1 ,wR 2 ,...,wR K }. when , select the MGW indicated by R 0 as the common serving MGW for the calling user and the called user, and perform step 320; when , execute steps 317-319.

步骤317、被叫用户侧MSC Server获取交集Q中负荷小于第三阈值的MGW,选择所述负荷小于第三阈值的MGW中最小的一个作为服务被叫用户的MGW。Step 317: The MSC Server at the called user side obtains the MGWs whose loads are smaller than the third threshold in the intersection Q, and selects the smallest one among the MGWs whose loads are smaller than the third threshold as the MGW serving the called user.

具体的,选出Q0,其中wQ0=min{wQ1,wQ2,...,wQK}。当时,选择Q0指代的MGW作为服务被叫用户的MGW。其中,为所述第三阈值。Specifically, select Q 0 , where wQ 0 =min{wQ 1 ,wQ 2 ,...,wQ K }. when , select the MGW indicated by Q 0 as the MGW serving the called user. in, is the third threshold.

步骤318、将第一条携带有所述Q0的后向APM消息发送给主叫用户侧MSC Server。Step 318: Send the first backward APM message carrying the Q 0 to the calling user side MSC Server.

步骤319、主叫用户侧MSC Server获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中最小的一个作为主叫用户的服务MGW。Step 319: The MSC Server on the calling user side acquires the MGWs whose load is less than the second threshold in the MGW candidate list set P on the calling access side, and selects the smallest one among the MGWs whose load is less than the second threshold as the service for the calling user MGW.

具体的,选出P0,其中wP0=min{wP1,wP2,...,wPK}。当时,选择P0指代的MGW作为主叫用户的服务MGW,执行步骤320。Specifically, select P 0 , where wP 0 =min{wP 1 ,wP 2 ,...,wP K }. when , the MGW indicated by P 0 is selected as the serving MGW of the calling user, and step 320 is executed.

需要说明的是,所述第二阈值与所述第三阈值大于或等于所述第一阈值,所述第二阈值与所述第三阈值可以相等,也可以不等,所述第二阈值、第三阈值为根据实际的业务情况、网络的情况设定的。It should be noted that, the second threshold and the third threshold are greater than or equal to the first threshold, the second threshold and the third threshold may be equal to or unequal, and the second threshold, The third threshold is set according to actual service conditions and network conditions.

步骤320、MGW的优选完成。Step 320, the optimization of the MGW is completed.

在步骤317中,被叫用户侧MSC Server获取的交集Q中不包含负荷小于第三阈值的MGW,则被叫用户侧MSC Server选择服务被叫用户的MGW失败,此时,被叫用户侧MSC Server发送释放资源的消息(REL)给主叫用户侧MSC Server,以告知主叫用户侧MSC Serve直接释放资源,则此次局间呼叫失败。In step 317, if the intersection Q obtained by the MSC Server on the called user side does not include MGWs with a load less than the third threshold, the MSC Server on the called user side fails to select the MGW serving the called user. At this time, the MSC on the called user side The Server sends a resource release message (REL) to the MSC Server on the calling user side to inform the MSC Server on the calling user side to directly release resources, and the inter-office call fails.

本发明实施例提供了一种选择MGW的方法,在局内呼叫或局间呼叫不同场景下,通过获取主叫用户与被叫用户共同的MGW候选列表,若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW;进一步的,若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,则分别选择主叫用户与被叫用户的MGW,以提高网络资源的利用率。An embodiment of the present invention provides a method for selecting an MGW. In different scenarios of an intra-office call or an inter-office call, by obtaining the common MGW candidate list of the calling user and the called user, if the common MGW candidate list set contains If there is an MGW with a load less than the first threshold, select one of the MGWs with the load less than the first threshold as the common MGW serving the calling user and the called user; further, if the common MGW candidate If the list set does not contain MGWs with loads smaller than the first threshold, the MGWs of the calling user and the called user are selected respectively, so as to improve the utilization rate of network resources.

实施例四、Embodiment four,

如图10所示,MSC Server1、MSC Server2组成MSC Pool,用户T注册在MSC Server1上,用户H注册在MSC Server2上,T通过BSC1接入核心网,H通过BSC2接入核心网;BSC1连接MGW1、MGW2,BSC2连接MGW1、MGW2、MGW3,MGW1的负荷为30%,MGW2的负荷为50%,MGW3的负荷为20%;假设第一阈值、第二阈值与第三阈值均为100%。As shown in Figure 10, MSC Server1 and MSC Server2 form an MSC Pool, user T is registered on MSC Server1, user H is registered on MSC Server2, T accesses the core network through BSC1, H accesses the core network through BSC2; BSC1 connects to MGW1 , MGW2, and BSC2 are connected to MGW1, MGW2, and MGW3. The load of MGW1 is 30%, the load of MGW2 is 50%, and the load of MGW3 is 20%. Assume that the first threshold, the second threshold, and the third threshold are all 100%.

针对上述场景,当用户T向用户H发起呼叫时(用户T为主叫用户,用户H为被叫用户),本发明实施例提供了一种选择MGW的方法,包括:For the above scenario, when user T initiates a call to user H (user T is the calling user, user H is the called user), the embodiment of the present invention provides a method for selecting an MGW, including:

步骤501、MSC Server1在取被叫路由信息流程之后,判断主叫用户T与被叫用户H之间的呼叫类型为出局呼叫。Step 501, MSC Server1 judges that the call type between the calling user T and the called user H is an outgoing call after obtaining the called routing information flow.

步骤502、MSC Server1根据主叫用户T的位置信息获取主叫接入侧的MGW候选列表为集合A={MGW1,MGW2},根据出局中继侧配置信息获得出局中继侧的MGW候选列表为集合B={MGW1,MGW2}。Step 502, MSC Server1 obtains the MGW candidate list of the calling access side as a set A={MGW1, MGW2} according to the location information of the calling user T, and obtains the MGW candidate list of the outgoing trunk side according to the configuration information of the outgoing trunk side as Set B = {MGW1, MGW2}.

步骤503、获取A与B的交集M,其中,M=A∩B={MGW1,MGW2}。Step 503. Obtain the intersection M of A and B, where M=A∩B={MGW1, MGW2}.

步骤504、选出M中负荷小于第二阈值的MGW候选列表集合P。Step 504: Select the MGW candidate list set P among M whose load is smaller than the second threshold.

由于MGW1与MGW2的负荷均小于第二阈值,则P=A∩B={MGW1,MGW2}Since the loads of MGW1 and MGW2 are both less than the second threshold, then P=A∩B={MGW1, MGW2}

步骤505、将所述P通过IAM消息携带给MSC Server2。Step 505, carry the P to MSC Server2 through an IAM message.

步骤506、MSC Server2在Call Confirmed消息之后,根据被叫用户的位置信息获取被叫接入侧的MGW候选列表为集合C={MGW1,MGW2,MGW3},根据入局中继侧配置信息获得入局中继侧的MGW候选列表为集合D={MGW1,MGW2,MGW3}。Step 506: After the Call Confirmed message, MSC Server2 obtains the MGW candidate list of the called access side as a set C={MGW1, MGW2, MGW3} according to the location information of the called user, and obtains the incoming MGW candidate list according to the configuration information of the incoming trunk side. The MGW candidate list on the successor side is a set D={MGW1, MGW2, MGW3}.

步骤507、获取C与D的交集Q,由于,则Q=C∩D={MGW1,MGW2,MGW3}。Step 507, obtain the intersection Q of C and D, because , then Q=C∩D={MGW1, MGW2, MGW3}.

步骤508、MSC Server2获取P与Q的交集R,其中,R=P∩Q={MGW1,MGW2}。Step 508, MSC Server2 acquires the intersection R of P and Q, where R=P∩Q={MGW1, MGW2}.

步骤509、从R中选出负荷最小的R0,其中wR0=min{30%,50%}=30%,因此R0=MGW1,且则选择MGW1作为主叫用户T与被叫用户H共同的服务MGW。Step 509: Select R 0 with the smallest load from R, where wR 0 =min{30%,50%}=30%, so R 0 =MGW1, and Then select MGW1 as the common serving MGW for the calling user T and the called user H.

步骤510、MGW优选完成。Step 510, the MGW is preferably completed.

本发明实施例提供了一种选择MGW的方法,通过获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW,也就是在局间呼叫的场景下,通过对主叫用户和被叫用户选择负载最轻的MGW来承载语音业务,已达到整体网络的负载均衡,提供网络资源的利用率。An embodiment of the present invention provides a method for selecting an MGW, by obtaining the media gateway MGW candidate list set common to the calling user and the called user; if the common MGW candidate list set includes an MGW whose load is less than the first threshold , then select one of the MGWs whose load is less than the first threshold as the common MGW serving the calling user and the called user, that is, in the scenario of an inter-office call, the calling user and the called user The user chooses the MGW with the lightest load to bear the voice service, which has achieved the load balance of the entire network and improved the utilization of network resources.

本发明实施例提供了一种移动交换服务器,该移动交换服务器以上述以该移动交换服务器为执行主体的方法步骤相同,在此不再赘述。如图11所示,所述移动交换服务器110包括:An embodiment of the present invention provides a mobile switching server. The mobile switching server uses the same steps as the above-mentioned method with the mobile switching server as the execution body, and details will not be repeated here. As shown in Figure 11, the mobile switching server 110 includes:

第一获取模块1101,用于获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;所述共同的MGW候选列表集合包括:为所述主叫用户和所述被叫用户均提供服务的各个候选MGW的标识和负荷;The first obtaining module 1101 is configured to obtain a media gateway MGW candidate list set common to the calling user and the called user; the common MGW candidate list set includes: providing services for both the calling user and the called user The identification and load of each candidate MGW;

选择模块1102,用于若所述第一获取模块1101得到的所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW。A selection module 1102, configured to select one of the MGWs whose load is less than the first threshold if the common MGW candidate list set obtained by the first acquisition module 1101 includes MGWs with a load less than the first threshold as The MGW that serves the calling user and the called user is common.

可选的,如图12所示,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,所述第一获取模块1101包括:Optionally, as shown in FIG. 12, if the call type between the calling user and the called user is an intra-office call, the first obtaining module 1101 includes:

第一获取单元1101a,用于根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合P;所述P中包含主叫接入侧每个候选MGW的标识和负荷;The first obtaining unit 1101a is configured to obtain the MGW candidate list set P of the calling access side according to the location information of the calling user; the P includes the identification and load of each candidate MGW of the calling access side;

第二获取单元1101b,用于根据被叫用户的位置信息获取被叫接入侧的MGW候选列表集合Q;所述Q中包含被叫接入侧每个候选MGW的标识和负荷;The second obtaining unit 1101b is configured to obtain the MGW candidate list set Q of the called access side according to the location information of the called user; the Q includes the identification and load of each candidate MGW of the called access side;

第三获取单元1101c,用于获取所述第一获取单元1101a得到的P和所述第二获取单元1101b得到的Q的交集R,将所述交集R作为所述主叫用户和所述被叫用户共同的MGW候选列表集合。The third obtaining unit 1101c is configured to obtain the intersection R of the P obtained by the first obtaining unit 1101a and the Q obtained by the second obtaining unit 1101b, and use the intersection R as the calling user and the called party A set of common MGW candidate lists for users.

可选的,如图12所示,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,当所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,所述移动交换服务器还包括:Optionally, as shown in FIG. 12, if the call type between the calling user and the called user is an intra-office call, when the common MGW candidate list set does not contain MGW, the mobile switching server further includes:

第二获取模块1103,用于获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,以及被叫接入侧的MGW候选列表集合Q中负荷小于第三阈值的MGW;The second acquiring module 1103 is configured to acquire MGWs whose load is less than the second threshold in the MGW candidate list set P on the calling access side, and MGWs whose load is less than the third threshold in the MGW candidate list set Q on the called access side;

所述选择模块1102,还用于选择所述第二获取模块1103得到的负荷小于第二阈值的MGW中的一个作为主叫用户的MGW、选择所述第二获取模块1103得到的负荷小于第三阈值的MGW中的一个作为被叫用户的MGW。The selection module 1102 is further configured to select one of the MGWs whose load obtained by the second acquisition module 1103 is less than the second threshold as the calling user's MGW, and select the load obtained by the second acquisition module 1103 to be less than the third threshold. One of the MGWs with the threshold is used as the MGW of the called user.

可选的,如图12所示,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,所述移动交换服务器还包括:接收模块1104、第三获取模块1105;Optionally, as shown in FIG. 12, if the call type between the calling user and the called user is an inter-office call, the mobile switching server further includes: a receiving module 1104 and a third obtaining module 1105;

所述接收模块1104,用于接收第二MSC Server发送的包含主叫用户侧的负荷小于第二阈值的MGW候选列表集合M;所述M为所述第二MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集S,若所述A与B的交集为空集,S等于A或B,获取所述交集S中负荷小于第二阈值的MGW候选列表集合M,所述M中包含所述主叫用户侧每个候选MGW的标识和负荷;The receiving module 1104 is configured to receive the MGW candidate list set M sent by the second MSC Server and including the load of the calling user side less than the second threshold; the M is the location information of the calling user according to the second MSC Server Obtain the MGW candidate list set A of the calling access side, and obtain the MGW candidate list set B of the outgoing relay side according to the configuration information of the outgoing relay side, and obtain the intersection S of the A and B, if the A and B The intersection is an empty set, S is equal to A or B, and the MGW candidate list set M whose load is less than the second threshold in the intersection S is obtained, and the M includes the identification and load of each candidate MGW on the calling user side;

所述第三获取模块1105,用于根据被叫用户的位置信息获取得到的被叫接入侧的MGW候选列表集合C,以及根据入局中继侧配置信息获取得到的入局中继侧的MGW候选列表集合D,得到所述C与D的交集N,若C与D的交集为空集,N等于D,所述N中包含所述被叫用户侧每个候选MGW的标识和负荷;The third obtaining module 1105 is configured to obtain the MGW candidate list set C of the called access side obtained according to the location information of the called user, and the MGW candidate list of the incoming relay side obtained according to the configuration information of the incoming relay side A list set D, obtaining the intersection N of the C and D, if the intersection of C and D is an empty set, N is equal to D, and the N includes the identification and load of each candidate MGW on the called user side;

所述第一获取模块1101,还用于获取所述接收模块1104得到的M和所述第三获取模块1105得到的N的交集R,将所述交集R作为所述主叫用户和所述被叫用户共同的MGW候选列表集合。The first obtaining module 1101 is further configured to obtain an intersection R of M obtained by the receiving module 1104 and N obtained by the third obtaining module 1105, and use the intersection R as the calling user and the called user It is called the user's common MGW candidate list set.

可选的,如图12所示,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,当所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,所述移动交换服务器还包括:Optionally, as shown in FIG. 12, if the call type between the calling user and the called user is an inter-office call, when the common MGW candidate list set does not contain The MGW, the mobile switching server further includes:

第四获取模块1106,用于获取被叫接入侧的MGW候选列表集合N中负荷小于第三阈值的MGW,并选择所述负荷小于第三阈值的MGW中的一个作为服务所述被叫用户的MGW;The fourth acquiring module 1106 is configured to acquire the MGWs whose load is less than the third threshold in the MGW candidate list set N of the called access side, and select one of the MGWs whose load is less than the third threshold to serve the called user the MGW;

发送模块1107,用于将包含有被叫用户所选择的MGW的消息发送给第二MSCServer,以使得第二MSC Server获取主叫接入侧的MGW候选列表集合M中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务所述主叫用户的MGW。The sending module 1107 is configured to send the message containing the MGW selected by the called user to the second MSC Server, so that the second MSC Server obtains the MGW whose load is less than the second threshold in the MGW candidate list set M of the calling access side and selecting one of the MGWs whose load is smaller than a second threshold as the MGW serving the calling user.

本发明实施例提供了一种选择MGW的装置,第一移动中心交换服务器MSC Server获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW;进一步的,若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,则分别选择主叫用户与被叫用户的MGW,以提高网络资源的利用率。An embodiment of the present invention provides a device for selecting an MGW. The first mobile center switching server MSC Server acquires a media gateway MGW candidate list set common to the calling user and the called user; if the common MGW candidate list set contains For MGWs whose load is less than the first threshold, select one of the MGWs whose load is less than the first threshold as the common MGW serving the calling user and the called user; further, if the common MGW candidate list If the set does not contain MGWs with loads smaller than the first threshold, the MGWs of the calling user and the called user are selected respectively, so as to improve the utilization rate of network resources.

本发明实施例提供了一种移动交换服务器,该移动交换服务器以上述以该移动交换器为执行主体的方法步骤相同,在此不再赘述。如图13所示,所述移动交换服务器130包括:An embodiment of the present invention provides a mobile switching server. The mobile switching server uses the same steps as the above-mentioned method with the mobile switch as the execution subject, and will not be repeated here. As shown in Figure 13, the mobile switching server 130 includes:

第一获取模块1301,用于根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集M;所述M中包含每个候选MGW的标识和负荷;The first obtaining module 1301 is configured to obtain the MGW candidate list set A of the calling access side according to the location information of the calling user, and obtain the MGW candidate list set B of the outgoing relay side according to the configuration information of the outgoing relay side, and obtain the The intersection M of A and B; the M contains the identity and load of each candidate MGW;

第二获取模块1302,用于获取所述第一获取模块1301得到的M中负荷小于第二阈值的MGW候选列表集合P;所述P为主叫用户侧的MGW候选列表集合,包含每个候选MGW的标识和负荷;The second acquiring module 1302 is configured to acquire the set P of MGW candidate lists in M obtained by the first acquiring module 1301, whose load is less than the second threshold; the set P is the set of MGW candidate lists on the calling user side, including MGW identification and load;

发送模块1303,用于将包含所述第二获取模块1302得到的集合P的消息发送给第一MSC Server,以使得所述第一MSC Server选择共同服务所述主叫用户与所述被叫用户的MGW,或者选择服务所述被叫用户的MGW;A sending module 1303, configured to send a message containing the set P obtained by the second obtaining module 1302 to the first MSC Server, so that the first MSC Server chooses to jointly serve the calling user and the called user MGW, or select the MGW serving the called user;

接收模块1304,用于若所述第一MSC Server仅选择被叫用户侧的MGW,接收第一MSC Server发送的包含所述服务被叫用户的MGW的消息;The receiving module 1304 is configured to receive a message including the MGW serving the called user sent by the first MSC Server if the first MSC Server only selects the MGW on the called user side;

第三获取模块1305,用于获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务所述主叫用户的MGW。The third acquiring module 1305 is configured to acquire the MGWs whose load is less than the second threshold in the MGW candidate list set P on the calling access side, and select one of the MGWs whose load is less than the second threshold as the one serving the calling user MGW.

本发明实施例提供了一种选择MGW的装置,在局间呼叫的场景下,将获取得到的主叫用户侧的MGW候选列表集合发送给第二MSC Server,以使得所述第二MSC Server选择服务所述主叫用户与所述被叫用户的共同的MGW,或者选择服务被叫用户的MGW;若所述第二MSC Server仅选择服务被叫用户的MGW,接收第二MSC Server发送的包含服务被叫用户的MGW的消息,并选择服务主叫用户的MGW,以提高网络资源的利用率。An embodiment of the present invention provides an apparatus for selecting an MGW. In the scenario of an inter-office call, the acquired MGW candidate list set on the calling user side is sent to a second MSC Server, so that the second MSC Server selects Serving the common MGW of the calling user and the called user, or selecting the MGW serving the called user; if the second MSC Server only selects the MGW serving the called user, receiving the message sent by the second MSC Server containing The message of the MGW serving the called user is selected, and the MGW serving the calling user is selected to improve the utilization rate of network resources.

本发明实施例提供了一种移动交换服务器,如图14所示,所述移动交换服务器140包括:接收器1401、发送器1402、存储器1403、处理器1404、总线系统1405。An embodiment of the present invention provides a mobile switching server. As shown in FIG.

其中,所述存储器1403和所述处理器1404之间是通过总线系统1405耦合在一起的,其中总线系统1405除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统1405。Wherein, the memory 1403 and the processor 1404 are coupled together through a bus system 1405, wherein the bus system 1405 may include a power bus, a control bus, and a status signal bus, etc. in addition to a data bus. However, for clarity of illustration, the various buses are labeled as bus system 1405 in the figure.

所述存储器1403可以包括只读存储器和随机存取存储器,并向处理器1404提供指令和数据。所述存储器1403的一部分还可以包括非易失性随机存取存储器(NVRAM)。The memory 1403 may include read-only memory and random-access memory, and provides instructions and data to the processor 1404 . A part of the memory 1403 may also include non-volatile random access memory (NVRAM).

所述存储器1403存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 1403 stores the following elements, executable modules or data structures, or their subsets, or their extended sets:

操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for realizing various operations.

操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: includes various system programs for implementing various basic services and processing hardware-based tasks.

所述处理器1404通过调用存储器1403存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;所述共同的MGW候选列表集合包括:为所述主叫用户和所述被叫用户均提供服务的各个候选MGW的标识和负荷;若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW。The processor 1404 executes the following operations by invoking the operation instruction stored in the memory 1403 (the operation instruction may be stored in the operating system): obtain the media gateway MGW candidate list set common to the calling user and the called user; the common The MGW candidate list set includes: the identification and load of each candidate MGW that provides services for both the calling user and the called user; if the common MGW candidate list set contains MGWs with a load less than the first threshold, Then select one of the MGWs whose load is smaller than the first threshold as the MGW that serves both the calling user and the called user.

可选的,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,所述处理器1404具体用于根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合P;所述P中包含主叫接入侧每个候选MGW的标识和负荷;根据被叫用户的位置信息获取被叫接入侧的MGW候选列表集合Q;所述Q中包含被叫接入侧每个候选MGW的标识和负荷;获取所述P和Q的交集R,将所述交集R作为所述主叫用户和所述被叫用户共同的MGW候选列表集合。Optionally, if the call type between the calling user and the called user is an intra-office call, the processor 1404 is specifically configured to obtain the MGW candidate list at the calling access side according to the location information of the calling user Set P; said P contains the identification and load of each candidate MGW on the calling access side; obtains the MGW candidate list set Q on the called access side according to the location information of the called user; said Q includes the The identification and load of each candidate MGW on the ingress side; obtaining the intersection R of the P and Q, and using the intersection R as a set of MGW candidate lists common to the calling user and the called user.

可选的,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,所述处理器1404还用于,获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,以及被叫接入侧的MGW候选列表集合Q中负荷小于第三阈值的MGW;选择所述负荷小于第二阈值的MGW中的一个作为服务所述主叫用户的MGW、所述负荷小于第三阈值的MGW中的一个作为服务所述被叫用户的MGW。Optionally, if the call type between the calling user and the called user is an intra-office call, if the common MGW candidate list set does not include an MGW with a load less than the first threshold, the processor 1404 is also used to obtain the MGWs whose load is less than the second threshold in the MGW candidate list set P on the calling access side, and the MGWs whose load is less than the third threshold in the MGW candidate list set Q on the called access side; select the One of the MGWs whose load is smaller than the second threshold is used as the MGW serving the calling user, and one of the MGWs whose load is smaller than the third threshold is used as the MGW serving the called user.

可选的,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,所述接收器1401用于接收第二MSC Server发送的包含主叫用户侧的负荷小于第二阈值的MGW候选列表集合M;所述M为所述第二MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集S,若所述A与B的交集为空集,S等于A或B,从所述交集S中获取负荷小于第二阈值的MGW候选列表集合M,所述M中包含所述主叫用户侧每个候选MGW的标识和负荷;Optionally, if the call type between the calling user and the called user is an inter-office call, the receiver 1401 is configured to receive the second A threshold MGW candidate list set M; the M is the second MSC Server acquires the MGW candidate list set A of the calling access side according to the location information of the calling user, and acquires the outbound trunk according to the configuration information of the outbound trunk side The MGW candidate list set B on the side obtains the intersection S of the A and B, if the intersection of the A and B is an empty set, S is equal to A or B, and obtains the MGW whose load is less than the second threshold from the intersection S A candidate list set M, the M includes the identity and load of each candidate MGW on the calling user side;

所述处理器1404用于根据被叫用户的位置信息获取得到的被叫接入侧的MGW候选列表集合C,以及根据入局中继侧配置信息获取得到的入局中继侧的MGW候选列表集合D,得到所述C与D的交集N,若C与D的交集为空集,N等于D,所述N中包含所述被叫用户侧每个候选MGW的标识和负荷;获取所述M和N的交集R,将所述交集R作为所述主叫用户和被叫用户共同的MGW候选列表集合。The processor 1404 is configured to obtain the MGW candidate list set C of the called access side obtained according to the location information of the called user, and the MGW candidate list set D of the incoming relay side obtained according to the configuration information of the incoming relay side , to obtain the intersection N of C and D, if the intersection of C and D is an empty set, N is equal to D, and the N contains the identity and load of each candidate MGW on the called user side; obtain the M and An intersection R of N, using the intersection R as a set of MGW candidate lists common to the calling user and the called user.

可选的,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,所述处理器1404还用于获取被叫接入侧的MGW候选列表集合N中负荷小于第三阈值的MGW,选择所述负荷小于第三阈值的MGW中的一个作为服务被叫用户的MGW;Optionally, if the call type between the calling user and the called user is an inter-office call, and if the common MGW candidate list set does not include an MGW with a load less than the first threshold, the processing The module 1404 is further configured to obtain an MGW whose load is less than a third threshold in the MGW candidate list set N at the called access side, and select one of the MGWs whose load is less than the third threshold as the MGW serving the called user;

所述发送器1402用于将包含有被叫用户所选择的MGW的消息发送给第二MSCServer,以使得第二MSC Server获取主叫接入侧的MGW候选列表集合M中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务主叫用户的MGW。The sender 1402 is configured to send a message containing the MGW selected by the called user to the second MSC Server, so that the second MSC Server obtains the MGW candidate list set M of the calling access side whose load is less than the second threshold. The MGW selects one of the MGWs whose load is smaller than the second threshold as the MGW serving the calling user.

可选的,所述各个MGW的负荷为各个MGW的可用空闲电路数与各个MGW的总电路数之间的比值;或者,为在当前各个MGW上的会话数量与各个MGW所能提供的最大会话数量之间的比值。Optionally, the load of each MGW is the ratio between the number of available idle circuits of each MGW and the total number of circuits of each MGW; or, it is the number of sessions currently on each MGW and the maximum session number that each MGW can provide The ratio between the quantities.

本发明实施例提供的一种选择MGW的装置,第一移动中心交换服务器MSC Server获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW;进一步的,若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,则分别选择主叫用户与被叫用户的MGW,以提高网络资源的利用率。According to an apparatus for selecting an MGW provided by an embodiment of the present invention, the first mobile center switching server MSC Server acquires a media gateway MGW candidate list set common to the calling user and the called user; if the common MGW candidate list set contains For MGWs whose load is less than the first threshold, select one of the MGWs whose load is less than the first threshold as the common MGW serving the calling user and the called user; further, if the common MGW candidate list If the set does not contain MGWs with loads smaller than the first threshold, the MGWs of the calling user and the called user are selected respectively, so as to improve the utilization rate of network resources.

本发明实施例提供了一种移动交换服务器,如图15所示,所述移动交换服务器150包括:接收器1501、发送器1502、存储器1503、处理器1504、总线系统1505。An embodiment of the present invention provides a mobile exchange server. As shown in FIG.

其中,所述存储器1503和所述处理器1504之间是通过总线系统1505耦合在一起的,其中总线系统1505除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统1505。Wherein, the memory 1503 and the processor 1504 are coupled together through a bus system 1505, wherein the bus system 1505 may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for clarity of illustration, the various buses are labeled as bus system 1505 in the figure.

所述存储器1503可以包括只读存储器和随机存取存储器,并向处理器1504提供指令和数据。所述存储器1503的一部分还可以包括非易失性随机存取存储器(NVRAM)。The memory 1503 may include read-only memory and random-access memory, and provides instructions and data to the processor 1504 . A part of the memory 1503 may also include non-volatile random access memory (NVRAM).

所述存储器1503存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 1503 stores the following elements, executable modules or data structures, or their subsets, or their extended sets:

操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for realizing various operations.

操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: includes various system programs for implementing various basic services and processing hardware-based tasks.

所述处理器1504通过调用存储器1503存储的操作指令(该操作指令可存储在操作系统中),用于根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集M;所述M中包含每个候选MGW的标识和负荷;获取所述M中负荷小于第一阈值的MGW候选列表集合P;所述P为主叫用户侧的MGW候选列表集合,包含每个候选MGW的标识和负荷;The processor 1504 calls the operation instruction stored in the memory 1503 (the operation instruction can be stored in the operating system), and is used to obtain the MGW candidate list set A of the calling access side according to the location information of the calling user, and according to the outgoing call The relay side configuration information obtains the MGW candidate list set B of the outbound relay side, and obtains the intersection M of the A and B; the M contains the identification and load of each candidate MGW; the load in the M is less than the first The threshold MGW candidate list set P; the P is the MGW candidate list set on the calling user side, including the identification and load of each candidate MGW;

所述发送器1502用于将包含所述P的消息发送给第二MSC Server,以使得所述第二MSC Server选择服务所述主叫用户与所述被叫用户共同的MGW,或者选择服务被叫用户的MGW;The sender 1502 is configured to send the message containing the P to the second MSC Server, so that the second MSC Server selects the MGW that serves the calling user and the called user, or selects the MGW that serves the calling user and the called user. call the user's MGW;

所述接收器1501用于若所述第二MSC Server仅选择被叫用户侧的MGW,接收第二MSC Server发送的包含服务被叫用户的MGW的消息;The receiver 1501 is configured to receive a message including the MGW serving the called user sent by the second MSC Server if the second MSC Server only selects the MGW on the called user side;

所述处理器1504通过调用存储器1503存储的操作指令(该操作指令可存储在操作系统中),用于获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务主叫用户的MGW。The processor 1504 invokes the operation instruction stored in the memory 1503 (the operation instruction can be stored in the operating system) to obtain the MGWs whose load is less than the second threshold in the MGW candidate list set P on the calling access side, and select the selected One of the MGWs whose load is smaller than the second threshold is used as the MGW serving the calling user.

可选的,所述各个MGW的负荷为各个MGW的可用空闲电路数与各个MGW的总电路数之间的比值;或者,为在当前各个MGW上的会话数量与各个MGW所能提供的最大会话数量之间的比值。Optionally, the load of each MGW is the ratio between the number of available idle circuits of each MGW and the total number of circuits of each MGW; or, it is the number of sessions currently on each MGW and the maximum session number that each MGW can provide The ratio between the quantities.

本发明实施例提供了一种选择MGW的装置,在局间呼叫的场景下,将获取得到的主叫用户侧的MGW候选列表集合发送给第二MSC Server,以使得所述第二MSC Server选择服务所述主叫用户与所述被叫用户的共同的MGW,或者选择服务被叫用户的MGW;若所述第二MSC Server仅选择服务被叫用户的MGW,接收第二MSC Server发送的包含服务被叫用户的MGW的消息,并选择服务主叫用户的MGW,以提高网络资源的利用率。An embodiment of the present invention provides an apparatus for selecting an MGW. In the scenario of an inter-office call, the acquired MGW candidate list set on the calling user side is sent to a second MSC Server, so that the second MSC Server selects Serving the common MGW of the calling user and the called user, or selecting the MGW serving the called user; if the second MSC Server only selects the MGW serving the called user, receiving the message sent by the second MSC Server containing The message of the MGW serving the called user is selected, and the MGW serving the calling user is selected to improve the utilization rate of network resources.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk or optical disk, etc., which can store program codes. medium.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (12)

1.一种选择MGW的方法,其特征在于,包括:1. A method for selecting MGW, characterized in that, comprising: 第一移动中心交换服务器MSC Server获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;所述共同的MGW候选列表集合包括:为所述主叫用户和所述被叫用户均提供服务的各个候选MGW的标识和负荷;The first mobile center switching server MSC Server acquires the common media gateway MGW candidate list set of the calling user and the called user; the common MGW candidate list set includes: providing services for both the calling user and the called user The identification and load of each candidate MGW; 若所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW;If the common MGW candidate list set contains an MGW with a load less than the first threshold, select one of the MGWs with the load less than the first threshold as the MGW that serves the calling user and the called user ; 其中,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,所述第一MSCServer获取主叫用户和被叫用户的共同的MGW候选列表集合包括:Wherein, if the call type between the calling user and the called user is an inter-office call, the common MGW candidate list set obtained by the first MSCServer for the calling user and the called user includes: 接收第二MSC Server发送的包含主叫用户侧的负荷小于第二阈值的MGW候选列表集合M;所述M为所述第二MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集S,若所述A与B的交集为空集,S等于A或B,从所述交集S中获取负荷小于第二阈值的MGW候选列表集合M,所述M中包含所述主叫用户侧每个候选MGW的标识和负荷;Receive the MGW candidate list set M sent by the second MSC Server and include the load of the calling user side less than the second threshold; the M is the MGW on the calling access side obtained by the second MSC Server according to the location information of the calling user The candidate list set A, and the MGW candidate list set B obtained on the outgoing relay side according to the configuration information of the outgoing relay side, and the intersection S of the A and B are obtained. If the intersection of the A and B is an empty set, S is equal to A or B, obtaining the MGW candidate list set M whose load is less than the second threshold from the intersection S, where the M contains the identification and load of each candidate MGW on the calling user side; 根据被叫用户的位置信息获取得到的被叫接入侧的MGW候选列表集合C,以及根据入局中继侧配置信息获取得到的入局中继侧的MGW候选列表集合D,得到所述C与D的交集N,若C与D的交集为空集,N等于D,所述N中包含所述被叫用户侧每个候选MGW的标识和负荷;The MGW candidate list set C of the called access side obtained according to the location information of the called user, and the MGW candidate list set D of the incoming relay side obtained according to the configuration information of the incoming relay side, obtain the C and D The intersection N of C, if the intersection of C and D is an empty set, N is equal to D, and said N includes the identification and load of each candidate MGW on the called user side; 获取所述M和N的交集R,将所述交集R作为所述主叫用户和被叫用户共同的MGW候选列表集合。The intersection R of the M and N is obtained, and the intersection R is used as a set of MGW candidate lists common to the calling user and the called user. 2.根据权利要求1所述的方法,其特征在于,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,所述第一MSC Server获取主叫用户和被叫用户共同的MGW候选列表集合包括:2. The method according to claim 1, wherein if the call type between the calling user and the called user is an intra-office call, the first MSC Server obtains the calling user and the called user A common set of MGW candidate lists includes: 根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合P;所述P中包含主叫接入侧每个候选MGW的标识和负荷;Obtain the MGW candidate list set P of the calling access side according to the location information of the calling user; said P includes the identification and load of each candidate MGW of the calling access side; 根据被叫用户的位置信息获取被叫接入侧的MGW候选列表集合Q;所述Q中包含被叫接入侧每个候选MGW的标识和负荷;Acquire the MGW candidate list set Q of the called access side according to the location information of the called user; the Q includes the identification and load of each candidate MGW of the called access side; 获取所述P和Q的交集R,将所述交集R作为所述主叫用户和所述被叫用户共同的MGW候选列表集合。The intersection R of the P and Q is obtained, and the intersection R is used as a set of MGW candidate lists common to the calling user and the called user. 3.根据权利要求2所述的方法,其特征在于,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,所述方法还包括:若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,3. The method according to claim 2, wherein if the call type between the calling user and the called user is an intra-office call, the method further comprises: if the common MGW candidate list The set does not contain MGWs with a load less than the first threshold, 获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,以及被叫接入侧的MGW候选列表集合Q中负荷小于第三阈值的MGW;Obtaining MGWs whose load is less than the second threshold in the MGW candidate list set P on the calling access side, and MGWs whose load is less than the third threshold in the MGW candidate list set Q on the called access side; 选择所述负荷小于第二阈值的MGW中的一个作为服务所述主叫用户的MGW、所述负荷小于第三阈值的MGW中的一个作为服务所述被叫用户的MGW。Selecting one of the MGWs whose load is less than the second threshold as the MGW serving the calling user, and one of the MGWs whose load is less than a third threshold as the MGW serving the called user. 4.根据权利要求1所述的方法,其特征在于,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,所述方法还包括:若所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,4. The method according to claim 1, wherein if the call type between the calling user and the called user is an inter-office call, the method further comprises: if the common MGW candidate MGWs with a load less than the first threshold are not included in the list set, 获取被叫接入侧的MGW候选列表集合N中负荷小于第三阈值的MGW,选择所述负荷小于第三阈值的MGW中的一个作为服务被叫用户的MGW;Obtain an MGW whose load is less than a third threshold in the MGW candidate list set N on the called access side, and select one of the MGWs whose load is less than the third threshold as an MGW serving the called user; 将包含有被叫用户所选择的MGW的消息发送给第二MSC Server,以使得第二MSCServer获取主叫接入侧的MGW候选列表集合M中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务主叫用户的MGW。Send a message containing the MGW selected by the called user to the second MSC Server, so that the second MSC Server obtains the MGW whose load is less than the second threshold in the MGW candidate list set M of the calling access side, and selects the MGW whose load is less than the second threshold. One of the MGWs with the second threshold serves as the MGW serving the calling user. 5.根据权利要求1-4任一项所述的方法,其特征在于,所述各个MGW的负荷为各个MGW的可用空闲电路数与各个MGW的总电路数之间的比值;或者,为在当前各个MGW上的会话数量与各个MGW所能提供的最大会话数量之间的比值。5. The method according to any one of claims 1-4, wherein the load of each MGW is the ratio between the number of available idle circuits of each MGW and the total number of circuits of each MGW; The ratio between the current number of sessions on each MGW and the maximum number of sessions that each MGW can provide. 6.一种选择MGW的方法,其特征在于,包括:6. A method for selecting an MGW, comprising: 第一MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集M;所述M中包含每个候选MGW的标识和负荷;The first MSC Server obtains the MGW candidate list set A of the calling access side according to the location information of the calling user, and obtains the MGW candidate list set B of the outgoing trunk side according to the configuration information of the outgoing trunk side, and obtains the A and B The intersection M of; Said M contains the identification and the load of each candidate MGW; 获取所述M中负荷小于第一阈值的MGW候选列表集合P;所述P为主叫用户侧的MGW候选列表集合,包含每个候选MGW的标识和负荷;Obtaining the MGW candidate list set P whose load is less than the first threshold in the M; the P is the MGW candidate list set on the calling user side, including the identifier and load of each candidate MGW; 将包含所述P的消息发送给第二MSC Server,以使得所述第二MSC Server选择服务所述主叫用户与所述被叫用户共同的MGW,或者选择服务被叫用户的MGW;Sending the message containing the P to the second MSC Server, so that the second MSC Server selects the MGW that serves the calling user and the called user, or selects the MGW that serves the called user; 若所述第二MSC Server仅选择被叫用户侧的MGW,所述第一MSC Server接收第二MSCServer发送的包含服务被叫用户的MGW的消息;If the second MSC Server only selects the MGW on the side of the called user, the first MSC Server receives a message sent by the second MSC Server that includes the MGW serving the called user; 获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务主叫用户的MGW。Acquiring MGWs whose loads are less than the second threshold in the MGW candidate list set P on the calling access side, and selecting one of the MGWs whose loads are less than the second threshold as the MGW serving the calling user. 7.根据权利要求6所述的方法,其特征在于,所述各个MGW的负荷为各个MGW的可用空闲电路数与各个MGW的总电路数之间的比值;或者,为在当前各个MGW上的会话数量与各个MGW所能提供的最大会话数量之间的比值。7. The method according to claim 6, wherein the load of each MGW is the ratio between the number of available idle circuits of each MGW and the total number of circuits of each MGW; or, it is the load of each MGW currently The ratio between the number of sessions and the maximum number of sessions that each MGW can provide. 8.一种移动交换服务器,其特征在于,包括:8. A mobile switching server, characterized in that, comprising: 第一获取模块,用于获取主叫用户和被叫用户共同的媒体网关MGW候选列表集合;所述共同的MGW候选列表集合包括:为所述主叫用户和所述被叫用户均提供服务的各个候选MGW的标识和负荷;The first acquiring module is configured to acquire a media gateway MGW candidate list set common to the calling user and the called user; the common MGW candidate list set includes: services provided for both the calling user and the called user Identification and load of each candidate MGW; 选择模块,用于若所述第一获取模块得到的所述共同的MGW候选列表集合中包含有负荷小于第一阈值的MGW,则选择所述负荷小于第一阈值的MGW中的一个作为服务所述主叫用户和所述被叫用户共同的MGW;A selection module, configured to select one of the MGWs with a load smaller than the first threshold as the serving station if the common MGW candidate list set obtained by the first acquisition module includes an MGW with a load smaller than the first threshold. The MGW common to the calling user and the called user; 其中,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,所述移动交换服务器还包括:接收模块、第三获取模块;Wherein, if the call type between the calling user and the called user is an inter-office call, the mobile switching server further includes: a receiving module and a third obtaining module; 所述接收模块,用于接收第二MSC Server发送的包含主叫用户侧的负荷小于第二阈值的MGW候选列表集合M;所述M为所述第二MSC Server根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集S,若所述A与B的交集为空集,S等于A或B,获取所述交集S中负荷小于第二阈值的MGW候选列表集合M,所述M中包含所述主叫用户侧每个候选MGW的标识和负荷;The receiving module is configured to receive the MGW candidate list set M sent by the second MSC Server and containing the load of the calling user side less than the second threshold; the M is obtained by the second MSC Server according to the location information of the calling user The MGW candidate list set A of the calling access side, and the MGW candidate list set B of the outgoing relay side obtained according to the configuration information of the outgoing relay side, to obtain the intersection S of the A and B, if the intersection of the A and B It is an empty set, S is equal to A or B, and the MGW candidate list set M whose load is less than the second threshold in the intersection S is obtained, and the M includes the identification and load of each candidate MGW on the calling user side; 所述第三获取模块,用于根据被叫用户的位置信息获取得到的被叫接入侧的MGW候选列表集合C,以及根据入局中继侧配置信息获取得到的入局中继侧的MGW候选列表集合D,得到所述C与D的交集N,若C与D的交集为空集,N等于D,所述N中包含所述被叫用户侧每个候选MGW的标识和负荷;The third acquisition module is configured to acquire the MGW candidate list set C of the called access side obtained according to the location information of the called user, and the MGW candidate list of the incoming relay side obtained according to the configuration information of the incoming relay side Set D to obtain the intersection N of the C and D, if the intersection of C and D is an empty set, N is equal to D, and the N includes the identification and load of each candidate MGW on the called user side; 所述第一获取模块,还用于获取所述接收模块得到的M和所述第三获取模块得到的N的交集R,将所述交集R作为所述主叫用户和所述被叫用户共同的MGW候选列表集合。The first obtaining module is further configured to obtain an intersection R of M obtained by the receiving module and N obtained by the third obtaining module, and use the intersection R as the common value of the calling user and the called user. MGW candidate list set. 9.根据权利要求8所述的移动交换服务器,其特征在于,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,所述第一获取模块包括:9. The mobile switching server according to claim 8, wherein if the call type between the calling user and the called user is an intra-office call, the first obtaining module includes: 第一获取单元,用于根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合P;所述P中包含主叫接入侧每个候选MGW的标识和负荷;The first obtaining unit is configured to obtain the MGW candidate list set P of the calling access side according to the location information of the calling user; the P includes the identification and load of each candidate MGW of the calling access side; 第二获取单元,用于根据被叫用户的位置信息获取被叫接入侧的MGW候选列表集合Q;所述Q中包含被叫接入侧每个候选MGW的标识和负荷;The second obtaining unit is used to obtain the MGW candidate list set Q of the called access side according to the location information of the called user; the Q includes the identification and load of each candidate MGW of the called access side; 第三获取单元,用于获取所述第一获取单元得到的P和所述第二获取单元得到的Q的交集R,将所述交集R作为所述主叫用户和所述被叫用户共同的MGW候选列表集合。The third acquisition unit is configured to acquire the intersection R of the P obtained by the first acquisition unit and the Q obtained by the second acquisition unit, and use the intersection R as the common value of the calling user and the called user MGW candidate list set. 10.根据权利要求9所述的移动交换服务器,其特征在于,若所述主叫用户与所述被叫用户之间的呼叫类型为局内呼叫,当所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,所述移动交换服务器还包括:10. The mobile switching server according to claim 9, wherein if the call type between the calling user and the called user is an intra-office call, when the common MGW candidate list set does not include There are MGWs with a load less than the first threshold, and the mobile switching server further includes: 第二获取模块,用于获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,以及被叫接入侧的MGW候选列表集合Q中负荷小于第三阈值的MGW;The second acquisition module is configured to acquire MGWs whose load is less than the second threshold in the MGW candidate list set P of the calling access side, and MGWs whose load is less than the third threshold in the MGW candidate list set Q of the called access side; 所述选择模块,还用于选择所述第二获取模块得到的负荷小于第二阈值的MGW中的一个作为主叫用户的MGW、选择所述第二获取模块得到的负荷小于第三阈值的MGW中的一个作为被叫用户的MGW。The selection module is further configured to select one of the MGWs whose load obtained by the second acquisition module is less than a second threshold as the calling user's MGW, and select an MGW whose load obtained by the second acquisition module is less than a third threshold One of them is the MGW of the called user. 11.根据权利要求8所述的移动交换服务器,其特征在于,若所述主叫用户与所述被叫用户之间的呼叫类型为局间呼叫,当所述共同的MGW候选列表集合中不包含有负荷小于第一阈值的MGW,所述移动交换服务器还包括:11. The mobile switching server according to claim 8, wherein if the call type between the calling user and the called user is an inter-office call, when there is no Including MGWs whose load is less than the first threshold, the mobile switching server further includes: 第四获取模块,用于获取被叫接入侧的MGW候选列表集合N中负荷小于第三阈值的MGW,并选择所述负荷小于第三阈值的MGW中的一个作为服务所述被叫用户的MGW;The fourth acquisition module is configured to acquire the MGWs whose load is less than the third threshold in the MGW candidate list set N on the called access side, and select one of the MGWs whose load is less than the third threshold as the one serving the called user MGW; 发送模块,用于将包含有被叫用户所选择的MGW的消息发送给第二MSC Server,以使得第二MSC Server获取主叫接入侧的MGW候选列表集合M中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务所述主叫用户的MGW。The sending module is configured to send the message containing the MGW selected by the called user to the second MSC Server, so that the second MSC Server obtains the MGW whose load is less than the second threshold in the MGW candidate list set M of the calling access side and selecting one of the MGWs whose load is smaller than a second threshold as the MGW serving the calling user. 12.一种移动交换服务器,其特征在于,包括:12. A mobile exchange server, characterized in that, comprising: 第一获取模块,用于根据主叫用户的位置信息获取主叫接入侧的MGW候选列表集合A,以及根据出局中继侧配置信息获取出局中继侧的MGW候选列表集合B,得到所述A与B的交集M;所述M中包含每个候选MGW的标识和负荷;The first obtaining module is used to obtain the MGW candidate list set A of the calling access side according to the location information of the calling user, and obtain the MGW candidate list set B of the outgoing relay side according to the configuration information of the outgoing relay side, and obtain the The intersection M of A and B; said M contains the identification and load of each candidate MGW; 第二获取模块,用于获取所述第一获取模块得到的M中负荷小于第二阈值的MGW候选列表集合P;所述P为主叫用户侧的MGW候选列表集合,包含每个候选MGW的标识和负荷;The second acquisition module is used to acquire the MGW candidate list set P whose load is less than the second threshold in M obtained by the first acquisition module; the P is the MGW candidate list set on the calling user side, including each candidate MGW identification and load; 发送模块,用于将包含所述第二获取模块得到的集合P的消息发送给第一MSC Server,以使得所述第一MSC Server选择共同服务所述主叫用户与被叫用户的MGW,或者选择服务被叫用户的MGW;a sending module, configured to send a message including the set P obtained by the second obtaining module to the first MSC Server, so that the first MSC Server selects an MGW that jointly serves the calling user and the called user, or Select the MGW serving the called user; 接收模块,用于若所述第一MSC Server仅选择被叫用户侧的MGW,接收第一MSC Server发送的包含所述服务被叫用户的MGW的消息;A receiving module, configured to receive a message sent by the first MSC Server that includes the MGW serving the called user if the first MSC Server only selects the MGW on the called user side; 第三获取模块,用于获取主叫接入侧的MGW候选列表集合P中负荷小于第二阈值的MGW,选择所述负荷小于第二阈值的MGW中的一个作为服务所述主叫用户的MGW。A third acquisition module, configured to acquire an MGW with a load less than the second threshold in the MGW candidate list set P at the calling access side, and select one of the MGWs with the load less than the second threshold as the MGW serving the calling user .
CN201410021551.6A 2014-01-16 2014-01-16 MGW selection method and device Active CN103781119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410021551.6A CN103781119B (en) 2014-01-16 2014-01-16 MGW selection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410021551.6A CN103781119B (en) 2014-01-16 2014-01-16 MGW selection method and device

Publications (2)

Publication Number Publication Date
CN103781119A CN103781119A (en) 2014-05-07
CN103781119B true CN103781119B (en) 2017-02-15

Family

ID=50572827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410021551.6A Active CN103781119B (en) 2014-01-16 2014-01-16 MGW selection method and device

Country Status (1)

Country Link
CN (1) CN103781119B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241753A (en) * 2017-06-01 2017-10-10 国网浙江省电力公司嘉兴供电公司 Wireless network method for optimizing stability and system
CN113596744B (en) 2017-09-30 2023-11-03 华为技术有限公司 Communication method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1882120A (en) * 2005-11-28 2006-12-20 华为技术有限公司 Wireless network end office and call switching method
CN101330639A (en) * 2007-06-20 2008-12-24 华为技术有限公司 Method and apparatus for implementing beep-page in a mobile switching centre pool
CN101902723A (en) * 2010-07-09 2010-12-01 中兴通讯股份有限公司 Method and network for realizing mobile switching centre (MSC) pool network function

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005633B (en) * 2006-07-21 2010-07-21 华为技术有限公司 Method and system for realizing mobile exchange central pool

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1882120A (en) * 2005-11-28 2006-12-20 华为技术有限公司 Wireless network end office and call switching method
CN101330639A (en) * 2007-06-20 2008-12-24 华为技术有限公司 Method and apparatus for implementing beep-page in a mobile switching centre pool
CN101902723A (en) * 2010-07-09 2010-12-01 中兴通讯股份有限公司 Method and network for realizing mobile switching centre (MSC) pool network function

Also Published As

Publication number Publication date
CN103781119A (en) 2014-05-07

Similar Documents

Publication Publication Date Title
US11917498B2 (en) Communication method and communications apparatus
US12213194B2 (en) Method and apparatus for admission control of sessions based on priority
EP3981190B1 (en) Method and apparatus for enforcement of maximum number of protocol data unit sessions per network slice in a communication system
US20230070712A1 (en) Communication method, apparatus, and system
US20120231760A1 (en) Evolved Packet System and Method for Processing Emergency Call Attachment Thereof
CN109428854A (en) It is a kind of based on wide and narrow strip fusion call processing method, apparatus and system
CN103052038B (en) One sets up the contextual method and system of group calling, base station, cluster EPC
EP3949468A1 (en) Apparatus, method and computer program for group communication
JP2021158664A (en) Method, device, and computer program product for error processing for indirect communication
CN110234140B (en) Communication method, device, entity and storage medium
CN113497825B (en) Wireless communication system
WO2022222817A1 (en) Method and apparatus for selecting edge application server
CN113132322B (en) A method and device for communication
US20190059034A1 (en) Voice service processing method and base station
EP4021093B1 (en) Communication method, apparatus and system
CN107852669A (en) Utilize NFV MTC service managements
CN109462863B (en) A method and device for a voice call
WO2019213856A1 (en) Method and apparatus for configuring drb integrity protection, and computer storage medium
WO2022067700A1 (en) Communication method, apparatus, and system
CN103781119B (en) MGW selection method and device
WO2021047443A1 (en) Method and apparatus for forwarding service data packet
CN115515082A (en) 4G and 5G public and private network convergence cluster communication method and system
CN107113687B (en) Method and entity for mobility support selection
US20220329986A1 (en) Multicast service implementation method and apparatus, and communications device
EP3823323B1 (en) Data transmission method and related apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant