



技术领域technical field
本申请涉及通信技术领域,尤其涉及一种数据交互的方法、装置、终端设备和介质。The present application relates to the field of communication technologies, and in particular, to a method, apparatus, terminal device and medium for data interaction.
背景技术Background technique
随着互联网技术的发展,运营商的营销策略也不断的改进。如何简化用户与业务营销平台之间交互的繁琐步骤,提高用户的感知,成为当前运营的发展趋势。With the development of Internet technology, operators' marketing strategies are also constantly improving. How to simplify the tedious steps of interaction between users and business marketing platforms and improve users' perception has become the development trend of current operations.
现有技术下,实现用户与业务营销平台之间的交互时,通常采用以下方式:In the prior art, when realizing the interaction between users and the business marketing platform, the following methods are usually adopted:
在通用分组无线服务技术(General Packet Radio Service,GPRS)网关支持节点(Gateway GPRS Support Node,GGSN)/公用数据网(Public Data Network,PDN)网关,与中国移动互联网(Chinamobile Net,CMNET)/中国移动无线应用协议(ChinamobileWirelessApplication Protocol,CMWAP)网关之间串接服务控制网关(service control gateway,SCG)设备。In General Packet Radio Service (General Packet Radio Service, GPRS) gateway support node (Gateway GPRS Support Node, GGSN) / Public Data Network (Public Data Network, PDN) gateway, and China Mobile Internet (Chinamobile Net, CMNET) / China A service control gateway (SCG) device is connected in series between the China Mobile Wireless Application Protocol (CMWAP) gateways.
SCG设备通过远程用户认证服务(Remote Authentication Dial In UserService,RADIUS)鉴权,获取用户终端的手机号码,以及互联网协议(Internet Protocol,IP)地址等终端地址信息,并在用户访问业务时,将包含营销模块的工具条(Toolbar)插件插入用户下行报文中,使得用户终端通过营销模块,与业务营销平台进行交互,实现业务营销。The SCG device obtains the mobile phone number of the user terminal and the terminal address information such as the Internet Protocol (IP) address through the Remote Authentication Dial In User Service (RADIUS) authentication, and when the user accesses the service, it will include The Toolbar plug-in of the marketing module is inserted into the downlink message of the user, so that the user terminal can interact with the business marketing platform through the marketing module to realize business marketing.
例如,营销模块中包含流量广告统一资源定位符(Uniform Resource Locator,URL),用户终端通过流量广告URL,向业务营销平台订购流量。For example, the marketing module includes a traffic advertisement uniform resource locator (Uniform Resource Locator, URL), and the user terminal orders traffic from the business marketing platform through the traffic advertisement URL.
但是,采用这种方式,将SCG设备串接至传输网络中,增加了业务时延,其次,若SCG设备出现故障,则用户的网络业务都会被阻,故障风险较高;进一步的,SCG设备通过RADIUS鉴权获取用户的终端地址信息,不符合网络组织规范。However, in this way, the SCG equipment is connected in series to the transmission network, which increases the service delay. Secondly, if the SCG equipment fails, the user's network services will be blocked, and the risk of failure is high; further, the SCG equipment Obtaining the user's terminal address information through RADIUS authentication does not conform to the network organization specification.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种数据交互的方法、装置、终端设备和介质,用以在用户终端与业务营销平台交互时,降低业务风险和业务时延。The embodiments of the present application provide a data interaction method, apparatus, terminal device and medium, so as to reduce service risks and service delays when a user terminal interacts with a service marketing platform.
一方面,提供一种数据交互的方法,包括:In one aspect, a method for data interaction is provided, including:
运营服务器接收网络侧通过镜像分光的方式复制并转发的访问请求消息,访问请求消息是用户终端通过网络侧发送至目标服务器的消息;The operation server receives the access request message copied and forwarded by the network side in a mirror-splitting manner, and the access request message is a message sent by the user terminal to the target server through the network side;
解析访问请求消息,根据解析结果,确定访问请求消息的协议类型,以及包含的终端地址信息;Parse the access request message, and determine the protocol type of the access request message and the included terminal address information according to the parsing result;
若访问请求消息的协议类型以及终端地址信息符合预设交互条件,则根据终端地址信息,向用户终端发送业务脚本消息,业务脚本消息中至少包含运营服务器的服务器地址信息;If the protocol type of the access request message and the terminal address information meet the preset interaction conditions, send a service script message to the user terminal according to the terminal address information, where the service script message at least contains the server address information of the operation server;
接收用户终端基于业务脚本消息中包含的服务器地址信息发送的业务请求消息,并根据业务请求消息,向用户终端返回业务响应消息。A service request message sent by the user terminal based on the server address information included in the service script message is received, and a service response message is returned to the user terminal according to the service request message.
较佳的,若访问请求消息的协议类型以及终端地址信息符合预设交互条件,则根据终端地址信息,向用户终端发送业务脚本消息,包括:Preferably, if the protocol type of the access request message and the terminal address information meet the preset interaction conditions, then according to the terminal address information, a service script message is sent to the user terminal, including:
若访问请求消息的协议类型为指定协议类型,并且终端地址信息中包含手机号码,则判定访问请求消息符合预设交互条件;If the protocol type of the access request message is the specified protocol type, and the terminal address information includes the mobile phone number, it is determined that the access request message meets the preset interaction conditions;
获取终端地址信息中还包含的IP地址,以及端口号;Obtain the IP address and port number also included in the terminal address information;
根据终端地址信息中包含的IP地址,端口号,以及手机号码,向用户终端发送业务脚本消息。According to the IP address, port number, and mobile phone number contained in the terminal address information, a service script message is sent to the user terminal.
较佳的,根据业务请求消息,向用户终端返回业务响应消息,包括:Preferably, according to the service request message, a service response message is returned to the user terminal, including:
若确定业务请求消息符合预设筛选条件,则根据业务请求消息,向用户终端返回包含营销统一资源定位符URL的业务响应消息;If it is determined that the service request message meets the preset screening conditions, returning a service response message including the marketing uniform resource locator URL to the user terminal according to the service request message;
否则,向用户终端返回表征业务请求失败的业务响应消息。Otherwise, a service response message representing the failure of the service request is returned to the user terminal.
较佳的,确定业务请求消息符合预设筛选条件,包括:Preferably, it is determined that the service request message meets the preset screening conditions, including:
确定业务请求消息的接收时间位于预设允许时间段内;determining that the receiving time of the service request message is within a preset allowable time period;
根据业务请求消息获取用户终端的手机号码,确定手机号码被包含在存储的白名单中;Obtain the mobile phone number of the user terminal according to the service request message, and determine that the mobile phone number is included in the stored whitelist;
根据业务请求消息获取用户终端的终端标识信息,确定终端标识信息符合预设标识条件;或,Obtain the terminal identification information of the user terminal according to the service request message, and determine that the terminal identification information meets the preset identification conditions; or,
根据业务请求消息,获取业务请求消息的投递频率,确定投递频率低于预设频率门限值。According to the service request message, the delivery frequency of the service request message is obtained, and it is determined that the delivery frequency is lower than the preset frequency threshold value.
一方面,提供一种数据交互的装置,包括:In one aspect, a device for data interaction is provided, comprising:
复制单元,用于接收网络侧通过镜像分光的方式复制并转发的访问请求消息,访问请求消息是用户终端通过网络侧发送至目标服务器的消息;a copying unit, configured to receive an access request message copied and forwarded by the network side in a mirror-splitting manner, where the access request message is a message sent by the user terminal to the target server through the network side;
解析单元,用于解析访问请求消息,根据解析结果,确定访问请求消息的协议类型,以及包含的终端地址信息;a parsing unit for parsing the access request message, and determining the protocol type of the access request message and the included terminal address information according to the parsing result;
发送单元,用于若访问请求消息的协议类型以及终端地址信息符合预设交互条件,则根据终端地址信息,向用户终端发送业务脚本消息,业务脚本消息中至少包含运营服务器的服务器地址信息;a sending unit, configured to send a service script message to the user terminal according to the terminal address information if the protocol type of the access request message and the terminal address information meet the preset interaction conditions, where the service script message at least contains the server address information of the operation server;
响应单元,用于接收用户终端基于业务脚本消息中包含的服务器地址信息发送的业务请求消息,并根据业务请求消息,向用户终端返回业务响应消息。The response unit is configured to receive a service request message sent by the user terminal based on the server address information included in the service script message, and return a service response message to the user terminal according to the service request message.
较佳的,发送单元用于:Preferably, the sending unit is used for:
若访问请求消息的协议类型为指定协议类型,并且终端地址信息中包含手机号码,则判定访问请求消息符合预设交互条件;If the protocol type of the access request message is the specified protocol type, and the terminal address information includes the mobile phone number, it is determined that the access request message meets the preset interaction conditions;
获取终端地址信息中还包含的IP地址,以及端口号;Obtain the IP address and port number also included in the terminal address information;
根据终端地址信息中包含的IP地址,端口号,以及手机号码,向用户终端发送业务脚本消息。According to the IP address, port number, and mobile phone number contained in the terminal address information, a service script message is sent to the user terminal.
较佳的,响应单元用于:Preferably, the response unit is used to:
若确定业务请求消息符合预设筛选条件,则根据业务请求消息,向用户终端返回包含营销统一资源定位符URL的业务响应消息;If it is determined that the service request message meets the preset screening conditions, returning a service response message including the marketing uniform resource locator URL to the user terminal according to the service request message;
否则,向用户终端返回表征业务请求失败的业务响应消息。Otherwise, a service response message representing the failure of the service request is returned to the user terminal.
较佳的,响应单元用于:Preferably, the response unit is used to:
确定业务请求消息的接收时间位于预设允许时间段内;determining that the receiving time of the service request message is within a preset allowable time period;
根据业务请求消息获取用户终端的手机号码,确定手机号码被包含在存储的白名单中;Obtain the mobile phone number of the user terminal according to the service request message, and determine that the mobile phone number is included in the stored whitelist;
根据业务请求消息获取用户终端的终端标识信息,确定终端标识信息符合预设标识条件;或,Obtain the terminal identification information of the user terminal according to the service request message, and determine that the terminal identification information meets the preset identification conditions; or,
根据业务请求消息,获取业务请求消息的投递频率,确定投递频率低于预设频率门限值。According to the service request message, the delivery frequency of the service request message is obtained, and it is determined that the delivery frequency is lower than the preset frequency threshold value.
一方面,提供一种终端设备,包括至少一个处理单元、以及至少一个存储单元,其中,存储单元存储有计算机程序,当程序被处理单元执行时,使得处理单元执行上述任一种数据交互的方法的步骤。In one aspect, a terminal device is provided, comprising at least one processing unit and at least one storage unit, wherein the storage unit stores a computer program, and when the program is executed by the processing unit, the processing unit is made to execute any of the above data interaction methods A step of.
一方面,提供一种计算机可读介质,其存储有可由终端设备执行的计算机程序,当程序在终端设备上运行时,使得终端设备执行上述任一种数据交互的方法的步骤。In one aspect, a computer-readable medium is provided, which stores a computer program executable by a terminal device, and when the program runs on the terminal device, causes the terminal device to perform any of the steps of the above data interaction method.
本申请实施例提供的一种数据交互的方法、装置、终端设备和介质中,网络侧将用户终端发送至目标服务器的访问请求消息进行镜像分光处理,并将复制获得的访问请求消息发送至运营服务器。运营服务器根据对访问请求消息解析获得的终端地址信息,向用户终端发送包含自身的服务器地址信息的业务脚本消息,使得用户终端根据接收的业务脚本消息与运营服务器进行业务交互。这样,运营服务器通过镜像分光的方式获取用户终端的终端地址信息,与用户终端建立连接,不会违背网络组织规范,降低了网络故障风险以及业务时延。In the data interaction method, device, terminal device, and medium provided by the embodiments of the present application, the network side performs mirror splitting processing on the access request message sent by the user terminal to the target server, and sends the access request message obtained by copying to the operator server. The operation server sends a service script message including its own server address information to the user terminal according to the terminal address information obtained by parsing the access request message, so that the user terminal performs service interaction with the operation server according to the received service script message. In this way, the operation server obtains the terminal address information of the user terminal by means of mirroring and splitting, and establishes a connection with the user terminal, which does not violate the network organization specification and reduces the risk of network failure and service delay.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present application will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description, claims, and drawings.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the attached image:
图1为本申请提供的一种应用场景图;Fig. 1 is a kind of application scene diagram that this application provides;
图2为本申请实施方式中一种数据交互的方法的实施流程图;FIG. 2 is an implementation flowchart of a method for data interaction in an embodiment of the present application;
图3为本申请实施方式中一种数据交互的应用流程图;FIG. 3 is an application flowchart of a data interaction in an embodiment of the present application;
图4为本申请实施方式中一种数据交互的装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for data interaction in an embodiment of the present application.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and beneficial effects of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
为了在用户终端与业务营销平台交互时,降低业务风险和业务时延,本申请实施例提供了一种数据交互的方法、装置、终端设备和介质。In order to reduce service risk and service delay when a user terminal interacts with a service marketing platform, the embodiments of the present application provide a data interaction method, apparatus, terminal device and medium.
参阅图1所示,为一种应用场景图,包括用户终端100,核心网101,镜像分光设备102,运营服务器103。Referring to FIG. 1 , it is an application scenario diagram, including a
用户终端100是具备网络通信能力的电子设备,该电子设备可以是智能手机以及智能手环等。The
核心网101主要是提供用户连接、对用户的管理以及对业务完成承载,作为承载网络提供到外部网络的接口。The
镜像分光设备102用于对流量进行复制,采集用户访问网络的请求消息。可选的,可以为基于数据包的深度检测技术(Deep Packet Inspection,DPI)分光器。The mirroring
运营服务器103可以是一台服务器或若干台服务器组成的服务器集群或云计算中心。The
用户终端100通过核心网101发送包含业务URL访问请求消息,镜像分光设备102对经过核心网101的访问请求消息进行镜像分光处理,并将复制获得的访问请求消息发送至运营服务器103。运营服务器103对接收的访问请求消息进行解析,获得访问请求消息中的协议类型和终端地址信息。运营服务器103确定访问请求消息中包含的协议类型为指定协议类型,并且终端地址信息中包含手机号码时,向用户终端100发送包含运营服务器103的服务器地址信息以及上述业务URL的业务脚本消息。用户终端100根据接收的业务脚本消息与运营服务器103进行交互。The
这样,就可以在用户进行网络访问时,对用户的访问请求消息进行复制,并根据复制的访问请求消息获取用户终端的终端地址信息,进而根据获取的终端地址信息在运营服务器和用户终端之间建立连接。运营服务器可以通过该连接为用户终端提供营销链接,实现业务营销。In this way, when the user accesses the network, the user's access request message can be copied, and the terminal address information of the user terminal can be obtained according to the copied access request message, and then the terminal address information of the user terminal can be obtained according to the obtained terminal address information. establish connection. The operation server can provide a marketing link for the user terminal through the connection to realize business marketing.
参阅图2所示,为本申请提供的一种数据交互的方法的实施流程图。该方法的具体实施流程如下:Referring to FIG. 2 , an implementation flowchart of a method for data interaction provided by the present application is shown. The specific implementation process of the method is as follows:
步骤200:用户终端向网络侧发送访问请求消息。Step 200: The user terminal sends an access request message to the network side.
其中,访问请求消息中至少包含访问请求网页的URL。Wherein, the access request message contains at least the URL of the access request webpage.
例如,用户通过用户终端内设置的浏览器应用程序,发送包含URL:https://www.sina.com.cn/的访问请求消息。For example, the user sends an access request message including URL: https://www.sina.com.cn/ through a browser application set in the user terminal.
步骤201:网络侧根据访问请求消息中包含的URL,将访问请求消息发送至相应的目标服务器,并将通过镜像分光的方式复制的访问请求消息,转发至运营服务器。Step 201: The network side sends the access request message to the corresponding target server according to the URL included in the access request message, and forwards the access request message copied by the mirroring method to the operation server.
具体的,网络侧包括:核心网和镜像分光设备。镜像分光设备可以为DPI分光器。运营服务器可以为Toolbar服务器。镜像分光设备用于对访问请求消息进行镜像分光处理,即消息复制。Specifically, the network side includes: a core network and a mirroring optical splitting device. The mirror splitting device can be a DPI splitter. The operation server may be the Toolbar server. The mirror optical splitting device is used to perform mirror optical splitting processing on the access request message, that is, message duplication.
一方面,核心网接收用户终端发送的访问请求消息,根据访问请求消息中包含的URL,将访问请求消息直接发送至相应的目标服务器。On the one hand, the core network receives the access request message sent by the user terminal, and directly sends the access request message to the corresponding target server according to the URL included in the access request message.
另一方面,镜像分光设备对核心网接收的访问请求消息进行镜像分光处理,并将复制的访问请求消息转发至业务营销平台的运营服务器。On the other hand, the mirror optical splitting device performs mirror optical splitting processing on the access request message received by the core network, and forwards the copied access request message to the operation server of the service marketing platform.
例如,核心网接收用户终端发送的包含URL:https://www.sina.com.cn/的访问请求消息,并将该访问请求消息发送至新浪服务器。DPI分光器将核心网接收的访问请求消息进行镜像分光处理,并将镜像分光处理获得的访问请求消息发送至Toolbar服务器。For example, the core network receives an access request message including the URL: https://www.sina.com.cn/ sent by the user terminal, and sends the access request message to the Sina server. The DPI splitter performs mirror splitting processing on the access request message received by the core network, and sends the access request message obtained by the mirror splitting processing to the Toolbar server.
步骤202:运营服务器对接收的访问请求消息进行解析,获得访问请求消息中包含的协议类型和终端地址信息。Step 202: The operation server parses the received access request message, and obtains the protocol type and terminal address information contained in the access request message.
可选的,终端地址信息可以包括以下参数中的任意一种或组合:Optionally, the terminal address information may include any one or a combination of the following parameters:
手机号码、互联网协议(Internet Protocol,IP)地址,以及端口号。Mobile phone number, Internet Protocol (IP) address, and port number.
步骤203:运营服务器根据解析结果,判断访问请求消息是否符合预设交互条件,若是,则执行步骤204,否则,执行步骤208。Step 203: According to the analysis result, the operation server determines whether the access request message complies with the preset interaction condition, if yes, executes
具体的,若访问请求消息中包含的协议类型为指定协议类型,并且终端地址信息中包含手机号码,则运营服务器判定访问请求消息符合预设交互条件。Specifically, if the protocol type included in the access request message is a specified protocol type, and the terminal address information includes a mobile phone number, the operation server determines that the access request message meets the preset interaction conditions.
可选的,指定协议类型可以为超文本传输协议(Hyper Text TransportProtocol,HTTP)。实际应用中,指定类型协议可以根据实际需求进行设定,本申请对此不做限定。Optionally, the specified protocol type may be Hyper Text Transport Protocol (Hyper Text Transport Protocol, HTTP). In practical applications, the specified type of protocol may be set according to actual requirements, which is not limited in this application.
步骤204:运营服务器根据用户终端的终端地址信息,向用户终端发送业务脚本消息。Step 204: The operation server sends a service script message to the user terminal according to the terminal address information of the user terminal.
具体的,运营服务器根据用户终端的手机号码、IP地址,以及端口号,向用户终端发送业务脚本消息。Specifically, the operation server sends a service script message to the user terminal according to the mobile phone number, IP address, and port number of the user terminal.
其中,业务脚本消息中至少包含运营服务器的服务器地址信息以及URL。服务器地址信息包括运营服务器的IP地址和端口号。The service script message includes at least server address information and URL of the operating server. The server address information includes the IP address and port number of the operating server.
本申请实施例中,运营服务器将运营服务器的IP地址、端口号以及URL封装为Toolbar初始化脚本,并将包含Toolbar初始化脚本的业务脚本消息发送至用户终端。In the embodiment of the present application, the operation server encapsulates the IP address, port number and URL of the operation server into a Toolbar initialization script, and sends a service script message including the Toolbar initialization script to the user terminal.
步骤205:用户终端接收运营服务器返回的业务脚本消息。Step 205: The user terminal receives the service script message returned by the operation server.
本申请实施例中,运营服务器根据镜像分光处理获得的访问请求消息,向用户终端返回业务脚本消息。目标服务器也会根据接收的访问请求消息向用户终端返回访问响应消息。实际应用中,用户终端通常会先接收到业务脚本消息,后接收到访问响应消息。由于请求消息与响应消息是一一对应的,因此,用户终端接收到业务脚本消息后,就会丢弃后续接收到的访问响应消息,为避免影响用户的访问请求,用户终端会根据接收的业务脚本消息中包含的URL,再次向目标服务器发出访问请求消息。这样,避免了对用户正常网络访问的影响。In the embodiment of the present application, the operation server returns a service script message to the user terminal according to the access request message obtained by the mirror splitting process. The target server also returns an access response message to the user terminal according to the received access request message. In practical applications, the user terminal usually first receives the service script message, and then receives the access response message. Since the request message and the response message are in one-to-one correspondence, after receiving the service script message, the user terminal will discard the subsequently received access response message. In order to avoid affecting the user's access request, the user terminal will The URL contained in the message sends an access request message to the target server again. In this way, the influence on the normal network access of the user is avoided.
步骤206:用户终端根据接收的业务脚本消息,向运营服务器发送业务请求消息。Step 206: The user terminal sends a service request message to the operation server according to the received service script message.
具体的,用户终端获取业务脚本消息中包含的运营服务器的IP地址和端口号,并根据该IP地址和端口号,向运营服务器发送业务请求消息。Specifically, the user terminal acquires the IP address and port number of the operation server contained in the service script message, and sends a service request message to the operation server according to the IP address and port number.
其中,业务请求消息为与运营商进行交互的消息。例如,业务请求消息可以为流量查询消息,或者流量订购消息等。Wherein, the service request message is a message for interacting with the operator. For example, the service request message may be a traffic query message, or a traffic order message.
步骤207:运营服务器根据接收的业务请求消息,向用户终端返回业务响应消息。Step 207: The operation server returns a service response message to the user terminal according to the received service request message.
具体的,若确定业务请求消息符合预设筛选条件,则运营服务器根据业务请求消息向用户终端返回包含营销URL的业务响应消息,否则,向用户终端返回表征业务请求失败的业务响应消息。Specifically, if it is determined that the service request message meets the preset screening conditions, the operation server returns a service response message including the marketing URL to the user terminal according to the service request message, otherwise, returns a service response message representing the failure of the service request to the user terminal.
其中,业务响应消息中还包含业务查询信息,业务查询信息为运营服务器通过业务服务器返回的业务请求的相应信息。业务服务器为用户提供业务办理服务的服务器。例如,计费服务器应用程序接口(Application Program Interface,API),以及客户关系管理(customer relationship management,CRM)服务器API。The service response message further includes service query information, and the service query information is the corresponding information of the service request returned by the operation server through the service server. The business server is a server that provides business handling services for users. For example, billing server application program interface (Application Program Interface, API), and customer relationship management (customer relationship management, CRM) server API.
可选的,表征业务请求失败的业务响应消息可以为空消息。Optionally, the service response message representing the failure of the service request may be an empty message.
可选的,确定业务请求消息符合预设筛选条件时,可以采用以下几种方式中的任意一种或任意组合:Optionally, when it is determined that the service request message meets the preset screening conditions, any one or any combination of the following methods may be used:
第一种方式为:确定业务请求消息的接收时间位于预设允许时间段内。The first way is to determine that the receiving time of the service request message is within a preset allowable time period.
第二种方式为:根据业务请求消息,获取用户终端的手机号码,确定手机号码被包含在存储的白名单中。The second method is: obtaining the mobile phone number of the user terminal according to the service request message, and determining that the mobile phone number is included in the stored white list.
第三种方式为:根据业务请求消息,获取用户终端的终端标识信息,确定终端标识信息符合预设标识条件。The third manner is: acquiring the terminal identification information of the user terminal according to the service request message, and determining that the terminal identification information meets the preset identification conditions.
其中,终端标识信息可以为终端跟踪区域码(Tracking area code of cellservedby neighbor Enb,TAC)。The terminal identification information may be a terminal tracking area code (Tracking area code of cellserved by neighbor Enb, TAC).
采用第三种方式,可以在根据用户终端的设备型号,判定业务请求消息是否符合预设条件。In the third manner, it can be determined whether the service request message meets the preset condition according to the device model of the user terminal.
第四种方式为:根据业务请求消息,获取业务请求消息的投递频率,确定投递频率低于预设频率门限值。The fourth manner is: obtaining the delivery frequency of the service request message according to the service request message, and determining that the delivery frequency is lower than the preset frequency threshold value.
步骤208:运营服务器丢弃访问请求消息。Step 208: The operation server discards the access request message.
本申请实施例中,通过镜像分光设备旁路采集核心网传输的数据,不需要在用户终端与目标服务器之间的网络流程中添加新的网络节点,减少了用户网络请求的访问流程,能够有效缩短业务时延。运营服务器与核心网之间相互独立,即便运营服务器发生故障,核心网和目标服务器仍然能够正常运行,不会存在重大故障隐患,不会影响用户终端的上网业务,减少了故障风险。进一步地,业务脚本消息中仅包含IP地址,端口号以及URL等少量信息,占用的数据包较少,时延少,网络负担较小。In the embodiment of the present application, the data transmitted by the core network is collected by the mirrored optical splitting device, and it is not necessary to add a new network node in the network process between the user terminal and the target server, which reduces the access process of the user's network request, and can effectively Shorten business delays. The operation server and the core network are independent of each other. Even if the operation server fails, the core network and the target server can still operate normally, and there will be no hidden dangers of major failures, which will not affect the Internet services of user terminals, reducing the risk of failure. Further, the service script message only contains a small amount of information such as IP address, port number, and URL, which occupies fewer data packets, reduces delay, and reduces network burden.
参阅图3所示,为一种数据交互的应用流程图。包括运营服务器的业务脚本获取场景,以及业务交互场景。Referring to FIG. 3, it is an application flow chart of data interaction. Including the business script acquisition scene of the operation server, and the business interaction scene.
下面采用一个具体的应用场景示例,对上述实施例中业务脚本获取流程进行进一步说明。The following uses a specific application scenario example to further describe the business script acquisition process in the above embodiment.
步骤300:用户终端采用浏览器应用程序等方式向目标服务器发送访问请求消息。Step 300: The user terminal sends an access request message to the target server by means of a browser application or the like.
其中,访问请求消息中包含访问请求网页的目标URL。The access request message includes the target URL of the access request webpage.
步骤301:核心网接收用户终端发送的访问请求消息。Step 301: The core network receives the access request message sent by the user terminal.
步骤302:DPI分光器对核心网接收的访问请求消息进行镜像分光处理,获得复制的访问请求消息,并将访问请求消息发送至Toolbar服务器。Step 302: The DPI optical splitter performs mirroring and optical splitting processing on the access request message received by the core network, obtains a duplicated access request message, and sends the access request message to the Toolbar server.
步骤303:Toolbar服务器判断访问请求消息是否符合预设交互条件,若是,则执行步骤304,否则,执行步骤306。Step 303: The Toolbar server judges whether the access request message meets the preset interaction condition, if yes, executes
步骤304:Toolbar服务器获取访问请求消息中包含的终端地址信息。Step 304: The Toolbar server obtains the terminal address information contained in the access request message.
步骤305:Toolbar服务器通过核心网向用户终端返回包含Toolbar初始化脚本的业务脚本消息。Step 305: The Toolbar server returns a service script message including the Toolbar initialization script to the user terminal through the core network.
步骤306:Toolbar服务器丢弃访问请求消息。Step 306: The Toolbar server discards the access request message.
步骤311:目标服务器接收核心网发送的访问请求消息,并通过核心网向用户终端返回访问请求消息。Step 311: The target server receives the access request message sent by the core network, and returns the access request message to the user terminal through the core network.
综上,用户终端发送访问请求消息后,通过步骤301-步骤305,获得运营服务器返回的业务脚本消息,并通过步骤301和步骤311获得目标服务器返回的访问响应消息。To sum up, after sending the access request message, the user terminal obtains the service script message returned by the operation server through
由于请求消息与响应消息为一对一关系,即用户终端发送访问请求消息后,仅会接收最先返回的响应消息,丢弃后续返回的响应消息,因此,用户终端若先接收到业务脚本消息,则根据业务脚本消息中包含的业务URL,再次向目标服务器发送上述访问请求消息,以避免影像用户终端的正常网络访问。若步骤302-步骤305中存在节点出现故障,也不会影响用户终端与目标服务器之间的交互。降低了出现故障的风险。Since the request message and the response message have a one-to-one relationship, that is, after the user terminal sends the access request message, it will only receive the response message returned first, and discard the response message returned later. Therefore, if the user terminal receives the service script message first, it will Then, according to the service URL included in the service script message, the above-mentioned access request message is sent to the target server again, so as to avoid normal network access of the video user terminal. If there is a node failure in
下面采用一个具体的应用场景示例,对上述实施例中业务脚本获取流程进行进一步说明。The following uses a specific application scenario example to further describe the business script acquisition process in the above embodiment.
步骤321:用户终端根据接收的业务脚本消息,向运营服务器发送业务请求消息。Step 321: The user terminal sends a service request message to the operation server according to the received service script message.
步骤322:运营服务器判断接收的业务请求消息是否符合预设筛选条件,若是,则执行步骤323,否则,向用户终端返回空消息。Step 322: The operation server determines whether the received service request message meets the preset screening conditions, and if yes, executes
步骤323:运营服务器通过计费服务器API,以及CRM服务器API,获取业务查询信息,并将包含业务查询信息的业务响应消息返回至用户终端。Step 323: The operation server obtains service query information through the billing server API and the CRM server API, and returns a service response message including the service query information to the user terminal.
这样,用户终端就可以与运营服务器之间建立连接,并通过建立的连接进行交互。不需要在用户终端与目标服务器之间的网络流程中添加新的网络节点,不会增加业务时延,降低了网络故障的风险,不会违背网络组织规范,通过复制访问请求消息获得的终端地址信息,向用户终端发送包含营销业务(如,流量套餐广告)的业务脚本,也不会影响用户终端的正常业务访问。In this way, the user terminal can establish a connection with the operation server, and interact through the established connection. There is no need to add a new network node in the network process between the user terminal and the target server, it will not increase the service delay, reduce the risk of network failure, and will not violate the network organization specification. The terminal address obtained by copying the access request message information, and sending a business script including marketing services (eg, traffic package advertisements) to the user terminal will not affect the normal service access of the user terminal.
本申请实施例中,一种电子设备,包括:一个或多个处理器;In this embodiment of the present application, an electronic device includes: one or more processors;
以及一个或多个计算机可读介质,可读介质上存储有用于数据交互的程序,其中,程序被一个或多个处理器执行时,实现上述实施例中的各个步骤。and one or more computer-readable media, on which a program for data interaction is stored, wherein, when the program is executed by one or more processors, each step in the above embodiments is implemented.
本申请实施例中,一个或多个计算机可读介质,可读介质上存储有用于数据交互的程序,其中,程序被一个或多个处理器执行时,使得通信设备可以执行上述实施例中的各个步骤。In this embodiment of the present application, one or more computer-readable media, on which a program for data interaction is stored, where, when the program is executed by one or more processors, the communication device can execute the each step.
基于同一发明构思,本申请实施例中还提供了一种数据交互的装置,由于上述装置及设备解决问题的原理与一种数据交互的方法相似,因此,上述装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present application also provides a data interaction device. Since the above-mentioned device and device solve the problem in a similar way to a data interaction method, the implementation of the above-mentioned device can refer to the implementation of the method. The repetition will not be repeated.
如图4所示,其为本申请实施例提供的一种数据交互的装置的结构示意图,包括:As shown in FIG. 4 , which is a schematic structural diagram of a data interaction apparatus provided by an embodiment of the present application, including:
复制单元40,用于接收网络侧通过镜像分光的方式复制并转发的访问请求消息,访问请求消息是用户终端通过网络侧发送至目标服务器的消息;The copying
解析单元41,用于解析访问请求消息,根据解析结果,确定访问请求消息的协议类型,以及包含的终端地址信息;The parsing
发送单元42,用于若访问请求消息的协议类型以及终端地址信息符合预设交互条件,则根据终端地址信息,向用户终端发送业务脚本消息,业务脚本消息中至少包含运营服务器的服务器地址信息;The sending
响应单元43,用于接收用户终端基于业务脚本消息中包含的服务器地址信息发送的业务请求消息,并根据业务请求消息,向用户终端返回业务响应消息。The
较佳的,发送单元42用于:Preferably, the sending
若访问请求消息的协议类型为指定协议类型,并且终端地址信息中包含手机号码,则判定访问请求消息符合预设交互条件;If the protocol type of the access request message is the specified protocol type, and the terminal address information includes the mobile phone number, it is determined that the access request message meets the preset interaction conditions;
获取终端地址信息中还包含的IP地址,以及端口号;Obtain the IP address and port number also included in the terminal address information;
根据终端地址信息中包含的IP地址,端口号,以及手机号码,向用户终端发送业务脚本消息。According to the IP address, port number, and mobile phone number contained in the terminal address information, a service script message is sent to the user terminal.
较佳的,响应单元43用于:Preferably, the
若确定业务请求消息符合预设筛选条件,则根据业务请求消息,向用户终端返回包含营销统一资源定位符URL的业务响应消息;If it is determined that the service request message meets the preset screening conditions, returning a service response message including the marketing uniform resource locator URL to the user terminal according to the service request message;
否则,向用户终端返回表征业务请求失败的业务响应消息。Otherwise, a service response message representing the failure of the service request is returned to the user terminal.
较佳的,响应单元43用于:Preferably, the
确定业务请求消息的接收时间位于预设允许时间段内;determining that the receiving time of the service request message is within a preset allowable time period;
根据业务请求消息获取用户终端的手机号码,确定手机号码被包含在存储的白名单中;Obtain the mobile phone number of the user terminal according to the service request message, and determine that the mobile phone number is included in the stored whitelist;
根据业务请求消息获取用户终端的终端标识信息,确定终端标识信息符合预设标识条件;或,Obtain the terminal identification information of the user terminal according to the service request message, and determine that the terminal identification information meets the preset identification conditions; or,
根据业务请求消息,获取业务请求消息的投递频率,确定投递频率低于预设频率门限值。According to the service request message, the delivery frequency of the service request message is obtained, and it is determined that the delivery frequency is lower than the preset frequency threshold value.
本申请实施例提供的一种数据交互的方法、装置、终端设备和介质中,网络侧将用户终端发送至目标服务器的访问请求消息进行镜像分光处理,并将复制获得的访问请求消息发送至运营服务器。运营服务器根据对访问请求消息解析获得的终端地址信息,向用户终端发送包含自身的服务器地址信息的业务脚本消息,使得用户终端根据接收的业务脚本消息与运营服务器进行业务交互。这样,运营服务器通过镜像分光的方式获取用户终端的终端地址信息,与用户终端建立连接,不会违背网络组织规范,降低了网络故障风险以及业务时延。In the data interaction method, device, terminal device, and medium provided by the embodiments of the present application, the network side performs mirror splitting processing on the access request message sent by the user terminal to the target server, and sends the access request message obtained by copying to the operator server. The operation server sends a service script message including its own server address information to the user terminal according to the terminal address information obtained by parsing the access request message, so that the user terminal performs service interaction with the operation server according to the received service script message. In this way, the operation server obtains the terminal address information of the user terminal by means of mirroring and splitting, and establishes a connection with the user terminal, which does not violate the network organization specification and reduces the risk of network failure and service delay.
为了描述的方便,以上各部分按照功能划分为各模块(或单元)分别描述。当然,在实施本申请时可以把各模块(或单元)的功能在同一个或多个软件或硬件中实现。For the convenience of description, the above parts are divided into modules (or units) according to their functions and described respectively. Of course, the functions of each module (or unit) may be implemented in one or more software or hardware when implementing the present application.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by those skilled in the art, the embodiments of the present application may be provided as a method, a system, or a computer program product. 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. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a 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 function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiments of the present application have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of this application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811497237.XACN111294798B (en) | 2018-12-07 | 2018-12-07 | A method, device, terminal device and medium for data interaction |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811497237.XACN111294798B (en) | 2018-12-07 | 2018-12-07 | A method, device, terminal device and medium for data interaction |
| Publication Number | Publication Date |
|---|---|
| CN111294798Atrue CN111294798A (en) | 2020-06-16 |
| CN111294798B CN111294798B (en) | 2023-04-28 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811497237.XAActiveCN111294798B (en) | 2018-12-07 | 2018-12-07 | A method, device, terminal device and medium for data interaction |
| Country | Link |
|---|---|
| CN (1) | CN111294798B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113259407A (en)* | 2021-03-25 | 2021-08-13 | 上海卓悠网络科技有限公司 | Data interaction method and device based on application market architecture |
| CN113489714A (en)* | 2021-07-02 | 2021-10-08 | 上海瀚之友信息技术服务有限公司 | Multi-module-based intelligent message cross processing method and system |
| CN113723991A (en)* | 2021-08-10 | 2021-11-30 | 上海原圈网络科技有限公司 | Marketing article influence analysis processing method and device |
| CN114025333A (en)* | 2021-11-01 | 2022-02-08 | 中国电信股份有限公司甘肃分公司 | Flow configuration method, device and storage medium |
| CN114095571A (en)* | 2020-07-30 | 2022-02-25 | 中移(苏州)软件技术有限公司 | Data processing method, data service bus, terminal and storage medium |
| CN114124477A (en)* | 2021-11-05 | 2022-03-01 | 深圳市联软科技股份有限公司 | Business service system and method |
| CN114095554B (en)* | 2021-12-01 | 2024-01-12 | 浙江国利网安科技有限公司 | Industrial control data processing method and device, storage medium and industrial control gateway |
| WO2024065134A1 (en)* | 2022-09-26 | 2024-04-04 | 北京小米移动软件有限公司 | Terminal device status auxiliary operation method and apparatus |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101296256A (en)* | 2008-06-19 | 2008-10-29 | 中国电信股份有限公司 | Method and system for implementing accurate information propelling by internet |
| CN102523274A (en)* | 2011-06-28 | 2012-06-27 | 北京亿赞普网络技术有限公司 | Core network side based system and method for initiatively pushing wireless personalized accurate information |
| CN104426977A (en)* | 2013-09-02 | 2015-03-18 | 杭州鹏信科技有限公司 | Method for realizing initiative and accurate pushing of information specific to private network users |
| CN104869045A (en)* | 2014-02-20 | 2015-08-26 | 中兴通讯股份有限公司 | Page pushing method, page pushing device, page pushing server and page pushing system |
| CN108667921A (en)* | 2018-04-27 | 2018-10-16 | 中国农业银行股份有限公司 | A kind of banking recommendation information generation method and system based on network bypass |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101296256A (en)* | 2008-06-19 | 2008-10-29 | 中国电信股份有限公司 | Method and system for implementing accurate information propelling by internet |
| CN102523274A (en)* | 2011-06-28 | 2012-06-27 | 北京亿赞普网络技术有限公司 | Core network side based system and method for initiatively pushing wireless personalized accurate information |
| CN104426977A (en)* | 2013-09-02 | 2015-03-18 | 杭州鹏信科技有限公司 | Method for realizing initiative and accurate pushing of information specific to private network users |
| CN104869045A (en)* | 2014-02-20 | 2015-08-26 | 中兴通讯股份有限公司 | Page pushing method, page pushing device, page pushing server and page pushing system |
| CN108667921A (en)* | 2018-04-27 | 2018-10-16 | 中国农业银行股份有限公司 | A kind of banking recommendation information generation method and system based on network bypass |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114095571A (en)* | 2020-07-30 | 2022-02-25 | 中移(苏州)软件技术有限公司 | Data processing method, data service bus, terminal and storage medium |
| CN113259407A (en)* | 2021-03-25 | 2021-08-13 | 上海卓悠网络科技有限公司 | Data interaction method and device based on application market architecture |
| CN113489714A (en)* | 2021-07-02 | 2021-10-08 | 上海瀚之友信息技术服务有限公司 | Multi-module-based intelligent message cross processing method and system |
| CN113723991A (en)* | 2021-08-10 | 2021-11-30 | 上海原圈网络科技有限公司 | Marketing article influence analysis processing method and device |
| CN113723991B (en)* | 2021-08-10 | 2024-04-19 | 上海原圈网络科技有限公司 | Marketing article influence analysis processing method and device |
| CN114025333A (en)* | 2021-11-01 | 2022-02-08 | 中国电信股份有限公司甘肃分公司 | Flow configuration method, device and storage medium |
| CN114124477A (en)* | 2021-11-05 | 2022-03-01 | 深圳市联软科技股份有限公司 | Business service system and method |
| CN114124477B (en)* | 2021-11-05 | 2024-04-05 | 深圳市联软科技股份有限公司 | Business service system and method |
| CN114095554B (en)* | 2021-12-01 | 2024-01-12 | 浙江国利网安科技有限公司 | Industrial control data processing method and device, storage medium and industrial control gateway |
| WO2024065134A1 (en)* | 2022-09-26 | 2024-04-04 | 北京小米移动软件有限公司 | Terminal device status auxiliary operation method and apparatus |
| Publication number | Publication date |
|---|---|
| CN111294798B (en) | 2023-04-28 |
| Publication | Publication Date | Title |
|---|---|---|
| CN111294798B (en) | A method, device, terminal device and medium for data interaction | |
| US10587544B2 (en) | Message processing method, processing server, terminal, and storage medium | |
| CN104580406B (en) | A kind of method and apparatus of synchronous logging state | |
| CN103257989B (en) | Web page download time is analyzed | |
| US9753794B2 (en) | Method and apparatus for controlling sending of heartbeat signal | |
| CN109587275A (en) | A kind of method for building up and proxy server of communication connection | |
| CN101695164A (en) | Verification method, device and system for controlling resource access | |
| CN113347739B (en) | Communication method, communication device, computer readable medium and electronic equipment | |
| CN104301161B (en) | Calculation method, calculation device and communication system of service quality index | |
| CN107026758B (en) | Information processing method, information processing system and server for CDN service update | |
| CN103547333A (en) | Advertisement push method, device and system | |
| CN105812435A (en) | Application upgrading data package processing method and device, electronic equipment, and system | |
| CN105657000A (en) | Message transmission method and device | |
| CN106412034A (en) | Business processing method and apparatus | |
| CN104518968B (en) | The method and Transparent proxy server of a kind of Message processing | |
| CN107786992A (en) | A kind of method and apparatus for detecting mobile communication network quality | |
| CN107368334B (en) | Business plug-in interaction system and method | |
| CN112825524B (en) | Method, device and system for determining network service node | |
| US10700879B2 (en) | Charging method and device, access device, service quality control method and device | |
| CN104902432A (en) | Method and device for generating application operation log of terminal mobile | |
| KR102482444B1 (en) | Apparatus for advertising interception and control method thereof | |
| CN106790176B (en) | Method and system for accessing network | |
| CN111935316B (en) | Method and device for acquiring front-end equipment catalog | |
| CN110198294A (en) | Security attack detection method and device | |
| CN110636114B (en) | Customer service access method, access system, service system and cloud platform |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | 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 |