[go: up one dir, main page]

CN106488500B - A method and device for self-adaptation between public network and private network - Google Patents

A method and device for self-adaptation between public network and private network Download PDF

Info

Publication number
CN106488500B
CN106488500B CN201610806856.7A CN201610806856A CN106488500B CN 106488500 B CN106488500 B CN 106488500B CN 201610806856 A CN201610806856 A CN 201610806856A CN 106488500 B CN106488500 B CN 106488500B
Authority
CN
China
Prior art keywords
private network
network
terminal
congestion
load
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610806856.7A
Other languages
Chinese (zh)
Other versions
CN106488500A (en
Inventor
欧清海
甄岩
何清素
曾令康
李温静
王俊生
王海军
廖逍
于华东
刘柱
李丽丽
张喆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING HUITONG JINCAI INFORMATION TECHNOLOGY Co Ltd
State Grid Information and Telecommunication Group Co Ltd
State Grid Jiangsu Electric Power Co Ltd
State Grid Corp of China SGCC
Original Assignee
BEIJING HUITONG JINCAI INFORMATION TECHNOLOGY Co Ltd
State Grid Information and Telecommunication Group Co Ltd
State Grid Jiangsu Electric Power Co Ltd
State Grid Corp of China SGCC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING HUITONG JINCAI INFORMATION TECHNOLOGY Co Ltd, State Grid Information and Telecommunication Group Co Ltd, State Grid Jiangsu Electric Power Co Ltd, State Grid Corp of China SGCC filed Critical BEIJING HUITONG JINCAI INFORMATION TECHNOLOGY Co Ltd
Priority to CN201610806856.7A priority Critical patent/CN106488500B/en
Publication of CN106488500A publication Critical patent/CN106488500A/en
Application granted granted Critical
Publication of CN106488500B publication Critical patent/CN106488500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0289Congestion control

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种公网与专网自适应的方法及装置,所述方法包括:专网拥塞时断开选定的部分终端;修改专网广播标识,并设置有禁止接入专网的信息;公网按照预设周期向专网发送负载查询请求;专网接收负载查询请求,查询网络负载并判断网络负载是否小于预设的负载阈值;若网络负载小于预设的负载阈值,则向公网反馈拥塞解除指令,并且修改专网广播标识,使广播标识中设置有许可接入专网的信息;公网接收专网反馈的拥塞解除指令,并根据拥塞解除指令中的信息,断开已连接的终端,使终端重新连接到专网。所述公网与专网自适应的方法及装置不仅能够有效解决公网的拥塞问题,而且在专网解除拥塞时能够使得处于公网中的终端返回到专网。

The invention discloses a method and device for self-adapting between a public network and a private network. The method includes: disconnecting selected partial terminals when the private network is congested; modifying the broadcast logo of the private network; Information; the public network sends a load query request to the private network according to the preset period; the private network receives the load query request, queries the network load and judges whether the network load is less than the preset load threshold; The public network feeds back the congestion relief command, and modifies the broadcast identifier of the private network, so that the broadcast identifier is set with information that allows access to the private network; the public network receives the congestion relief command fed back by the private network, and disconnects according to the information in the congestion relief command. Connected terminal, make the terminal reconnect to the private network. The method and device for adapting the public network to the private network can not only effectively solve the congestion problem of the public network, but also enable the terminals in the public network to return to the private network when the congestion of the private network is relieved.

Description

一种公网与专网自适应的方法及装置A method and device for self-adaptation between public network and private network

技术领域technical field

本发明涉及网络通讯技术领域,特别是指一种公网与专网自适应的方法及装置。The invention relates to the technical field of network communication, in particular to a method and device for self-adaptation between a public network and a private network.

背景技术Background technique

网络越来越成为人们生产、生活中必不可少的一个组成部分,而为了应对多样化的使用需求,目前在一些特殊领域、独立小区或者特殊部门单位中,经常同时设置有专用网络(简称专网)和共用网络(简称公网)。当公网和专网同时存在时,需要判断终端应该接入哪一种网络。一般来说,在这些区域中,基于安全等因素,终端应该主要在专网进行工作。但是,对于目前的无线网络来说,专网的资源相对匮乏,因此,过多的终端同时工作在专网中将会使得专网超负荷运行,也即专网将会发生拥塞情形,导致用户终端的使用出现卡顿等不良现象。而此时公网中的资源又不能得到充分利用。The network has increasingly become an indispensable part of people's production and life. In order to meet the diverse needs of use, at present, in some special fields, independent communities or special department units, dedicated networks (dedicated networks for short) are often set up at the same time. network) and shared network (referred to as the public network). When the public network and the private network exist at the same time, it is necessary to determine which network the terminal should access. Generally speaking, in these areas, based on factors such as security, terminals should mainly work on private networks. However, for the current wireless network, the resources of the private network are relatively scarce. Therefore, too many terminals working in the private network at the same time will overload the private network, that is, the private network will be congested, causing users Undesirable phenomena such as stuttering occur in the use of the terminal. At this time, the resources in the public network cannot be fully utilized.

针对专网出现拥塞的问题,一方面,用户终端可能会主动断开专网进而连接到公网中。这样,不仅操作麻烦,而且随机性较大,不能保证解决专网拥塞的问题。而且当专网恢复通畅时,处于公网中的终端不能自动切换到专网中,虽然这些终端可以通过关机重启返回到专网,但此时如果专网依然拥塞,则会导致回到专网失败,同时,在关机重启期间,终端不能进行相关业务操作,大大影响用户的使用和体验。To solve the problem of congestion in the private network, on the one hand, user terminals may actively disconnect from the private network and then connect to the public network. In this way, not only the operation is cumbersome, but also the randomness is large, which cannot guarantee to solve the problem of private network congestion. Moreover, when the private network becomes unobstructed, the terminals in the public network cannot automatically switch to the private network. Although these terminals can return to the private network by shutting down and restarting, if the private network is still congested at this time, it will lead to returning to the private network. At the same time, during the shutdown and restart period, the terminal cannot perform related business operations, which greatly affects the user's use and experience.

另一方面,在专网出现拥塞时,专网不能阻止新的用户终端尝试接入专网,不仅会加重或者重新导致拥塞的情形,而且会造成用户终端反复重试接入专网,最终导致终端连接专网的效率较低并且极大的影响终端用户的使用体验。On the other hand, when the private network is congested, the private network cannot prevent new user terminals from trying to access the private network. The efficiency of connecting the terminal to the private network is low and greatly affects the user experience of the terminal user.

因此,发明人在实现本发明的过程中发现现有技术至少存在以下问题:现有网络系统中同时设置有专网和公网时,不仅无法有效解决专网的拥塞问题,而且当专网恢复时,不能使处于公网中的终端及时回到专网。Therefore, in the process of implementing the present invention, the inventor found that the prior art has at least the following problems: when the existing network system is equipped with private network and public network at the same time, not only cannot effectively solve the congestion problem of the private network, but also when the private network is restored , the terminals in the public network cannot be returned to the private network in time.

发明内容Contents of the invention

有鉴于此,本发明的目的在于提出一种公网与专网自适应的方法及装置,不仅能够有效解决公网的拥塞问题,而且在专网解除拥塞时能够使得处于公网中的终端返回到专网。In view of this, the purpose of the present invention is to propose a method and device for self-adaptation between the public network and the private network, which can not only effectively solve the congestion problem of the public network, but also enable the terminals in the public network to return to the private network.

基于上述目的本发明提供的一种公网与专网自适应的方法,包括:Based on the above purpose, the present invention provides a method for adapting public network and private network, including:

检测到专网出现拥塞时,在专网中按照预设的算法选定部分终端,并断开所述选定部分终端的数据连接;When congestion in the private network is detected, select some terminals in the private network according to a preset algorithm, and disconnect the data connections of the selected terminals;

修改专网广播标识,使所述广播标识中设置有禁止接入专网的信息;Modifying the broadcast logo of the private network, so that the broadcast logo is set with information that prohibits access to the private network;

按照预设的时间周期,公网向专网发送负载查询请求;According to the preset time period, the public network sends a load query request to the private network;

专网接收公网发送的负载查询请求,查询当前的网络负载,并判断专网当前的网络负载是否小于预设的负载阈值;若当前的网络负载小于预设的负载阈值,则向公网反馈拥塞解除指令,并且修改专网广播标识,使所述广播标识中设置有许可接入专网的信息;The private network receives the load query request sent by the public network, queries the current network load, and judges whether the current network load of the private network is less than the preset load threshold; if the current network load is less than the preset load threshold, it will feedback to the public network Congestion release instruction, and modify the private network broadcast identification, so that the broadcast identification is set with the information of permission to access the private network;

公网接收专网反馈的拥塞解除指令,并根据所述拥塞解除指令中的信息,断开已连接的终端,使终端重新连接到专网。The public network receives the congestion relief instruction fed back from the private network, and according to the information in the congestion relief instruction, disconnects the connected terminal so that the terminal reconnects to the private network.

可选的,所述检测到专网出现拥塞的步骤包括:Optionally, the step of detecting congestion in the private network includes:

在专网中预先设置有网络拥塞阈值;The network congestion threshold is preset in the private network;

实时监测当前专网中的网络负载,并判断所述网络负载是否大于预设的网络拥塞阈值;Monitor the network load in the current private network in real time, and judge whether the network load is greater than the preset network congestion threshold;

若是,则提示专网出现拥塞;If yes, it will prompt that the private network is congested;

否则,继续监测专网中的网络负载。Otherwise, continue to monitor the network load in the private network.

可选的,所述网络负载包括网络数据流量、已连接的终端数量、响应时间中的一种或多种。Optionally, the network load includes one or more of network data traffic, the number of connected terminals, and response time.

可选的,所述在专网中按照预设的算法选定部分终端的步骤包括:Optionally, the step of selecting some terminals in the private network according to a preset algorithm includes:

针对所有终端分别预先设置有不同的优先级标签;Different priority labels are preset for all terminals;

获取已连接终端的优先级标签,并按照标签的优先级从高到低进行排序;Obtain the priority tags of connected terminals and sort them according to the priority of the tags from high to low;

根据拥塞情况,按照优先级从低到高的顺序选定预设数量的终端。According to the congestion situation, a preset number of terminals are selected in order of priority from low to high.

可选的,所述在专网中按照预设的算法选定部分终端的步骤包括:Optionally, the step of selecting some terminals in the private network according to a preset algorithm includes:

根据终端接入专网的信息,统计终端连接到专网的接入时间、终端携带的等级信息、终端的事件类型;According to the information of the terminal's access to the private network, the statistics of the terminal's access time to the private network, the level information carried by the terminal, and the event type of the terminal;

分别对终端连接到专网的接入时间、终端携带的等级信息、终端的事件类型赋予不同的权重值,并且求得每个终端的总权重;Assign different weight values to the access time of the terminal connected to the private network, the level information carried by the terminal, and the event type of the terminal, and obtain the total weight of each terminal;

根据拥塞情况,按照总权重从低到高的顺序选定预设数量的终端。According to the congestion situation, a preset number of terminals are selected in descending order of the total weight.

可选的,所述修改专网广播标识的步骤还包括:Optionally, the step of modifying the private network broadcast identifier further includes:

在专网中设置专网接入的优先级标签,使所述专网接入的优先级标签低于所述公网中预设的公网接入优先级标签,使终端优先接入公网;Setting the priority label of private network access in the private network, so that the priority label of the private network access is lower than the preset public network access priority label in the public network, so that the terminal preferentially accesses the public network ;

或者,使所述专网接入的优先级标签高于所述公网中预设的公网接入优先级标签,使终端优先接入专网。Or, make the priority label of the private network access higher than the preset public network access priority label in the public network, so that the terminal preferentially accesses the private network.

可选的,所述判断专网当前的网络负载是否小于预设的负载阈值的步骤之后还包括:Optionally, after the step of judging whether the current network load of the private network is less than a preset load threshold, the step further includes:

若当前的网络负载大于或等于预设的负载阈值,则向公网反馈拥塞未解除指令。If the current network load is greater than or equal to the preset load threshold, a congestion unrelieved instruction is fed back to the public network.

可选的,所述根据所述拥塞解除指令中的信息,断开已连接的终端的步骤还包括:Optionally, according to the information in the congestion relief instruction, the step of disconnecting the connected terminal further includes:

针对所有终端分别预先设置有不同的优先级标签;Different priority labels are preset for all terminals;

根据所述拥塞指令中包含的专网负载信息确定当前专网可接入终端的数量;determining the number of terminals accessible to the current private network according to the private network load information included in the congestion instruction;

在公网中按照终端的优先级标签,并根据当前专网可接入终端的数量,从高到低选择相同数量的终端,并断开这些终端的数据连接。In the public network, according to the priority labels of the terminals, and according to the number of terminals that can be accessed in the current private network, select the same number of terminals from high to low, and disconnect the data connections of these terminals.

可选的,针对所有终端分别预先设置有不同的优先级标签;Optionally, different priority labels are preset for all terminals;

所述修改专网广播标识,使所述广播标识中设置有禁止接入专网的信息的步骤之后包括:After the step of modifying the broadcast identifier of the private network so that the broadcast identifier is set with information prohibiting access to the private network, it includes:

终端检测到广播标识中禁止接入专网的信息后,根据终端中的优先级标签等级,判断是否继续接入专网中;After the terminal detects the information prohibiting access to the private network in the broadcast identifier, it judges whether to continue to access the private network according to the priority label level in the terminal;

若终端中的优先级等级高于预设等级阈值,则继续接入专网;If the priority level in the terminal is higher than the preset level threshold, continue to access the private network;

否则,禁止接入专网。Otherwise, access to the private network is prohibited.

本发明实施例还提供了一种公网与专网自适应的装置,包括:The embodiment of the present invention also provides an adaptive device for public network and private network, including:

拥塞处理模块,用于检测到专网出现拥塞时,在专网中按照预设的算法选定部分终端,断开所述选定部分终端的数据连接;向广播修改模块发送广播修改指令;向公网处理模块发送拥塞启动指令;The congestion processing module is used to select some terminals in the private network according to a preset algorithm when congestion occurs in the private network, and disconnect the data connection of the selected part of the terminals; send a broadcast modification instruction to the broadcast modification module; The public network processing module sends a congestion start instruction;

广播修改模块,用于接收拥塞处理模块发送的广播修改指令,修改专网广播标识,使所述广播标识中设置有禁止接入专网的信息;用于接收拥塞解除模块发送的广播修改指令,修改专网广播标识,使所述广播标识中设置有许可接入专网的信息;The broadcast modification module is used to receive the broadcast modification instruction sent by the congestion processing module, modify the private network broadcast identification, so that the broadcast identification is set with information that prohibits access to the private network; for receiving the broadcast modification instruction sent by the congestion removal module, Modifying the broadcast identifier of the private network, so that the broadcast identifier is set with information that allows access to the private network;

公网处理模块,用于接收所述拥塞处理模块发送的拥塞启动指令,按照预设的时间周期,向拥塞解除模块发送负载查询请求,并根据反馈的拥塞解除指令以及,所述拥塞解除指令中的信息,断开已连接的终端,使终端重新连接到专网;The public network processing module is configured to receive the congestion start instruction sent by the congestion processing module, send a load query request to the congestion relief module according to a preset time period, and according to the feedback congestion relief instruction and, in the congestion relief instruction information, disconnect the connected terminal, and reconnect the terminal to the private network;

拥塞解除模块,用于接收所述公网处理模块发送的负载查询请求,查询当前的网络负载,并判断专网当前的网络负载是否小于预设的负载阈值;若当前的网络负载小于预设的负载阈值,则向公网处理模块反馈拥塞解除指令,并向广播修改模块发送广播修改指令。Congestion removal module, for receiving the load query request sent by the public network processing module, querying the current network load, and judging whether the current network load of the private network is less than the preset load threshold; if the current network load is less than the preset load threshold, feed back the congestion relief instruction to the public network processing module, and send the broadcast modification instruction to the broadcast modification module.

从上面所述可以看出,本发明提供的公网与专网自适应的方法及装置,当专网出现拥塞时,按照预定算法断开部分已连接的终端,解决专网的拥塞问题,然后在专网广播中设置有禁止接入专网的信息,使得新的终端也不能连接到专网中,既保证了专网不会由于新终端的接入而在此发送拥塞,而且使得新终端直接连接到资源丰富的公网中,大大提高了网络连接管理的效率。基于专网出现了拥塞,那么可能有终端连接到了公网中,所以当专网拥塞解除时,需要使终端(包括已连接公网的终端和准备连接网络的新终端)连接到专网中,而本发明通过使得公网按照预设的时间周期向专网发送负载查询请求,专网将会根据查询结果反馈指令给公网,若查询得到专网网络负载小于预设的负载阈值,则专网向公网发送拥塞解除指令,并在广播标识中设置有许可接入专网的信息,使得准备连接网络的新终端能够连接到专网,同时公网接收到拥塞解除指令后,将会根据指令中的信息,解除已连接的终端,进而使得终端重新连接到专网中。因此,所述公网与专网自适应的方法及装置不仅能够有效解决公网的拥塞问题,而且在专网解除拥塞时能够使得处于公网中的终端返回到专网。As can be seen from the above, the method and device for adapting the public network and the private network provided by the present invention, when the private network is congested, part of the connected terminals are disconnected according to a predetermined algorithm to solve the congestion problem of the private network, and then In the private network broadcast, there is information prohibiting access to the private network, so that new terminals cannot be connected to the private network, which not only ensures that the private network will not be congested due to the access of new terminals, but also makes new terminals Directly connected to the resource-rich public network, greatly improving the efficiency of network connection management. Based on the congestion of the private network, there may be terminals connected to the public network. Therefore, when the congestion of the private network is relieved, it is necessary to connect the terminals (including terminals connected to the public network and new terminals ready to connect to the network) to the private network. However, the present invention makes the public network send a load query request to the private network according to the preset time period, and the private network will feed back instructions to the public network according to the query results. The network sends a congestion relief command to the public network, and sets information that allows access to the private network in the broadcast identifier, so that new terminals that are ready to connect to the network can connect to the private network. At the same time, after the public network receives the congestion relief command, it will The information in the command releases the connected terminal, and then makes the terminal reconnect to the private network. Therefore, the method and device for adapting the public network to the private network can not only effectively solve the congestion problem of the public network, but also enable the terminals in the public network to return to the private network when the congestion of the private network is relieved.

附图说明Description of drawings

图1为本发明提供的公网与专网自适应的方法的一个实施例的流程图;Fig. 1 is the flowchart of an embodiment of the method for public network and private network self-adaptation provided by the present invention;

图2为本发明提供的公网与专网自适应的方法的另一个实施例的流程图;Fig. 2 is a flow chart of another embodiment of the method for adapting the public network and the private network provided by the present invention;

图3为本发明提供的公网与专网自适应的装置一个实施例的结构示意图。FIG. 3 is a schematic structural diagram of an embodiment of a device for adapting a public network to a private network provided by the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

本发明针对目前同时设置专网与公网时,不能解决专网拥塞以及连接到公网的终端返回专网的问题,通过修改专网广播以及公网定时查询的方式,使得同时解决上述问题,最终使得所有终端能够优先连接到专网中,同时又能够克服专网由于连接终端过多而导致的拥塞问题。The present invention aims at the problems that the private network congestion and the terminals connected to the public network return to the private network cannot be solved when the private network and the public network are set at the same time, by modifying the broadcasting of the private network and the regular query mode of the public network, the above problems can be solved at the same time, Ultimately, all terminals can be preferentially connected to the private network, and at the same time, the congestion problem caused by too many connected terminals on the private network can be overcome.

具体的,参照图1所示,为本发明提供的公网与专网自适应的方法的一个实施例的流程图。所述公网与专网自适应的方法包括:Specifically, refer to FIG. 1 , which is a flowchart of an embodiment of a method for adapting a public network and a private network provided by the present invention. The method for adapting the public network and the private network includes:

步骤101,当检测到专网出现拥塞时,在专网中按照预设的算法选定部分终端,并断开所述选定部分终端的数据连接;其中,所述专网是指专用网络,且终端应当是优先工作在专网中。所述拥塞是指专网中由于连接终端过多或者连接的终端访问的数据量过大而导致的专网中出现资源不足的情形,对于用户终端来说,拥塞表现为数据访问较慢,甚至出现卡顿现象。这里,选定部分终端是指为了解决拥塞问题,减少连接到专网中终端的数量,而具体需要选定多少终端以及选定哪个终端,需要根据拥塞的情形以及预设的算法确定。例如:拥塞越严重,则可能选定的终端数量越多。Step 101, when it is detected that the private network is congested, select some terminals in the private network according to a preset algorithm, and disconnect the data connection of the selected part of the terminals; wherein, the private network refers to a private network, And the terminal should work in the private network first. The congestion refers to the shortage of resources in the private network caused by too many connected terminals or the excessive amount of data accessed by the connected terminals. For user terminals, congestion is manifested as slow data access, or even Caton phenomenon occurs. Here, selecting some terminals refers to reducing the number of terminals connected to the private network in order to solve the congestion problem, and how many terminals need to be selected and which terminal to select need to be determined according to the congestion situation and the preset algorithm. For example: the more severe the congestion, the more terminals may be selected.

步骤102,修改专网广播标识,使所述广播标识中设置有禁止接入专网的信息;其中,终端连接网络的大致原理为:网络段会不断向固定区域内发送广播信号,当终端检测到该广播信号时,才能够根据所述广播信号中包含的信息连接到网络中。本发明为了在拥塞期间,不会有新的终端请求连接到专网中,因此,需要修改专网广播标识,也即在专网广播中设置禁止接入专网的信息;而准备连接专网的终端发现专网广播中包含的禁止接入专网的信息,则不会接入专网,而是接入到公网中。这样,既不会造成专网的再次拥塞,又使得新终端能够及时连接到资源丰富的公网中。Step 102, modify the private network broadcast logo, so that the broadcast logo is set with information that prohibits access to the private network; wherein, the general principle of the terminal connecting to the network is: the network segment will continuously send broadcast signals to the fixed area, when the terminal detects Only when the broadcast signal is received, can the network be connected to the network according to the information contained in the broadcast signal. In the present invention, there will be no new terminal request to connect to the private network during the congestion period, therefore, it is necessary to modify the private network broadcast identifier, that is, set the information prohibiting access to the private network in the private network broadcast; and prepare to connect to the private network If the terminal discovers the information prohibited from accessing the private network contained in the broadcast of the private network, it will not access the private network, but connect to the public network. In this way, the private network will not be congested again, and new terminals can be connected to the resource-rich public network in time.

步骤103,按照预设的时间周期,公网向专网发送负载查询请求;其中,所述预设的时间周期是预先根据网络设备以及网络使用情况等条件,设定的查询频率的一个参考值,而这一时间周期可以根据实际情况相应的调整。基于目前核心网大多都只支持查询相应的通讯方式,所以需要公网向专网发送查询请求,才能够使得专网相应,因此,在现有核心网结构的前提下,采用该步骤能够更加容易实现,并且成本更低。当然,还可以通过更改核心网的设置,使得专网主动定时查询负载,并且将查询结果反馈到公网中。这样,可以节省发送请求的步骤,进而提高专网与公网自适应的效率。Step 103, according to the preset time period, the public network sends a load query request to the private network; wherein, the preset time period is a reference value of the query frequency set in advance according to conditions such as network equipment and network usage , and this time period can be adjusted accordingly according to the actual situation. Based on the fact that most of the current core networks only support querying the corresponding communication methods, it is necessary for the public network to send query requests to the private network to make the private network respond. Therefore, under the premise of the existing core network structure, it is easier to adopt this step achieved, and at a lower cost. Of course, by changing the settings of the core network, the private network can actively query the load regularly and feed back the query results to the public network. In this way, the steps of sending the request can be saved, thereby improving the efficiency of self-adaptation between the private network and the public network.

需要说明的是,步骤103中的前提既可以是步骤101,也可以没有前提条件。也即,可以设置公网一直定时发送查询请求,或者,需要等待专网发生时过拥塞时,才启动查询步骤。又或者,需要在公网中判断是否具有应当连接到专网的终端(例如专用终端),只有当检测到公网中具有专用终端时,才会启动查询步骤。It should be noted that the precondition in step 103 may be the same as step 101, or there may be no precondition. That is to say, the public network can be set to send query requests regularly all the time, or the query step needs to be started only when the private network is over-congested. Alternatively, it is necessary to determine whether there is a terminal (such as a dedicated terminal) that should be connected to the private network in the public network, and only when it is detected that there is a dedicated terminal in the public network, the query step will be started.

步骤104,专网接收公网发送的负载查询请求,查询当前的网络负载;判断专网当前的网络负载是否小于预设的负载阈值;若当前的网络负载小于预设的负载阈值,则执行步骤105。Step 104, the private network receives the load query request sent by the public network, and queries the current network load; judges whether the current network load of the private network is less than the preset load threshold; if the current network load is less than the preset load threshold, then execute the step 105.

步骤105,根据步骤104,若当前的网络负载小于预设的负载阈值,则向公网反馈拥塞解除指令,并且修改专网广播标识,使所述广播标识中设置有许可接入专网的信息;其中,所述负载阈值是一个预先设定的用于判断拥塞是否解除的参考值,例如:网络资源为100,若当前终端需要的资源超过100,则将会发生拥塞,若当前终端需要的资源低于80,则表示没有拥塞,并且可以继续接入新的终端,而当当前终端需要的资源处于80-100之间时,表示处于拥塞时段,此时不能接入新的终端,否则可能发生拥塞。所述网络负载只是用于表示判断网络是否发生拥塞的参考标准,而根据现有网络技术背景,也可以选定其他的判断标准,因此,网络负载并非对本发明的限制。Step 105, according to step 104, if the current network load is less than the preset load threshold, feed back the congestion relief instruction to the public network, and modify the private network broadcast identifier so that the broadcast identifier is set with information that allows access to the private network ; Wherein, the load threshold is a preset reference value for judging whether the congestion is relieved, for example, if the network resource is 100, if the current terminal needs more than 100 resources, congestion will occur, if the current terminal needs If the resource is lower than 80, it means that there is no congestion, and new terminals can continue to be connected, and when the resource required by the current terminal is between 80 and 100, it means that it is in a congestion period, and new terminals cannot be connected at this time, otherwise it may Congestion occurs. The network load is just a reference standard for judging whether the network is congested, and other judging standards can also be selected according to the background of the existing network technology. Therefore, the network load is not a limitation of the present invention.

步骤106,公网接收专网反馈的拥塞解除指令,并根据所述拥塞解除指令中的信息,断开已连接的终端,使终端重新连接到专网。其中,所述拥塞解除指令只是为了表示反馈指令中包含拥塞解除的信息,用于提示公网,专网的拥塞已经解除。在拥塞发生时,很可能有部分的终端连接到了公网上,而当专网解除拥塞时,已处于连接公网状态的终端由于不能识别专网何时解除拥塞,通常不会主动连接到专网,因此,需要专网向公网发送拥塞解除指令,使得公网将已连接的终端断开,然后基于专网的广播已更改为许可连接,因此,这些终端将会重新连接到专网中。Step 106, the public network receives the congestion relief instruction fed back from the private network, and according to the information in the congestion relief instruction, disconnects the connected terminal and reconnects the terminal to the private network. Wherein, the congestion relief instruction is only to indicate that the feedback instruction contains congestion relief information, and is used to prompt the public network that the congestion of the private network has been relieved. When congestion occurs, it is likely that some terminals are connected to the public network. When the private network is uncongested, the terminals that are already connected to the public network will not actively connect to the private network because they cannot recognize when the private network is uncongested. , therefore, the private network needs to send a congestion relief command to the public network, so that the public network disconnects the connected terminals, and then the broadcast based on the private network has been changed to a permitted connection, so these terminals will be reconnected to the private network.

由上述实施例可知,上述公网与专网自适应的方法,通过在专网出现拥塞时,按照预定算法断开部分已连接的终端,解决专网的拥塞问题,然后在专网广播中设置有禁止接入专网的信息,使得新的终端也不能连接到专网中,既保证了专网不会由于新终端的接入而在此发送拥塞,而且使得新终端直接连接到资源丰富的公网中,大大提高了网络连接管理的效率。基于专网出现了拥塞,那么可能有终端连接到了公网中,所以当专网拥塞解除时,需要使终端(包括已连接公网的终端和准备连接网络的新终端)连接到专网中,而本发明通过使得公网按照预设的时间周期向专网发送负载查询请求,专网将会根据查询结果反馈指令给公网,若查询得到专网网络负载小于预设的负载阈值,则专网向公网发送拥塞解除指令,并在广播标识中设置有许可接入专网的信息,使得准备连接网络的新终端能够连接到专网,同时公网接收到拥塞解除指令后,将会根据指令中的信息,解除已连接的终端,进而使得终端重新连接到专网中。因此,所述公网与专网自适应的方法不仅能够有效解决公网的拥塞问题,而且在专网解除拥塞时能够使得处于公网中的终端返回到专网。It can be seen from the above-mentioned embodiments that the above-mentioned method for adapting the public network to the private network solves the congestion problem of the private network by disconnecting some connected terminals according to a predetermined algorithm when the private network is congested, and then sets in the private network broadcast There is information prohibiting access to the private network, so that new terminals cannot be connected to the private network, which not only ensures that the private network will not be congested here due to the access of new terminals, but also allows new terminals to directly connect to resource-rich resources. In the public network, the efficiency of network connection management is greatly improved. Based on the congestion of the private network, there may be terminals connected to the public network. Therefore, when the congestion of the private network is relieved, it is necessary to connect the terminals (including terminals connected to the public network and new terminals ready to connect to the network) to the private network. However, the present invention makes the public network send a load query request to the private network according to the preset time period, and the private network will feed back instructions to the public network according to the query results. The network sends a congestion relief command to the public network, and sets information that allows access to the private network in the broadcast identifier, so that new terminals that are ready to connect to the network can connect to the private network. At the same time, after the public network receives the congestion relief command, it will The information in the command releases the connected terminal, and then makes the terminal reconnect to the private network. Therefore, the method of self-adaptation between the public network and the private network can not only effectively solve the congestion problem of the public network, but also enable the terminals in the public network to return to the private network when the congestion of the private network is relieved.

在本发明一些可选的实施例中,所述终端包括专用终端和普通终端;其中,专用终端优先接入到专网中,普通终端始终接入到公网中。在本发明的网络系统中,普通终端始终连接到公网,而专用终端优选连接到专网,只有当专网出现拥塞时,才有部分专用终端会连接到公网,因此,本实施例中的终端均是指专用终端。In some optional embodiments of the present invention, the terminals include dedicated terminals and ordinary terminals; wherein, the dedicated terminals are preferentially connected to the private network, and the ordinary terminals are always connected to the public network. In the network system of the present invention, ordinary terminals are always connected to the public network, and dedicated terminals are preferably connected to the private network. Only when the private network is congested, some dedicated terminals will be connected to the public network. Therefore, in this embodiment All terminals refer to dedicated terminals.

在本发明一些可选的实施例中,所述检测到专网出现拥塞的步骤包括:在专网中预先设置有网络拥塞阈值;实时监测当前专网中的网络负载,并判断所述网络负载是否大于预设的网络拥塞阈值;若是,则提示专网出现拥塞;否则,继续监测专网中的网络负载。基于网络流量的连续性和实效性,需要设定一个标准去判断是否发生拥塞,例如:专网的数据量上限为100,而可以设定当终端请求的数据量超过110时,即为拥塞情形,这里的110也就是一个网络拥塞阈值。通过实施监测专网的网络负载,能够及时发现拥塞的出现,也即能够及时解决拥塞问题。当然,还可以直接在拥塞发生之前提前判断,例如:只要网络负载超出某一阈值,则表示可能发生拥塞,可以直接修改广播标识。其中,所述网络负载包括网络数据流量、已连接的终端数量、响应时间等能够表示专网中网络状态的标志中的一种或多种。In some optional embodiments of the present invention, the step of detecting congestion in the private network includes: presetting a network congestion threshold in the private network; monitoring the current network load in the private network in real time, and judging the network load Whether it is greater than the preset network congestion threshold; if so, it will prompt that the private network is congested; otherwise, continue to monitor the network load in the private network. Based on the continuity and effectiveness of network traffic, it is necessary to set a standard to judge whether congestion occurs. For example, the upper limit of the data volume of the private network is 100, and it can be set that when the data volume requested by the terminal exceeds 110, it is a congestion situation , where 110 is a network congestion threshold. By monitoring the network load of the private network, the occurrence of congestion can be found in time, that is, the congestion problem can be solved in time. Of course, it is also possible to judge in advance directly before the congestion occurs. For example, as long as the network load exceeds a certain threshold, it means that congestion may occur, and the broadcast flag can be directly modified. Wherein, the network load includes one or more of network data traffic, number of connected terminals, response time and other signs that can represent the network status in the private network.

可选的,主动监测的方式可能比较浪费资源,也可以采用被动触发的方式,例如:已连接的终端能够判断是否发生拥塞(根据数据响应时间、数据流量等等),当专网发送拥塞时,终端向专网发送一个拥塞指令,提示拥塞的发生。Optionally, the active monitoring method may waste resources, and the passive triggering method can also be used. For example, the connected terminal can judge whether congestion occurs (according to data response time, data flow, etc.), when the private network sends congestion , the terminal sends a congestion command to the private network to indicate the occurrence of congestion.

进一步,所述终端是指手机、平板、电脑等智能终端设备。Further, the terminal refers to smart terminal devices such as mobile phones, tablets, and computers.

在本发明一些可选的实施例中,所述在专网中按照预设的算法选定部分终端的步骤包括:针对所有终端分别预先设置有不同的优先级标签;获取已连接终端的优先级标签,并按照标签的优先级从高到低进行排序;根据拥塞情况,按照优先级从低到高的顺序选定预设数量的终端。也即,本发明所述的预设算法为按照终端携带的优先级标签排列的顺序进行选定。所述优先级标签既可以是认为设定的身份标签,例如:按照公司职位的高低设定相应优先级,也可以是终端使用情况的评定,例如:根据终端用户的使用时间、消费情况、活跃度等等设定相应的优先级。所述拥塞情况是指拥塞的程度,拥塞程度越高,则需要选定的终端数量越多。当然,也可以一个一个的选定排序在后的终端,直到拥塞不在发生为止。In some optional embodiments of the present invention, the step of selecting some terminals in the private network according to a preset algorithm includes: setting different priority labels for all terminals in advance; obtaining the priority of connected terminals Labels, and sort according to the priority of the label from high to low; according to the congestion situation, select a preset number of terminals in the order of priority from low to high. That is, the preset algorithm described in the present invention is selected according to the order in which the priority tags carried by the terminal are arranged. The priority label can be an identity label that is considered to be set, for example: setting the corresponding priority according to the position of the company, or it can be an evaluation of the terminal usage, for example: according to the use time, consumption situation, active status of the terminal user, etc. Degree and so on to set the corresponding priority. The congestion situation refers to the degree of congestion, and the higher the degree of congestion, the more terminals need to be selected. Of course, it is also possible to select the terminals that are sorted one by one until the congestion no longer occurs.

在本发明一些可选的实施例中,所述在专网中按照预设的算法选定部分终端的步骤包括:根据终端接入专网的信息,统计终端连接到专网的接入时间、终端携带的等级信息、终端的事件类型;分别对终端连接到专网的接入时间、终端携带的等级信息、终端的事件类型赋予不同的权重值,并且求得每个终端的总权重;根据拥塞情况,按照总权重从低到高的顺序选定预设数量的终端。其中,所述终端携带的等级信息既可以是预设的优先级,也可以是用户的身份信息。所述终端的事件类型是指终端在专网中处理时间的类型,例如:发短信、上网、打电话等等,而某些事件是通常不应该中断的,例如:打电话。此时可以给打电话这一事件赋予较高的权重,使得终端用户不会突然终端通话。因此,通过上述算法,能够更加精确的选定可以断开的终端。In some optional embodiments of the present invention, the step of selecting some terminals in the private network according to a preset algorithm includes: counting the access time of the terminal to the private network according to the information about the terminal's access to the private network, The level information carried by the terminal, the event type of the terminal; the access time when the terminal is connected to the private network, the level information carried by the terminal, and the event type of the terminal are assigned different weight values, and the total weight of each terminal is obtained; according to In case of congestion, select a preset number of terminals in descending order of total weight. Wherein, the grade information carried by the terminal may be a preset priority or user identity information. The event type of the terminal refers to the type of terminal processing time in the private network, such as sending text messages, surfing the Internet, making phone calls, etc., and some events should not be interrupted normally, such as making phone calls. At this time, a higher weight can be assigned to the event of making a call, so that the end user will not end the call suddenly. Therefore, through the above algorithm, the terminal that can be disconnected can be selected more accurately.

在本发明一些可选的实施例中,所述修改专网广播标识的步骤还包括:In some optional embodiments of the present invention, the step of modifying the private network broadcast identifier further includes:

在专网中设置专网接入的优先级标签,使所述专网接入的优先级标签低于所述公网中预设的公网接入优先级标签,使终端优先接入公网;Setting the priority label of private network access in the private network, so that the priority label of the private network access is lower than the preset public network access priority label in the public network, so that the terminal preferentially accesses the public network ;

或者,使所述专网接入的优先级标签高于所述公网中预设的公网接入优先级标签,使终端优先接入专网。这样,通过在公网中设置优先级标签,使得能够进一步限定终端进行网络连接的优先级别,降低出错率,也即提高公网与专网自适应的效率。Or, make the priority label of the private network access higher than the preset public network access priority label in the public network, so that the terminal preferentially accesses the private network. In this way, by setting the priority label in the public network, it is possible to further limit the priority level of the terminal for network connection, reduce the error rate, that is, improve the efficiency of self-adaptation between the public network and the private network.

在本发明一些可选的实施例中,所述判断专网当前的网络负载是否小于预设的负载阈值的步骤之后还包括:In some optional embodiments of the present invention, after the step of judging whether the current network load of the private network is less than a preset load threshold, the step further includes:

若当前的网络负载大于或等于预设的负载阈值,则向公网反馈拥塞未解除指令。当然,也可以不反馈信息。使得公网指导专网依旧处于拥塞状态。If the current network load is greater than or equal to the preset load threshold, a congestion unrelieved instruction is fed back to the public network. Of course, it is also possible not to feed back information. The public network guidance private network is still in a congested state.

在本发明一些可选的实施例中,所述根据所述拥塞解除指令中的信息,断开已连接的终端的步骤还包括:In some optional embodiments of the present invention, the step of disconnecting the connected terminal according to the information in the congestion relief instruction further includes:

针对所有终端分别预先设置有不同的优先级标签;Different priority labels are preset for all terminals;

根据所述拥塞指令中包含的专网负载信息确定当前专网可接入终端的数量;determining the number of terminals accessible to the current private network according to the private network load information included in the congestion instruction;

在公网中按照终端的优先级标签,并根据当前专网可接入终端的数量,从高到低选取相同数量的终端,并断开这些终端的数据连接。In the public network, according to the priority labels of the terminals, and according to the number of terminals that can be accessed in the current private network, select the same number of terminals from high to low, and disconnect the data connections of these terminals.

其中,所述专网负载信息是指终端占用的负载与专网负载容量的比例,通过所述专网负载信息,能够确定专网的负载余量,进而能够计算得到当前专网可接入终端的数量,使得公网不至于断开过多的终端,而导致专网的再次拥塞。而且本发明通过终端中预设的优先级标签,能够使得公网从大量的终端中,选出合适的终端切换到专网。这样,既能够保证专网与公网自适应的有序和稳定,而且能够针对终端进行差异化管理,提高终端联网管理的效率。Wherein, the private network load information refers to the ratio of the load occupied by the terminal to the private network load capacity. Through the private network load information, the load margin of the private network can be determined, and then the terminal that can be accessed by the current private network can be calculated. The number of terminals prevents the public network from disconnecting too many terminals, resulting in re-congestion of the private network. Moreover, the present invention enables the public network to select a suitable terminal from a large number of terminals to switch to the private network through the preset priority labels in the terminal. In this way, the orderly and stable self-adaptation between the private network and the public network can be guaranteed, and differentiated management can be carried out for terminals, improving the efficiency of terminal networking management.

在本发明一些可选的实施例中,针对所有终端分别预先设置有不同的优先级标签;In some optional embodiments of the present invention, different priority labels are preset for all terminals;

所述修改专网广播标识,使所述广播标识中设置有禁止接入专网的信息的步骤之后包括:After the step of modifying the broadcast identifier of the private network so that the broadcast identifier is set with information prohibiting access to the private network, it includes:

终端检测到广播标识中禁止接入专网的信息后,根据终端中的优先级标签等级,判断是否继续接入专网中;After the terminal detects the information prohibiting access to the private network in the broadcast identifier, it judges whether to continue to access the private network according to the priority label level in the terminal;

若终端中的优先级等级高于预设等级阈值,则继续接入专网;If the priority level in the terminal is higher than the preset level threshold, continue to access the private network;

否则,禁止接入专网。Otherwise, access to the private network is prohibited.

而对于某些终端来说,基于该用户终端的身份或者等级,有时候必须保证这些用户终端始终处于专网中,因此通过设置不同的优先级标签,同时预先设置一个等级阈值,使得当终端的优先级等级高于预设等级阈值时,终端将会忽视专网广播中设置的禁止接入专网的标识,继续接入专网中。进一步,若专网再次发生拥塞时,将会根据优先级的等级,剔除等级较低的终端用户,保证高级用户(等级相对较高的终端用户)始终能够连接到专网。或者,还可以设置使得高级用户只能够连接到专网,而不能连接公网。For some terminals, based on the identity or level of the user terminal, it is sometimes necessary to ensure that these user terminals are always in the private network. Therefore, by setting different priority labels and setting a level threshold in advance, the When the priority level is higher than the preset level threshold, the terminal will ignore the sign of prohibiting access to the private network set in the private network broadcast, and continue to access the private network. Furthermore, if the private network is congested again, end users with lower levels will be eliminated according to the priority level, so as to ensure that advanced users (end users with relatively high levels) can always connect to the private network. Or, it can also be set so that advanced users can only connect to the private network, but not the public network.

参照图2所示,为本发明提供的公网与专网自适应的方法的另一个实施例的流程图。所述公网与专网自适应的方法包括:Referring to FIG. 2 , it is a flow chart of another embodiment of the method for adapting the public network and the private network provided by the present invention. The method for adapting the public network and the private network includes:

步骤201,在专网中预先设置有网络拥塞阈值;实时监测当前专网中的网络负载;Step 201, preset a network congestion threshold in the private network; monitor the current network load in the private network in real time;

步骤202,判断所述网络负载是否大于预设的网络拥塞阈值;若是,则执行步骤203,否则继续执行判断步骤202;Step 202, judging whether the network load is greater than a preset network congestion threshold; if so, then execute step 203, otherwise continue to execute judging step 202;

步骤203,根据步骤202,提示专网出现拥塞;Step 203, according to step 202, prompting that the private network is congested;

步骤204,针对所有终端分别预先设置有不同的优先级标签;获取已连接终端的优先级标签,并按照标签的优先级从高到低进行排序;Step 204, pre-set different priority tags for all terminals; obtain the priority tags of the connected terminals, and sort according to the priority of the tags from high to low;

步骤205,根据拥塞情况,按照优先级从低到高的顺序选定预设数量的终端,并断开所述选定部分终端的数据连接;Step 205, according to the congestion situation, select a preset number of terminals in order of priority from low to high, and disconnect the data connection of the selected part of terminals;

步骤206,修改专网广播标识,使所述广播标识中设置有禁止接入专网的信息,同时设置专网接入的优先级标签,使所述专网接入的优先级标签低于所述公网中预设的公网接入优先级标签,使终端优先接入公网;Step 206, modify the private network broadcast identification, so that the broadcast identification is set with information that prohibits access to the private network, and at the same time set the priority label of the private network access, so that the priority label of the private network access is lower than the specified The preset public network access priority label in the public network allows terminals to access the public network first;

步骤207,按照预设的时间周期,公网向专网发送负载查询请求;Step 207, according to the preset time period, the public network sends a load query request to the private network;

步骤208,专网接收公网发送的负载查询请求,查询当前的网络负载;Step 208, the private network receives the load query request sent by the public network, and queries the current network load;

步骤209,判断专网当前的网络负载是否小于预设的负载阈值;若是,则执行步骤211,否则,执行步骤210;Step 209, judging whether the current network load of the private network is less than a preset load threshold; if so, perform step 211, otherwise, perform step 210;

步骤210,若当前的网络负载大于或等于预设的负载阈值,则向公网反馈拥塞未解除指令;Step 210, if the current network load is greater than or equal to the preset load threshold, then feed back the congestion unrelieved instruction to the public network;

步骤211,向公网反馈拥塞解除指令,并且修改专网广播标识,使所述广播标识中设置有许可接入专网的信息;同时在专网中设置专网接入的优先级标签,使所述专网接入的优先级标签高于所述公网中预设的公网接入优先级标签,使终端优先接入专网;Step 211, feed back the congestion relief instruction to the public network, and modify the private network broadcast identifier, so that the broadcast identifier is provided with information that allows access to the private network; at the same time, set the priority label for private network access in the private network, so that The priority label of the private network access is higher than the preset public network access priority label in the public network, so that the terminal preferentially accesses the private network;

步骤212,根据所述拥塞指令中包含的专网负载信息确定当前专网可接入终端的数量;Step 212, according to the private network load information included in the congestion instruction, determine the number of terminals that can be accessed by the current private network;

步骤213,在公网中按照终端的优先级标签,并根据当前专网可接入终端的数量,从高到低选取相同数量的终端,并断开这些终端的数据连接,是这些终端连接到专网。Step 213, according to the priority labels of the terminals in the public network, and according to the number of terminals that can be accessed in the current private network, select the same number of terminals from high to low, and disconnect the data connections of these terminals. These terminals are connected to Private Network.

由上述实施例可知,所述公网与专网自适应的方法不仅能够有效解决公网的拥塞问题,而且在专网解除拥塞时能够使得处于公网中的终端返回到专网。同时,所述公网与专网自适应的方法还通过终端的优先级以及对专网设置不同优先级,进一步提高了专网与公网自适应的效率和准确性。It can be known from the above embodiments that the method of self-adaptation between the public network and the private network can not only effectively solve the congestion problem of the public network, but also enable the terminals in the public network to return to the private network when the congestion of the private network is relieved. At the same time, the method for self-adaptation between the public network and the private network further improves the efficiency and accuracy of the self-adaptation between the private network and the public network by setting different priorities for the terminal and the private network.

在本发明实施例的另一方面,参照图3所示,还提供了一种公网与专网自适应的装置。所述公网与专网自适应的装置包括:In another aspect of the embodiments of the present invention, as shown in FIG. 3 , a device for adapting a public network to a private network is also provided. The device for adapting the public network to the private network includes:

拥塞处理模块301,用于检测到专网出现拥塞时,在专网中按照预设的算法选定部分终端,断开所述选定部分终端的数据连接;向广播修改模块302发送广播修改指令;向公网处理模块303发送拥塞启动指令;The congestion processing module 301 is configured to select some terminals in the private network according to a preset algorithm when congestion occurs in the private network, and disconnect the data connections of the selected terminals; and send a broadcast modification instruction to the broadcast modification module 302 ; Send a congestion start instruction to the public network processing module 303;

广播修改模块302,用于接收拥塞处理模块301发送的广播修改指令,修改专网广播标识,使所述广播标识中设置有禁止接入专网的信息;用于接收拥塞解除模块304发送的广播修改指令,修改专网广播标识,使所述广播标识中设置有许可接入专网的信息;The broadcast modification module 302 is used to receive the broadcast modification instruction sent by the congestion processing module 301, and modify the private network broadcast identification, so that the broadcast identification is provided with information prohibiting access to the private network; for receiving the broadcast sent by the congestion removal module 304 Modifying the instruction, modifying the broadcast identifier of the private network, so that the broadcast identifier is set with information that allows access to the private network;

公网处理模块303,用于接收所述拥塞处理模块301发送的拥塞启动指令,按照预设的时间周期,向拥塞解除模块发送负载查询请求,并根据反馈的拥塞解除指令以及,所述拥塞解除指令中的信息,断开已连接的终端,使终端重新连接到专网;The public network processing module 303 is configured to receive the congestion start instruction sent by the congestion processing module 301, send a load query request to the congestion relief module according to a preset time period, and according to the feedback congestion relief instruction and the congestion relief The information in the command disconnects the connected terminal and reconnects the terminal to the private network;

拥塞解除模块304,用于接收所述公网处理模块303发送的负载查询请求,查询当前的网络负载,并判断专网当前的网络负载是否小于预设的负载阈值;若当前的网络负载小于预设的负载阈值,则向公网处理模块303反馈拥塞解除指令,并向广播修改模块302发送广播修改指令。Congestion removal module 304, for receiving the load query request that described public network processing module 303 sends, query current network load, and judge whether the current network load of private network is less than preset load threshold; If current network load is less than preset If the load threshold is set, the congestion relief instruction is fed back to the public network processing module 303, and the broadcast modification instruction is sent to the broadcast modification module 302.

由上述实施例可知,所述公网与专网自适应的装置通过所述拥塞处理模块301在专网拥塞时断开部分终端,进而缓解了拥塞程度;通过所述广播修改模块302使得终端根据广播信息获知专网是否处于拥塞状态,也即是否可连接,进而避免终端进行重复的连接请求,提高了终端连接网络的效率;通过所述公网处理模块303使得当专网中的拥塞解除时,连接到公网的终端能够及时重新连接到专网中;通过所述拥塞解除模块304使得所述公网处理模块303和所述广播修改模块302能够及时获知专网的拥塞已经解除,进而执行相应的策略。综上,所述公网与专网自适应的装置不仅能够有效解决公网的拥塞问题,而且在专网解除拥塞时能够使得处于公网中的终端返回到专网。It can be seen from the above-mentioned embodiments that the device for self-adapting between the public network and the private network uses the congestion processing module 301 to disconnect some terminals when the private network is congested, thereby alleviating the degree of congestion; Broadcast information to know whether the private network is in a congested state, that is, whether it can be connected, thereby avoiding repeated connection requests by the terminal and improving the efficiency of the terminal connecting to the network; through the public network processing module 303, when the congestion in the private network is lifted , the terminal connected to the public network can reconnect to the private network in time; through the congestion removal module 304, the public network processing module 303 and the broadcast modification module 302 can know in time that the congestion of the private network has been removed, and then execute corresponding strategy. To sum up, the device for adapting the public network to the private network can not only effectively solve the congestion problem of the public network, but also enable the terminals in the public network to return to the private network when the congestion of the private network is relieved.

所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本公开的范围(包括权利要求)被限于这些例子;在本发明的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本发明的不同方面的许多其它变化,为了简明它们没有在细节中提供。Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is exemplary only, and is not intended to imply that the scope of the present disclosure (including claims) is limited to these examples; under the idea of the present invention, the above embodiments or Combinations between technical features in different embodiments are also possible, steps may be carried out in any order, and there are many other variations of the different aspects of the invention as described above, which are not presented in detail for the sake of brevity.

另外,为简化说明和讨论,并且为了不会使本发明难以理解,在所提供的附图中可以示出或可以不示出与集成电路(IC)芯片和其它部件的公知的电源/接地连接。此外,可以以框图的形式示出装置,以便避免使本发明难以理解,并且这也考虑了以下事实,即关于这些框图装置的实施方式的细节是高度取决于将要实施本发明的平台的(即,这些细节应当完全处于本领域技术人员的理解范围内)。在阐述了具体细节(例如,电路)以描述本发明的示例性实施例的情况下,对本领域技术人员来说显而易见的是,可以在没有这些具体细节的情况下或者这些具体细节有变化的情况下实施本发明。因此,这些描述应被认为是说明性的而不是限制性的。In addition, well-known power/ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided figures, for simplicity of illustration and discussion, and so as not to obscure the present invention. . Furthermore, devices may be shown in block diagram form in order to avoid obscuring the invention, and this also takes into account the fact that details regarding the implementation of these block diagram devices are highly dependent on the platform on which the invention is to be implemented (i.e. , these details should be well within the understanding of those skilled in the art). Where specific details (eg, circuits) have been set forth to describe example embodiments of the invention, it will be apparent to those skilled in the art that other embodiments may be implemented without or with variations from these specific details. Implement the present invention down. Accordingly, these descriptions should be regarded as illustrative rather than restrictive.

尽管已经结合了本发明的具体实施例对本发明进行了描述,但是根据前面的描述,这些实施例的很多替换、修改和变型对本领域普通技术人员来说将是显而易见的。例如,其它存储器架构(例如,动态RAM(DRAM))可以使用所讨论的实施例。Although the invention has been described in conjunction with specific embodiments of the invention, many alternatives, modifications and variations of those embodiments will be apparent to those of ordinary skill in the art from the foregoing description. For example, other memory architectures such as dynamic RAM (DRAM) may use the discussed embodiments.

本发明的实施例旨在涵盖落入所附权利要求的宽泛范围之内的所有这样的替换、修改和变型。因此,凡在本发明的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明的保护范围之内。Embodiments of the present invention are intended to embrace all such alterations, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent replacements, improvements, etc. within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

1. a kind of public network and the adaptive method of private network characterized by comprising
When detecting that congestion occurs in private network, according to preset algorithm selected part terminal in private network, and the selected portion is disconnected Divide the data connection of terminal;
Private network broadcast identification is modified, makes to be provided with the information for forbidding accessing private network in the broadcast identification;
According to the preset time cycle, public network sends load query request to private network;
Private network receives the load query request that public network is sent, and inquires current network load, and judges that the current network of private network is negative It carries and whether is less than preset load threshold;If current network load is less than preset load threshold, to public network feedback jams Instruction is released, and modifies private network broadcast identification, makes the information for being provided with license access private network in the broadcast identification;
The congestion that public network receives private network feedback releases instruction, and releases the information in instruction according to the congestion, and disconnection has connected Terminal, so that terminal is reconnected to private network.
2. public network according to claim 1 and the adaptive method of private network, which is characterized in that described to detect that private network occurs The step of congestion includes:
Network congestion threshold value is previously provided in private network;
Network load in the current private network of real-time monitoring, and judge whether the network load is greater than preset network congestion threshold Value;
If so, there is congestion in prompt private network;
Otherwise, continue to monitor the network load in private network.
3. public network according to claim 2 and the adaptive method of private network, which is characterized in that the network load includes net One of network data traffic, the terminal quantity having connected, response time are a variety of.
4. public network according to claim 1 and the adaptive method of private network, which is characterized in that it is described in private network according to pre- If algorithm selected part terminal the step of include:
It is previously provided with different priority tags respectively for all terminals;
The priority tag for having connected terminal is obtained, and is ranked up from high to low according to the priority of label;
According to congestion situation, the terminal of preset quantity is selected according to the sequence of priority from low to high.
5. public network according to claim 1 and the adaptive method of private network, which is characterized in that it is described in private network according to pre- If algorithm selected part terminal the step of include:
The information of private network is accessed according to terminal, statistics terminal is connected to the turn-on time of private network, the class information that terminal carries, end The event type at end;
Respectively to terminal be connected to turn-on time of private network, the class information that terminal carries, terminal event type assign it is different Weighted value, and acquire total weight of each terminal;
According to congestion situation, the terminal of preset quantity is selected according to the sequence of total weight from low to high.
6. public network according to claim 1 and the adaptive method of private network, which is characterized in that the modification private network broadcast mark The step of knowledge further include:
The priority tag that private network accesses is set in private network, makes the priority tag of the private network access lower than in the public network Preset public network access priority label makes terminal priority access public network;
Alternatively, the priority tag of the private network access is made to be higher than preset public network access priority label in the public network, make Terminal priority access private network.
7. public network according to claim 1 and the adaptive method of private network, which is characterized in that the judgement private network is current After the step of whether network load is less than preset load threshold further include:
If current network load is greater than or equal to preset load threshold, instruction is not released to public network feedback jams.
8. public network according to claim 1 and the adaptive method of private network, which is characterized in that described according to the congestion solution Except the information in instruction, the step of disconnecting the terminal having connected further include:
It is previously provided with different priority tags respectively for all terminals;
The private network load information for including in instruction, which is released, according to the congestion determines that current private network can access the quantity of terminal;
According to the priority tag of terminal in public network, and according to the quantity of the accessible terminal of current private network, choose from high to low The terminal of identical quantity, and disconnect the data connection of these terminals.
9. public network according to claim 1 and the adaptive method of private network, which is characterized in that distinguish for all terminals pre- First it is provided with different priority tags;
The modification private network broadcast identification makes to wrap after the step of being provided with the information for forbidding accessing private network in the broadcast identification It includes:
After terminal detects the information for forbidding accessing private network in broadcast identification, according to the priority tag grade in terminal, judgement Whether continue to access in private network;
If the priority level in terminal is higher than predetermined level threshold value, continue to access private network;
Otherwise, forbid accessing private network.
10. a kind of public network and the adaptive device of private network characterized by comprising
Congestion processing module, when for detecting that congestion occurs in private network, according to preset algorithm selected part terminal in private network, Disconnect the data connection of the selected part terminal;Broadcast modification instruction is sent to broadcast modified module;To public network processing module Send congestion enabled instruction;
Modified module is broadcasted, for receiving the broadcast modification instruction of congestion processing module transmission, private network broadcast identification is modified, makes institute State the information for being provided in broadcast identification and forbidding accessing private network;For receiving the broadcast modification instruction of congestion relieving module transmission, Private network broadcast identification is modified, the information for being provided with license access private network in the broadcast identification is made;
Public network processing module, the congestion enabled instruction sent for receiving the congestion processing module, according to preset week time Phase sends load query request to congestion relieving module, and according to the congestion of feedback release instruction and, congestion releasing refers to Information in order disconnects the terminal having connected, terminal is made to reconnect to private network;
Congestion relieving module, the load query request sent for receiving the public network processing module, it is negative to inquire current network It carries, and judges whether the current network load of private network is less than preset load threshold;If current network load is less than preset Load threshold is then released to public network processing module feedback jams and is instructed, and sends broadcast modification instruction to broadcast modified module.
CN201610806856.7A 2016-09-06 2016-09-06 A method and device for self-adaptation between public network and private network Active CN106488500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610806856.7A CN106488500B (en) 2016-09-06 2016-09-06 A method and device for self-adaptation between public network and private network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610806856.7A CN106488500B (en) 2016-09-06 2016-09-06 A method and device for self-adaptation between public network and private network

Publications (2)

Publication Number Publication Date
CN106488500A CN106488500A (en) 2017-03-08
CN106488500B true CN106488500B (en) 2019-09-27

Family

ID=58273551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610806856.7A Active CN106488500B (en) 2016-09-06 2016-09-06 A method and device for self-adaptation between public network and private network

Country Status (1)

Country Link
CN (1) CN106488500B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632052B (en) * 2017-03-15 2021-10-26 中国移动通信集团安徽有限公司 Method and device for processing signal abnormity of high-speed rail private network
CN108834102B (en) * 2018-04-18 2020-11-13 西安汇龙科技股份有限公司 Method and system for identifying non-high-speed rail users in LTE high-speed rail private network
CN108683450A (en) * 2018-05-15 2018-10-19 国网上海市电力公司 A kind of Synergistic method holding disconnected satellite network and power private network late based on appearance
CN111314858B (en) * 2018-12-12 2022-05-03 成都鼎桥通信技术有限公司 Cluster communication method, device and terminal
CN109862589B (en) * 2018-12-25 2022-07-15 成都鼎桥通信技术有限公司 Public and private network switching method, terminal equipment and storage medium
CN111757386B (en) * 2019-03-28 2023-05-02 成都鼎桥通信技术有限公司 Download control method and device
CN110190989A (en) * 2019-05-17 2019-08-30 广东电网有限责任公司 A kind of adaptive power distribution terminal management method and system
CN112351465B (en) * 2019-08-08 2023-01-31 成都鼎桥通信技术有限公司 Network mode switching method and device
CN110691393A (en) * 2019-09-17 2020-01-14 南京万形电气有限公司 Communication method based on public and private integration
CN112543464B (en) * 2019-09-23 2022-09-16 中国移动通信集团安徽有限公司 Network return method, device and computing device
CN111885606B (en) * 2020-07-20 2023-04-07 中国联合网络通信集团有限公司 Park communication network fusion control method, device and system
CN112887762B (en) * 2021-01-26 2023-07-25 广州欢网科技有限责任公司 Method and system for putting IPTV advertisement resources according to crowd labels
CN115348640A (en) * 2021-05-12 2022-11-15 中国移动通信有限公司研究院 Configuration method, first network equipment and first terminal equipment
CN116017404B (en) * 2022-12-30 2024-08-27 中国联合网络通信集团有限公司 Network element driving method, device, electronic equipment and storage medium for campus private network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431777A (en) * 2007-11-08 2009-05-13 三星电子株式会社 Network switching method and apparatus of mobile terminal
CN102378316A (en) * 2010-08-17 2012-03-14 北京迅光达通信技术有限公司 Double-network digital mobile communication terminal and double-network communication method thereof
CN102938917A (en) * 2011-08-15 2013-02-20 鼎桥通信技术有限公司 Non high-speed rail user switching method and radio network controller (RNC)
CN103428856A (en) * 2012-05-21 2013-12-04 中兴通讯股份有限公司 Method and system for achieving continuity of multimedia broadcasting multicasting service
WO2014166089A1 (en) * 2013-04-11 2014-10-16 华为技术有限公司 Method and device for congestion control

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8842541B2 (en) * 2012-09-04 2014-09-23 Verizon Patent And Licensing Inc. Providing policies using a direct interface between network devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101431777A (en) * 2007-11-08 2009-05-13 三星电子株式会社 Network switching method and apparatus of mobile terminal
CN102378316A (en) * 2010-08-17 2012-03-14 北京迅光达通信技术有限公司 Double-network digital mobile communication terminal and double-network communication method thereof
CN102938917A (en) * 2011-08-15 2013-02-20 鼎桥通信技术有限公司 Non high-speed rail user switching method and radio network controller (RNC)
CN103428856A (en) * 2012-05-21 2013-12-04 中兴通讯股份有限公司 Method and system for achieving continuity of multimedia broadcasting multicasting service
WO2014166089A1 (en) * 2013-04-11 2014-10-16 华为技术有限公司 Method and device for congestion control

Also Published As

Publication number Publication date
CN106488500A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN106488500B (en) A method and device for self-adaptation between public network and private network
CN110662260B (en) Information processing method and device, network element and storage medium
CN100561985C (en) A flow control method and system based on service priority
CN110858843B (en) Service request processing method and device and computer readable storage medium
US20190200208A1 (en) Method and apparatus for proactive load control
US9532359B2 (en) Resource allocation method and device
CN109511093B (en) Message overload processing method and device
CN102378306B (en) A kind of method and system of broadcasting access control parameter
US11044729B2 (en) Function scheduling method, device, and system
WO2011041979A1 (en) Method, device and system for network access of machine type communications terminal equipment
JP6097411B2 (en) Data transmission method, apparatus and system
CN108540950B (en) Flow management method and device of double-card terminal and mobile terminal
CN104754704A (en) Method for controlling terminal to hibernate and terminal
CN102316483A (en) Method and device for ensuring quality of service (QoS) of application service in evolution-data optimized (EVDO) system
CN106603467A (en) Network application management method, device and terminal
CN105247834B (en) The distribution method of Internet resources, composer and manager in virtual network function
CN103747483A (en) Regulation and control method, device and terminal for business combining
CN101951571A (en) Short message retrying method and short message gateway
CN102892179A (en) Load control method and device for radio access network
CN108882296B (en) Method and device for processing message
CN108347743B (en) Access control method, access network element, core network element and user equipment
CN107466064B (en) Communication method, terminal equipment and UICC
CN102281590B (en) Method and device for controlling load capacity
CN103906167A (en) User equipment access control method and device
CN104066151A (en) Base station device and access control method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant