CN103053200B - Close and the method and apparatus of session between access terminal - Google Patents
Close and the method and apparatus of session between access terminal Download PDFInfo
- Publication number
- CN103053200B CN103053200B CN201180001782.5A CN201180001782A CN103053200B CN 103053200 B CN103053200 B CN 103053200B CN 201180001782 A CN201180001782 A CN 201180001782A CN 103053200 B CN103053200 B CN 103053200B
- Authority
- CN
- China
- Prior art keywords
- personality
- session
- information
- access network
- access terminal
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/143—Termination or inactivation of sessions, e.g. event-controlled end of session
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/30—Connection release
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明实施例提供一种关闭与接入终端间会话的方法和设备。该方法包括:接入终端从源接入网络向目标接入网络切换过程中,根据源接入网络保存的与接入终端对应的会话信息,生成源接入网络侧的Personality信息;Personality信息包括该的会话信息中各套Personality的Personality类型和各套Personality分别对应的有效性判断标识;向目标接入网络发送包括有Personality信息的会话转移请求。本发明实施例避免了AN间切换过程中目标AN判断是否关闭会话时产生误判的现象。
Embodiments of the present invention provide a method and device for closing a session with an access terminal. The method includes: during the handover process of the access terminal from the source access network to the target access network, generating Personality information on the source access network side according to the session information corresponding to the access terminal stored in the source access network; the Personality information includes The Personality type of each set of Personalities in the session information and the validity judgment identifiers corresponding to each set of Personalities; sending a session transfer request including the Personality information to the target access network. The embodiment of the present invention avoids the phenomenon of misjudgment when the target AN judges whether to close the session during the inter-AN handover process.
Description
技术领域technical field
本发明实施例涉及通信技术,尤其涉及一种关闭与接入终端间会话的方法和设备。Embodiments of the present invention relate to communication technologies, and in particular to a method and device for closing a session with an access terminal.
背景技术Background technique
CDMA 2000 EV-DO(Evolution Data Only,只为用于移动数据)系统的不同版本的接入网络(Access Network,简称AN)间切换时,源AN保存的与接入终端(Access Terminal,简称AT)对应的会话信息包括多套Personality(个性),一套Personality为一套协商完整的协议子类型、应用层子类型、属性值和公共数据的集合,通过Personality目标AN可与AT进行通信。AT和AN通过协商,约好使用属性以及参数的值,这些属性以及参数分为多套personality保存,每套personality对应一种业务类型,每套personality的性能、功能上的能力有差异,在不同的网络和载频上应用不同的业务类型。When switching between different versions of the Access Network (AN for short) of the CDMA 2000 EV-DO (Evolution Data Only, only for mobile data) system, the information saved by the source AN and the Access Terminal (AT for short) ) corresponding session information includes multiple sets of Personality (personality), a set of Personality is a set of negotiated complete protocol subtypes, application layer subtypes, attribute values and public data, through which the target AN can communicate with AT. Through negotiation, AT and AN agree to use attributes and parameter values. These attributes and parameters are divided into multiple sets of personalities for storage. Each set of personalities corresponds to a type of business. Different service types are applied on different networks and carrier frequencies.
如果在源AN所建立的会话里有一个或多个personality不是目标AN所支持的personality类型(个性类型),那么目标AN可以通过关闭会话并重新通过初始配置协商的方式建立与AT之间的会话,使所有personality目标AN都支持。如果源AN转移过来的会话里,有一套或多套Personality所保存的内容不能保证与AT的会话一致性,则目标AN可通过关闭会话并重新通过初始协商的方式建立与AT之间的会话,使会话里所有Personality所保存的内容都确保与AT的会话一致性。如果目标AN对于该AT,能支持比源AN转移过来的所有personality类型更高的业务类型,则目标AN可通过关闭会话并重新通过初始协商的方式建立与AT之间的会话,从而让该AT在目标AN网络里可使用更优的功能、性能。If one or more personalities in the session established by the source AN are not the personality type (personality type) supported by the target AN, then the target AN can establish a session with the AT by closing the session and re-negotiating through the initial configuration , so that all personality targets AN are supported. If the content saved by one or more sets of Personality cannot guarantee the session consistency with the AT in the session transferred from the source AN, the target AN can close the session and re-establish the session with the AT through the initial negotiation. Make sure that the content saved by all Personality in the session is consistent with the AT session. If the target AN can support a higher service type than all personality types transferred from the source AN for the AT, the target AN can close the session and re-establish the session with the AT through the initial negotiation, so that the AT Better functions and performance can be used in the target AN network.
AN间激活态单向硬切换场景如下:AT与源AN建立会话,建立连接进入激活态。源AN向目标AN发送A16-Session Transfer Request消息,请求传递保存的与AT对应的会话信息。若目标AN版本比源AN版本低,源AN传递的会话信息包含目标AN不支持的personality,由于目标AN对不支持的配置协商属性和参数无法使用,甚至可能会无法保存或被修改,会导致AT与AN的会话可能会产生不一致,因此目标AN需要关闭与AT间的会话,重建与AT的会话以建立目标AN完全支持的personality;若目标AN版本比源AN本高,则在目标测AN对同种终端可能支持更高版本的personality,因此也需要关闭会话进行会话重建。AT在目标AN完成上传下载或其它业务后,目标AN通过Session Close消息关闭与AT的会话,通过初试配置协商,重新建立目标AN完全支持的会话。The scenario of one-way hard handover in the active state between ANs is as follows: AT establishes a session with the source AN, establishes a connection and enters the active state. The source AN sends an A16-Session Transfer Request message to the target AN, requesting to transfer the stored session information corresponding to the AT. If the version of the target AN is lower than the version of the source AN, the session information transmitted by the source AN contains personality that the target AN does not support. Since the target AN cannot use the unsupported configuration negotiation attributes and parameters, it may even fail to save or be modified, which will cause The session between AT and AN may be inconsistent, so the target AN needs to close the session with AT, and rebuild the session with AT to establish the personality fully supported by the target AN; if the version of the target AN is higher than that of the source AN, the A higher version of personality may be supported for the same terminal, so the session needs to be closed for session reconstruction. After the AT finishes uploading, downloading or other services in the target AN, the target AN closes the session with the AT through the Session Close message, and re-establishes a session fully supported by the target AN through preliminary configuration negotiation.
然而,现有技术虽记载了目标AN可通过关闭会话的方式,保持与AT间会话的一致性,但没有提供完善的方法使目标AN判断是否关闭会话,并且也没有提供目标AN判断是否关闭会话时所依据的信息。因此,不论在AN间激活态单向硬切换场景,还是AN间激活态乒乓硬切换场景,或者是连续在多个AN之间保持激活态硬切换的场景,目标AN在判断是否关闭会话时都可能会产生误判。However, although the existing technology records that the target AN can maintain the consistency of the session with the AT by closing the session, it does not provide a perfect method for the target AN to determine whether to close the session, and does not provide a method for the target AN to determine whether to close the session. information on which to base. Therefore, no matter in the active unidirectional hard handover scenario between ANs, in the active ping-pong hard handover scenario between ANs, or in the continuous active hard handover scenario between multiple ANs, the target AN will always determine whether to close the session Misjudgment may occur.
发明内容Contents of the invention
本发明实施例提供一种关闭与接入终端间会话的方法和设备,用以解决AN间切换过程中目标AN判断是否关闭会话时有可能产生误判导致业务异常的缺陷。Embodiments of the present invention provide a method and device for closing a session with an access terminal, which is used to solve the defect that a target AN may make a wrong judgment when judging whether to close a session during an inter-AN handover process, resulting in abnormal business.
本发明实施例提供一种关闭与接入终端间会话的方法,包括:An embodiment of the present invention provides a method for closing a session with an access terminal, including:
接入终端从源接入网络向目标接入网络切换过程中,所述源接入网络根据所述源接入网络保存的与所述接入终端对应的会话信息,生成源接入网络侧的Personality信息;所述Personality信息包括所述会话信息中各套Personality的Personality类型和各套Personality分别对应的有效性判断标识;During the handover process of the access terminal from the source access network to the target access network, the source access network generates, according to the session information corresponding to the access terminal stored by the source access network, the Personality information; the Personality information includes the Personality type of each set of Personality in the session information and the validity judgment identifier corresponding to each set of Personality;
所述源接入网络向目标接入网络发送包括有所述Personality信息的会话转移请求,以使所述目标接入网络根据所述Personality信息判断在所述接入终端完成业务后是否关闭与所述接入终端的会话,当确定关闭与接入终端的会话时,在所述接入终端完成业务后,向所述接入终端发送会话关闭消息。The source access network sends a session transfer request including the Personality information to the target access network, so that the target access network judges according to the Personality information whether to close the The session of the access terminal, when it is determined to close the session with the access terminal, after the access terminal completes the service, send a session close message to the access terminal.
本发明实施例提供另一种关闭与接入终端间会话的方法,包括:An embodiment of the present invention provides another method for closing a session with an access terminal, including:
目标接入网络接收源接入网络发送的包括有Personality信息的会话转移请求;所述Personality信息包括所述源接入网络保存的与接入终端对应的会话信息中各套Personality的Personality类型和各套Personality分别对应的有效性判断标识;The target access network receives the session transfer request including Personality information sent by the source access network; the Personality information includes the Personality type and each set of Personality in the session information corresponding to the access terminal saved by the source access network. Set of validity judgment marks corresponding to Personality respectively;
目标接入网络根据所述Personality信息判断是否关闭与接入终端的会话;The target access network judges whether to close the session with the access terminal according to the Personality information;
所述目标接入网络根据Personality信息确定关闭与接入终端的会话时,在所述接入终端完成业务后,向所述接入终端发送会话关闭消息。When the target access network determines to close the session with the access terminal according to the Personality information, it sends a session close message to the access terminal after the access terminal completes the service.
本发明实施例提供一种源接入网络设备,包括:An embodiment of the present invention provides a source access network device, including:
生成模块,用于接入终端从源接入网络向目标接入网络切换过程中,根据所述源接入网络保存的与所述接入终端对应的会话信息,生成源接入网络侧的Personality信息;所述Personality信息包括所述会话信息中各套Personality的Personality类型和各套Personality分别对应的有效性判断标识;A generating module, configured to generate the Personality on the source access network side according to the session information corresponding to the access terminal stored in the source access network during the handover process of the access terminal from the source access network to the target access network information; the Personality information includes the Personality type of each set of Personality in the session information and the validity judgment identifier corresponding to each set of Personality;
会话转移请求发送模块,用于所述源接入网络向目标接入网络发送包括有所述Personality信息的会话转移请求,以使所述目标接入网络根据所述Personality信息判断在所述接入终端完成业务后是否关闭与所述接入终端的会话。A session transfer request sending module, configured for the source access network to send a session transfer request including the Personality information to the target access network, so that the target Whether to close the session with the access terminal after the terminal completes the service.
本发明实施例提供一种目标接入网络设备,包括:会话转移请求接收模块,用于接收源接入网络发送的包括有Personality信息的会话转移请求;所述Personality信息包括所述源接入网络保存的与接入终端对应的会话信息中各套Personality的Personality类型和各套Personality分别对应的有效性判断标识;An embodiment of the present invention provides a target access network device, including: a session transfer request receiving module, configured to receive a session transfer request including Personality information sent by a source access network; the Personality information includes the source access network The Personality type of each set of Personality in the saved session information corresponding to the access terminal and the validity judgment identifier corresponding to each set of Personality;
会话关闭判断模块,用于根据所述Personality信息判断是否关闭与接入终端的会话;A session closure judging module, configured to judge whether to close the session with the access terminal according to the Personality information;
会话关闭消息发送模块,用于所述目标接入网络根据Personality信息确定关闭与接入终端的会话时,在所述接入终端完成业务后,向所述接入终端发送会话关闭消息。A session closing message sending module, configured to send a session closing message to the access terminal after the access terminal completes the service when the target access network determines to close the session with the access terminal according to the Personality information.
本发明实施例的关闭与接入终端间会话的方法和设备,源AN在发送给目标AN的会话转移请求中,包括本端保存的与AT对应的会话信息中各套Personality的Personality类型和各套Personality的有效性判断标识。因此,目标AN可根据会话转移请求中的Personality信息,确定是否关闭与AT的会话。本发明实施例避免了AN间切换过程中目标AN判断是否关闭会话时产生误判的现象。In the method and device for closing a session with an access terminal in an embodiment of the present invention, the session transfer request sent by the source AN to the target AN includes the Personality type and each A set of validity judgment marks for Personality. Therefore, the target AN can determine whether to close the session with the AT according to the Personality information in the session transfer request. The embodiment of the present invention avoids the phenomenon of misjudgment when the target AN judges whether to close the session during the inter-AN handover process.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明实施例提供的一种关闭与接入终端间会话的方法流程图;FIG. 1 is a flowchart of a method for closing a session with an access terminal provided by an embodiment of the present invention;
图2为本发明实施例提供的另一种关闭与接入终端间会话的方法流程图;FIG. 2 is a flow chart of another method for closing a session with an access terminal provided by an embodiment of the present invention;
图3为图2中步骤22的一种流程图;Fig. 3 is a kind of flowchart of step 22 among Fig. 2;
图4为本发明实施例提供的又一种关闭与接入终端间会话的方法流程图;FIG. 4 is a flow chart of another method for closing a session with an access terminal provided by an embodiment of the present invention;
图5为本发明实施例提供的再一种关闭与接入终端间会话的方法流程图;FIG. 5 is a flowchart of another method for closing a session with an access terminal provided by an embodiment of the present invention;
图6为本发明实施例提供的一种接入网络间切换方法流程图;FIG. 6 is a flowchart of a method for switching between access networks according to an embodiment of the present invention;
图7A为本发明实施例提供的一种源接入网络设备结构示意图;FIG. 7A is a schematic structural diagram of a source access network device provided by an embodiment of the present invention;
图7B为本发明实施例提供的另一种源接入网络设备结构示意图;FIG. 7B is a schematic structural diagram of another source access network device provided by an embodiment of the present invention;
图8A为本发明实施例提供的一种目标接入网络设备结构示意图;FIG. 8A is a schematic structural diagram of a target access network device provided by an embodiment of the present invention;
图8B为本发明实施例提供的另一种目标接入网络设备结构示意图。FIG. 8B is a schematic structural diagram of another target access network device provided by an embodiment of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
现有技术虽记载了目标AN可通过关闭会话的方式,保持与AT间会话的一致性,但没有提供完善的方法使目标AN判断是否关闭会话,并且也没有提供目标AN判断是否关闭会话时所依据的信息。不论在AN间激活态单向硬切换场景,还是AN间激活态乒乓硬切换,或者是连续在多个AN之间保持激活态硬切换的场景,目标AN在判断是否关闭会话时都可能会产生误判。例如,不需要关闭会话时目标AN误判为关闭会话,则发起会话重建会影响激活时延,占用带宽。又例如,需要关闭会话时目标AN误判为不关闭会话,若目标AN与AT的会话不一致,则会导致业务异常、影响业务性能甚至功能。又例如,目标AN与AT的会话一致,目标AN没有发起会话重建,如果目标AN对于该AT可使用更高业务类型,由于目标AN没有发起会话重建而仍使用源AN传递过来的业务类型较低的会话信息,则会导致用户无法体验更优性能或功能。Although the existing technology records that the target AN can maintain the consistency of the session with the AT by closing the session, it does not provide a perfect method for the target AN to determine whether to close the session, and does not provide the means for the target AN to determine whether to close the session. information on which to base. No matter in the scenario of active one-way hard handover between ANs, active ping-pong hard handover between ANs, or continuous active hard handover between multiple ANs, the target AN may generate an error when judging whether to close the session Misjudgment. For example, if the target AN misjudges that the session is closed when there is no need to close the session, initiating session re-establishment will affect the activation delay and occupy bandwidth. For another example, when the session needs to be closed, the target AN misjudges that it does not close the session. If the session between the target AN and the AT is inconsistent, it will cause service abnormalities and affect service performance and even functions. For another example, the session between the target AN and the AT is consistent, and the target AN does not initiate session re-establishment. If the target AN can use a higher service type for the AT, the service type delivered by the source AN is still lower because the target AN does not initiate session re-establishment. session information, it will result in users unable to experience better performance or functions.
本发明实施例针对AN间激活态硬切换的各种场景下,目标AN判断是否需要关闭会话时由于所依据的信息不足有可能产生误判的缺陷,源AN向目标AN发送的会话转移请求中增加了Personality信息,以供目标AN判断是否需要关闭会话。The embodiments of the present invention aim at various scenarios of active state hard handover between ANs. When the target AN judges whether to close the session, due to insufficient information, it may cause misjudgment. The session transfer request sent by the source AN to the target AN Added Personality information for the target AN to judge whether to close the session.
图1为本发明实施例提供的一种关闭与接入终端间会话的方法流程图。以下主要从发起AN切换的源AN角度说明本发明实施例。需要说明是,在任何AN间硬切换的场景下,向另一个AN发起AN间硬切换的AN,在发送会话转移请求之前都要执行以下步骤。如图1所示,本实施例包括:Fig. 1 is a flowchart of a method for closing a session with an access terminal provided by an embodiment of the present invention. The following mainly describes the embodiment of the present invention from the perspective of the source AN that initiates the AN handover. It should be noted that, in any inter-AN hard handover scenario, the AN that initiates an inter-AN hard handover to another AN must perform the following steps before sending a session transfer request. As shown in Figure 1, this embodiment includes:
步骤11:接入终端从源AN向目标接入网络切换过程中,根据源AN保存的与接入终端对应的会话信息,生成源AN侧的Personality信息(个性信息)。Step 11: During the handover process of the access terminal from the source AN to the target access network, generate Personality information (personality information) on the source AN side according to the session information corresponding to the access terminal saved by the source AN.
源AN保存的与AT对应的会话信息可以是该源AN与AT协商后建立的会话信息(此时该源AN为单向切换场景中发起AN切换的AN,即AT在该源AN初始接入),也可以是其它AN与AT协商后迁移到该源AN的会话信息(此时该源AN为乒乓切换场景中的中间AN,即AT在其它AN初始接入)。The session information corresponding to the AT saved by the source AN may be the session information established after negotiation between the source AN and the AT (at this time, the source AN is the AN that initiates the AN handover in the unidirectional handover scenario, that is, the AT initially accesses the ), or the session information migrated to the source AN after other AN negotiates with the AT (at this time, the source AN is an intermediate AN in the ping-pong handover scenario, that is, the AT initially accesses in other AN).
源AN生成Personality信息的具体方法可如下:The specific method for the source AN to generate Personality information can be as follows:
源AN首先确定源AN保存的与AT对应的会话信息中各套Personality的Personality类型。其中,Personality类型包括:EV-DO Rel 0(Evolution,Data OnlyRelease 0)业务类型,EV-DO Rev.A(Evolution,Data Only Revision A)业务类型和EV-DORev.B(Evolution,Data Only Revision B)业务类型。EV-DO Rel 0业务类型低于EV-DORev.A业务类型,EV-DO Rev.A业务类型低于EV-DO Rev.B业务类型。可结合源AN保存的与AT对应的会话信息中的协议子类型来确认各套Personality的Personality类型,例如:物理协议子类型是0则表示该套personality业务类型为EV-DO Rel0,物理协议子类型为2的表示该套personality业务类型为EV-DO Rev.A,物理协议子类型为3的表示该套personality业务类型为EV-DO Rev.A。The source AN first determines the Personality type of each set of Personality in the session information corresponding to the AT stored by the source AN. Among them, the Personality type includes: EV-DO Rel 0 (Evolution, Data Only Release 0) business type, EV-DO Rev.A (Evolution, Data Only Revision A) business type and EV-DOR Rev.B (Evolution, Data Only Revision B )business type. The EV-DO Rel 0 service type is lower than the EV-DOR Rev.A service type, and the EV-DO Rev.A service type is lower than the EV-DO Rev.B service type. The Personality type of each set of Personality can be confirmed by combining the protocol subtype in the session information corresponding to the AT saved by the source AN. For example, if the physical protocol subtype is 0, it means that the personality service type of this set is EV-DO Rel0, and the physical protocol subtype If the type is 2, it means that the personality service type of this set is EV-DO Rev.A, and if the physical protocol subtype is 3, it means that the personality service type of this set is EV-DO Rev.A.
AN保存与AT对应的会话信息中Personality有可能丢失或被修改,从而导致该套Personality无效。因此,源AN在生成Personality信息时,还需判断与AT对应的会话信息中各套Personality的有效性并生成有效性判断标识。各套Personality分别对应的有效性判断标识用于标识该套Personality无效或有效。The Personality in the session information corresponding to the AT saved by the AN may be lost or modified, resulting in invalidity of this set of Personality. Therefore, when the source AN generates the Personality information, it also needs to judge the validity of each set of Personality in the session information corresponding to the AT and generate a validity judgment identifier. The validity judgment flags corresponding to each set of Personality are used to identify whether the set of Personality is invalid or valid.
源AN在保存和发送与AT对应的会话信息的过程中,可通过发送完整性,判断该会话信息中各套Personality的有效性,并生成各套Personality的有效性判断标识。发送完整性定义如下:对于协商成功的,非协议默认值的协议子类型、属性和参数值,都支持在会话转移消息里编码发送给目标AN.。这里协商成功的,非协议默认值的协议子类型、属性和参数值包括所述源AN与所述终端进行协商的,非协议默认值的协议子类型、属性和参数值,也包括在其它AN协商成功后转移到该源AN的非协议默认值的协议子类型、属性和参数值。在该会话信息中一套Personality发送不完整时,确定该套Personality无效,并生成标识该套Personality无效的有效性判断标识;在该会话信息中的一套Personality发送完整时,确定该套Personality有效,并生成标识该套Personality有效的效性判断标识。During the process of storing and sending the session information corresponding to the AT, the source AN can judge the validity of each set of Personalities in the session information through the transmission integrity, and generate a validity judgment identifier of each set of Personalities. The definition of transmission integrity is as follows: for the successful negotiation, the protocol subtype, attribute and parameter value of the non-protocol default value are all supported to be encoded in the session transfer message and sent to the target AN. The protocol subtypes, attributes and parameter values of non-protocol default values that are successfully negotiated here include the protocol subtypes, attributes and parameter values of non-protocol default values negotiated between the source AN and the terminal, and are also included in other ANs. The protocol subtype, attribute and parameter value of the non-protocol default value transferred to the source AN after successful negotiation. When a set of Personality in the session information is sent incompletely, it is determined that the set of Personality is invalid, and a validity judgment flag indicating that the set of Personality is invalid is generated; when a set of Personality in the session information is sent completely, it is determined that the set of Personality is valid , and generate a validity judgment flag that identifies the validity of the set of Personality.
源AN在保存和发送与AT对应的会话信息的过程中,也可通过保存完整性和发送完整性,判断该会话信息中各套Personality的有效性,并生成各套Personality的有效性判断标识。在该会话信息中一套Personality保存不完整或发送不完整时,确定该套Personality无效,并生成标识该套Personality无效的有效性判断标识;在该会话信息中的一套Personality保存完整且发送完整时,确定该套Personality有效,并生成标识该套Personality有效的效性判断标识。保存完整性,是指对于协商成功的、非协议默认值的属性、参数、协议子类型都保存下来,发送完整性,是指从源AN切换向其它AN时,源AN支持在会话转移消息里将保存在源AN会话里的该套personality的协议子类型、属性、参数都编码到SSI信息里。In the process of saving and sending the session information corresponding to the AT, the source AN can also judge the validity of each set of Personalities in the session information by saving integrity and sending integrity, and generate a validity judgment identifier for each set of Personalities. When a set of Personality in the session information is incompletely saved or sent incompletely, it is determined that the set of Personality is invalid, and a validity judgment flag indicating that the set of Personality is invalid is generated; a set of Personality in the session information is completely saved and sent completely When , it is determined that the set of Personality is valid, and an effectiveness judgment flag indicating that the set of Personality is valid is generated. Preserving integrity refers to saving the attributes, parameters, and protocol subtypes that are successfully negotiated and non-protocol default values. Sending integrity refers to the support of source AN in the session transfer message when switching from the source AN to other ANs. Encode the protocol subtype, attributes, and parameters of the set of personality stored in the source AN session into the SSI information.
对于AT在该源AN初始接入,该源AN与AT通过协商建立的会话信息,如果该源AN能成功保存与AT协商成功的会话信息中某套personality的非协议默认值的协议子类型、属性和参数值,且该源AN切换向目标AN时,该源AN所保存的该套Personality的协议子类型、属性和参数值在会话迁移消息中能完整发送,则该套Personality是有效的,该源AN生成标识该套Personality有效的有效性判断标识;否则,该套Personality是无效的,该源AN生成标识该套Personality无效的有效性判断标识。For the AT's initial access to the source AN, the source AN and the AT negotiated to establish session information, if the source AN can successfully save the protocol subtype of the non-protocol default value of a certain set of personality in the session information successfully negotiated with the AT, attributes and parameter values, and when the source AN switches to the target AN, the protocol subtype, attributes and parameter values of the set of Personality saved by the source AN can be completely sent in the session migration message, then the set of Personality is valid, The source AN generates a validity judgment flag indicating that the set of Personalities is valid; otherwise, the set of Personalities is invalid, and the source AN generates a validity judgment flag that marks that the set of Personalities is invalid.
对于其它AN与AT协商并建立会话信息后,通过AN间切换将该会话信息传递到该源AN的会话信息(例如通过A16-Session Transfer Request消息或A13-Session TransferRequest消息迁移到该源AN的会话信息),如果该源AN能成功保存其它AN与AT协商成功的会话信息中某套personality的非协议默认值的协议子类型、属性和参数值,且该源AN切换向目标AN时,该源AN所保存的该套Personality的协议子类型、属性和参数值在会话转移消息中都能完整发送,则该套Personality是有效的,该源AN生成标识该套Personality有效的有效性判断标识;否则,该套Personality是无效的,该源AN生成标识该套Personality无效的有效性判断标识。After other AN negotiates with AT and establishes session information, transfer the session information to the session information of the source AN through inter-AN handover (for example, transfer the session information to the source AN through the A16-Session Transfer Request message or A13-Session TransferRequest message information), if the source AN can successfully save the protocol subtype, attributes and parameter values of a set of personality non-protocol default values in the session information successfully negotiated between other ANs and ATs, and when the source AN switches to the target AN, the source AN If the protocol subtypes, attributes and parameter values of the set of Personality stored by the AN can be completely sent in the session transfer message, then the set of Personality is valid, and the source AN generates a valid validity judgment flag to identify the set of Personality; otherwise , the set of Personality is invalid, and the source AN generates a validity judgment flag indicating that the set of Personality is invalid.
该源AN向目标AN发送会话转移请求中包括上述保存的会话信息,此处的发送包括编码阶段和发送阶段,在编码阶段如果该源AN没有对保存完整的某套Personality的所有协议子类型、属性和参数值进行编码,而只对该套Personality的部分协议子类型、属性和参数值进行了编码,该源AN确定向目标AN发送的该套Personality不完整,即该套Personality发送不完整。对该源AN保存某套Personality不完整的说明:如果某套personality中存在一个或多个协商成功且非协议默认值的值,没有被该源AN成功保存,则该源AN保存的该套personality是不完整的。The session transfer request sent by the source AN to the target AN includes the above-mentioned saved session information. The sending here includes the encoding phase and the sending phase. In the encoding phase, if the source AN does not have all the protocol subtypes, Attributes and parameter values are encoded, but only part of the protocol subtypes, attributes, and parameter values of the set of Personality are encoded. The source AN determines that the set of Personality sent to the target AN is incomplete, that is, the set of Personality is not sent completely. Incomplete description of saving a certain set of Personality for the source AN: If there are one or more values in a certain set of personality that are successfully negotiated and not the default value of the protocol, but are not successfully saved by the source AN, then the set of personality saved by the source AN is incomplete.
步骤12:源AN向目标AN发送包括有Personality信息的会话转移请求,以使目标AN根据Personality信息判断在接入终端完成业务后是否关闭与接入终端的会话,当确定关闭与接入终端的会话时,在接入终端完成业务后,向接入终端发送会话关闭消息。Step 12: The source AN sends a session transfer request including Personality information to the target AN, so that the target AN judges whether to close the session with the access terminal after the access terminal completes the service according to the Personality information, and when it is determined to close the session with the access terminal During the session, after the access terminal completes the service, a session close message is sent to the access terminal.
源AN将步骤11中生成的Personality信息,添加到即将发送给目标AN的会话转移请求中。目标AN接收到源AN发送的会话转移请求后,根据其中添加的源接入网络的Personality信息,确定是否关闭与AT的会话。The source AN adds the Personality information generated in step 11 to the session transfer request to be sent to the target AN. After receiving the session transfer request sent by the source AN, the target AN determines whether to close the session with the AT according to the added Personality information of the source access network.
在会话转移请求中添加Personality信息的一种具体实施方式如下:源AN可在会话状态信息(Session State Information,简称SSI)中增加Personality信息:PersonalityInfo,指示转移的会话里所有personality类型的构成。A specific implementation manner of adding Personality information in the session transfer request is as follows: the source AN can add Personality information in Session State Information (SSI for short): PersonalityInfo, which indicates the composition of all personality types in the transferred session.
具体地,每套personality的信息:每套personality的Personality类型和每套Personality对应的有效性判断标识,可分别通过以下两个参数表示:PersonalityType和ValidFlag。其中,PersonalityType表示该套personality的类型,0x0表示personality类型为EV-DO Rel0,0xA表示personality类型为EV-DO Rev.A,0xB表示personality类型为EV-DO Rev.B;ValidFlag表示该套personality是否是完整有效,能否与AT保持一致性。ValidFlag为1表示该套personality有效,即源AN保存的该personality与AT保持一致;ValidFlag为0表示该套personality无效,该套personality可能被修改过或有属性丢失,无法保证与AT完全一致。Specifically, the information of each personality: the Personality type of each personality and the validity judgment flag corresponding to each personality can be represented by the following two parameters: PersonalityType and ValidFlag. Among them, PersonalityType indicates the type of this set of personality, 0x0 indicates that the personality type is EV-DO Rel0, 0xA indicates that the personality type is EV-DO Rev.A, 0xB indicates that the personality type is EV-DO Rev.B; ValidFlag indicates whether this set of personality is It is complete and valid, and whether it can be consistent with AT. A ValidFlag of 1 indicates that the personality is valid, that is, the personality saved by the source AN is consistent with the AT; a ValidFlag of 0 indicates that the personality is invalid, and the personality may be modified or have attributes lost, so it cannot be guaranteed to be completely consistent with the AT.
可在main personality里会话协商协议(Session Configuration Protocol,简称SCP)层的SSI里增加以下参数:ParameterType、Length和PersonalityNum,描述PersonalityInfo中personality的个数、PersonalityInfo的长度等信息。其中,ParameterType为一种新增的参数类型,表示personality类型指示参数;Length值表示(PersonalityNum×2+1)个字节的长度;PersonalityNum:表示有多少个personality。The following parameters can be added in the SSI of the Session Configuration Protocol (SCP) layer in the main personality: ParameterType, Length, and PersonalityNum to describe the number of personalities in the PersonalityInfo, the length of the PersonalityInfo, and other information. Among them, ParameterType is a newly added parameter type, indicating the personality type indicating parameter; the Length value indicates the length of (PersonalityNum×2+1) bytes; PersonalityNum: indicates how many personalities there are.
以上两个参数PersonalityType和ValidFlag成套出现,表示一个Personality的信息。它们的套数等于PersonalityNum个。如果有多个personality,PersonalityType的排列顺序由低至高,main personality的PersonalityType排最前。The above two parameters PersonalityType and ValidFlag appear in a set, indicating a Personality information. Their sets are equal to PersonalityNum. If there are multiple personalities, the PersonalityTypes are listed from low to high, with the PersonalityType of the main personality at the top.
本发明实施例接入网络间切换方法,源AN在发送给目标AN的会话转移请求中,添加了本端保存的与AT对应的会话信息中各套Personality的Personality类型和各套Personality的有效性判断标识。因此,目标AN可根据会话转移请求中的Personality信息,判断目标AN能否与AT间的会话保持一致,从而确定是否关闭与AT的会话,避免了AN间切换过程中目标AN判断是否关闭会话时产生误判的现象。本发明实施例对同版本AN间切换无影响,适用于相同版本AN间,不同版本AN间,单向切换及乒乓切换等各种场景。In the method for switching between access networks in the embodiment of the present invention, the source AN adds the Personality type of each set of Personality and the validity of each set of Personality in the session information corresponding to the AT stored at the local end in the session transfer request sent to the target AN. Judgment logo. Therefore, the target AN can judge whether the target AN can maintain the same session with the AT according to the Personality information in the session transfer request, so as to determine whether to close the session with the AT, and avoid the time when the target AN determines whether to close the session during the inter-AN handover process The phenomenon of misjudgment. The embodiment of the present invention has no influence on switching between ANs of the same version, and is applicable to various scenarios such as one-way switching and ping-pong switching between ANs of the same version and between ANs of different versions.
图2为本发明实施例提供的另一种关闭与接入终端间会话的方法流程图。以下主要从接收到另一AN的切换请求的目标AN角度说明本发明实施例。需要说明是,在AN间硬切换时,接收到另一个AN发送的会话转移请求后的AN,都需要执行以下步骤。Fig. 2 is a flow chart of another method for closing a session with an access terminal provided by an embodiment of the present invention. The following describes the embodiment of the present invention mainly from the perspective of a target AN that receives a handover request from another AN. It should be noted that, during hard handover between ANs, the AN after receiving the session transfer request sent by another AN needs to perform the following steps.
如图2所示,本实施例包括:As shown in Figure 2, this embodiment includes:
步骤21:目标AN接收源AN发送的包括有Personality信息(个性信息)的会话转移请求;Personality信息包括源AN保存的与AT对应的会话信息中各套Personality(个性)的Personality类型(个性类型)和各套Personality分别对应的有效性判断标识。Step 21: The target AN receives the session transfer request including the Personality information (personality information) sent by the source AN; the Personality information includes the Personality type (personality type) of each set of Personality (personality) in the session information corresponding to the AT stored by the source AN Validity judgment marks corresponding to each set of Personality.
为使目标AN具有足够的信息判决是否进行关闭会话,源AN在向目标AN发送的会话转移请求(A16-Session Transfer Request消息)中添加Personality信息。会话转移请求中还包括源AN保存的源AN与AT对应的会话信息。其中,Personality信息包括源AN保存的与AT对应的会话信息中各套Personality的Personality类型,还包括各套Personality分别对应的有效性判断标识。In order for the target AN to have enough information to decide whether to close the session, the source AN adds Personality information to the session transfer request (A16-Session Transfer Request message) sent to the target AN. The session transfer request also includes session information corresponding to the source AN and the AT stored by the source AN. Wherein, the Personality information includes the Personality type of each set of Personalities in the session information corresponding to the AT stored by the source AN, and also includes validity judgment identifiers corresponding to each set of Personalities.
Personality对应的有效性判断标识,用于标识该套Personality无效或有效。该套Personality无效时,源AN保存的会话里该套Personality与AT不一致,也就是源AN转移给目标AN的会话里该套Personality与AT不一致;反之,该套Personality有效时,源AN转移给目标AN的会话信息里该套Personality与AT保持一致。因此,Personality对应的有效性判断标识也用于标识源AN转移给目标AN的会话里该套Personality是否与AT保持一致。The validity judgment flag corresponding to the Personality is used to identify whether the set of Personality is invalid or valid. When the set of Personality is invalid, the set of Personality in the session saved by the source AN is inconsistent with AT, that is, the set of Personality in the session transferred from the source AN to the target AN is inconsistent with the AT; otherwise, when the set of Personality is valid, the set of Personality is transferred from the source AN to the target AN The set of Personality in the session information of AN is consistent with that of AT. Therefore, the validity judgment flag corresponding to the Personality is also used to identify whether the set of Personality is consistent with the AT in the session transferred from the source AN to the target AN.
步骤22:目标AN根据Personality信息判断是否关闭与AT的会话。Step 22: The target AN judges whether to close the session with the AT according to the Personality information.
目标AN通过Personality信息中各Personality类型,可确定是否支持源AN转移给目标AN的会话信息中Personality类型;通过Personality信息中有效性判断标识,目标AN可确定源AN转移给目标AN的会话信息中相应的Personality是否有效。The target AN can determine whether to support the Personality type in the session information transferred from the source AN to the target AN through each Personality type in the Personality information; through the validity judgment flag in the Personality information, the target AN can determine whether the session information transferred from the source AN to the target AN Whether the corresponding Personality is valid.
步骤23:目标AN根据Personality信息确定关闭与AT的会话时,在AT完成业务后向AT发送会话关闭消息。Step 23: When the target AN determines to close the session with the AT according to the Personality information, it sends a session close message to the AT after the AT completes the service.
AT在目标AN完成业务后,如果在步骤12中目标AN确定关闭与接入终端的会话,向AT发送会话关闭消息,重新建立目标AN完全支持的会话。After the AT completes the service at the target AN, if the target AN determines to close the session with the access terminal in step 12, it sends a session close message to the AT, and re-establishes a session fully supported by the target AN.
本发明实施例目标接入网络关闭与接入终端间会话的方法,源AN在发送给目标AN的会话转移请求中包括有源AN本端保存的与AT对应的会话信息中各套Personality的Personality类型和各套Personality的有效性判断标识。目标AN可根据会话转移请求中的Personality信息,判断目标AN能否与AT间的会话保持一致,从而确定是否关闭与AT的会话。避免了目标AN由于依据的信息不充分产生的误判。因此,本发明实施例解决了AN间切换过程中目标AN判断是否关闭会话时所依据的信息不足、判断方法不完善的缺陷,避免了目标AN误判现象的发生,可避免业务异常,也可节省带宽,并可提高用户体验。In the method for closing the session between the target access network and the access terminal in the embodiment of the present invention, the session transfer request sent by the source AN to the target AN includes the Personality of each set of Personality in the session information corresponding to the AT saved by the source AN itself The type and validity judgment mark of each set of Personality. The target AN can judge whether the session between the target AN and the AT can be kept consistent according to the Personality information in the session transfer request, so as to determine whether to close the session with the AT. Misjudgment of the target AN due to insufficient information is avoided. Therefore, the embodiment of the present invention solves the defects of insufficient information and imperfect judgment method when the target AN judges whether to close the session during the inter-AN handover process, avoids the occurrence of misjudgment by the target AN, avoids business abnormalities, and Save bandwidth and improve user experience.
本发明实施例对同版本AN间切换无影响,适用于单向切换及乒乓切换等各种场景。The embodiment of the present invention has no influence on switching between ANs of the same version, and is applicable to various scenarios such as one-way switching and ping-pong switching.
图3为图1中步骤22的一种流程图。图2中步骤22具体判断过程如图3所示:FIG. 3 is a flowchart of step 22 in FIG. 1 . The specific judgment process of step 22 in Fig. 2 is as shown in Fig. 3:
步骤31:目标AN判断Personality信息(个性信息)中是否存在目标AN不支持的Personality类型(个性类型)。若存在目标AN不支持的Personality类型,执行步骤32;否则执行步骤33。Step 31: The target AN judges whether there is a Personality type (personality type) not supported by the target AN in the Personality information (personality information). If there is a Personality type not supported by the target AN, go to step 32; otherwise, go to step 33.
具体地,目标AN判断SSI中PersonalityInfo的所有PersonalityType中是否存在目标AN不支持的PersonalityType。Specifically, the target AN judges whether there is a PersonalityType not supported by the target AN among all the PersonalityTypes in the PersonalityInfo in the SSI.
步骤32:目标AN确定不关闭与AT的会话。Step 32: The target AN determines not to close the session with the AT.
Personality信息包括源AN支持的一个或多个Personality类型。当Personality信息中存在目标AN不支持的Personality类型时,即Personality信息中有一个或多个Personality类型是目标AN不支持的类型时,目标AN确定关闭与接入终端的会话。The Personality information includes one or more Personality types supported by the source AN. When there is a Personality type not supported by the target AN in the Personality information, that is, one or more Personality types in the Personality information are not supported by the target AN, the target AN determines to close the session with the access terminal.
例如,高版本的AN向低版本的AN切换场景,由于目标AN的版本低于源AN,目标AN不支持源AN转移过来的某个或多个PersonalityType。根据以上判断流程,在步骤31中目标AN确定在源AN的所有PersonalityType中存在不支持的PersonalityType,在步骤32中目标AN确定关闭与AT之间的会话。For example, in the scenario where a high-version AN is switched to a low-version AN, since the version of the target AN is lower than that of the source AN, the target AN does not support one or more PersonalityTypes transferred from the source AN. According to the above judgment process, in step 31, the target AN determines that there is an unsupported PersonalityType in all the PersonalityTypes of the source AN, and in step 32, the target AN determines to close the session with the AT.
步骤33:若不存在目标AN不支持的Personality类型,判断所有有效性判断标识是否均表示相应Personality有效。若所有有效性判断标识中存在一个或多个有效性判断标识表示相应Personality无效,执行步骤32,否则执行步骤34。Step 33: If there is no Personality type not supported by the target AN, judge whether all validity judgment flags indicate that the corresponding Personality is valid. If there is one or more validity judgment identifiers among all the validity judgment identifiers, which indicate that the corresponding Personality is invalid, go to step 32 , otherwise go to step 34 .
具体地,若不存在目标AN不支持的PersonalityType,目标AN判断每个PersonalityType对应的ValidFlag是否均为1。若存在一个或多个ValidFlag的值为0,目标AN确定关闭与接入终端的会话。Specifically, if there is no PersonalityType not supported by the target AN, the target AN judges whether the ValidFlag corresponding to each PersonalityType is 1 or not. If one or more ValidFlag values are 0, the target AN determines to close the session with the access terminal.
进一步,在目标AN与AT会话时,为使AT尽可能使用目标AN提供的最优业务,从而用户能体验到更优的性能,本实施例还包括以下步骤:Further, when the target AN talks to the AT, in order to make the AT use the optimal service provided by the target AN as much as possible, so that the user can experience better performance, this embodiment also includes the following steps:
步骤34:若所有有效性判断标识均表示相应Personality有效,根据AT支持的应用子类型,判断对于该AT目标AN支持的最高Personality类型是否高于Personality信息中所有Personality类型。Step 34: If all validity judgment flags indicate that the corresponding Personality is valid, judge whether the highest Personality type supported by the AT target AN is higher than all Personality types in the Personality information according to the application subtypes supported by the AT.
若对于该AT目标AN支持的最高Personality类型高于源AN转移过来的Personality信息中所有Personality类型,为使目标AN采用支持的最高Personality类型与AT会话,执行步骤35:目标AN确定关闭与接入终端的会话;否则执行步骤32:目标AN确定不关闭与接入终端的会话。If the highest Personality type supported by the target AN for this AT is higher than all the Personality types in the Personality information transferred from the source AN, in order to make the target AN use the highest supported Personality type to communicate with the AT, perform step 35: the target AN determines the shutdown and access session of the terminal; otherwise, execute step 32: the target AN determines not to close the session with the access terminal.
从低版本AN切到高版本AN,目标AN关闭与AT间的会话有两个目的:一个目的是重建与AN间的会话避名由于会话不一致导致的业务异常;另一个目的是,是为了尽可能使用目标网络提供的最优业务。在目标AN对于该AT支持的最高Personality类型高于Personality信息中所有Personality类型时,如果目标AN不关闭会产生以下问题:用户花钱购买了更优的服务,进入网络后却无法使用;目标网络也花了钱升级为更高版本却不能用户提供更优的服务,造成浪费。When switching from a low-version AN to a high-version AN, the target AN closes the session with the AT for two purposes: one is to reestablish the session with the AN to avoid service exceptions caused by session inconsistency; the other is to It is possible to use the best service provided by the target network. When the highest Personality type supported by the target AN for the AT is higher than all Personality types in the Personality information, if the target AN is not closed, the following problems will occur: the user spends money to purchase a better service, but cannot use it after entering the network; the target network It also costs money to upgrade to a higher version but cannot provide users with better services, resulting in waste.
具体地,步骤34可为,若目标AN支持所有PersonalityType且对应ValidFlag均为1,根据SSI中ATSupportedApplicationSubtypes,判断对于该AT目标AN能支持的最高PersonalityType是否高于PersonalityInfo中最高PersonalityType,即判断对于该AT目标AN支持的最高PersonalityType是否高于PersonalityInfo中所有PersonalityType。Specifically, step 34 may be, if the target AN supports all PersonalityTypes and the corresponding ValidFlag is 1, according to the ATSupportedApplicationSubtypes in the SSI, it is judged whether the highest PersonalityType that the target AN can support for the AT is higher than the highest PersonalityType in the PersonalityInfo, that is, it is judged that for the AT Whether the highest PersonalityType supported by the target AN is higher than all PersonalityTypes in PersonalityInfo.
其中,ATSupportedApplicationSubtypes,包含AT支持的应用子类型。目标AN根据AT支持的应用子类型获取AT支持的业务类型,根据AT支持的业务类型判断目标AN对于该AT能支持的最高PersonalityType是否高于PersonalityInfo中所有PersonalityType。Among them, ATSupportedApplicationSubtypes includes the application subtypes supported by AT. The target AN obtains the business type supported by the AT according to the application subtype supported by the AT, and judges whether the highest PersonalityType that the target AN can support for the AT is higher than all the PersonalityTypes in the PersonalityInfo according to the business type supported by the AT.
根据AT支持的应用子类型获取AT支持的业务类型时,可采用如下方法:若AT支持的分组应用流的子类型等于0x000D(Multi-link Multi-Flow Packet Application),则确定AT支持的最高业务类型为EV-DO Rev.B业务类型;若AT支持的分组应用流的子类型小于0x000D,但等于0x0005(Multi-Flow Packet Application),则确定AT支持的最高业务类型为EV-DO Rev.A业务类型;若AT支持的分组应用流的子类型小于0x0005,仅支持0x0002(Default Packet Application),则确定AT支持的最高业务类型为EV-DORel0业务类型。When obtaining the service type supported by AT according to the application subtype supported by AT, the following method can be used: if the subtype of packet application flow supported by AT is equal to 0x000D (Multi-link Multi-Flow Packet Application), then determine the highest service type supported by AT The type is the EV-DO Rev.B service type; if the subtype of the packet application flow supported by the AT is less than 0x000D but equal to 0x0005 (Multi-Flow Packet Application), then it is determined that the highest service type supported by the AT is EV-DO Rev.A Service type; if the subtype of the packet application flow supported by the AT is less than 0x0005 and only supports 0x0002 (Default Packet Application), then it is determined that the highest service type supported by the AT is the EV-DORel0 service type.
目标AN对于AT能支持的最高Personality类型,与该AT的支持程度相关。例如目标AN支持的最高personality类型为EV-DO Rev.B业务类型,但该AT本身支持的业务类型仅为EV-DO Rev.A的业务类型,则对于该AT目标AN能支持的最高personality类型为EV-DORev.A业务类型(EV-DO Rev.B业务类型高于EV-DO Rev.A业务类型)。若该AT本身支持的业务类型为EV-DO Rev.B的业务类型,且目标AN支持的最高personality类型为EV-DO Rev.B业务类型,则目标AN对该AT能支持的最高PersonalityType为EV-DO Rev.B业务类型,目标AN对该AT建立包含EV-DO Rev.B Personality的会话。The highest Personality type that the target AN can support for the AT is related to the support degree of the AT. For example, the highest personality type supported by the target AN is the EV-DO Rev.B business type, but the business type supported by the AT itself is only the EV-DO Rev.A business type, then the highest personality type that the target AN can support for the AT It is EV-DOR Rev.A business type (EV-DO Rev.B business type is higher than EV-DO Rev.A business type). If the business type supported by the AT itself is the EV-DO Rev.B business type, and the highest personality type supported by the target AN is the EV-DO Rev.B business type, then the highest PersonalityType that the target AN can support for the AT is EV -DO Rev.B service type, the target AN establishes a session including EV-DO Rev.B Personality with the AT.
例如,低版本AN向高版本AN切换的场景,通常情况下高版本AN支持低版本AN的所有PersonalityType,但作为目标AN的高版本AN有可能支持更高类型的Personality。根据以上判断流程,目标AN在步骤31中确定支持PersonalityInfo中的所有PersonalityType。但在步骤34中根据AT应用子类型,对于该AT目标AN能支持的最高PersonalityType高于源AN转移过来的所有PersonalityType,因此在步骤35目标AN确定关闭与AT之间的会话。For example, in the scenario where a lower-version AN is switched to a higher-version AN, usually the higher-version AN supports all PersonalityTypes of the lower-version AN, but the higher-version AN as the target AN may support a higher type of Personality. According to the above judgment process, the target AN determines in step 31 to support all PersonalityTypes in PersonalityInfo. But in step 34, according to the AT application subtype, the highest PersonalityType that the target AN can support for this AT is higher than all the PersonalityTypes transferred from the source AN, so in step 35, the target AN determines to close the session with the AT.
本实施例,目标AN先判断是否支持Personality信息中所有Personality类型,当Personality信息中有一个或多个Personality类型目标AN不支持,则目标AN无法保持与AT的会话一致性,确定关闭与AT的会话。在支持所有Personality类型时,目标AN再判断Personality信息识中所有效性判断标识表示相应Personality类型为有效。如果存在一个或多个效性判断标识表示相应Personality类型为无效,目标AN也无法保持与AT的会话一致性,因此确定关闭与AT的会话。在每个有效性判断标识均表示相应Personality类型为有效时,目标AN进一步判断对于该AT目标AN能支持的Personality类型是否高于源AN转移过来的Personality信息中所有Personality类型,若是,为提高用户体验,目标AN对于该AT可协商使用更高业务类型的Personality。因此。目标AN需要关闭与AT间的会话,建立包含更高业务类型的personality的会话,反之目标AN确定不需要关闭与AT间的会话。本实施例提供了目标AN判断是否关闭会话所依据的信息和完善的判断方法,解决了不同版本AN间切换时,目标AN判断是否需要关闭会话时有可能产生误判的缺陷。In this embodiment, the target AN first judges whether it supports all Personality types in the Personality information. When there is one or more Personality types in the Personality information that the target AN does not support, the target AN cannot maintain the session consistency with the AT, and it is determined to close the session with the AT. session. When all Personality types are supported, the target AN then judges that the validity judgment flag in the Personality information indicates that the corresponding Personality type is valid. If there is one or more validity judgment flags indicating that the corresponding Personality type is invalid, the target AN cannot maintain the session consistency with the AT, so it is determined to close the session with the AT. When each validity judgment flag indicates that the corresponding Personality type is valid, the target AN further judges whether the Personality type that the target AN can support for this AT is higher than all the Personality types in the Personality information transferred by the source AN, if so, in order to improve user Experience, the target AN can negotiate to use a higher service type Personality for the AT. therefore. The target AN needs to close the session with the AT, and establish a session with a higher service type of personality, otherwise the target AN determines that there is no need to close the session with the AT. This embodiment provides information and a perfect judgment method for the target AN to judge whether to close the session, and solves the defect that the target AN may misjudgment when judging whether to close the session when switching between ANs of different versions.
图4为本发明实施例提供的又一种关闭与接入终端间会话的方法流程图。本实施例主要说明高→低→高AN间激活态乒乓硬切换场景下,切换后AN如何判断是否关闭与AT间的会话。对于高→低→高的两个AN间激活态乒乓硬切换或三个AN间激活态连续硬切换的场景,第一AN为初始发起切换的AN,第二AN为第一AN切换后的AN,第三AN为第二AN在保持激活态下切换后的AN。其中,第一AN和第三AN的版本高于第二AN(中间AN)。第一AN和第三AN可以是同一AN,也可以不同的AN。如图4所示,本实施例包括:Fig. 4 is a flowchart of another method for closing a session with an access terminal provided by an embodiment of the present invention. This embodiment mainly explains how the AN determines whether to close the session with the AT in the scenario of active ping-pong hard handover between high → low → high ANs after the handover. For the scenario of high→low→high active ping-pong hard handover between two ANs or active continuous hard handover between three ANs, the first AN is the AN that initially initiates the handover, and the second AN is the AN after the first AN handover , the third AN is the AN after the switching of the second AN in the active state. Wherein, the versions of the first AN and the third AN are higher than the second AN (intermediate AN). The first AN and the third AN may be the same AN or different ANs. As shown in Figure 4, this embodiment includes:
步骤41:第一AN根据第一AN保存的与AT对应的会话信息生成第一AN的Personality信息(个性信息)后,向第二AN发送携带有Personality信息的会话转移请求;会话转移请求中还包括第一AN保存的与AT对应的会话信息。Step 41: After the first AN generates the Personality information (personality information) of the first AN according to the session information corresponding to the AT stored by the first AN, it sends a session transfer request carrying the Personality information to the second AN; the session transfer request also includes It includes the session information corresponding to the AT saved by the first AN.
第一AN向第二AN切换时,先根据第一AN保存的第一AN与AT对应的会话信息生成第一AN的Personality信息。第一AN的Personality信息包括第一AN与AT对应的会话信息中各套Personality的Personality类型和各套Personality分别对应的有效性判断标识。When switching from the first AN to the second AN, the Personality information of the first AN is first generated according to the session information corresponding to the first AN and the AT saved by the first AN. The Personality information of the first AN includes the Personality type of each set of Personalities in the session information corresponding to the first AN and the AT, and the validity judgment identifiers corresponding to each set of Personalities.
步骤42:第二AN保存从第一AN转移过来的会话信息后,确定Personality信息中存在不支持的Personality类型(个性类型)。其中,第二AN不支持的Personality的某些属性或参数不能保存到第二AN侧的会话信息中。Step 42: After saving the session information transferred from the first AN, the second AN determines that there is an unsupported Personality type (personality type) in the Personality information. Wherein, some attributes or parameters of the Personality not supported by the second AN cannot be stored in the session information on the side of the second AN.
第二AN接收到第一AN发送的会话转移请求后,由于第二AN的版本低于第一AN,Personality信息中第二AN存在不支持的Personality类型,第二AN保存从第一AN转移过来的会话信息时,不能将其中第二AN不支持的personality的某些属性或参数保存到第二AN侧的会话信息中。例如,第二AN无法使用第一AN与AT对应的会话信息中第二AN不支持的Personality类型的Personality属性和参数。又例如,由于低版本的第二AN无法识别第一AN的Personality,而使Personality发生变化,例如丢失或被修改。After the second AN receives the session transfer request sent by the first AN, because the version of the second AN is lower than that of the first AN, there is an unsupported Personality type in the second AN in the Personality information, and the second AN saves the transfer from the first AN In the session information of the second AN side, some attributes or parameters of the personality not supported by the second AN cannot be saved in the session information on the second AN side. For example, the second AN cannot use the Personality attributes and parameters of the Personality type not supported by the second AN in the session information corresponding to the first AN and the AT. For another example, because the second AN of a lower version cannot recognize the Personality of the first AN, the Personality changes, such as being lost or modified.
第二AN接收到第一AN发送的会话转移请求后,根据图3提供的方法判断是否关闭会话。由于第二AN版本低于第一AN,第二AN在步骤31中通过判断Personality信息中所有Personality类型,可确定第一AN保存的与AT对应的会话信息中存在第二AN不支持的Personality类型,进而确定关闭与AT的会话。由于第二AN一直保持激活态,第二AN即使确定需要关闭与AT间的会话,也不会向AT发送关闭会话消息,而是保持激活态向第三AN发起会话转移请求。After receiving the session transfer request sent by the first AN, the second AN judges whether to close the session according to the method provided in FIG. 3 . Since the version of the second AN is lower than that of the first AN, in step 31, by judging all the Personality types in the Personality information, the second AN can determine that there is a Personality type not supported by the second AN in the session information corresponding to the AT saved by the first AN , and then determine to close the session with the AT. Since the second AN is always in the active state, even if the second AN determines that the session with the AT needs to be closed, it will not send a session close message to the AT, but will initiate a session transfer request to the third AN in the active state.
步骤43:第二AN保持激活态向第三AN切换时,第二AN根据保存的第二AN与AT对应的会话信息生成第二AN的Personality信息。在Personality信息中第二AN不支持的Personality对应的有效性判断标识被编码为表示相应Personality无效。Step 43: When the second AN remains active and switches to the third AN, the second AN generates the Personality information of the second AN according to the saved session information corresponding to the second AN and the AT. In the Personality information, the validity judgment identifier corresponding to the Personality not supported by the second AN is coded to indicate that the corresponding Personality is invalid.
由于步骤42中第二AN保存从第一AN转移过来的会话信息时,不能将其中第二AN不支持的personality的某些属性或参数保存到第二AN侧的会话信息中,第二AN无法保持该套Personality与AT的一致性。第二AN保持激活态向第三AN切换时,为使第三AN获知第二AN无法保持该套personality与AT间的一致性,第二AN对该套Personality生成标识其无效的有效性判断标识后添加到Personality信息。例如,对于第二AN无法保持与AT一致性的某套Personality,第二AN将该套Personality的ValidFlag编码为0,以标识该套Personality无效。Because in step 42, when the second AN saves the session information transferred from the first AN, it cannot save some attributes or parameters of the personality that the second AN does not support into the session information on the second AN side, the second AN cannot Keep the set of Personality consistent with AT. When the second AN remains active and switches to the third AN, in order for the third AN to know that the second AN cannot maintain the consistency between the set of personality and the AT, the second AN generates an invalid validity judgment flag for the set of Personality After adding to the Personality information. For example, for a certain set of Personalities that the second AN cannot maintain consistency with the AT, the second AN codes the ValidFlag of the set of Personalities as 0 to indicate that the set of Personalities is invalid.
步骤44:第二AN保持激活态向第三AN发送携带有第二AN的Personality信息的会话转移请求。会话转移请求中还包括第二AN保存的第二AN与AT对应的会话信息。Step 44: The second AN keeps the active state and sends a session transfer request carrying the Personality information of the second AN to the third AN. The session transfer request also includes session information corresponding to the second AN and the AT stored by the second AN.
步骤45:第三AN保存从第二AN转移过来的会话信息后,确定支持第二AN的Personality信息中所有Personality类型,并确定存在一个或多个有效性判断标识表示相应Personality类型为无效,确定关闭与AT的会话。Step 45: After the third AN saves the session information transferred from the second AN, determine that all Personality types in the Personality information of the second AN are supported, and determine that there are one or more validity judgment signs indicating that the corresponding Personality type is invalid, and determine Close the session with AT.
第三AN接收到第二AN的会话转移请求后,根据图3提供的方法判断是否关闭会话。由于第三AN版本高于第二AN,在步骤31中第三AN确定支持第二AN的所有Personality类型,但在步骤33中确定Personality信息中存在一个或多个有效性判断标识表示相应Personality类型为无效。因此,第三AN无法保持这些personality与AT间的一致性,第三AN确定关闭与AT的会话。After receiving the session transfer request from the second AN, the third AN judges whether to close the session according to the method provided in FIG. 3 . Since the third AN version is higher than the second AN, in step 31, the third AN determines to support all Personality types of the second AN, but in step 33, it is determined that there are one or more validity judgment identifiers in the Personality information to indicate the corresponding Personality types is invalid. Therefore, the third AN cannot maintain the consistency between these personalities and the AT, and the third AN determines to close the session with the AT.
高→低→高AN间激活态硬切换场景下,低版本的第二AN保持激活态向第三AN发送会话转移请求时,根据第二AN与AT对应的会话信息生成了第二AN的Personality信息。在Personality信息中将第二AN不能保持与AT会话一致的Personality所对应的有效性判断标识,被编码为相应Personality无效。第三AN接收到二AN发送的会话转移请求后,由于第二AN的Personality信息中存在一个或多个有效性判断标识表示相应Personality类型为无效,第三AN无法保持这些personality与AT间的一致性,第三AN确定关闭与AT的会话,从而在AT完成业务后,第三AN向AT发起会话重建,从而使第三AN与AT的会话保持一致。In the scenario of high → low → high active state hard handover between ANs, when the second AN of the lower version remains active and sends a session transfer request to the third AN, the Personality of the second AN is generated according to the session information corresponding to the second AN and the AT information. In the Personality information, the validity judgment flag corresponding to the Personality that the second AN cannot keep consistent with the AT session is encoded as the corresponding Personality being invalid. After the third AN receives the session transfer request sent by the second AN, because there are one or more validity judgment flags in the Personality information of the second AN, indicating that the corresponding Personality type is invalid, the third AN cannot maintain the consistency between these personalities and the AT Therefore, the third AN determines to close the session with the AT, so that after the AT completes the service, the third AN initiates session reestablishment to the AT, so that the session between the third AN and the AT remains consistent.
图5为本发明实施例提供的再一种关闭与接入终端间会话的方法流程图。本实施例主要说明低→高→低AN间激活态硬切换场景下,切换后AN如何判断是否关闭与AT间的会话。本实施例中每套personality的Personality类型和每套Personality对应的有效性判断标识,分别通过以下两个参数的值表示:PersonalityType和ValidFlag。其中,PersonalityType表示该套personality的类型,ValidFlag为有效性判断标识,表示该套personality是否是完整有效。ValidFlag为1表示该套personality有效,ValidFlag为0表示该套personality无效。如图5所示,本实施例包括:Fig. 5 is a flowchart of another method for closing a session with an access terminal provided by an embodiment of the present invention. This embodiment mainly describes how the AN determines whether to close the session with the AT in the scenario of active state hard handover between low→high→low ANs after the handover. In this embodiment, the Personality type of each set of Personality and the validity judgment flag corresponding to each set of Personality are respectively represented by the values of the following two parameters: PersonalityType and ValidFlag. Among them, PersonalityType indicates the type of the personality, and ValidFlag is a validity judgment flag, indicating whether the personality is complete and valid. A ValidFlag of 1 indicates that the personality is valid, and a ValidFlag of 0 indicates that the personality is invalid. As shown in Figure 5, this embodiment includes:
步骤51:第一AN根据第一AN保存的与AT对应的会话信息生成第一AN的Personality信息(个性信息)后,向第二AN发送携带有Personality信息的会话转移请求。Step 51: After the first AN generates the Personality information (personality information) of the first AN according to the session information corresponding to the AT stored by the first AN, it sends a session transfer request carrying the Personality information to the second AN.
会话转移请求还包括第一AN与AT对应的会话信息。会话转移请求可以通过A16-Session Transfer Request消息承载。对于低→高→低AN间激活态乒乓切换场景,第一AN和第三AN的版本低于第二AN(中间AN)。第一AN和第三AN可以是同一AN,也可以是不同的AN。The session transfer request also includes session information corresponding to the first AN and the AT. The session transfer request can be carried by A16-Session Transfer Request message. For the active ping-pong switching scenario between low → high → low ANs, the versions of the first AN and the third AN are lower than that of the second AN (middle AN). The first AN and the third AN may be the same AN or different ANs.
步骤52:第二AN保存第一AN转移过来的会话信息,确定支持Personality信息中所有Personality类型且所有的有效性判断标识均为1。即ValidFlag均标识相应的Personality有效。Step 52: The second AN saves the session information transferred from the first AN, and determines that all Personality types in the Personality information are supported and all validity judgment flags are 1. That is, the ValidFlag indicates that the corresponding Personality is valid.
第二AN版本高于第一AN的版本,由于高版本AN能向下兼容,第二AN可支持第一AN的所有PersonalityType。第二AN对于低版本的第一AN转移过来的会话信息,能向下兼容支持其中所有Personality的属性和参数,不会产生丢失,各套personality均完整有效。The version of the second AN is higher than that of the first AN, and since the higher version AN is backward compatible, the second AN can support all PersonalityTypes of the first AN. For the session information transferred from the lower version of the first AN, the second AN is backward compatible and supports all the attributes and parameters of the Personality, without loss, and each set of personality is complete and valid.
第二AN接收到第一AN的会话转移请求后,根据图3提供的方法判断是否关闭会话。由于第二AN一直保持激活态,即使第二AN确定关闭会话,第二AN也不会向AT发送关闭会话消息。After receiving the session transfer request from the first AN, the second AN judges whether to close the session according to the method provided in FIG. 3 . Since the second AN is always in an active state, even if the second AN determines to close the session, the second AN will not send a session close message to the AT.
步骤53:第二AN保持激活态向第三AN切换时,第二AN根据保存的第二AN与AT对应的会话信息生成第二AN的Personality信息,在Personality信息中所有的有效性判断标识均为1。Step 53: When the second AN remains active and switches to the third AN, the second AN generates the Personality information of the second AN according to the saved session information corresponding to the second AN and the AT, and all validity judgment signs in the Personality information are is 1.
由于第二AN对于低版本的第一AN转移过来的会话信息,能向下兼容其中所有Personality的属性和参数,不会产生丢失,第二AN可保持第一AN转移过来的会话信息中所有Personality与AT的一致性。因此第二AN在A16-Session Transfer Request消息中编码PersonalityInfo时,各套personality的ValidFlag均为1。Since the second AN is backward compatible with the session information transferred from the first AN of the lower version, all the attributes and parameters of Personality will not be lost, and the second AN can keep all the Personality in the session information transferred from the first AN. Consistency with AT. Therefore, when the second AN encodes PersonalityInfo in the A16-Session Transfer Request message, the ValidFlag of each set of personalities is 1.
步骤54:第二AN保持激活态向第三AN发送携带有第二AN的Personality信息的会话转移请求。会话转移请求可以通过A16-Session Transfer Request消息承载;A16-Session Transfer Request消息中还包括第二AN保存的第二AN与AT对应的会话信息。Step 54: The second AN keeps the active state and sends a session transfer request carrying the Personality information of the second AN to the third AN. The session transfer request may be carried by the A16-Session Transfer Request message; the A16-Session Transfer Request message also includes the session information corresponding to the second AN and the AT stored by the second AN.
步骤55:第三AN确定支持Personality信息中所有Personality类型(个性类型)、所有的有效性判断标识均为1且第三AN对于AT支持的最高Personality类型不高于Personality信息中所有Personality类型后,确定不关闭与AT的会话。Step 55: After the third AN determines that all Personality types (personality types) in the Personality information are supported, all validity judgment flags are 1, and the highest Personality type supported by the third AN for the AT is not higher than all Personality types in the Personality information, Make sure not to close the session with AT.
低→高→低AN间激活态乒乓硬切换场景下,第一AN转移给第二AN的会话信息,在高版本的第二AN侧没有丢失或改变。高版本的第二AN保持激活态向第三AN切换时,第二AN根据第二AN与AT对应的会话信息生成的PersonalityInfo中所有ValidFlag均为1。第三AN接收到会话转移请求后,根据PersonalityInfo中所有ValidFlag可确定第二AN转移过来的会话信息中所有Personality是有效的。In the scenario of active ping-pong hard handover between low → high → low ANs, the session information transferred from the first AN to the second AN is not lost or changed on the side of the second AN of the higher version. When the second AN of the higher version remains active and switches to the third AN, all ValidFlags in the PersonalityInfo generated by the second AN based on the session information corresponding to the second AN and the AT are 1. After the third AN receives the session transfer request, it can determine that all the Personalities in the session information transferred from the second AN are valid according to all the ValidFlags in the PersonalityInfo.
图6为本发明实施例提供的一种接入网络间切换的方法流程图。本实施例主要说明在AN间硬切换过程中,目标AN判断是否关闭与AT的会话所处的阶段。如图6所示,本实施例包括:FIG. 6 is a flow chart of a method for switching between access networks according to an embodiment of the present invention. This embodiment mainly describes the stage where the target AN determines whether to close the session with the AT during the inter-AN hard handover process. As shown in Figure 6, this embodiment includes:
步骤61:源AN向目标AN发送包括Personality信息(PersonalityInfo)的会话转移请求(例如,A16-Session Transfer Request消息)。Step 61: The source AN sends a session transfer request (for example, A16-Session Transfer Request message) including Personality information (PersonalityInfo) to the target AN.
步骤62A:目标AN根据Personality信息(PersonalityInfo)判断是否关闭与AT的会话。Step 62A: The target AN judges whether to close the session with the AT according to the Personality information (PersonalityInfo).
目标AN接收到源AN的A16-Session Transfer Request消息后,根据PersonalityInfo判断是否关闭与AT的会话,具体判断流程参见图3所示。After the target AN receives the A16-Session Transfer Request message from the source AN, it judges whether to close the session with the AT according to the PersonalityInfo. The specific judgment process is shown in Figure 3.
步骤62B:目标AN向源AN发送会话转移响应(例如,A16-Session TransferResponse消息).。Step 62B: The target AN sends a session transfer response (for example, A16-Session TransferResponse message) to the source AN.
步骤63:源AN向目的AN发送会话转移完成响应(例如,A16-Session TransferComplete消息)。Step 63: The source AN sends a session transfer completion response (for example, A16-Session TransferComplete message) to the destination AN.
步骤64:目的AN为AT提供服务。Step 64: The target AN provides services for the AT.
步骤65:目标AN向源AN发送会话释放指示(例如,A16-Session ReleaseIndication消息)。Step 65: The target AN sends a session release indication (for example, A16-Session ReleaseIndication message) to the source AN.
步骤66:源AN向目的AN发送会话释放响应(例如,A16-Session ReleaseIndication ACK消息)。Step 66: The source AN sends a session release response (for example, A16-Session ReleaseIndication ACK message) to the target AN.
步骤67:目标AN完成业务后,关闭目标AN与AT之间的连接(例如,Connectionbetween AT and Target AN Closes)。Step 67: After the target AN completes the service, close the connection between the target AN and the AT (for example, Connectionbetween AT and Target AN Closes).
步骤68:目标AN向源AN发送资源释放请求(例如,A13-Resource Release Request消息)。Step 68: The target AN sends a resource release request (for example, A13-Resource Release Request message) to the source AN.
步骤69:在步骤62A中目标AN确定关闭与AT的会话时,目标AN向AT发送会话关闭消息(例如,Session Close消息)。Step 69: When the target AN determines to close the session with the AT in step 62A, the target AN sends a session close message (for example, a Session Close message) to the AT.
步骤610:源AN向目的AN发送资源释放响应(例如,A13-Resource ReleaseResponse消息)。Step 610: The source AN sends a resource release response (for example, A13-Resource ReleaseResponse message) to the target AN.
之后,目标AN与AT间的会话建立。After that, the session between the target AN and the AT is established.
本发明实施例在源AN向目标AN发送A16-Session Transfer Request消息后,目标AN根据其中的PersonalityInfo判决在在AT完成业务后是否向AT发送Session Close消息进行会话重建以保持与AT间的会话一致性。In the embodiment of the present invention, after the source AN sends the A16-Session Transfer Request message to the target AN, the target AN decides whether to send a Session Close message to the AT after the AT completes the business according to the PersonalityInfo to maintain session consistency with the AT sex.
图7A为本发明实施例提供的一种源接入网络设备结构示意图。如图7A所示,发明实施例提供的源接入网络设备包括:FIG. 7A is a schematic structural diagram of a source access network device provided by an embodiment of the present invention. As shown in Figure 7A, the source access network device provided by the embodiment of the invention includes:
生成模块71,用于接入终端从源接入网络向目标接入网络切换过程中,根据所述源接入网络保存的与所述接入终端对应的会话信息,生成所述源接入网络侧的Personality信息;所述Personality信息包括所述会话信息中各套Personality的Personality类型和各套Personality分别对应的有效性判断标识;各套Personality分别对应的有效性判断标识用于标识该套Personality无效或有效。A generating module 71, configured to generate the source access network according to the session information corresponding to the access terminal stored in the source access network during the handover process of the access terminal from the source access network to the target access network Personality information on the side; the Personality information includes the Personality type of each set of Personality in the session information and the validity judgment identifier corresponding to each set of Personality; the validity judgment identifier corresponding to each set of Personality is used to identify that the set of Personality is invalid or valid.
会话转移请求发送模块72,用于所述源接入网络向目标接入网络发送包括有生成模块71生成的Personality信息的会话转移请求,以使所述目标接入网络根据所述Personality信息判断在所述接入终端完成业务后是否关闭与所述接入终端的会话。A session transfer request sending module 72, configured for the source access network to send a session transfer request including the Personality information generated by the generation module 71 to the target access network, so that the target access network can judge the Whether to close the session with the access terminal after the access terminal completes the service.
进一步,如图7B所示,生成模块71包括:类型确定单元711和有效性编码单元712。Further, as shown in FIG. 7B , the generating module 71 includes: a type determining unit 711 and a validity encoding unit 712 .
类型确定单元711,用于确定所述会话信息中各套Personality的Personality类型。A type determining unit 711, configured to determine the Personality type of each set of Personalities in the session information.
有效性编码单元712,用于根据对所述源接入网络保存的与接入终端对应的会话信息各套Personality的保存完整性和发送完整性,或根据对所述源接入网络保存的与接入终端对应的会话信息各套Personality的发送完整性,判断所述会话信息中各套Personality的有效性并生成有效性判断标识。The validity coding unit 712 is configured to save integrity and send integrity of each set of Personality according to the session information stored on the source access network and corresponding to the access terminal, or according to the information stored on the source access network and corresponding to the access terminal. Accessing the transmission integrity of each set of Personality in the session information corresponding to the access terminal, judging the validity of each set of Personality in the session information and generating a validity judgment identifier.
具体地,根据对所述会话信息各套Personality的保存完整性和发送完整性,判断所述会话信息中各套Personality的有效性并生成有效性判断标识时:有效性编码单元712具体用于在所述会话信息中一套Personality保存不完整或发送不完整时,确定该套Personality无效,并生成标识该套Personality无效的有效性判断标识;在所述会话信息中的一套Personality保存完整且发送完整时,确定该套Personality有效,并生成标识该套Personality有效的效性判断标识;通过上述方法判断所述会话信息中每一套Personality的有效性,并为每一套Personality生成标识该套Personality有效的有效性判断标识。Specifically, when judging the validity of each set of Personality in the session information and generating a validity judgment flag according to the preservation integrity and transmission integrity of each set of Personality in the session information: the validity encoding unit 712 is specifically used to When a set of Personality in the session information is incompletely preserved or sent incompletely, it is determined that the set of Personality is invalid, and a validity judgment flag indicating that the set of Personality is invalid is generated; a set of Personality in the session information is preserved intact and sent When complete, determine that the set of Personality is valid, and generate a validity judgment flag that identifies the set of Personality; judge the validity of each set of Personality in the session information by the above method, and generate and identify the set of Personality for each set of Personality Effective validity judgment logo.
具体地,根据对所述会话信息各套Personality的发送完整性,判断所述会话信息中各套Personality的有效性并生成有效性判断标识时:有效性编码单元712具体用于在所述会话信息中一套Personality发送不完整时,确定该套Personality无效,并生成标识该套Personality无效的有效性判断标识;在所述会话信息中的一套Personality发送完整时,确定该套Personality有效,并生成标识该套Personality有效的效性判断标识;通过上述方法判断所述会话信息中每一套Personality的有效性,并为每一套Personality生成标识该套Personality有效的效性判断标识。Specifically, when judging the validity of each set of Personality in the session information according to the integrity of sending each set of Personality in the session information and generating a validity judgment flag: the validity encoding unit 712 is specifically used to When a set of Personality in the session information is sent incompletely, determine that the set of Personality is invalid, and generate a validity judgment flag that identifies the set of Personality as invalid; when a set of Personality in the session information is sent completely, determine that the set of Personality is valid, and generate A validity judgment mark identifying the validity of the set of Personalities; judging the validity of each set of Personalities in the session information through the above method, and generating a validity judgment mark for each set of Personalities to identify the validity of the set of Personalities.
本发明实施例提供的源接入网络,会话转移请求发送模块72在发送给目标AN的会话转移请求中,添加了本端保存的与AT对应的会话信息中各套Personality的Personality类型和各套Personality的有效性判断标识。会话转移请求中各套Personality的Personality类型反映了源AN与该AT会话时采用的Personality类型,若目标AN不支持这些Personality类型,则目标AN无法与AT保持会话一致性。会话转移请求中各套Personality的有效性判断标识,反映了源AN对于该AT保存的各套Personality的有效性,若源AN保存的Personality无效,则目标AN无法保持该套Personality与AT的一致性。In the source access network provided by the embodiment of the present invention, the session transfer request sending module 72 adds the Personality type and each set of Personality in the session information corresponding to the AT stored at the local end to the session transfer request sent to the target AN. The validity judgment flag of Personality. The Personality type of each set of Personality in the session transfer request reflects the Personality type used by the source AN in the conversation with the AT. If the target AN does not support these Personality types, the target AN cannot maintain session consistency with the AT. The validity judgment flag of each set of Personality in the session transfer request reflects the validity of each set of Personality saved by the source AN for the AT. If the Personality saved by the source AN is invalid, the target AN cannot maintain the consistency between the set of Personality and the AT .
图8A为本发明实施例提供的一种目标接入网络设备结构示意图。如图8A所示,发明实施例提供的目标接入网络设备包括:会话转移请求接收模块81、会话关闭判断模块82和关闭消息发送模块83。FIG. 8A is a schematic structural diagram of a target access network device provided by an embodiment of the present invention. As shown in FIG. 8A , the target access network device provided by the embodiment of the invention includes: a session transfer request receiving module 81 , a session closing judging module 82 and a closing message sending module 83 .
会话转移请求接收模块81,用于接收源接入网络发送的包括有Personality信息的会话转移请求;所述Personality信息包括所述源接入网络保存与接入终端对应的会话信息中各套Personality的Personality类型和各套Personality分别对应的有效性判断标识。The session transfer request receiving module 81 is configured to receive a session transfer request including Personality information sent by the source access network; the Personality information includes each set of Personality in the session information corresponding to the access terminal saved by the source access network The type of Personality and the validity judgment marks corresponding to each set of Personality.
会话关闭判断模块82,用于根据会话转移请求接收模块81接收到的Personality信息判断是否关闭与接入终端的会话。The session closing judging module 82 is configured to judge whether to close the session with the access terminal according to the Personality information received by the session transfer request receiving module 81 .
具体地,会话关闭判断模块82具体用于若所述目标接入网络支持所述Personality信息中所有Personality类型且所述Personality信息中所有有效性判断标识均标识相应Personality有效、且所述目标接入网络对于所述接入终端支持的最高Personality类型不高于所述Personality信息中所有Personality类型,确定不关闭与所述接入终端的会话,否则确定关闭与所述接入终端的会话。Specifically, the session closing judging module 82 is specifically configured to: if the target access network supports all Personality types in the Personality information and all validity judgment identifiers in the Personality information indicate that the corresponding Personality is valid, and the target access The highest Personality type supported by the network for the access terminal is not higher than all Personality types in the Personality information, determine not to close the session with the access terminal, otherwise determine to close the session with the access terminal.
关闭消息发送模块83,用于会话关闭判断模块82根据Personality信息确定关闭与接入终端的会话时,在所述接入终端完成业务后,向所述接入终端发送会话关闭消息。The close message sending module 83 is configured to send a session close message to the access terminal after the access terminal completes the service when the session close judging module 82 determines to close the session with the access terminal according to the Personality information.
进一步,如图8B所示,会话关闭判断模块82包括:第一支持判断单元821、有效性判断单元822、第二支持判断单元823和会话关闭确定单元824。Further, as shown in FIG. 8B , the session closure judgment module 82 includes: a first support judgment unit 821 , a validity judgment unit 822 , a second support judgment unit 823 and a session closure determination unit 824 .
第一支持判断单元821,用于判断所述Personality信息中是否存在目标接入网络不支持的Personality类型。The first support judging unit 821 is configured to judge whether there is a Personality type not supported by the target access network in the Personality information.
有效性判断单元822,用于若第一支持判断单元821确定不存在所述目标接入网络不支持的Personality类型,判断所述Personality信息中所有有效性判断标识是否均表示相应Personality有效。The validity judgment unit 822 is configured to, if the first support judgment unit 821 determines that there is no Personality type not supported by the target access network, judge whether all the validity judgment identifiers in the Personality information indicate that the corresponding Personality is valid.
第二支持判断单元823,用于若有效性判断单元822确定所有有效性判断标识均表示相应Personality为有效,根据所述接入终端支持的应用子类型,目标接入网络判断对于所述接入终端所述目标接入网络支持的最高Personality类型是否高于Personality信息中所有Personality类型。The second support judging unit 823 is configured to: if the validity judging unit 822 determines that all the validity judging signs indicate that the corresponding Personality is valid, according to the application subtype supported by the access terminal, the target access network judges the Whether the highest Personality type supported by the target access network of the terminal is higher than all Personality types in the Personality information.
会话关闭确定单元824,用于若第一支持判断单元821确定存在所述目标接入网络不支持的Personality类型,确定关闭与所述接入终端的会话;若第一支持判断单元821确定所有有效性判断标识中存在一个或多个Personality有效性判断标识表示相应Personality无效,确定关闭与所述接入终端的会话;若第二支持判断单元823确定目标接入网络对于所述接入终端支持的最高Personality类型高于Personality信息中所有Personality类型,确定关闭与接入终端的会话。The session closure determination unit 824 is configured to determine to close the session with the access terminal if the first support determination unit 821 determines that there is a Personality type not supported by the target access network; if the first support determination unit 821 determines that all valid If there are one or more Personality validity judgment identifiers in the personality judgment identifier, it means that the corresponding Personality is invalid, and it is determined to close the session with the access terminal; if the second support judgment unit 823 determines that the target access network supports the access terminal If the highest Personality type is higher than all Personality types in the Personality information, it is determined to close the session with the access terminal.
本发明实施例提供的目标接入网络,会话关闭判断模块82根据会话转移请求中的Personality信息,判断目标AN能否与AT间的会话保持一致,从而确定是否关闭与AT的会话。避免了目标AN由于依据的信息不充分产生的误判。因此,本发明实施例解决了AN间切换过程中目标AN判断是否关闭会话时所依据的信息不足、判断方法不完善的缺陷,避免了目标AN误判现象的发生,可避免业务异常,也可节省带宽,并可提高用户体验。For the target access network provided by the embodiment of the present invention, the session closing judging module 82 judges whether the target AN is consistent with the session between the ATs according to the Personality information in the session transfer request, so as to determine whether to close the session with the AT. Misjudgment of the target AN due to insufficient information is avoided. Therefore, the embodiment of the present invention solves the defects of insufficient information and imperfect judgment method when the target AN judges whether to close the session during the inter-AN handover process, avoids the occurrence of misjudgment by the target AN, avoids business abnormalities, and Save bandwidth and improve user experience.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。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 (9)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2011/078378 WO2012159378A1 (en) | 2011-08-12 | 2011-08-12 | Method and device for closing session with access terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103053200A CN103053200A (en) | 2013-04-17 |
CN103053200B true CN103053200B (en) | 2016-09-28 |
Family
ID=47216596
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201180001782.5A Active CN103053200B (en) | 2011-08-12 | 2011-08-12 | Close and the method and apparatus of session between access terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103053200B (en) |
WO (1) | WO2012159378A1 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136913A (en) * | 2006-12-07 | 2008-03-05 | 中兴通讯股份有限公司 | Method for implementing multi-characteristic optimizing storage |
CN101778442A (en) * | 2010-01-04 | 2010-07-14 | 中兴通讯股份有限公司 | Session information storage method and access network equipment |
CN102067668A (en) * | 2008-06-13 | 2011-05-18 | 高通股份有限公司 | Apparatus and method for personality modification during handoff |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4567785B2 (en) * | 2005-04-15 | 2010-10-20 | サムスン エレクトロニクス カンパニー リミテッド | Triggering apparatus and method for session renegotiation between access network and access terminal in high-speed packet data system |
CN101496373A (en) * | 2006-07-31 | 2009-07-29 | 高通股份有限公司 | Method and apparatus for negotiating personalities in a wireless communications system |
-
2011
- 2011-08-12 WO PCT/CN2011/078378 patent/WO2012159378A1/en active Application Filing
- 2011-08-12 CN CN201180001782.5A patent/CN103053200B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101136913A (en) * | 2006-12-07 | 2008-03-05 | 中兴通讯股份有限公司 | Method for implementing multi-characteristic optimizing storage |
CN102067668A (en) * | 2008-06-13 | 2011-05-18 | 高通股份有限公司 | Apparatus and method for personality modification during handoff |
CN101778442A (en) * | 2010-01-04 | 2010-07-14 | 中兴通讯股份有限公司 | Session information storage method and access network equipment |
Non-Patent Citations (1)
Title |
---|
Clarification for HRPD HHO;Qualcom;《3GPP2 TSG-A》;20061030;第 3.13.1至第3.13.2 * |
Also Published As
Publication number | Publication date |
---|---|
WO2012159378A1 (en) | 2012-11-29 |
CN103053200A (en) | 2013-04-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108260162B (en) | SDAP layer function implementation method of 5G system | |
CN101848114B (en) | Fault detection method and device | |
TW201840138A (en) | Method and device for decompressing and compressing uplink data | |
WO2013071747A1 (en) | Method and apparatus for obtaining file | |
CN103797838B (en) | A kind of method and apparatus of business processing | |
CN111381962B (en) | Edge service migration method and device | |
CN105659689A (en) | Method and system for dual role handling in a wireless environment | |
WO2019173951A1 (en) | Method and device for updating ue policy, and computer storage medium | |
CN101197824A (en) | A method and system for determining a compression algorithm | |
WO2022057827A1 (en) | Aggregation configuration method and apparatus, and terminal | |
CN104954497B (en) | Data transmission method and system in a kind of cloud storage system | |
CN107465613A (en) | link aggregation interface communication state switching method and device | |
US9426206B2 (en) | FTP data transmission in stack system | |
CN110071935A (en) | Terminal assembles SDAP implementation methods in a kind of 5G system | |
CN104066045B (en) | A kind of Android system for supporting more phone business, method and system chip | |
WO2023213086A1 (en) | Data processing method and apparatus, and computer-readable medium and electronic device | |
CN105162769A (en) | Gateway authority transfer method and gateway authority transfer device | |
CN103053200B (en) | Close and the method and apparatus of session between access terminal | |
CN108260170B (en) | A resource reservation control method and MGCF unit | |
CN102651777B (en) | Link establishing method and equipment | |
CN102271320B (en) | Service negotiating method and system | |
CN101257646A (en) | Media Sharing Transfer Method | |
CN104601351B (en) | Network device capability configuration method, network device and system | |
WO2012071937A1 (en) | Method, system and communication terminal for mlppp dynamic binding | |
WO2019157631A1 (en) | Method and apparatus for remapping qos flow, and computer storage medium |
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 |