技术领域technical field
本发明涉及终端以及核心网领域中的漫游网络接入技术,尤其涉及一种漫游网络的接入方法、装置及系统。The present invention relates to a roaming network access technology in the field of terminals and core networks, in particular to a roaming network access method, device and system.
背景技术Background technique
目前,终端在更新漫游网络时,一般按照3GPP规定的标准方案,基于数据卡中记录的运营商控制公共陆地移动网络(OPLMN,OperatorControlledPublicLandMobileNetwork)列表进行漫游网络的更新。但在实际过程中,由于数据卡中记录的OPLMN信息往往无法及时更新,这导致用户无法根据新漫游地的运营商签约信息进行选网。At present, when updating the roaming network, the terminal generally updates the roaming network based on the Operator Controlled Public Land Mobile Network (OPLMN, Operator Controlled Public Land Mobile Network) list recorded in the data card according to the standard solution specified by 3GPP. However, in the actual process, because the OPLMN information recorded in the data card is often not updated in time, this makes it impossible for the user to select a network based on the operator's contract information in the new roaming location.
对于上述问题,现有技术主要通过在终端侧预制文件,并根据该预制文件定制的内容进行选网,但是,该预制文件缺乏及时更新机制,且该预制文件定制的选网方式非标准化,因此,这种方法通常需要终端做非标准修改。For the above problems, the existing technology mainly prefabricates the file on the terminal side, and selects the network according to the content customized by the prefabricated file. However, the prefabricated file lacks a timely update mechanism, and the network selection method of the prefabricated file is not standardized. , this method usually requires non-standard modification of the terminal.
目前,已有厂家提出在终端中预存已签约漫游服务网络的系统识别码列表,当终端在漫游地捕获到该网络的导频信号后,读取所述导频信号对应的系统识别码。但该方法同样需要在终端侧预存系统识别码列表对应的漫游运营商,但在实际过程中,终端侧往往无法及时更新该系统识别码列表对应的漫游运营商。At present, some manufacturers have proposed to pre-store the system identification code list of the subscribed roaming service network in the terminal, and when the terminal captures the pilot signal of the network while roaming, read the system identification code corresponding to the pilot signal. However, this method also needs to pre-store the roaming operator corresponding to the system identification code list on the terminal side, but in the actual process, the terminal side often cannot update the roaming operator corresponding to the system identification code list in time.
与此同时,也有厂家提出基于3GPP中7号信令的漫游选网策略,该方法实时性较好,但上述基于7号信令的漫游选网策略,需要在不同运营商和终端之间进行互通性测试,实施成本较大。At the same time, some manufacturers have proposed a roaming network selection strategy based on SS7 in 3GPP. This method has better real-time performance, but the above-mentioned roaming network selection strategy based on SS7 needs to be carried out between different operators and terminals. Interoperability testing, the implementation cost is relatively large.
发明内容Contents of the invention
有鉴于此,本发明实施例期望提供一种漫游网络的接入方法、装置及系统,能够有效地解决用户如何快速接入漫游网络的问题。In view of this, the embodiments of the present invention expect to provide a roaming network access method, device and system, which can effectively solve the problem of how a user quickly accesses a roaming network.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, technical solution of the present invention is achieved in that way:
本发明实施例提供一种漫游网络的接入方法,所述方法用于网络侧,包括:接收终端发送的附着请求;根据所述附着请求生成漫游网络接入消息;向所述终端发送所述漫游网络接入消息。An embodiment of the present invention provides a method for accessing a roaming network. The method is used on the network side and includes: receiving an attach request sent by a terminal; generating a roaming network access message according to the attach request; sending the Roaming network access message.
优选的,所述附着请求携带公共陆地移动网络(PLMN,PublicLandMobileNetwork)号码,所述在接收终端发送的附着请求之后,所述方法还包括:根据所述附着请求中的PLMN号码,判断所述终端是否处于漫游状态,如果所述终端处于漫游状态,则根据所述附着请求生成漫游网络接入消息。Preferably, the attach request carries a public land mobile network (PLMN, PublicLandMobileNetwork) number, and after receiving the attach request sent by the terminal, the method further includes: judging the terminal according to the PLMN number in the attach request Whether it is in a roaming state, if the terminal is in a roaming state, generate a roaming network access message according to the attach request.
优选的,所述漫游网络接入消息包括以下一项或多项:OPLMN列表、更新时长参数、数字签名。Preferably, the roaming network access message includes one or more of the following: OPLMN list, update duration parameter, and digital signature.
优选的,所述生成OPLMN列表,包括:根据所述附着请求的控制字段,确定所述终端的接入类别以语音为主时,根据语音网络服务的质量,生成语音网络的OPLMN列表;确定所述终端的接入类别以数据为主时,根据数据网络服务的质量,生成数据网络的OPLMN列表。Preferably, the generating the OPLMN list includes: according to the control field of the attach request, when determining that the terminal's access type is mainly voice, generating an OPLMN list of the voice network according to the quality of the voice network service; determining the When the access type of the terminal is mainly data, an OPLMN list of the data network is generated according to the service quality of the data network.
优选的,所述生成更新时长参数,包括:根据当前时间与网络数据库最新更新时间的差值,生成更新时长参数。Preferably, said generating the update duration parameter includes: generating the update duration parameter according to the difference between the current time and the latest update time of the network database.
优选的,所述生成数字签名,包括:根据所述OPLMN列表的控制字段,生成所述OPLMN列表的数字签名。Preferably, said generating the digital signature includes: generating the digital signature of the OPLMN list according to the control field of the OPLMN list.
本发明实施例还提供一种漫游网络的接入方法,所述方法用于终端侧,包括:向网络侧发送附着请求;接收网络侧发送的漫游网络接入消息;确定所述漫游网络接入消息合法时,根据所述漫游网络接入消息,对漫游网络进行更新。An embodiment of the present invention also provides a method for accessing a roaming network. The method is used on the terminal side and includes: sending an attach request to the network side; receiving a roaming network access message sent by the network side; determining the roaming network access When the message is valid, the roaming network is updated according to the roaming network access message.
优选的,所述漫游网络接入消息包括以下一项或多项:OPLMN列表、更新时长参数、数字签名。Preferably, the roaming network access message includes one or more of the following: OPLMN list, update duration parameter, and digital signature.
优选的,该方法还包括:判断漫游网络接入消息是否合法,具体为:终端检索所述漫游网络接入消息的控制字段,确定所述漫游网络接入消息中含有OPLMN关键字时,从所述漫游网络接入消息中解析出数字签名;根据所述数字签名判断所述漫游网络接入消息是否合法。Preferably, the method further includes: judging whether the roaming network access message is legal, specifically: when the terminal retrieves the control field of the roaming network access message, and determines that the roaming network access message contains the OPLMN keyword, from the Analyzing the digital signature from the roaming network access message; judging whether the roaming network access message is legal according to the digital signature.
优选的,所述根据漫游网络接入消息,对漫游网络进行更新,包括:终端将最近漫游地的PLMN号码与当前漫游地的PLMN号码进行匹配,如果不一致,则根据所述漫游网络接入消息中的OPLMN列表,对漫游网络进行更新。Preferably, updating the roaming network according to the roaming network access message includes: the terminal matches the PLMN number of the latest roaming place with the PLMN number of the current roaming place, and if they are inconsistent, then according to the roaming network access message The OPLMN list in , update the roaming network.
优选的,所述方法还包括:如果最近漫游地的PLMN号码与当前漫游地的PLMN号码一致,则判断当前漫游地的网络更新时间是否超过所述漫游网络接入消息中的更新时长参数,如果当前漫游地的网络更新时间超过所述更新时长参数,则在所述终端处于语音业务空闲状态时,对漫游网络进行更新;如果当前漫游地的网络更新时间未超过所述更新时长参数,则不对漫游网络进行更新。Preferably, the method further includes: if the PLMN number of the latest roaming place is consistent with the PLMN number of the current roaming place, then judging whether the network update time of the current roaming place exceeds the update duration parameter in the roaming network access message, if The network update time of the current roaming location exceeds the update duration parameter, then when the terminal is in the voice service idle state, the roaming network is updated; if the network update time of the current roaming location does not exceed the update duration parameter, then no Roaming network to update.
优选的,在对漫游网络进行更新之后,所述方法还包括:选择所述OPLMN列表中高优先级的网络对漫游网络进行接入;记录本次漫游网络更新后的PLMN号码和时间。Preferably, after the roaming network is updated, the method further includes: selecting a high-priority network in the OPLMN list to access the roaming network; recording the PLMN number and time after the roaming network is updated this time.
本发明实施例还提供一种漫游网络的接入方法,所述方法包括:根据上述用于网络侧的漫游网络的接入方法进行漫游网络的接入;根据上述用于终端侧的漫游网络的接入方法进行漫游网络的接入。An embodiment of the present invention also provides a method for accessing a roaming network. The method includes: accessing a roaming network according to the above method for accessing a roaming network on the network side; according to the above method for accessing a roaming network on the terminal side The access method performs roaming network access.
本发明实施例还提供一种漫游网络的接入装置,所述装置设置于网络侧,包括:第一接收单元、生成单元、以及第一发送单元;其中,所述第一接收单元,用于接收终端发送的附着请求;所述生成单元,用于根据所述附着请求生成漫游网络接入消息;所述第一发送单元,用于向所述终端发送所述漫游网络接入消息。An embodiment of the present invention also provides a device for accessing a roaming network. The device is set on the network side and includes: a first receiving unit, a generating unit, and a first sending unit; wherein the first receiving unit is used to receiving an attach request sent by a terminal; the generating unit, configured to generate a roaming network access message according to the attach request; and the first sending unit, configured to send the roaming network access message to the terminal.
优选的,所述附着请求携带PLMN号码,所述生成单元,具体用于根据所述附着请求中的PLMN号码,判断所述终端是否处于漫游状态,如果所述终端处于漫游状态,则根据所述附着请求生成漫游网络接入消息。Preferably, the attach request carries a PLMN number, and the generating unit is specifically configured to judge whether the terminal is in a roaming state according to the PLMN number in the attach request, and if the terminal is in a roaming state, then according to the The Attach Request generates a Roaming Network Access message.
优选的,所述第一发送单元向所述终端发送所述漫游网络接入消息包括以下一项或多项:OPLMN列表、更新时长参数、数字签名。Preferably, the roaming network access message sent by the first sending unit to the terminal includes one or more of the following: OPLMN list, update duration parameter, and digital signature.
优选的,所述生成单元,具体用于根据所述附着请求的控制字段,确定所述终端的接入类别以语音为主时,根据语音网络服务的质量,生成语音网络的OPLMN列表;确定所述终端的接入类别以数据为主时,根据数据网络服务的质量,生成数据网络的OPLMN列表。Preferably, the generating unit is specifically configured to, according to the control field of the attach request, determine that when the terminal's access type is mainly voice, generate an OPLMN list of the voice network according to the quality of the voice network service; determine the When the access type of the terminal is mainly data, an OPLMN list of the data network is generated according to the service quality of the data network.
优选的,所述生成单元,具体用于根据当前时间与网络数据库最新更新时间的差值,生成所述更新时长参数。Preferably, the generating unit is specifically configured to generate the update duration parameter according to the difference between the current time and the latest update time of the network database.
优选的,所述生成单元,具体用于根据所述OPLMN列表的控制字段,生成所述OPLMN列表的数字签名。Preferably, the generating unit is specifically configured to generate the digital signature of the OPLMN list according to the control field of the OPLMN list.
本发明实施例还提供一种漫游网络的接入装置,所述装置设置于终端侧,包括:第二发送单元、第二接收单元、以及更新单元;其中,所述第二发送单元,用于向网络侧发送附着请求;所述第二接收单元,用于接收网络侧发送的漫游网络接入消息;所述更新单元,用于确定所述漫游网络接入消息合法时,根据所述漫游网络接入消息,对漫游网络进行更新。An embodiment of the present invention also provides a device for accessing a roaming network. The device is set on the terminal side and includes: a second sending unit, a second receiving unit, and an updating unit; wherein the second sending unit is used to sending an attach request to the network side; the second receiving unit is configured to receive a roaming network access message sent by the network side; the updating unit is configured to determine that the roaming network access message is legal, according to the roaming network Access the message to update the roaming network.
优选的,所述第二接收单元接收的漫游网络接入消息包括以下一项或多项:OPLMN列表、更新时长参数、数字签名。Preferably, the roaming network access message received by the second receiving unit includes one or more of the following: OPLMN list, update duration parameter, and digital signature.
优选的,所述更新单元,具体用于检索所述漫游网络接入消息的控制字段,确定所述漫游网络接入消息中含有OPLMN关键字时,从所述漫游网络接入消息中解析出数字签名;根据所述数字签名,判断所述漫游网络接入消息是否合法。Preferably, the update unit is specifically configured to retrieve the control field of the roaming network access message, and when it is determined that the roaming network access message contains the OPLMN keyword, parse out the number from the roaming network access message Signature: judging whether the roaming network access message is legal according to the digital signature.
优选的,所述更新单元,具体用于将最近漫游地的PLMN号码与当前漫游地的PLMN号码进行匹配,如果不一致,则根据所述漫游网络接入消息中的OPLMN列表,对漫游网络进行更新。Preferably, the update unit is specifically configured to match the PLMN number of the latest roaming location with the PLMN number of the current roaming location, and if they are inconsistent, update the roaming network according to the OPLMN list in the roaming network access message .
优选的,所述更新单元,还用于在最近漫游地的PLMN号码与当前漫游地的PLMN号码一致时,判断当前漫游地的网络更新时间是否超过所述漫游网络接入消息中的更新时长参数,如果当前漫游地的网络更新时间超过所述更新时长参数,在所述终端处于语音业务空闲状态时,对漫游网络进行更新;如果当前漫游地的网络更新时间未超过所述更新时长参数,则不对漫游网络进行更新。Preferably, the update unit is further configured to determine whether the network update time of the current roaming place exceeds the update duration parameter in the roaming network access message when the PLMN number of the latest roaming place is consistent with the PLMN number of the current roaming place , if the network update time of the current roaming location exceeds the update duration parameter, when the terminal is in the voice service idle state, update the roaming network; if the network update time of the current roaming location does not exceed the update duration parameter, then Roaming networks are not updated.
优选的,所述装置还包括:接入单元、以及记录单元;其中,所述接入单元,用于选择所述OPLMN列表中高优先级的网络对漫游网络进行接入;所述记录单元,用于记录本次漫游网络更新后的PLMN号码和时间。Preferably, the device further includes: an access unit, and a recording unit; wherein, the access unit is configured to select a high-priority network in the OPLMN list to access the roaming network; the recording unit uses To record the PLMN number and time after this roaming network update.
本发明实施例还提供一种漫游网络的接入系统,所述系统包括:网络侧漫游网络接入装置、以及终端侧漫游网络接入装置;其中,所述网络侧漫游网络接入装置,用于接收终端发送的附着请求,根据所述附着请求生成漫游网络接入消息,向所述终端发送所述漫游网络接入消息;所述终端侧漫游网络接入装置,用于向网络侧发送附着请求,接收网络侧发送的漫游网络接入消息,确定所述漫游网络接入消息合法时,根据所述漫游网络接入消息,对漫游网络进行更新。An embodiment of the present invention also provides a roaming network access system, the system includes: a network-side roaming network access device, and a terminal-side roaming network access device; wherein the network-side roaming network access device uses After receiving the attach request sent by the terminal, generate a roaming network access message according to the attach request, and send the roaming network access message to the terminal; the terminal-side roaming network access device is used to send the attach Requesting, receiving a roaming network access message sent by the network side, and updating the roaming network according to the roaming network access message when it is determined that the roaming network access message is legal.
优选的,所述网络侧漫游网络接入装置为上述设置于网络侧的漫游网络接入装置;所述终端侧漫游网络接入装置为上述设置于终端侧的漫游网络的接入装置。Preferably, the network-side roaming network access device is the above-mentioned roaming network access device set on the network side; the terminal-side roaming network access device is the above-mentioned roaming network access device set on the terminal side.
本发明实施例提供的漫游网络的接入方法、装置及系统,网络侧接收终端发送的附着请求;根据所述附着请求生成漫游网络接入消息;向所述终端发送所述漫游网络接入消息;终端向网络侧发送附着请求,接收网络侧发送的漫游网络接入消息;确定所述漫游网络接入消息合法时,根据所述漫游网络接入消息,对漫游网络进行更新;如此,终端在确定所述漫游网络接入消息合法时,能够根据所述漫游网络接入消息,对漫游网络进行更新,并选择高优先级的漫游网络进行接入,这样能够实时将漫游地的网络信息传输给终端,有效地解决了目前终端中数据卡记录漫游网络信息滞后以及终端不停尝试接入漫游网络的问题;In the roaming network access method, device and system provided by the embodiments of the present invention, the network side receives the attachment request sent by the terminal; generates a roaming network access message according to the attachment request; and sends the roaming network access message to the terminal The terminal sends an attach request to the network side, and receives a roaming network access message sent by the network side; when it is determined that the roaming network access message is legal, the roaming network is updated according to the roaming network access message; When it is determined that the roaming network access message is legal, the roaming network can be updated according to the roaming network access message, and a high-priority roaming network is selected for access, so that the roaming network information can be transmitted to the network in real time. The terminal effectively solves the problem that the data card in the terminal records the roaming network information lagging behind and the terminal keeps trying to access the roaming network;
另外,由于网络侧能够根据终端发送的附着请求,实时将漫游网络接入消息发送给终端,因此,这使得网络侧能够根据终端对业务质量的需求,为终端提供合适的漫游网络;且所述漫游网络接入消息中包含有数字签名,这能够防止人为地向终端发送伪造信息,进而提高了终端漫游时接入漫游网络的可靠性。In addition, since the network side can send a roaming network access message to the terminal in real time according to the attach request sent by the terminal, this enables the network side to provide the terminal with a suitable roaming network according to the terminal's demand for service quality; and the The roaming network access message contains a digital signature, which can prevent artificially sending forged information to the terminal, thereby improving the reliability of the terminal accessing the roaming network when roaming.
附图说明Description of drawings
图1为本发明实施例漫游网络的接入方法实施例一的实现流程示意图;FIG. 1 is a schematic diagram of an implementation flow of Embodiment 1 of a method for accessing a roaming network according to an embodiment of the present invention;
图2为本发明实施例漫游网络的接入方法示例一的实现流程示意图;FIG. 2 is a schematic diagram of an implementation flow of Example 1 of a method for accessing a roaming network according to an embodiment of the present invention;
图3为本发明实施例漫游网络的接入方法实施例二的实现流程示意图;FIG. 3 is a schematic diagram of an implementation flow of Embodiment 2 of a method for accessing a roaming network according to an embodiment of the present invention;
图4为本发明实施例漫游网络的接入方法示例二的实现流程示意图;FIG. 4 is a schematic diagram of an implementation flow of Example 2 of a method for accessing a roaming network according to an embodiment of the present invention;
图5为本发明实施例漫游网络的接入方法实施例三的实现流程示意图;FIG. 5 is a schematic diagram of an implementation flow of Embodiment 3 of a method for accessing a roaming network according to an embodiment of the present invention;
图6为本发明实施例漫游网络的接入装置实施例一的组成结构示意图;FIG. 6 is a schematic structural diagram of Embodiment 1 of an access device for a roaming network according to an embodiment of the present invention;
图7为本发明实施例漫游网络的接入装置实施例二的组成结构示意图一;FIG. 7 is a first compositional structure diagram of Embodiment 2 of an access device for a roaming network according to an embodiment of the present invention;
图8为本发明实施例漫游网络的接入装置实施例二的组成结构示意图二;FIG. 8 is a schematic diagram 2 of the composition and structure of Embodiment 2 of an access device for a roaming network according to an embodiment of the present invention;
图9为本发明实施例漫游网络的接入装置实施例二的组成结构示意图三;FIG. 9 is a schematic diagram 3 of composition and structure of Embodiment 2 of an access device for a roaming network according to an embodiment of the present invention;
图10为本发明实施例漫游网络的接入系统实施例的组成结构示意图;FIG. 10 is a schematic structural diagram of an embodiment of an access system for a roaming network according to an embodiment of the present invention;
图11为本发明实施例漫游网络的接入系统实施例的架构示意图。FIG. 11 is a schematic diagram of an architecture of an access system embodiment of a roaming network according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例中,网络侧接收终端发送的附着请求;根据所述附着请求生成漫游网络接入消息;向所述终端发送所述漫游网络接入消息;终端向网络侧发送附着请求,接收网络侧发送的漫游网络接入消息;确定所述漫游网络接入消息合法时,根据所述漫游网络接入消息,对漫游网络进行更新。In the embodiment of the present invention, the network side receives the attach request sent by the terminal; generates a roaming network access message according to the attach request; sends the roaming network access message to the terminal; the terminal sends the attach request to the network side, and receives the network The roaming network access message sent by the side; when it is determined that the roaming network access message is legal, the roaming network is updated according to the roaming network access message.
下面结合附图及具体实施例对本发明作进一步详细说明。The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.
本发明实施例提供一种漫游网络的接入方法,图1为本发明实施例漫游网络的接入方法实施例一的实现流程示意图,如图1所示,所述方法用于网络侧,包括以下步骤:An embodiment of the present invention provides a method for accessing a roaming network. FIG. 1 is a schematic diagram of an implementation process of Embodiment 1 of a method for accessing a roaming network according to an embodiment of the present invention. As shown in FIG. 1 , the method is used on the network side and includes The following steps:
步骤S101:接收终端发送的附着请求;Step S101: receiving an attach request sent by a terminal;
本步骤中,所述网络侧接收终端发送的附着请求,所述附着请求携带有PLMN号码;可选的,网络侧根据所述附着请求中的PLMN号码,判断所述终端是否处于漫游状态,如果所述终端处于漫游状态,则网络侧根据所述附着请求生成漫游网络接入消息;如果所述终端未处于漫游状态,则结束流程。In this step, the network side receives the attach request sent by the terminal, and the attach request carries a PLMN number; optionally, the network side judges whether the terminal is in a roaming state according to the PLMN number in the attach request, if If the terminal is in the roaming state, the network side generates a roaming network access message according to the attach request; if the terminal is not in the roaming state, the process ends.
步骤S102:根据所述附着请求生成漫游网络接入消息;Step S102: Generate a roaming network access message according to the attach request;
可选的,所述漫游网络接入消息可以包括但不限于以下一项或多项:OPLMN列表、更新时长参数、数字签名;因此,所述生成漫游网络接入消息的过程也就是生成所述OPLMN列表、更新时长参数、以及数字签名的过程。Optionally, the roaming network access message may include but not limited to one or more of the following: OPLMN list, update duration parameter, digital signature; therefore, the process of generating the roaming network access message is to generate the OPLMN list, update duration parameters, and the process of digital signature.
可选的,考虑到海外网络与国内网络的区别,当终端的漫游地为海外时,网络侧可以根据终端发送的附着请求的控制字段,并结合终端漫游地所在国家的运营商和终端归属地运营商的签约情况,判断所述终端的接入类别;这里,所述终端的接入类别,可以理解为终端接入网络的类型;目前,对于国内网络来说,数据类业务和语音类业务基本是同时进行的,即:终端的接入类别大多以数据和语音为主;而对于海外的网络,数据类业务和语音类业务则是分开的,即:终端的接入类别可以以数据为主,也可以以语音为主,具体可以根据用户的需求进行设置。Optionally, considering the difference between the overseas network and the domestic network, when the roaming location of the terminal is overseas, the network side can combine the operator of the country where the terminal is roaming and the home location of the terminal according to the control field of the attach request sent by the terminal. The operator’s contract status determines the access type of the terminal; here, the access type of the terminal can be understood as the type of terminal access network; currently, for domestic networks, data services and voice services It is basically carried out at the same time, that is, the access types of terminals are mostly data and voice; while for overseas networks, data services and voice services are separated, that is, the access types of terminals can be data-based. It can also be mainly based on voice, which can be set according to the needs of users.
因此,当终端处于海外漫游状态时,网络侧根据所述附着请求的控制字段,确定所述终端的接入类别以语音为主时,网络侧可以根据语音网络服务的质量,生成语言网络的OPLMN列表;确定所述终端的接入类别以数据为主时,可以根据数据网络服务的质量,生成数据网络的OPLMN列表。Therefore, when the terminal is in the overseas roaming state, and the network side determines that the access type of the terminal is mainly voice according to the control field of the attach request, the network side can generate the OPLMN of the language network according to the quality of the voice network service. list; when it is determined that the access type of the terminal is mainly data, an OPLMN list of the data network may be generated according to the quality of the data network service.
可选的,在实际应用中,由于网络侧会根据运营商的签约情况等对数据库进行更新,因此,网络侧需要根据终端当前漫游地的当前时间与网络数据库的最新更新时间的差值,生成更新时长参数,所述更新时长参数可以用T0表示。Optionally, in practical applications, since the network side will update the database according to the operator's contract status, etc., the network side needs to generate An update duration parameter, the update duration parameter may be represented by T0.
可选的,网络侧根据所述语音网络或数据网络的OPLMN列表的控制字段,通过加密运算的方式,生成所述OPLMN列表的数字签名,这样,可以提高生成的OPLMN列表的安全性。Optionally, the network side generates the digital signature of the OPLMN list through encryption operation according to the control field of the OPLMN list of the voice network or data network, so that the security of the generated OPLMN list can be improved.
步骤S103:向所述终端发送所述漫游网络接入消息;Step S103: sending the roaming network access message to the terminal;
本步骤中,所述网络侧将所述OPLMN列表、更新时长参数、以及数字签名封装成漫游网络接入消息发送给终端。In this step, the network side encapsulates the OPLMN list, the update duration parameter, and the digital signature into a roaming network access message and sends it to the terminal.
下面以图1所述的漫游网络的接入方法为例,通过以下具体示例对本发明至少一个实施例提供的漫游网络的接入方法进行详细介绍。Taking the roaming network access method shown in FIG. 1 as an example, the roaming network access method provided by at least one embodiment of the present invention is described in detail through the following specific examples.
示例一example one
图2为本发明实施例漫游网络的接入方法示例一的实现流程示意图,如图2所示,所述方法用于网络侧,包括以下步骤:FIG. 2 is a schematic diagram of an implementation flow of Example 1 of a roaming network access method according to an embodiment of the present invention. As shown in FIG. 2, the method is used on the network side and includes the following steps:
步骤201:接收终端发送的附着请求;Step 201: receiving an attach request sent by a terminal;
本步骤中,终端在进入漫游地时,会主动向网络侧发起接入漫游网络的附着请求。In this step, when the terminal enters a roaming location, it will actively initiate an attachment request to the network side to access the roaming network.
步骤202:根据所述附着请求中的PLMN号码,判断所述终端是否处于漫游状态,若是,则执行步骤203,若否,则结束流程;Step 202: According to the PLMN number in the attach request, determine whether the terminal is in a roaming state, if yes, execute step 203, if not, end the process;
可选的,所述附着请求携带所述终端归属地的PLMN号码,网络侧根据所述附着请求中的PLMN号码,判断所述终端是否处于漫游状态,若是,则继续执行步骤203,若否,则结束流程。Optionally, the attach request carries the PLMN number of the home location of the terminal, and the network side judges whether the terminal is in a roaming state according to the PLMN number in the attach request, if yes, proceed to step 203, if not, then end the process.
步骤203:根据所述附着请求的控制字段,判断所述终端的接入类别;Step 203: According to the control field of the attach request, determine the access type of the terminal;
可选的,考虑到海外网络与国内网络的区别,当终端的漫游地为海外时,网络侧可以根据终端发送的附着请求的控制字段,并结合终端漫游地所在国家的运营商和终端归属地运营商的签约情况,判断所述终端的接入类别;这里,所述终端的接入类别,可以理解为终端接入网络的类型;目前,对于国内网络来说,数据类业务和语音类业务基本是同时进行的,即:终端的接入类别大多以数据和语音为主;而对于海外的网络,数据类业务和语音类业务则是分开的,即:终端的接入类别可以以数据为主,也可以以语音为主,具体可以根据用户的需求进行设置。Optionally, considering the difference between the overseas network and the domestic network, when the roaming location of the terminal is overseas, the network side can combine the operator of the country where the terminal is roaming and the home location of the terminal according to the control field of the attach request sent by the terminal. The operator’s contract status determines the access type of the terminal; here, the access type of the terminal can be understood as the type of terminal access network; currently, for domestic networks, data services and voice services It is basically carried out at the same time, that is, the access types of terminals are mostly data and voice; while for overseas networks, data services and voice services are separated, that is, the access types of terminals can be data-based. It can also be mainly based on voice, which can be set according to the needs of users.
步骤204:确定所述终端的接入类别以语音为主时,根据语音网络服务的质量,生成语音网络的OPLMN列表;确定所述终端的接入类别以数据为主时,根据数据网络服务的质量,生成数据网络的OPLMN列表;Step 204: When it is determined that the terminal's access type is mainly voice, generate an OPLMN list of the voice network according to the quality of the voice network service; when it is determined that the terminal's access type is mainly data, according to the quality of the data network service Quality, to generate the OPLMN list of data networks;
可选的,所述语音网络的OPLMN列表或数据网络的OPLMN列表中的漫游网络的排列顺序即为所述网络服务质量的优先级。Optionally, the arrangement order of the roaming networks in the OPLMN list of the voice network or the OPLMN list of the data network is the priority of the service quality of the network.
步骤205:根据当前时间与网络数据库最新更新时间的差值,生成更新时长参数;Step 205: Generate an update duration parameter according to the difference between the current time and the latest update time of the network database;
可选的,在实际应用中,由于网络侧会根据运营商的签约情况等对数据库进行更新,因此,这里,网络侧需要根据终端当前漫游地的当前时间与网络数据库的最新更新时间的差值,生成更新时长参数,所述更新时长参数可以用T0表示。Optionally, in practical applications, since the network side will update the database according to the operator's subscription status, etc., here, the network side needs to base the difference between the current time of the terminal's current roaming location and the latest update time of the network database , to generate an update duration parameter, and the update duration parameter may be represented by T0.
步骤206:根据所述OPLMN列表的控制字段,生成所述OPLMN列表的数字签名;Step 206: Generate a digital signature of the OPLMN list according to the control field of the OPLMN list;
可选的,这里所述的OPLMN列表可以为语音网络的OPLMN列表,也可以为数据网络的OPLMN列表;网络侧根据所述OPLMN列表的控制字段,通过加密运算的方式,生成所述OPLMN列表的数字签名,这样,可以提高生成的OPLMN列表的安全性。Optionally, the OPLMN list described here may be the OPLMN list of the voice network, and may also be the OPLMN list of the data network; the network side generates the OPLMN list according to the control field of the OPLMN list through encryption operation. Digital signatures, in this way, can increase the security of the generated OPLMN list.
步骤207:将所述OPLMN列表、更新时长参数、以及数字签名封装成漫游网络接入消息;Step 207: Encapsulate the OPLMN list, update duration parameter, and digital signature into a roaming network access message;
步骤208:向所述终端发送所述漫游网络接入消息;Step 208: Send the roaming network access message to the terminal;
可选的,所述漫游网络接入消息可以为短信的形式,也可以为彩信或其他信息的形式。Optionally, the roaming network access message may be in the form of a short message, or in the form of a multimedia message or other information.
本发明实施例提供一种漫游网络的接入方法,图3为本发明实施例漫游网络的接入方法实施例二的实现流程示意图,如图3所示,所述方法用于终端侧,包括以下步骤:An embodiment of the present invention provides a method for accessing a roaming network. FIG. 3 is a schematic diagram of an implementation process of Embodiment 2 of a method for accessing a roaming network according to an embodiment of the present invention. As shown in FIG. 3 , the method is used on the terminal side, including The following steps:
步骤301:向网络侧发送附着请求;Step 301: Send an attach request to the network side;
本步骤中,终端通过2G/3G/4G网络向网络侧发送附着请求。In this step, the terminal sends an attach request to the network side through the 2G/3G/4G network.
步骤302:接收网络侧发送的漫游网络接入消息;Step 302: Receive a roaming network access message sent by the network side;
可选的,所述终端接收网络侧发送的漫游网络接入消息,所述漫游网络接入消息可以包括但不限于以下一项或多项:OPLMN列表、更新时长参数、数字签名。Optionally, the terminal receives a roaming network access message sent by the network side, and the roaming network access message may include but not limited to one or more of the following: OPLMN list, update duration parameter, and digital signature.
步骤303:确定所述漫游网络接入消息合法时,根据所述漫游网络接入消息,对漫游网络进行更新;Step 303: when it is determined that the roaming network access message is valid, update the roaming network according to the roaming network access message;
本步骤中,终端检索所述漫游网络接入消息的控制字段,确定所述漫游网络接入消息中含有OPLMN关键字时,从所述漫游网络接入消息中解析出数字签名;根据所述数字签名判断所述漫游网络接入消息是否合法;当所述漫游网络接入消息不合法时,结束流程;In this step, the terminal retrieves the control field of the roaming network access message, and when determining that the roaming network access message contains the OPLMN keyword, parses the digital signature from the roaming network access message; according to the digital signature Signature to determine whether the roaming network access message is legal; when the roaming network access message is illegal, end the process;
可选的,当所述漫游网络接入消息合法时,终端将最近漫游地的PLMN号码与当前漫游地的PLMN号码进行匹配;Optionally, when the roaming network access message is valid, the terminal matches the PLMN number of the nearest roaming location with the PLMN number of the current roaming location;
如果不一致,则终端根据所述漫游网络接入消息中的OPLMN列表,对漫游网络进行更新;If inconsistent, the terminal updates the roaming network according to the OPLMN list in the roaming network access message;
如果一致,则终端判断当前漫游地的网络更新时间是否超过所述漫游网络接入消息中的更新时长参数,如果当前漫游地的网络更新时间超过所述更新时长参数,则在所述终端处于语音业务空闲状态时,对漫游网络进行更新;如果当前漫游地的网络更新时间未超过所述更新时长参数,则不对漫游网络进行更新。If they are consistent, the terminal judges whether the network update time of the current roaming location exceeds the update duration parameter in the roaming network access message, and if the network update time of the current roaming location exceeds the update duration parameter, the terminal is in the voice When the service is idle, the roaming network is updated; if the network update time of the current roaming location does not exceed the update duration parameter, the roaming network is not updated.
需要说明的是,如果在所述终端处于数据业务空闲状态时,对漫游网络进行更新,可能会造成终端通讯数据的中断,因此,本发明所述的方法选择在所述终端处于语音业务空闲状态时,对漫游网络进行更新,这样可以有效地避免终端通讯数据的中断。It should be noted that if the roaming network is updated when the terminal is in the idle state of the data service, the communication data of the terminal may be interrupted. When the roaming network is updated, the interruption of terminal communication data can be effectively avoided.
可选的,在对漫游网络进行更新之后,终端选择所述OPLMN列表中高优先级的网络对漫游网络进行接入,并记录本次漫游网络更新后的PLMN号码和时间,为终端下次进行漫游选网时提供依据。Optionally, after updating the roaming network, the terminal selects a high-priority network in the OPLMN list to access the roaming network, and records the PLMN number and time after the roaming network update this time, so as to provide the terminal with the next roaming Provide a basis for network selection.
下面以图3所述的漫游网络的接入方法为例,通过以下具体示例对本发明至少一个实施例提供的漫游网络的接入方法进行详细介绍。Taking the roaming network access method shown in FIG. 3 as an example, the roaming network access method provided by at least one embodiment of the present invention is described in detail through the following specific examples.
示例二Example two
图4为本发明实施例漫游网络的接入方法示例二的实现流程示意图,如图4所示,所述方法用于终端侧,包括以下步骤:FIG. 4 is a schematic diagram of an implementation flow of Example 2 of a roaming network access method according to an embodiment of the present invention. As shown in FIG. 4, the method is used on the terminal side and includes the following steps:
步骤401:接收网络侧发送的漫游网络接入消息;Step 401: Receive a roaming network access message sent by the network side;
可选的,终端在进入漫游地时,会主动向网络侧发起接入漫游网络的附着请求,之后,终端接收网络侧发送的漫游网络接入消息;这里,所述漫游网络接入消息可以包括但不限于以下一项或多项:OPLMN列表、更新时长参数、数字签名。Optionally, when the terminal enters a roaming location, it will actively initiate an attachment request to the network side to access the roaming network, and then the terminal receives a roaming network access message sent by the network side; here, the roaming network access message may include But not limited to one or more of the following: OPLMN list, update duration parameter, digital signature.
步骤402:终端检索所述漫游网络接入消息的控制字段,判断所述漫游网络接入消息中是否含有OPLMN关键字,若是,则执行步骤403,若否,则结束流程;Step 402: The terminal retrieves the control field of the roaming network access message, and judges whether the roaming network access message contains the OPLMN keyword, if yes, executes step 403, and if not, ends the process;
可选的,当所述漫游网络接入消息中含有OPLMN关键字时,则表明所述终端处于漫游状态,此时,继续执行步骤403;如果所述漫游网络接入消息中无OPLMN关键字,则说明所述终端处于非漫游状态,则结束流程。Optionally, when the roaming network access message contains the OPLMN keyword, it indicates that the terminal is in a roaming state, and at this time, continue to perform step 403; if there is no OPLMN keyword in the roaming network access message, It means that the terminal is in a non-roaming state, and the process ends.
步骤403:从所述漫游网络接入消息中解析出所述数字签名;Step 403: Analyzing the digital signature from the roaming network access message;
步骤404:根据所述数字签名,判断所述漫游网络接入消息是否合法,若是,则执行步骤405,若否,则结束流程;Step 404: According to the digital signature, judge whether the roaming network access message is legal, if yes, execute step 405, if not, end the process;
可选的,当所述漫游网络接入消息合法时,则可以说明所述漫游网络接入消息是由运营商从网络侧发来的,此时,继续执行步骤405;当所述漫游网络接入消息不合法时,则可以说明所述漫游网络接入消息在传输过程中被篡改或伪造,则结束流程。Optionally, when the roaming network access message is legal, it may indicate that the roaming network access message is sent by the operator from the network side. At this time, continue to perform step 405; when the roaming network access message is If the incoming message is illegal, it may indicate that the roaming network access message has been tampered with or forged during transmission, and the process ends.
步骤405:将最近漫游地的PLMN号码与当前漫游地的PLMN号码进行匹配,判断两者是否一致,若是,则执行步骤409,若否,则执行步骤406;Step 405: Match the PLMN number of the nearest roaming location with the PLMN number of the current roaming location, and judge whether the two are consistent, if yes, execute step 409, if not, execute step 406;
可选的,当最近漫游地的PLMN号码与当前漫游地的PLMN号码一致时,表明所述终端当前漫游地与最近漫游地相同;Optionally, when the PLMN number of the latest roaming place is consistent with the PLMN number of the current roaming place, it indicates that the current roaming place of the terminal is the same as the latest roaming place;
当最近漫游地的PLMN号码与当前漫游地的PLMN号码不一致时,表明所述终端当前漫游地与最近漫游地不同,即:终端进入了新的漫游地。When the PLMN number of the latest roaming location is inconsistent with the PLMN number of the current roaming location, it indicates that the current roaming location of the terminal is different from the latest roaming location, that is, the terminal has entered a new roaming location.
步骤406:根据所述漫游网络接入消息中的OPLMN列表,对漫游网络进行更新;Step 406: Update the roaming network according to the OPLMN list in the roaming network access message;
步骤407:选择所述OPLMN列表中高优先级的网络对漫游网络进行接入;Step 407: Select a high-priority network in the OPLMN list to access the roaming network;
步骤408:记录本次漫游网络更新后的PLMN号码和时间;Step 408: Record the updated PLMN number and time of this roaming network;
可选的,通过记录本次漫游网络更新后的PLMN号码和时间,可以为终端下次进行漫游选网时提供依据。Optionally, by recording the updated PLMN number and time of the roaming network this time, a basis can be provided for the terminal to select a network for roaming next time.
步骤409:判断当前漫游地的网络更新时间是否超过所述漫游网络接入消息中的更新时长参数,若是,则执行步骤410,若否,则执行步骤411;Step 409: Determine whether the network update time of the current roaming location exceeds the update duration parameter in the roaming network access message, if yes, execute step 410, if not, execute step 411;
可选的,如果当前漫游地的网络更新时间超过所述更新时长参数,则说明当前漫游地的网络数据库中的数据已经更新过,此时,继续执行步骤410;如果当前漫游地的网络更新时间未超过所述更新时长参数,则说明当前漫游地的网络数据库中的数据还未更新,此时,执行步骤411。Optionally, if the network update time of the current roaming place exceeds the update duration parameter, it indicates that the data in the network database of the current roaming place has been updated, and at this time, continue to execute step 410; if the network update time of the current roaming place If the update duration parameter is not exceeded, it means that the data in the network database of the current roaming location has not been updated. In this case, step 411 is executed.
步骤410:在所述终端处于语音业务空闲状态时,对漫游网络进行更新;Step 410: update the roaming network when the terminal is in the idle state of the voice service;
可选的,如果在所述终端处于数据业务空闲状态时,对漫游网络进行更新,可能会造成终端数据的中断,因此,选择在所述终端处于语音业务空闲状态时,对漫游网络进行更新。Optionally, if the roaming network is updated when the terminal is in the idle state of the data service, the data of the terminal may be interrupted. Therefore, it is selected to update the roaming network when the terminal is in the idle state of the voice service.
步骤411:不对漫游网络进行更新。Step 411: Do not update the roaming network.
本发明实施例提供一种漫游网络的接入方法,图5为本发明实施例漫游网络的接入方法实施例三的实现流程示意图,如图5所示,所述方法包括以下步骤:An embodiment of the present invention provides a method for accessing a roaming network. FIG. 5 is a schematic diagram of an implementation process of Embodiment 3 of a method for accessing a roaming network according to an embodiment of the present invention. As shown in FIG. 5 , the method includes the following steps:
步骤501:终端向网络侧发送附着请求;Step 501: the terminal sends an attach request to the network side;
可选的,终端在进入漫游地时,会主动向网络侧发起接入漫游网络的附着请求。Optionally, when entering a roaming location, the terminal will actively initiate an attach request to the network side to access the roaming network.
步骤502:网络侧接收终端发送的附着请求;Step 502: The network side receives the attach request sent by the terminal;
步骤503:根据所述附着请求生成漫游网络接入消息;Step 503: Generate a roaming network access message according to the attach request;
本步骤中,所述附着请求携带所述终端归属地的PLMN号码,网络侧根据所述附着请求中的PLMN号码,判断所述终端是否处于漫游状态,若否,则结束流程,若是,则网络侧根据所述附着请求的控制字段,判断所述终端的接入类别;In this step, the attachment request carries the PLMN number of the terminal’s home location, and the network side judges whether the terminal is in a roaming state according to the PLMN number in the attachment request, if not, the process ends, and if so, the network side The side judges the access type of the terminal according to the control field of the attach request;
可选的,考虑到海外网络与国内网络的区别,当终端的漫游地为海外时,网络侧可以根据终端发送的附着请求的控制字段,并结合终端漫游地所在国家的运营商和终端归属地运营商的签约情况,判断所述终端的接入类别;这里,所述终端的接入类别,可以理解为终端接入网络的类型;目前,对于国内网络来说,数据类业务和语音类业务基本是同时进行的,即:终端的接入类别大多以数据和语音为主;而对于海外的网络,数据类业务和语音类业务则是分开的,即:终端的接入类别可以以数据为主,也可以以语音为主,具体可以根据用户的需求进行设置。Optionally, considering the difference between the overseas network and the domestic network, when the roaming location of the terminal is overseas, the network side can combine the operator of the country where the terminal is roaming and the home location of the terminal according to the control field of the attach request sent by the terminal. The operator’s contract status determines the access type of the terminal; here, the access type of the terminal can be understood as the type of terminal access network; currently, for domestic networks, data services and voice services It is basically carried out at the same time, that is, the access types of terminals are mostly data and voice; while for overseas networks, data services and voice services are separated, that is, the access types of terminals can be data-based. It can also be mainly based on voice, which can be set according to the needs of users.
因此,当网络侧确定所述终端的接入类别以语音为主时,根据语音网络服务的质量,生成语音网络的OPLMN列表;确定所述终端的接入类别以数据为主时,根据数据网络服务的质量,生成数据网络的OPLMN列表;Therefore, when the network side determines that the terminal's access type is mainly voice, an OPLMN list of the voice network is generated according to the quality of the voice network service; The quality of service, generate the OPLMN list of the data network;
可选的,所述语音网络的OPLMN列表或数据网络的OPLMN列表中网络的排列顺序即为网络服务质量的优先级。Optionally, the arrangement order of the networks in the OPLMN list of the voice network or the OPLMN list of the data network is the priority of the network service quality.
在实际应用中,由于网络侧会根据运营商的签约情况等对数据库进行更新,因此,这里,网络侧根据终端当前漫游地的当前时间与网络数据库的最新更新时间的差值,生成更新时长参数,所述更新时长参数可以用T0表示。In practical applications, since the network side will update the database according to the operator's contract status, etc., here, the network side generates an update duration parameter based on the difference between the current time of the terminal's current roaming location and the latest update time of the network database , the update duration parameter may be represented by T0.
网络侧根据所述OPLMN列表的控制字段,通过加密运算的方式,生成所述OPLMN列表的数字签名,这样,可以提高生成的OPLMN列表的安全性。The network side generates the digital signature of the OPLMN list through encryption operation according to the control field of the OPLMN list, so that the security of the generated OPLMN list can be improved.
可选的,网络侧将所述OPLMN列表、更新时长参数、以及数字签名封装成漫游网络接入消息。Optionally, the network side encapsulates the OPLMN list, the update duration parameter, and the digital signature into a roaming network access message.
步骤504:向所述终端发送所述漫游网络接入消息;Step 504: Send the roaming network access message to the terminal;
步骤505:终端接收所述网络发送的漫游网络接入消息;Step 505: The terminal receives a roaming network access message sent by the network;
可选的,所述漫游网络接入消息可以包括但不限于以下一项或多项:OPLMN列表、更新时长参数、数字签名。Optionally, the roaming network access message may include, but not limited to, one or more of the following: OPLMN list, update duration parameter, and digital signature.
步骤506:确定所述漫游网络接入消息合法时,根据所述漫游网络接入消息,对漫游网络进行更新;Step 506: When it is determined that the roaming network access message is valid, update the roaming network according to the roaming network access message;
本步骤中,终端检索所述漫游网络接入消息的控制字段,判断所述漫游网络接入消息中是否含有OPLMN关键字,若否,则结束流程,若是,则从所述漫游网络接入消息中解析出所述数字签名,根据所述数字签名,判断所述漫游网络接入消息是否合法;In this step, the terminal retrieves the control field of the roaming network access message, and judges whether the roaming network access message contains the OPLMN keyword, if not, ends the process, and if so, accesses the roaming network message from the roaming network Analyzing the digital signature, and judging whether the roaming network access message is legal according to the digital signature;
可选的,当所述漫游网络接入消息不合法时,则可以说明所述漫游网络接入消息在传输过程中被篡改或伪造,则结束流程;当所述漫游网络接入消息合法时,则可以说明所述漫游网络接入消息是由运营商从网络侧发来的,此时,终端将最近漫游地的PLMN号码与当前漫游地的PLMN号码进行匹配,判断两者是否一致;Optionally, when the roaming network access message is illegal, it may indicate that the roaming network access message has been tampered with or forged during transmission, and the process ends; when the roaming network access message is legal, Then it can be explained that the roaming network access message is sent by the operator from the network side. At this time, the terminal matches the PLMN number of the nearest roaming location with the PLMN number of the current roaming location, and determines whether the two are consistent;
可选的,当最近漫游地的PLMN号码与当前漫游地的PLMN号码一致时,表明所述终端当前漫游地与最近漫游地相同,此时,终端进一步判断当前漫游地的网络更新时间是否超过所述漫游网络接入消息中的更新时长参数;Optionally, when the PLMN number of the latest roaming location is consistent with the PLMN number of the current roaming location, it indicates that the current roaming location of the terminal is the same as the latest roaming location. At this time, the terminal further determines whether the network update time of the current roaming location exceeds the specified The update duration parameter in the roaming network access message;
如果当前漫游地的网络更新时间超过所述更新时长参数,则说明当前漫游地的网络数据库中的数据已经更新过,此时,在所述终端处于语音业务空闲状态时,对漫游网络进行更新;If the network update time of the current roaming place exceeds the update duration parameter, it means that the data in the network database of the current roaming place has been updated, and at this time, when the terminal is in the voice service idle state, the roaming network is updated;
如果当前漫游地的网络更新时间未超过所述更新时长参数,则说明当前漫游地的网络数据库中的数据还未更新,此时,不对漫游网络进行更新;If the network update time of the current roaming place does not exceed the update duration parameter, it means that the data in the network database of the current roaming place has not been updated, and at this time, the roaming network is not updated;
当最近漫游地的OPMN号码与当前漫游地的PLMN号码不一致时,表明所述终端当前漫游地与最近漫游地不同,即:终端进入了新的漫游地,此时,根据所述漫游网络接入消息中的OPLMN列表,对漫游网络进行更新;之后,终端选择所述OPLMN列表中高优先级的网络对漫游网络进行接入,并记录本次漫游网络更新后的PLMN号码和时间,为终端下次进行漫游选网时提供依据。When the OPMN number of the latest roaming location is inconsistent with the PLMN number of the current roaming location, it indicates that the current roaming location of the terminal is different from the latest roaming location, that is, the terminal has entered a new roaming location. At this time, according to the roaming network access The OPLMN list in the message updates the roaming network; after that, the terminal selects a high-priority network in the OPLMN list to access the roaming network, and records the updated PLMN number and time of the roaming network, which will be used for the terminal next time. Provide a basis for roaming network selection.
本发明实施例提供一种漫游网络的接入装置,图6为本发明实施例漫游网络的接入装置实施例一的组成结构示意图,如图6所示,所述装置设置于网络侧,包括:第一接收单元61、生成单元62、以及第一发送单元63;其中,An embodiment of the present invention provides an access device for a roaming network. FIG. 6 is a schematic diagram of the composition and structure of Embodiment 1 of an access device for a roaming network according to an embodiment of the present invention. As shown in FIG. 6 , the device is set on the network side and includes : the first receiving unit 61, the generating unit 62, and the first sending unit 63; wherein,
所述第一接收单元61,用于接收终端发送的附着请求;The first receiving unit 61 is configured to receive an attach request sent by a terminal;
可选的,所述附着请求携带PLMN号码。Optionally, the attach request carries a PLMN number.
所述生成单元62,用于根据所述附着请求生成漫游网络接入消息;The generating unit 62 is configured to generate a roaming network access message according to the attach request;
可选的,所述生成单元62,具体用于根据所述附着请求中的PLMN号码,判断所述终端处于漫游状态,如果所述终端处于漫游状态,则根据所述附着请求生成漫游网络接入消息;这里,所述漫游网络接入消息可以包括以下一项或多项:OPLMN列表、更新时长参数、数字签名。Optionally, the generating unit 62 is specifically configured to determine that the terminal is in a roaming state according to the PLMN number in the attach request, and if the terminal is in a roaming state, generate a roaming network access link according to the attach request. Message; here, the roaming network access message may include one or more of the following: OPLMN list, update duration parameter, and digital signature.
可选的,所述生成单元62,具体用于根据所述附着请求的控制字段,确定所述终端的接入类别以语音为主时,根据语音网络服务的质量,生成语音网络的OPLMN列表;确定所述终端的接入类别以数据为主时,根据数据网络服务的质量,生成数据网络的OPLMN列表。Optionally, the generating unit 62 is specifically configured to generate an OPLMN list of the voice network according to the quality of the voice network service when determining that the terminal's access type is mainly voice according to the control field of the attach request; When it is determined that the terminal's access category is mainly data, an OPLMN list of the data network is generated according to the quality of the data network service.
可选的,所述生成单元62,还用于根据当前时间与网络数据库最新更新时间的差值,生成所述更新时长参数;Optionally, the generating unit 62 is further configured to generate the update duration parameter according to the difference between the current time and the latest update time of the network database;
所述生成单元62,还用于根据所述OPLMN列表的控制字段,生成所述OPLMN列表的数字签名;The generating unit 62 is further configured to generate a digital signature of the OPLMN list according to the control field of the OPLMN list;
可选的,所述生成单元62,具体用于将所述OPLMN列表、更新时长参数、以及数字签名封装成漫游网络接入消息。Optionally, the generating unit 62 is specifically configured to encapsulate the OPLMN list, the update duration parameter, and the digital signature into a roaming network access message.
所述第一发送单元63,用于向所述终端发送所述漫游网络接入消息。The first sending unit 63 is configured to send the roaming network access message to the terminal.
本发明实施例提供一种漫游网络的接入装置,图7为本发明实施例漫游网络的接入装置实施例二的组成结构示意图一,如图7所示,所述装置设置于终端侧,包括:第二发送单元71、第二接收单元72、更新单元73;其中,An embodiment of the present invention provides a device for accessing a roaming network. FIG. 7 is a schematic diagram of the composition and structure of Embodiment 2 of an access device for a roaming network according to an embodiment of the present invention. As shown in FIG. 7 , the device is set on the terminal side. Including: a second sending unit 71, a second receiving unit 72, and an updating unit 73; wherein,
所述第二发送单元71,用于向网络侧发送附着请求;The second sending unit 71 is configured to send an attach request to the network side;
所述第二接收单元72,用于接收网络侧发送的漫游网络接入消息;The second receiving unit 72 is configured to receive a roaming network access message sent by the network side;
可选的,所述第二接收单元72接收的漫游网络接入消息可以包括但不限于以下一项或多项:OPLMN列表、更新时长参数、数字签名。Optionally, the roaming network access message received by the second receiving unit 72 may include but not limited to one or more of the following: OPLMN list, update duration parameter, and digital signature.
所述更新单元73,用于确定所述漫游网络接入消息合法时,根据所述漫游网络接入消息,对漫游网络进行更新;The updating unit 73 is configured to update the roaming network according to the roaming network access message when it is determined that the roaming network access message is valid;
可选的,所述更新单元73,具体用于检索所述漫游网络接入消息的控制字段,确定所述漫游网络接入消息中含有OPLMN关键字时,从所述漫游网络接入消息中解析出数字签名;根据所述数字签名,判断所述漫游网络接入消息是否合法;Optionally, the update unit 73 is specifically configured to retrieve the control field of the roaming network access message, and when it is determined that the roaming network access message contains the OPLMN keyword, parse the information from the roaming network access message issuing a digital signature; judging whether the roaming network access message is legal according to the digital signature;
可选的,所述更新单元73,具体用于将最近漫游地的PLMN号码与当前漫游地的PLMN号码进行匹配,如果不一致,则根据所述漫游网络接入消息中的OPLMN列表,对漫游网络进行更新;Optionally, the update unit 73 is specifically configured to match the PLMN number of the latest roaming place with the PLMN number of the current roaming place, and if they are inconsistent, then update the roaming network according to the OPLMN list in the roaming network access message. to update;
所述更新单元73,还用于在最近漫游地的PLMN号码与当前漫游地的PLMN号码一致时,判断当前漫游地的网络更新时间是否超过所述漫游网络接入消息中的更新时长参数;如果当前漫游地的网络更新时间超过所述更新时长参数,在所述终端处于语音业务空闲状态时,对漫游网络进行更新;如果当前漫游地的网络更新时间未超过所述更新时长参数,则不对漫游网络进行更新。The update unit 73 is further configured to determine whether the network update time of the current roaming place exceeds the update duration parameter in the roaming network access message when the PLMN number of the latest roaming place is consistent with the PLMN number of the current roaming place; if The network update time of the current roaming location exceeds the update duration parameter. When the terminal is in the voice service idle state, the roaming network is updated; if the network update time of the current roaming location does not exceed the update duration parameter, the roaming network is not updated. The network is updated.
可选的,所述装置还可以包括:接入单元74,如图8所示,图8为本发明实施例漫游网络的接入装置实施例二的组成结构示意图二,所述接入单元74,用于选择所述OPLMN列表中高优先级的网络对漫游网络进行接入;Optionally, the device may further include: an access unit 74, as shown in FIG. 8 , which is a schematic diagram 2 of a composition structure of Embodiment 2 of an access device for a roaming network according to an embodiment of the present invention. The access unit 74 , for selecting a high-priority network in the OPLMN list to access the roaming network;
可选的,所述装置还可以包括:记录单元75,如图9所示,图9为本发明实施例漫游网络的接入装置实施例二的组成结构示意图三,所述记录单元75,用于记录本次漫游网络更新后的PLMN号码和时间。Optionally, the device may further include: a recording unit 75, as shown in FIG. 9, which is a schematic diagram of the third composition structure of Embodiment 2 of an access device for a roaming network according to an embodiment of the present invention. The recording unit 75 uses To record the PLMN number and time after this roaming network update.
本发明实施例还提供一种漫游网络的接入系统,图10为本发明实施例漫游网络的接入系统实施例的组成结构示意图,图11为本发明实施例漫游网络的接入系统实施例的框架示意图,如图10、11所示,所述系统包括:网络侧漫游网络接入装置101、以及终端侧漫游网络接入装置102;其中,An embodiment of the present invention also provides a roaming network access system. FIG. 10 is a schematic diagram of the composition and structure of an embodiment of a roaming network access system according to an embodiment of the present invention. FIG. 11 is an embodiment of a roaming network access system according to an embodiment of the present invention. As shown in Figures 10 and 11, the system includes: a network-side roaming network access device 101, and a terminal-side roaming network access device 102; wherein,
所述网络侧漫游网络接入装置101,用于接收终端发送的附着请求,根据所述附着请求生成漫游网络接入消息,向所述终端发送所述漫游网络接入消息;The network-side roaming network access device 101 is configured to receive an attach request sent by a terminal, generate a roaming network access message according to the attach request, and send the roaming network access message to the terminal;
所述终端侧漫游网络接入装置102,用于向网络侧发送附着请求,接收网络侧发送的漫游网络接入消息,确定所述漫游网络接入消息合法时,根据所述漫游网络接入消息,对漫游网络进行更新;The terminal side roaming network access device 102 is configured to send an attach request to the network side, receive a roaming network access message sent by the network side, and when it is determined that the roaming network access message is legal, according to the roaming network access message , to update the roaming network;
可选的,所述网络侧漫游网络接入装置101可以为图6所示的装置,包括:第一接收单元61、生成单元62、以及第一发送单元63;Optionally, the network-side roaming network access device 101 may be the device shown in FIG. 6 , including: a first receiving unit 61, a generating unit 62, and a first sending unit 63;
可选的,所述终端侧漫游网络接入装置102可以为图7、图8、图9所示的装置,包括:第二发送单元71、第二接收单元72、更新单元73、接入单元74、以及记录单元75;Optionally, the terminal-side roaming network access device 102 may be the device shown in FIG. 7, FIG. 8, and FIG. 9, including: a second sending unit 71, a second receiving unit 72, an updating unit 73, an accessing unit 74, and recording unit 75;
在实际应用中,所述第一接收单元61、生成单元62、以及第一发送单元63可由位于网络侧的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)实现。In practical applications, the first receiving unit 61, the generating unit 62, and the first sending unit 63 may be composed of a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), Or Field Programmable Gate Array (FPGA) implementation.
所述第二发送单元71、第二接收单元72、更新单元73、接入单元74、以及记录单元75可由位于终端侧的CPU、MPU、DSP、或FPGA实现。The second sending unit 71 , the second receiving unit 72 , the updating unit 73 , the accessing unit 74 , and the recording unit 75 can be implemented by a CPU, MPU, DSP, or FPGA on the terminal side.
本发明实施例中所述的漫游网络的接入方法如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质上实施的计算机程序产品的形式,所述存储介质包括但不限于U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、磁盘存储器、CD-ROM、光学存储器等。If the roaming network access method described in the embodiment of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such understanding, those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code therein, including but not limited to U disk, removable hard disk, read-only memory ( ROM, Read-Only Memory), disk storage, CD-ROM, optical storage, etc.
本申请是根据本申请实施例的方法、装置、以及计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described according to the flow charts and/or block diagrams of the methods, devices, and computer program products of the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow diagram procedure or procedures and/or block diagram procedures or blocks.
相应的,本发明实施例还提供一种计算机存储介质,其中存储有计算机程序,该计算机程序用于执行本发明方法实施例中所述的漫游网络的接入方法。Correspondingly, an embodiment of the present invention further provides a computer storage medium, in which a computer program is stored, and the computer program is used to execute the method for accessing a roaming network described in the method embodiment of the present invention.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410281811.3ACN105282804B (en) | 2014-06-20 | 2014-06-20 | A method, device and system for accessing a roaming network |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201410281811.3ACN105282804B (en) | 2014-06-20 | 2014-06-20 | A method, device and system for accessing a roaming network |
| Publication Number | Publication Date |
|---|---|
| CN105282804Atrue CN105282804A (en) | 2016-01-27 |
| CN105282804B CN105282804B (en) | 2019-06-21 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201410281811.3AActiveCN105282804B (en) | 2014-06-20 | 2014-06-20 | A method, device and system for accessing a roaming network |
| Country | Link |
|---|---|
| CN (1) | CN105282804B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112464048A (en)* | 2020-12-08 | 2021-03-09 | 深圳市广和通无线股份有限公司 | Configuration parameter updating and loading method and device, computer equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1968502A (en)* | 2006-04-14 | 2007-05-23 | 华为技术有限公司 | Method and system for controlling roaming subscriber to access network |
| CN101478746A (en)* | 2008-12-30 | 2009-07-08 | 深圳华为通信技术有限公司 | Method and terminal for limiting terminal registration network range |
| US20090247160A1 (en)* | 2005-09-02 | 2009-10-01 | Nec Corporation | Method for optimizing search communication network by mobile communications terminal |
| US20110014913A1 (en)* | 2009-07-20 | 2011-01-20 | Young Cheul Yoon | Enhancements for multi-mode system selection (mmss) and mmss system priority lists (mspls) |
| CN102724735A (en)* | 2012-05-28 | 2012-10-10 | 中兴通讯股份有限公司 | Method, device and terminal for selecting public land mobile network (PLMN) |
| CN103339973A (en)* | 2011-01-27 | 2013-10-02 | 高通股份有限公司 | System and method of decreasing time to begin acquisition of cellular networks after power up |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090247160A1 (en)* | 2005-09-02 | 2009-10-01 | Nec Corporation | Method for optimizing search communication network by mobile communications terminal |
| CN1968502A (en)* | 2006-04-14 | 2007-05-23 | 华为技术有限公司 | Method and system for controlling roaming subscriber to access network |
| CN101478746A (en)* | 2008-12-30 | 2009-07-08 | 深圳华为通信技术有限公司 | Method and terminal for limiting terminal registration network range |
| US20110014913A1 (en)* | 2009-07-20 | 2011-01-20 | Young Cheul Yoon | Enhancements for multi-mode system selection (mmss) and mmss system priority lists (mspls) |
| CN103339973A (en)* | 2011-01-27 | 2013-10-02 | 高通股份有限公司 | System and method of decreasing time to begin acquisition of cellular networks after power up |
| CN102724735A (en)* | 2012-05-28 | 2012-10-10 | 中兴通讯股份有限公司 | Method, device and terminal for selecting public land mobile network (PLMN) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112464048A (en)* | 2020-12-08 | 2021-03-09 | 深圳市广和通无线股份有限公司 | Configuration parameter updating and loading method and device, computer equipment and storage medium |
| Publication number | Publication date |
|---|---|
| CN105282804B (en) | 2019-06-21 |
| Publication | Publication Date | Title |
|---|---|---|
| US9774642B2 (en) | Method and device for pushing multimedia resource and display terminal | |
| CN107800795A (en) | The processing method and processing device of block information | |
| EP3136677A1 (en) | Voice verification method, device and system | |
| HUE028290T2 (en) | Identification of a manipulated or defect base station during handover | |
| RU2011106127A (en) | RATING CONTENT MESSAGES FOR CONTROLLING CONTENTS IN WIRELESS DEVICES | |
| KR20090026200A (en) | Method and apparatus for providing service notification in a network environment | |
| US9591485B2 (en) | Provisioning subscriptions to user devices | |
| WO2021111213A1 (en) | User plane function load control | |
| WO2016165505A1 (en) | Connection control method and apparatus | |
| CN104038917A (en) | Method and device for terminal roaming authentication | |
| JP2018537921A (en) | Identification method and apparatus based on communication flow of different functions of Skype | |
| US10382305B2 (en) | Applying sequenced instructions to connect through captive portals | |
| CN110913011A (en) | Session keeping method, session keeping device, readable storage medium and electronic equipment | |
| JP2016502825A (en) | Access control method and apparatus | |
| EP3054728B1 (en) | Mobility management method and system | |
| CN105282804B (en) | A method, device and system for accessing a roaming network | |
| WO2024099875A1 (en) | Security for ai/ml model storage and sharing | |
| CN116963055A (en) | Authentication method, authentication device, authentication apparatus, authentication storage medium, and authentication program product | |
| CN112837019A (en) | Method, device and device for pushing express track data | |
| CN107979580A (en) | A kind of access control method, device and server | |
| US8700900B2 (en) | Communicating admission decisions and status information to a client | |
| CN113239297A (en) | Message pushing method, system and storage medium | |
| CN107306396B (en) | Flow control method and network equipment | |
| CN113455035B (en) | Method and apparatus for downloading a bundle to a smart security platform by using an activation code | |
| CN116132578B (en) | Call evidence storage method, device, equipment and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |