CN112073512B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN112073512B
CN112073512B CN202010933496.3A CN202010933496A CN112073512B CN 112073512 B CN112073512 B CN 112073512B CN 202010933496 A CN202010933496 A CN 202010933496A CN 112073512 B CN112073512 B CN 112073512B
Authority
CN
China
Prior art keywords
user identifier
request
data corresponding
network request
network
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
CN202010933496.3A
Other languages
Chinese (zh)
Other versions
CN112073512A (en
Inventor
马占勇
刘鸿光
刘艳伟
唐媛
舒克私
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
China Unicom Online Information Technology Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
China Unicom Online Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd, China Unicom Online Information Technology Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202010933496.3A priority Critical patent/CN112073512B/en
Publication of CN112073512A publication Critical patent/CN112073512A/en
Application granted granted Critical
Publication of CN112073512B publication Critical patent/CN112073512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a data processing method and equipment, wherein the method comprises the following steps: receiving a first network request sent by a browser, acquiring flow data corresponding to a user identifier according to the first network request, constructing a response message according to the first network request, the flow data corresponding to the user identifier and a popup request carrying the user identifier, sending a reinjection request to the browser according to the response message, receiving a second network request sent by the browser according to the response message in the reinjection request, searching signaling plane data corresponding to the user identifier based on the second network request, performing association processing on the flow data corresponding to the user identifier and the signaling plane data to obtain associated data corresponding to the user identifier, matching the associated data corresponding to the user identifier with a pre-stored service rule to obtain a target service rule, and executing a corresponding target service according to the target service rule. The data reinjection under the 5G network architecture is realized, and the normal operation of a service system is ensured.

Description

Data processing method and device
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a data processing method and data processing equipment.
Background
With the development of network technology, the internet has penetrated into various fields of work, study, life and the like of people.
Under the traditional 4G network architecture, a signaling plane network element and a user plane network element are located at the same position, and the convergence and shunt device can adopt a mixed acquisition mode to simultaneously converge signaling plane data and user plane data, and carry out real-time association on the signaling plane data and the user plane data in the device to prepare for calling data of a service system later.
With the development of the 5G technology, the traditional 4G network architecture is gradually converted to the 5G network architecture, however, under the 5G network architecture, the signaling plane data is processed in a large area node in a centralized manner, and the user plane data is distributed at each city node, that is, the signaling plane data and the user plane data are not located at the same position, so that the 5G network architecture cannot realize data reinjection by adopting the existing reinjection method, and the normal operation of a service system corresponding to the data is influenced.
Disclosure of Invention
The embodiment of the invention provides a data processing method and equipment, which are used for realizing data reinjection under a 5G network architecture so as to ensure the normal operation of a service system corresponding to data.
In a first aspect, an embodiment of the present invention provides a data processing method, including: receiving a first network request sent by a browser, and acquiring traffic data corresponding to a user identifier according to the first network request, wherein the user identifier is carried in the first network request; constructing a response message according to the first network request, the flow data corresponding to the user identifier and the popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message; receiving a second network request sent by the browser according to a response message in the reinjection request, wherein the second network request carries the user identifier; based on the second network request, searching signaling surface data corresponding to the user identifier, and performing association processing on traffic data corresponding to the user identifier and the signaling surface data to obtain associated data corresponding to the user identifier, wherein the signaling surface data corresponding to the user identifier is pre-stored in a database; and matching the associated data corresponding to the user identification with a pre-stored service rule to obtain a target service rule, and executing the corresponding target service according to the target service rule.
Optionally, the constructing a response packet according to the first network request, the traffic data corresponding to the user identifier, and the popup request carrying the user identifier, and sending a response request to the browser according to the response packet includes: analyzing the flow data corresponding to the user identification according to the first network request to obtain a target address, a destination port number, a source address, a source port number, a protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identification; generating a popup request according to the user identifier; and constructing a response message according to the first network request, a corresponding target address, a corresponding destination port number, a corresponding source address, a corresponding source port number, a corresponding protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identifier and a popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message.
Optionally, before the generating a popup request according to the user identifier, the method further includes: based on a rule engine, matching a target address, a destination port number, a source address, a source port number, a protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identifier with rules in a pre-stored rule base; and if the matching is successful, executing the steps of generating the popup request according to the user identification and the following steps.
Optionally, the matching the associated data corresponding to the user identifier with a pre-stored service rule to obtain a target service rule, and executing a corresponding target service according to the target service rule, where the matching includes: acquiring matching field information of the associated data corresponding to the user identification; and matching the matching field information with a prestored service rule to obtain a target service rule, and executing a corresponding target service according to the target service rule, wherein the target service comprises any one or more of a telephone fee package transaction service, a broadband network access transaction service and a flow packet transaction service.
Optionally, after receiving the first network request sent by the browser, the method further includes: and acquiring signaling plane data corresponding to the user identification, and storing the signaling plane data corresponding to the user identification into a database.
Optionally, the popup request carrying the user identifier is a toolbar popup request carrying the user identifier.
Optionally, the first network request and the second network request are both network requests in a hypertext transfer protocol HTTP format.
Optionally, the obtaining of the traffic data corresponding to the user identifier according to the first network request includes: and based on a DPDK drive of a data plane development kit, acquiring the flow data at the network card packet capturing port corresponding to the user identifier according to the first network request.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including: at least one processor and memory; the memory stores computer-executable instructions; the at least one processor executing the computer executable instructions stored by the memory causes the computer program when executed to implement the steps of: receiving a first network request sent by a browser, and acquiring traffic data corresponding to a user identifier according to the first network request, wherein the user identifier is carried in the first network request; constructing a response message according to the first network request, the flow data corresponding to the user identifier and the popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message; receiving a second network request sent by the browser according to a response message in the reinjection request, wherein the second network request carries the user identifier; based on the second network request, searching signaling surface data corresponding to the user identifier, and performing association processing on traffic data corresponding to the user identifier and the signaling surface data to obtain associated data corresponding to the user identifier, wherein the signaling surface data corresponding to the user identifier is pre-stored in a database; and matching the associated data corresponding to the user identification with a pre-stored service rule to obtain a target service rule, and executing the corresponding target service according to the target service rule.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the data processing method according to any one of the first aspect is implemented.
The embodiment of the invention provides a data processing method and equipment, after the scheme is adopted, the flow data corresponding to a user identifier carried in a first network request can be obtained according to the received first network request sent by a browser, a response message is constructed according to the first network request, the flow data corresponding to the user identifier and a popup request carrying the user identifier, a reinjection request is sent to the browser according to the response message, a second network request sent by the browser according to the reinjection request is received, signaling plane data corresponding to the user identifier is searched based on the second network request, the associated data after the association processing of the signaling plane data and the user data is obtained, the associated data is matched with the pre-stored service rule to obtain a target service rule, and finally, the corresponding target service is executed according to the target service rule, so that the reinjection of the data under a 5G network architecture is realized, and further, the normal operation of the service system corresponding to the data is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an application system of a data processing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 3 is an interaction diagram of a data processing method according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of a data processing device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of including other sequential examples in addition to those illustrated or described. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Under the traditional 4G network architecture, a signaling plane network element and a user plane network element are located at the same position, and the convergence and shunt device can adopt a mixed acquisition mode to simultaneously converge signaling plane data and user plane data, and carry out real-time association on the signaling plane data and the user plane data in the device to prepare for calling data of a service system later.
For the application of the internet access pipeline, the current general method is that the convergence and shunt device converges the signaling plane and the user plane data of the user at the same time, and allocates the bypass beam splitting port to the DPI device, the DPI device performs mixed acquisition and real-time data association on the signaling data and the flow data of the user, and after the protocol analysis of the TCP/IP data of the original flow, such as an HTTP request, and the information matches a corresponding policy, a specific TCPIP response message is sent to the user by way of GI interface reinjection, and the user browser automatically accesses the original page and the pop-up window page of the user according to the response message.
With the development of the 5G technology, the traditional 4G network architecture is gradually converted to the 5G network architecture, however, under the 5G network architecture, the signaling plane data is processed in a large area node in a centralized manner, and the user plane data is distributed at each city node, that is, the signaling plane data and the user plane data are not located at the same position, so that the 5G network architecture cannot realize data reinjection by adopting the existing reinjection method, and the normal operation of a service system corresponding to the data is influenced.
Based on the above problems, the data reinjection method is realized by associating the user plane data with the signaling plane data according to the user identifier, so that the data reinjection under the 5G system architecture is realized, and the normal operation of the service corresponding to the data under the 5G system architecture is further ensured.
Fig. 1 is a schematic architecture diagram of an application system of a data processing method according to an embodiment of the present invention, and as shown in fig. 1, the system may include: the client 101 and the server 102, wherein the client 101 and the server 102 may use a 5G network for data transmission. In addition, an application program corresponding to the browser 103 may be installed on the client 101, and a request may be sent to the server 102 through the application program corresponding to the browser 103, thereby realizing reinjection of data. The client can be a smart phone, a tablet or a personal computer and the like, and can access the 5G network through the browser.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a schematic flowchart of a data processing method according to an embodiment of the present invention, where the method of this embodiment may be executed by the server 102. As shown in fig. 2, the method of this embodiment may include:
s201: receiving a first network request sent by a browser, and acquiring traffic data corresponding to a user identifier according to the first network request, wherein the user identifier is carried in the first network request.
In this embodiment, a browser on a terminal may send a network request to a server, where the network request may carry an identifier corresponding to a user account that has logged in the browser, or an identifier corresponding to a client where the browser is located, and both the identifiers may be referred to as user identifiers.
S202: and constructing a response message according to the first network request, the flow data corresponding to the user identifier and the popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message.
In this embodiment, after receiving the network request and acquiring the traffic data corresponding to the network request, a pop-up window request may be further generated, a response message may be constructed according to the first network request, the traffic data corresponding to the user identifier, and the pop-up window request carrying the user identifier, then a reinjection request may be sent to the reinjection switch, and the reinjection switch sends the reinjection request to the browser. The reinjection is to analyze the request message in real time in a bypass light splitting mode, construct a self-defined response message when the request message meeting the conditions is found, and inject the response message into the original request link, so that the response of the original server end is invalid.
One possible implementation manner of sending the reinjection request is as follows: and analyzing the flow data corresponding to the user identification according to the first network request to obtain a target address, a destination port number, a source address, a source port number, a protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identification. And generating a popup request according to the user identification. And constructing a response message according to the first network request, the corresponding target address, the corresponding destination port number, the corresponding source address, the corresponding source port number, the corresponding protocol number and/or the Uniform Resource Locator (URL) information of the user identifier and the popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message.
In addition, the popup request carrying the user identifier may be a toolbar popup request carrying the user identifier.
S203: and receiving a second network request sent by the browser according to the response message in the reinjection request, wherein the second network request carries the user identifier.
In this embodiment, after the response packet is constructed, a reply request may be generated according to the response packet, where the reply request may carry packet information of the response packet. The browser can send the second network request to the server according to the message information of the response message in the reinjection request.
S204: and based on the second network request, searching signaling plane data corresponding to the user identifier, and performing association processing on the traffic data corresponding to the user identifier and the signaling plane data to obtain associated data corresponding to the user identifier, wherein the signaling plane data corresponding to the user identifier is pre-stored in a database.
In this embodiment, after receiving the second network request, the server may first search for signaling plane data corresponding to the user identifier. The signaling plane data corresponding to the user identifier may be obtained after receiving the first network request sent by the browser, and the signaling plane data corresponding to the user identifier is stored in the database in real time. Illustratively, the database may be a Redis in-memory database.
In addition, the signaling plane data can be mobile phone numbers, user IP data and the like.
S205: and matching the associated data corresponding to the user identification with a pre-stored service rule to obtain a target service rule, and executing the corresponding target service according to the target service rule.
In this embodiment, after determining the associated data corresponding to the user identifier, the associated data corresponding to the user identifier may be matched with a pre-stored service rule to obtain a target service rule.
In a possible implementation manner, matching the associated data corresponding to the user identifier with a pre-stored service rule to obtain a target service rule, which may specifically include:
and acquiring the matching field information of the associated data corresponding to the user identification. And matching the matching field information with a pre-stored service rule to obtain a target service rule.
Specifically, matching field information may be set in the associated data, and then matching may be performed according to the matching field information and a pre-stored service rule. Illustratively, the matching field information may be a number or a service identifier representing a service rule that can be matched.
In addition, after the target service rule is obtained, the corresponding target service may be executed according to the target service rule, where the target service may include any one or more of a telephone fee package transaction service, a broadband network access transaction service, and a traffic packet transaction service.
After the scheme is adopted, the flow data corresponding to the user identification carried in the first network request can be obtained according to the received first network request sent by the browser, constructing a response message according to the first network request, the flow data corresponding to the user identifier and the popup request carrying the user identifier, sending a reinjection request to the browser according to the response message, then receiving a second network request sent by the browser according to the reinjection request, searching signaling plane data corresponding to the user identification based on the second network request, and obtaining associated data after the association processing of the signaling plane data and the user data, matching the associated data with a prestored service rule to obtain a target service rule, and finally executing a corresponding target service according to the target service rule, so that the reinjection of the data under a 5G network architecture is realized, and the normal operation of a service system corresponding to the data is further ensured.
Based on the method of fig. 2, the present specification also provides some specific embodiments of the method, which are described below.
In addition, in a specific embodiment, before generating the popup request according to the user identifier, the method may further include:
based on the rule engine, matching the target address, the destination port number, the source address, the source port number, the protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identifier with rules in a pre-stored rule base.
And if the matching is successful, executing the steps of generating a popup request according to the user identification and the following steps.
In this embodiment, before generating the pop-up window request, the specific parameters in the traffic data corresponding to the user identifier may be matched with rules in a pre-stored rule base based on the rule engine. The specific parameters can be a target address, a destination port number, a source address, a source port number, a protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identifier, so that the accuracy of generating the popup window is improved, and the pressure of a system for processing data is reduced.
Further, in one embodiment, the first network request and the second network request are both network requests in the hypertext transfer protocol HTTP format.
In addition, in a specific embodiment, acquiring traffic data corresponding to the user identifier according to the first network request may include: and based on the DPDK drive of the data plane development kit, acquiring the flow data at the network card packet capturing port corresponding to the user identifier according to the first network request.
Specifically, the packet capturing driving of the data packet can adopt several different modes, such as DPDK, PF _ RING, NETMAP, and PCAP.
Fig. 3 is an interaction schematic diagram of a data processing method according to another embodiment of the present invention, as shown in fig. 3, including an interaction process between a user, a 5G network, a large area, a DPI device, and a toolbar end corresponding to a browser, which specifically may include: the method comprises the steps that signaling plane data are separated from user flow data, the signaling plane data are collected and processed in a large area in a centralized mode and are updated to a memory database in real time, DPI only collects original flow data requested by a user, response messages of reinjection contain user identifications, after the reinjection is completed, the signaling plane data correspond to the real-time flow data requested by the user in a post-association mode, the reinjection success rate is closely related to the delay, through a post-association innovation technology, the calculation delay in the prior art is reduced, the reinjection success rate is greatly improved, decoupling of calculation logic is achieved, part of logic needing DPI processing is transferred to a service system, and the calculation power consumption of the conventional DPI equipment is reduced.
Based on the same idea, an embodiment of this specification further provides a device corresponding to the foregoing method, and fig. 4 is a schematic structural diagram of a data processing device provided in an embodiment of the present invention, as shown in fig. 4, the data processing device may include:
the receiving module 401 is configured to receive a first network request sent by a browser, and acquire traffic data corresponding to a user identifier according to the first network request, where the first network request carries the user identifier.
A processing module 402, configured to construct a response packet according to the first network request, the traffic data corresponding to the user identifier, and the popup request carrying the user identifier, and send a reply request to the browser according to the response packet.
The receiving module 401 is further configured to receive a second network request sent by the browser according to the response message in the reinjection request, where the second network request carries the user identifier.
The processing module 402 is further configured to search signaling plane data corresponding to the user identifier based on the second network request, and perform association processing on traffic data corresponding to the user identifier and the signaling plane data to obtain associated data corresponding to the user identifier, where the signaling plane data corresponding to the user identifier is pre-stored in a database.
The processing module 402 is further configured to match the associated data corresponding to the user identifier with a pre-stored service rule to obtain a target service rule, and execute a corresponding target service according to the target service rule.
Furthermore, in a specific embodiment, the processing module is further configured to:
and analyzing the flow data corresponding to the user identification according to the first network request to obtain a target address, a destination port number, a source address, a source port number, a protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identification.
And generating a popup request according to the user identification.
And constructing a response message according to the first network request, a corresponding target address, a corresponding destination port number, a corresponding source address, a corresponding source port number, a corresponding protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identifier and a popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message.
Furthermore, in a specific embodiment, the processing module is further configured to:
and matching the target address, the destination port number, the source address, the source port number, the protocol number and/or the Uniform Resource Locator (URL) information corresponding to the user identification with rules in a pre-stored rule base based on a rule engine.
And if the matching is successful, executing the steps of generating the popup request according to the user identification and the following steps.
Furthermore, in a specific embodiment, the processing module is further configured to:
and acquiring the matching field information of the associated data corresponding to the user identification.
And matching the matching field information with a prestored service rule to obtain a target service rule, and executing a corresponding target service according to the target service rule, wherein the target service comprises any one or more of a telephone fee package transaction service, a broadband network access transaction service and a flow packet transaction service.
Furthermore, in a specific embodiment, the processing module is further configured to:
and acquiring signaling plane data corresponding to the user identification, and storing the signaling plane data corresponding to the user identification into a database.
In addition, in a specific embodiment, the popup request carrying the user identifier is a toolbar popup request carrying the user identifier.
Further, in one embodiment, the first network request and the second network request are both network requests in the hypertext transfer protocol HTTP format.
Furthermore, in a specific embodiment, the processing module is further configured to:
and based on a DPDK drive of a data plane development kit, acquiring the flow data at the network card packet capturing port corresponding to the user identifier according to the first network request.
The apparatus provided in the embodiment of the present invention may implement the method in the embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic diagram of a hardware structure of a data processing device according to an embodiment of the present invention. As shown in fig. 5, the present embodiment provides an apparatus 500 including: at least one processor 501 and memory 502. The processor 501 and the memory 502 are connected by a bus 503.
In a specific implementation process, at least one processor 501 executes computer execution instructions stored in the memory 502, so that the following steps are implemented when the computer program is executed:
receiving a first network request sent by a browser, and acquiring traffic data corresponding to a user identifier according to the first network request, wherein the user identifier is carried in the first network request.
And constructing a response message according to the first network request, the flow data corresponding to the user identifier and the popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message.
And receiving a second network request sent by the browser according to a response message in the reinjection request, wherein the second network request carries the user identifier.
And searching signaling plane data corresponding to the user identifier based on the second network request, and performing association processing on the traffic data corresponding to the user identifier and the signaling plane data to obtain associated data corresponding to the user identifier, wherein the signaling plane data corresponding to the user identifier is pre-stored in a database.
And matching the associated data corresponding to the user identification with a pre-stored service rule to obtain a target service rule, and executing the corresponding target service according to the target service rule.
Furthermore, the processor, when executing the computer program, further implements the steps of:
and analyzing the flow data corresponding to the user identification according to the first network request to obtain a target address, a destination port number, a source address, a source port number, a protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identification.
And generating a popup request according to the user identification.
And constructing a response message according to the first network request, a corresponding target address, a corresponding destination port number, a corresponding source address, a corresponding source port number, a corresponding protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identifier and a popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message.
Furthermore, the processor, when executing the computer program, further implements the steps of:
and matching the target address, the destination port number, the source address, the source port number, the protocol number and/or the Uniform Resource Locator (URL) information corresponding to the user identification with rules in a pre-stored rule base based on a rule engine.
And if the matching is successful, executing the steps of generating the popup request according to the user identification and the following steps.
Furthermore, the processor, when executing the computer program, further implements the steps of:
and acquiring the matching field information of the associated data corresponding to the user identification.
And matching the matching field information with a prestored service rule to obtain a target service rule, and executing a corresponding target service according to the target service rule, wherein the target service comprises any one or more of a telephone fee package transaction service, a broadband network access transaction service and a flow packet transaction service.
Furthermore, the processor, when executing the computer program, further implements the steps of:
and acquiring signaling plane data corresponding to the user identification, and storing the signaling plane data corresponding to the user identification into a database.
In addition, the popup request carrying the user identifier is a toolbar popup request carrying the user identifier.
In addition, the first network request and the second network request are both network requests in a hypertext transfer protocol (HTTP) format.
Furthermore, the processor, when executing the computer program, further implements the steps of:
and based on a DPDK drive of a data plane development kit, acquiring the flow data at the network card packet capturing port corresponding to the user identifier according to the first network request.
For a specific implementation process of the processor 501, reference may be made to the above method embodiments, which implement the similar principle and technical effect, and this embodiment is not described herein again.
In the embodiment shown in fig. 5, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer execution instruction is stored in the computer-readable storage medium, and when a processor executes the computer execution instruction, the data processing method of the foregoing method embodiment is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A data processing method, comprising:
receiving a first network request sent by a browser, and acquiring traffic data corresponding to a user identifier according to the first network request, wherein the user identifier is carried in the first network request;
constructing a response message according to the first network request, the flow data corresponding to the user identifier and the popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message; the reinjection is to analyze the request message in real time in a bypass light splitting mode, construct a response message when the request message meeting the conditions is found, and inject the response message into the original request link to disable the response of the original server;
receiving a second network request sent by the browser according to a response message in the reinjection request, wherein the second network request carries the user identifier;
based on the second network request, searching signaling surface data corresponding to the user identifier, and performing association processing on traffic data corresponding to the user identifier and the signaling surface data to obtain associated data corresponding to the user identifier, wherein the signaling surface data corresponding to the user identifier is pre-stored in a database;
and matching the associated data corresponding to the user identification with a pre-stored service rule to obtain a target service rule, and executing the corresponding target service according to the target service rule.
2. The method according to claim 1, wherein the constructing a response packet according to the first network request, the traffic data corresponding to the user identifier, and the popup request carrying the user identifier, and sending a reply request to the browser according to the response packet comprises:
analyzing the flow data corresponding to the user identification according to the first network request to obtain a target address, a destination port number, a source address, a source port number, a protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identification;
generating a popup request according to the user identifier;
and constructing a response message according to the first network request, a target address, a destination port number, a source address, a source port number, a protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identifier and a popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message.
3. The method of claim 2, further comprising, prior to said generating a pop request from said user identifier:
based on a rule engine, matching a target address, a destination port number, a source address, a source port number, a protocol number and/or Uniform Resource Locator (URL) information corresponding to the user identifier with rules in a pre-stored rule base;
and if the matching is successful, executing the steps of generating the popup request according to the user identification and the following steps.
4. The method according to claim 1, wherein the matching the associated data corresponding to the user identifier with a pre-stored service rule to obtain a target service rule, and executing a corresponding target service according to the target service rule comprises:
acquiring matching field information of the associated data corresponding to the user identification;
and matching the matching field information with a prestored service rule to obtain a target service rule, and executing a corresponding target service according to the target service rule, wherein the target service comprises any one or more of a telephone fee package transaction service, a broadband network access transaction service and a flow packet transaction service.
5. The method according to any one of claims 1-4, further comprising, after the receiving the first network request sent by the browser:
and acquiring signaling plane data corresponding to the user identification, and storing the signaling plane data corresponding to the user identification into a database.
6. The method according to any one of claims 1 to 4, wherein the popup request carrying the user identifier is a toolbar popup request carrying the user identifier.
7. The method of any of claims 1-4, wherein the first network request and the second network request are both hypertext transfer protocol (HTTP) formatted network requests.
8. The method according to any one of claims 1 to 4, wherein the obtaining of the traffic data corresponding to the subscriber identity according to the first network request comprises:
and based on a DPDK drive of a data plane development kit, acquiring the flow data at the network card packet capturing port corresponding to the user identifier according to the first network request.
9. A data processing apparatus, characterized by comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer executable instructions stored by the memory causes the computer program when executed to implement the steps of:
receiving a first network request sent by a browser, and acquiring traffic data corresponding to a user identifier according to the first network request, wherein the user identifier is carried in the first network request;
constructing a response message according to the first network request, the flow data corresponding to the user identifier and the popup request carrying the user identifier, and sending a reinjection request to the browser according to the response message; the reinjection is to analyze the request message in real time in a bypass light splitting mode, construct a response message when the request message meeting the conditions is found, and inject the response message into the original request link to disable the response of the original server; receiving a second network request sent by the browser according to a response message in the reinjection request, wherein the second network request carries the user identifier;
based on the second network request, searching signaling surface data corresponding to the user identifier, and performing association processing on traffic data corresponding to the user identifier and the signaling surface data to obtain associated data corresponding to the user identifier, wherein the signaling surface data corresponding to the user identifier is pre-stored in a database;
and matching the associated data corresponding to the user identification with a pre-stored service rule to obtain a target service rule, and executing the corresponding target service according to the target service rule.
10. A computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement a data processing method according to any one of claims 1 to 8.
CN202010933496.3A 2020-09-08 2020-09-08 Data processing method and device Active CN112073512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010933496.3A CN112073512B (en) 2020-09-08 2020-09-08 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010933496.3A CN112073512B (en) 2020-09-08 2020-09-08 Data processing method and device

Publications (2)

Publication Number Publication Date
CN112073512A CN112073512A (en) 2020-12-11
CN112073512B true CN112073512B (en) 2022-02-01

Family

ID=73664187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010933496.3A Active CN112073512B (en) 2020-09-08 2020-09-08 Data processing method and device

Country Status (1)

Country Link
CN (1) CN112073512B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339865A (en) * 2021-12-29 2022-04-12 杭州迪普信息技术有限公司 Label verification method and system for data message
CN115225718A (en) * 2022-07-26 2022-10-21 深圳证券通信有限公司 Network request data acquisition method and related device of android system

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8111707B2 (en) * 2007-12-20 2012-02-07 Packeteer, Inc. Compression mechanisms for control plane—data plane processing architectures
CN101965014B (en) * 2010-11-03 2013-04-10 北京中创信测科技股份有限公司 Distribution method and distribution control device for Gn interface data
CN102740452B (en) * 2011-04-02 2017-05-10 中兴通讯股份有限公司 Machine-type communication (MTC) terminal triggering method and device
WO2017023055A1 (en) * 2015-07-31 2017-02-09 Samsung Electronics Co., Ltd. Method and system for identity management across multiple planes
US20180049120A1 (en) * 2016-08-09 2018-02-15 Nokia Solutions And Networks Oy Network signaling optimization for light connected mode
CN106506514B (en) * 2016-11-21 2019-04-30 北京集奥聚合科技有限公司 A kind of correlating method and system of 4G mobile data signaling plane and user face
CN109257780B (en) * 2017-07-14 2021-06-01 华为技术有限公司 Network switching method and device
CN108259466B (en) * 2017-12-08 2020-06-05 中国联合网络通信集团有限公司 DDoS flow reinjection method, SDN controller and network system
CN111372209B (en) * 2018-12-06 2022-04-08 中国移动通信集团辽宁有限公司 Signaling data processing method, device, equipment and medium
CN111355649A (en) * 2018-12-20 2020-06-30 阿里巴巴集团控股有限公司 Flow reinjection method, device and system
CN111629401B (en) * 2019-02-27 2021-11-26 大唐移动通信设备有限公司 Data distribution method and system for edge application
CN111314944B (en) * 2020-02-13 2020-11-13 广州爱浦路网络技术有限公司 Method for managing NRF in 5G core network based on top-level NRF

Also Published As

Publication number Publication date
CN112073512A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
US11394805B1 (en) Automatic discovery of API information
CN112073512B (en) Data processing method and device
CN111756644B (en) Hot spot current limiting method, system, equipment and storage medium
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
CN113676563B (en) Scheduling method, device, equipment and storage medium of content distribution network service
CN112954089B (en) Method, device, equipment and storage medium for analyzing data
CN112804223B (en) Message processing method and device
CN113316926A (en) Domain name processing method and device, electronic equipment and storage medium
CN115208951B (en) Request processing method, request processing device, electronic equipment and computer readable storage medium
CN114153626A (en) Method and device for abstracting service integration process and computer equipment
CN112861346A (en) Data processing system, method and electronic equipment
CN111865679A (en) Data simulation method, device, equipment and readable storage medium
CN110113447A (en) Domain name analytic method and device
CN111143532B (en) Dialogue unit access method, device, equipment and storage medium
CN111294288A (en) Traffic identification method and device, application program interface gateway and storage medium
CN105184559B (en) A kind of payment system and method
CN108595574B (en) Database cluster connection method, device, equipment and storage medium
CN113055420B (en) HTTPS service identification method and device and computing equipment
CN113763008A (en) Application promotion tracking method, device, server, equipment and medium
CN110572291A (en) System and method for realizing automatic framework identification function for distributed system
CN112188014B (en) Information processing method and device
CN113032836B (en) Data desensitization method and apparatus
CN114765599A (en) Sub-domain name acquisition method and device
CN114760277B (en) Method and device for accessing containerized management application
CN114095502B (en) Service processing method, system, device and medium

Legal Events

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