CN116527541A - Method, device, equipment and medium for predicting network transaction delay influence time - Google Patents

Method, device, equipment and medium for predicting network transaction delay influence time Download PDF

Info

Publication number
CN116527541A
CN116527541A CN202310418354.7A CN202310418354A CN116527541A CN 116527541 A CN116527541 A CN 116527541A CN 202310418354 A CN202310418354 A CN 202310418354A CN 116527541 A CN116527541 A CN 116527541A
Authority
CN
China
Prior art keywords
node
data packet
tested
network
transaction
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.)
Pending
Application number
CN202310418354.7A
Other languages
Chinese (zh)
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.)
Bank of China Ltd
Original Assignee
Bank of China 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 Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310418354.7A priority Critical patent/CN116527541A/en
Publication of CN116527541A publication Critical patent/CN116527541A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • 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/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method, a device, equipment and a medium for predicting network transaction delay influence time, which can be used in the financial field or other fields. The method comprises the following steps: determining a node to be tested and a data packet to be tested, wherein the node to be tested is a node in a transaction link, and the data packet to be tested is a data packet transmitted to the transaction link when a financial business program executes network transaction; acquiring parameters of a data packet to be tested; generating a packet grabbing tool according to parameters of the data packet to be detected; according to the packet grabbing tool, grabbing a target data packet passing through a node to be detected in the data packets to be detected; determining the times of the target data packet passing through the node to be detected and the target delay influence time of the target data packet passing through the node to be detected each time; and obtaining the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction according to the times of the target data packet passing through the node to be tested and the target delay influence time. The method improves the accuracy of the network delay time prediction result.

Description

Method, device, equipment and medium for predicting network transaction delay influence time
Technical Field
The present disclosure relates to the field of finance, and in particular, to a method, apparatus, device, and medium for predicting network transaction delay impact time.
Background
In the non-functional testing process of the financial software product, in the case of network delay, the influence of different transaction network delays on the financial software product when the financial software product is used for transaction is generally verified, so that the financial software product is debugged.
Currently, the existing method generally directly detects the actual network delay time, so as to predict the delay influence time of the financial software product in the transaction.
However, the existing method has the problem of lower accuracy of the prediction result.
Disclosure of Invention
The application provides a method, a device, equipment and a medium for predicting network transaction delay influence time, which are used for solving the problem of low accuracy of a prediction result in the existing method.
In a first aspect, the present application provides a method for predicting a network transaction delay impact time, the method comprising:
determining a node to be tested and a data packet to be tested, wherein the node to be tested is a node in a transaction link, and the data packet to be tested is a data packet transmitted to the transaction link when a financial business program executes network transaction;
acquiring parameters of a data packet to be tested;
generating a packet grabbing tool according to parameters of the data packet to be detected;
according to the packet grabbing tool, grabbing a target data packet passing through a node to be detected in the data packets to be detected;
determining the times of the target data packet passing through the node to be detected and the target delay influence time of the target data packet passing through the node to be detected each time;
and obtaining the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction according to the times of the target data packet passing through the node to be tested and the target delay influence time.
In a second aspect, the present application provides a network transaction delay impact time prediction apparatus, including:
the first determining module is used for determining a node to be detected and a data packet to be detected, wherein the node to be detected is a node in a transaction link, and the data packet to be detected is a data packet transmitted to the transaction link when a financial business program executes network transaction;
the acquisition module is used for acquiring parameters of the data packet to be detected;
the generation module is used for generating a packet grabbing tool according to parameters of the data packet to be detected;
the grabbing module is used for grabbing target data packets passing through the nodes to be detected in the data packets to be detected according to the packet grabbing tool;
the second determining module is used for determining the times of the target data packet passing through the node to be detected and the target delay influence time of the target data passing through the node to be detected each time;
the obtaining module is used for obtaining the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction according to the times of the target data packet passing through the node to be tested and the target delay influence time.
In a third aspect, the present application provides an electronic device, comprising: a processor, a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory to implement the methods of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method of the present application when executed by a processor.
In a fifth aspect, the present application provides a computer program product comprising a computer program or instructions which, when executed by a processor, implement the steps in the method of the present application.
According to the network transaction delay influence time prediction method, device, equipment and medium, the node to be detected and the data packet to be detected are determined, the node to be detected is the node in the transaction link, and the data packet to be detected is the data packet transmitted to the transaction link when the financial business program executes network transaction; acquiring parameters of a data packet to be tested; generating a packet grabbing tool according to parameters of the data packet to be detected; according to the packet grabbing tool, grabbing a target data packet passing through a node to be detected in the data packets to be detected; determining the times of the target data packet passing through the node to be detected and the target delay influence time of the target data packet passing through the node to be detected each time; according to the times that the target data packet passes through the node to be tested and the target delay influence time, the means of the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction is obtained, the number of the target data packet passing through the node to be tested, the times that the target data packet passes through the node to be tested and the target delay influence time of the target data passing through the node to be tested are obtained through the packet grasping tool, the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction can be rapidly determined, and therefore the effect of improving the accuracy of a prediction result is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic diagram of a scenario of a method for predicting network transaction delay impact time according to an embodiment of the present application;
fig. 2 is a flowchart of a method for predicting network transaction delay impact time according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating another method for predicting network transaction delay impact time according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a network transaction delay impact time prediction apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a block diagram of a terminal device provided in an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the prior art, when predicting the network delay time of transaction response in a financial software product, the delay time is generally directly determined according to network delay or network jitter, so that the influence of the network delay on each data packet due to different transmission data packet numbers in the transaction process and the influence of the service of the transaction link delayed through different slave times of networks are ignored, thereby inaccurate prediction results of the network delay time are caused, and the non-functional test results of the financial software product are influenced.
In order to solve the above problems, the present application provides a method for predicting network transaction delay impact time, which can obtain the number of target data packets passing through a node to be tested, the number of times that the target data packets pass through the node to be tested, and the target delay impact time of the target data passing through the node to be tested by using a packet grasping tool, so as to quickly determine the network transaction delay impact time of the node to be tested on the network transaction when a network transaction is executed by a metal-melting service program, thereby achieving the effect of improving the accuracy of a prediction result.
The network transaction delay influence time prediction method provided by the application aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a schematic view of a scenario of a network transaction delay impact time prediction method provided in an embodiment of the present application, and as shown in fig. 1, an execution body of the network transaction delay impact time prediction method provided in an embodiment of the present application may be a server. The server can be a mobile phone, a tablet, a computer and other devices. The implementation manner of the execution body is not particularly limited in this embodiment, as long as the execution body can determine a node to be tested and a data packet to be tested, where the node to be tested is a node in a transaction link, and the data packet to be tested is a data packet transmitted to the transaction link when the financial service program executes network transaction; acquiring parameters of a data packet to be tested; generating a packet grabbing tool according to parameters of the data packet to be detected; according to the packet grabbing tool, grabbing a target data packet passing through a node to be detected in the data packets to be detected; determining the times of the target data packet passing through the node to be detected and the target delay influence time of the target data packet passing through the node to be detected each time; and obtaining the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction according to the times of the target data packet passing through the node to be tested and the target delay influence time.
It should be noted that, the user transaction information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards, and are provided with corresponding operation entries for the user to select authorization or rejection.
It should be noted that, the method and the device for predicting the network transaction delay influence time can be used in the financial field, and can also be used in any field except the financial field, and the application field of the method and the device for predicting the network transaction delay influence time is not limited.
Among them, a Packet (Packet) is a basic unit for transmitting data in a computer network, and is also called a network Packet or a data frame. It consists of a certain amount of binary data, including information transmitted between the sender and the receiver. The data packets typically include data and control information including source address, destination address, checksum, sequence number, etc. In the network, the data packet is transmitted through the network, and finally reaches the destination through the forwarding and processing of a plurality of nodes. The size and format of the data packets depends on the protocol and network technology used.
Fig. 2 is a flowchart of a method for predicting network transaction delay impact time according to an embodiment of the present application. The implementation body of the method may be a server or other servers, and the embodiment is not particularly limited herein, as shown in fig. 2, and the method may include:
s201, determining a node to be tested and a data packet to be tested, wherein the node to be tested is a node in a transaction link, and the data packet to be tested is a data packet transmitted to the transaction link when a financial business program executes network transaction.
The transaction link may be each node and link involved in the whole transaction process from the transaction initiator to the transaction receiver in the network transaction.
The nodes in the transaction link may refer to nodes that provide services during the transaction process, such as client nodes, application server nodes, database server nodes, network device nodes, third party service nodes, and the like, which may form the transaction link in the network transaction, so as to ensure that the network transaction can be smoothly and accurately processed.
The node to be tested can be a node selected randomly by a user from a transaction link or selected according to requirements, for example, the node to be tested can be a client node.
Financial transaction programs may refer to computer programs for processing financial transactions, including various software systems used by financial institutions such as banks, securities, insurance, etc.
The data packet to be measured sent by the financial service program may refer to that when the program transmits data through a network in a computer network, the data is encapsulated into a data packet (also referred to as a data frame, a datagram, etc.), and is transmitted to a target node through the network. In the embodiment of the application, the data packet sent by the financial service program may include information such as a transaction request, a transaction response, a transaction state, and the like, so that financial transactions may be completed.
In an embodiment of the present application, the method for determining a node to be tested and a data packet to be tested may include:
determining a transaction link and a data packet to be tested;
determining a target service network card in the transaction link according to the transaction link;
and determining the node to be tested according to the target service network card.
The service network card may refer to a network interface card that connects the service node and the transaction node, and the service node receives a request from the transaction node through the service network card, processes the request, and returns a response. In the embodiment of the application, the target service network card may be selected from a plurality of service nodes and transaction nodes in the transaction link in response to a selection operation of a user. Therefore, the node to be tested can be determined through the target service network card.
S202, acquiring parameters of a data packet to be tested;
s203, generating a packet grabbing tool according to parameters of the data packet to be detected.
The parameters of the data packet to be tested may include parameters such as a source IP address, a destination IP address, a protocol type, a port number, etc. of the data packet to be tested.
The packet-grabbing tool may refer to a network tool for capturing and analyzing network data packets. It can intercept and record data packets between a computer and a network device in order to analyze network traffic, troubleshoot network problems, detect network attacks, etc. In some embodiments, the bale plucker tool may comprise Wireshark, tcpdump, fiddler or the like. Packets of various protocols may be captured by the packet capturing tool, such as TCP (Transmission Control Protocol ), UDP (User Datagram Protocol, user datagram protocol), HTTP (Hyper Text Transfer Protocol ), and the like.
After the parameters of the data packet to be tested are determined, a script can be written according to the parameters of the data packet to be tested, so that a packet grabbing tool is generated.
In an embodiment of the present application, the method for generating the packet grabbing tool according to the parameters of the data packet to be tested may include:
acquiring a shell script;
configuring an initial network data packet analyzer according to the shell script;
and configuring the filtering condition of the initial network data packet analyzer according to the parameters of the data packet to be detected to obtain a packet grabbing tool.
The shell script is a programming language and can be used for writing a script program in a Unix or Linux operating system.
The network packet analyzer may be a tool for capturing, analyzing and interpreting network packets. In embodiments of the present application, the network packet analyzer may include Wireshark, tcpdump, ethereal, etc.
In the embodiment of the application, the network data packet analyzer can be configured through the shell script, so that the packet grabbing tool is obtained.
In this embodiment of the present application, the method for configuring the filtering condition of the initial network packet analyzer according to the parameters of the to-be-tested packet to obtain the packet capturing tool may include:
determining the address and protocol type of the data packet to be tested according to the parameters of the data packet to be tested;
and configuring the filtering condition of the initial network data packet analyzer according to the address and the protocol type to obtain a packet grabbing tool.
The address of the data packet to be tested may refer to a source address and a destination address when the data packet to be tested is transmitted in the network.
The protocol type of the data packet to be measured may refer to the protocol type of the data packet, which is the network protocol type used for the data packet.
The filtering condition may refer to filtering according to different protocols, source addresses, destination addresses, port numbers, packet sizes, etc., so that the configured packet grabbing tool may be used to grab the data packet to be tested. In an embodiment of the present application, the bale plucker may be tcpdump.
S204, grabbing a target data packet passing through the node to be tested in the data packets to be tested according to the packet grabbing tool.
The target data packet is a data packet passing through the node to be tested in the data packets to be tested. In the embodiment of the application, when the packet grabbing tool is tcpdump, tcpdump may monitor a network interface of a node to be tested, so as to capture a target data packet passing through the interface.
S205, determining the times of the target data packet passing through the node to be tested and the target delay influence time of the target data packet passing through the node to be tested each time.
The number of times that the target data packet passes through the node to be tested may refer to the number of times that the node to be tested transmits the data packet. For example, in the process of network transaction, data is transmitted to the confirmation node for a plurality of times, wherein the number of times of transmission to the node is the number of times that the target data packet passes through the node to be tested.
The target delay influencing time may refer to delay time of the target data packet passing through the node to be tested once, and in this embodiment of the present application, the target delay influencing time may be preset prediction time.
S206, obtaining the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction according to the times of the target data packet passing through the node to be tested and the target delay influence time.
The network delay may refer to a time delay of network transmission data, among other things. The network transaction delay impact time may refer to a time delay in the network transaction process. For example, after the user issues the instruction, how long the instruction will be transmitted to the target end.
In this embodiment of the present application, when there are more than two target data, obtaining the network transaction delay influence time according to the times and the target delay influence time includes:
determining the amount of target data;
multiplying the quantity, the times and the target delay influence time to obtain the network transaction delay influence time.
In this embodiment of the present application, the network transaction delay influencing time=the target delay influencing time×the number of times of the node to be tested on the network transaction is the number of target data.
In the embodiment of the application, the global network transaction delay influence time of the transaction link on the network transaction can be obtained by determining the network transaction delay influence time of each node to be tested on the network transaction.
In this embodiment of the present application, when there are more than two nodes to be tested, the method may further include:
determining network transaction delay influence time of each node to be tested and transmission relation among each node to be tested;
and determining the total network transaction delay influence time of all the nodes to be tested on the network transaction according to the network transaction delay influence time of each node to be tested and the transmission relation between each node to be tested.
The transmission relationship may include a parallel relationship and a series relationship between nodes to be measured. The parallel relation representation target data packet can be respectively transmitted to more than two nodes to be tested, and the series relation representation target data packet needs to be sequentially transmitted between more than two nodes to be tested. In some embodiments, when the transmission relationship is a parallel relationship, the network transaction delay influence time of the node to be tested on the network transaction may be determined according to the earliest time and the latest time of all network transaction delay influence times. When the transmission relationship is a tandem relationship, the network transaction delay influence time of the node to be tested on the network transaction can be determined according to the earliest time and the latest time of each network transaction delay influence time.
In this embodiment of the present application, when the data packet passing through the node to be tested further includes other data packets, the method for transmitting the other data packets when accessing the node to be tested by using other financial service programs may further include:
determining transmission batches of the target data packet and other data packets;
determining the processing time sequence of the target data packet according to the transmission batch;
and obtaining the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction according to the processing time sequence.
The financial business program and other financial business programs can initiate programs for establishing TCP connection requests for different ports. In this embodiment of the present application, when multiple programs access the same node to be tested at the same time, it may be queued to create a connection, thereby further resulting in a response time delay, even if the node to be tested may use Keep-alive, so that the node to be tested may respond to and process multiple connection requests at the same time, but still may be limited by TCP connection, that is, one TCP connection may only process one request and response at the same time. If there are multiple requests to be processed at the same time, then the previous requests and responses need to be queued for completion.
Therefore, in the embodiment of the application, the transmission batch may refer to a processing batch of the target data packet and other data packets, so as to determine processing time sequences of the target data packet and other data packets, thereby determining the network transaction delay influence time according to the delay influence time and the processing time sequences of the node to be tested on other data packets. The transmission batch characterizes the order of the first hand of transmitting the target data packet and other data packets to the node to be tested. The processing time sequence characterizes the processing time of the target data packet and other data packets transmitted to the node to be tested.
According to the network transaction delay influence time prediction method provided by the embodiment of the application, the number of target data packets passing through the nodes to be detected, the number of times of the target data packets passing through the nodes to be detected and the target delay influence time of the target data passing through the nodes to be detected can be obtained through the packet grabbing tool, so that the network transaction delay influence time of the nodes to be detected on the network transaction when the network transaction is executed by the gold thawing service program can be rapidly determined, and the effect of improving the accuracy of a prediction result is achieved
Fig. 3 is a flow chart of another method for predicting network transaction delay impact time according to an embodiment of the present application, as shown in fig. 3, the method may include:
s301, each service in the transaction link, and the IP node of each service, are determined.
Wherein an IP (Internet Protocol internetworking protocol) node may refer to the address of each service traversed in the transaction link.
S302, determining target service in the plurality of services and the number of times that the target service passes through the network card.
Wherein each service is accessed at least 2 times through the network card. For example, the gateway to the a service will first enter the a service network card (1 time the a network card enters), the a service network card requests the B service network card (1 time the a service network card exits), the B service network card returns to the a service network card (1 time the a network card enters), and the a service network card returns to the gateway (1 time the a network card exits), thereby determining that the total number of times of passing the link a service network card is 4.
S303, capturing the quantity of data packets transmitted each time in the target service through tcpdump in the shell script;
and S304, capturing the number of data packets transmitted each time by tcpdump in the shell script, and obtaining the total influence time of network delay by the number of times that the target service passes through the network card.
According to the method for predicting the network transaction delay influence time, which is provided by the embodiment of the application, the concrete values of different transactions of different systems influenced by the network delay under the influence of the fixed network delay can be accurately predicted through the packet grabbing and the operation of a calculation formula.
Fig. 4 is a schematic structural diagram of a network transaction delay impact time prediction device according to an embodiment of the present application. As shown in fig. 4, the network transaction delay influence time prediction apparatus 40 includes: a first determining module 401, an obtaining module 402, a generating module 403, a grabbing module 404, a second determining module 405 and an obtaining module 406. Wherein:
the first determining module 401 is configured to determine a node to be tested and a data packet to be tested, where the node to be tested is a node in a transaction link, and the data packet to be tested is a data packet transmitted to the transaction link when the financial service program executes network transaction;
an obtaining module 402, configured to obtain parameters of a data packet to be tested;
a generating module 403, configured to generate a packet grabbing tool according to parameters of a data packet to be tested;
the grabbing module 404 is configured to grab a target data packet passing through the node to be tested in the data packets to be tested according to the packet grabbing tool;
a second determining module 405, configured to determine the number of times the target data packet passes through the node to be tested and a target delay influence time of the target data packet passing through the node to be tested each time;
the obtaining module 406 is configured to obtain, according to the number of times the target data packet passes through the node to be tested and the target delay influence time, a network transaction delay influence time of the node to be tested on the network transaction when the financial service program executes the network transaction.
In this embodiment of the present application, the first determining module 401 may be further specifically configured to:
determining a transaction link and a data packet to be tested;
determining a target service network card in the transaction link according to the transaction link;
and determining the node to be tested according to the target service network card.
In the embodiment of the present application, the generating module 403 may be further specifically configured to:
acquiring a shell script;
configuring an initial network data packet analyzer according to the shell script;
and configuring the filtering condition of the initial network data packet analyzer according to the parameters of the data packet to be detected to obtain a packet grabbing tool.
In the embodiment of the present application, the generating module 403 may be further specifically configured to:
determining the address and protocol type of the data packet to be tested according to the parameters of the data packet to be tested;
and configuring the filtering condition of the initial network data packet analyzer according to the address and the protocol type to obtain a packet grabbing tool.
In the embodiment of the present application, the obtaining module 406 may be specifically further configured to:
determining the amount of target data;
multiplying the quantity, the times and the target delay influence time to obtain the network transaction delay influence time.
In the embodiment of the present application, the obtaining module 406 may be specifically further configured to:
determining network transaction delay influence time of each node to be tested and transmission relation among each node to be tested;
and determining the total network transaction delay influence time of all the nodes to be tested on the network transaction according to the network transaction delay influence time of each node to be tested and the transmission relation between each node to be tested.
In the embodiment of the present application, the obtaining module 406 may be specifically further configured to:
determining transmission batches of the target data packet and other data packets;
determining the processing time sequence of the target data packet according to the transmission batch;
and obtaining the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction according to the processing time sequence.
The network transaction delay influence time prediction device provided by the embodiment of the application is used for determining a node to be tested and a data packet to be tested, wherein the node to be tested is a node in a transaction link, and the data packet to be tested is a data packet transmitted to the transaction link when a financial business program executes network transaction; an obtaining module 402, configured to obtain parameters of a data packet to be tested; the generating module 403 is configured to generate a packet grabbing tool according to parameters of the data packet to be tested; the grabbing module 404 is configured to grab a target data packet passing through the node to be tested in the data packets to be tested according to the packet grabbing tool; the second determining module 405 is configured to determine the number of times the target data packet passes through the node to be tested and a target delay influence time of the target data packet passing through the node to be tested each time; the obtaining module 406 is configured to obtain, according to the number of times the target data packet passes through the node to be tested and the target delay influence time, a network transaction delay influence time of the node to be tested on the network transaction when the financial service program executes the network transaction. Thus, the prediction result accuracy can be improved.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 5, the electronic device 50 includes:
the electronic device 50 may include one or more processing cores 'processors 501, one or more computer-readable storage media's memory 502, communication components 503, and the like. The processor 501, the memory 502, and the communication unit 503 are connected via a bus 504.
In a specific implementation, at least one processor 501 executes computer-executable instructions stored in memory 502, such that at least one processor 501 performs the network transaction delay impact time prediction method as described above.
The specific implementation process of the processor 501 may refer to the above-mentioned method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein again.
In the embodiment shown in fig. 5, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. 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 application may be embodied directly in a hardware processor or in a combination of hardware and software modules within a processor.
The Memory may comprise high-speed Memory (Random Access Memory, RAM) or may further comprise Non-volatile Memory (NVM), such as at least one disk Memory.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
Fig. 6 is a block diagram of a terminal device provided in an embodiment of the present application, where the device may be a messaging device or the like.
The apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, an input/output (I/O) interface 612, and a communication component 616.
The processing component 602 generally controls overall operation of the apparatus 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on the apparatus 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices 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.
The power supply component 606 provides power to the various components of the device 600. The power supply components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The communication component 616 is configured to facilitate communication between the apparatus 600 and other devices in a wired or wireless manner. The device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of apparatus 600 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a terminal device, causes the terminal device to perform the above-described method of predicting network transaction delay impact time of the terminal device.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for predicting network transaction delay impact time, the method comprising:
determining a node to be tested and a data packet to be tested, wherein the node to be tested is a node in a transaction link, and the data packet to be tested is a data packet transmitted to the transaction link when a financial business program executes network transaction;
acquiring parameters of the data packet to be tested;
generating a packet grabbing tool according to the parameters of the data packet to be detected;
according to the packet grabbing tool, grabbing a target data packet passing through the node to be detected in the data packets to be detected;
determining the times of the target data packet passing through the node to be detected and the target delay influence time of the target data packet passing through the node to be detected each time;
and obtaining the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction according to the times of the target data packet passing through the node to be tested and the target delay influence time.
2. The method of claim 1, wherein determining the node under test and the data packet under test comprises:
determining a transaction link and the data packet to be tested;
determining a target service network card in the transaction link according to the transaction link;
and determining the node to be tested according to the target service network card.
3. The method of claim 1, wherein generating the packet grasping tool according to the parameters of the data packet to be measured comprises:
acquiring a shell script;
configuring an initial network data packet analyzer according to the shell script;
and configuring the filtering condition of the initial network data packet analyzer according to the parameters of the data packet to be detected to obtain the packet grabbing tool.
4. A method according to claim 3, wherein configuring the filtering condition of the initial network packet analyzer according to the parameters of the to-be-detected packet to obtain the packet grabbing tool includes:
determining the address and the protocol type of the data packet to be tested according to the parameters of the data packet to be tested;
and configuring the filtering condition of the initial network data packet analyzer according to the address and the protocol type to obtain the packet grabbing tool.
5. The method according to claim 1, wherein when the target data has more than two pieces, the obtaining the network transaction delay influence time of the node to be tested on the network transaction according to the number of times the target data packet passes through the node to be tested and the target delay influence time, when the financial service program executes the network transaction, includes:
determining the amount of the target data;
multiplying the number, the number of times and the target delay influence time to obtain the network transaction delay influence time.
6. The method of claim 5, wherein when there are more than two nodes under test, the method further comprises:
determining network transaction delay influence time of each node to be tested and transmission relation among each node to be tested;
and determining the total network transaction delay influence time of all the nodes to be tested on the network transaction according to the network transaction delay influence time of each node to be tested and the transmission relation between each node to be tested.
7. The method of claim 1, wherein when the data packet passing through the node under test further includes other data packets, the other data packets being data packets transmitted by other financial service programs when accessing the node under test, the method further comprises:
determining transmission batches of the target data packet and the other data packets;
determining the processing time sequence of the target data packet according to the transmission batch;
and obtaining the network transaction delay influence time of the node to be tested on the network transaction when the financial business program executes the network transaction according to the processing time sequence.
8. A network transaction delay-affected time prediction apparatus, comprising:
the first determining module is used for determining a node to be detected and a data packet to be detected, wherein the node to be detected is a node in a transaction link, and the data packet to be detected is a data packet transmitted to the transaction link when a financial business program executes network transaction;
the acquisition module is used for acquiring parameters of the data packet to be detected;
the generation module is used for generating a packet grabbing tool according to the parameters of the data packet to be detected;
the grabbing module is used for grabbing target data packets passing through the nodes to be detected in the data packets to be detected according to the packet grabbing tool;
the second determining module is used for determining the times of the target data packet passing through the node to be detected and the target delay influence time of the target data passing through the node to be detected each time;
and the obtaining module is used for obtaining the network transaction delay influence time of the node to be tested on the network transaction when the financial service program executes the network transaction according to the times of the target data packet passing through the node to be tested and the target delay influence time.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 7.
CN202310418354.7A 2023-04-18 2023-04-18 Method, device, equipment and medium for predicting network transaction delay influence time Pending CN116527541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310418354.7A CN116527541A (en) 2023-04-18 2023-04-18 Method, device, equipment and medium for predicting network transaction delay influence time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310418354.7A CN116527541A (en) 2023-04-18 2023-04-18 Method, device, equipment and medium for predicting network transaction delay influence time

Publications (1)

Publication Number Publication Date
CN116527541A true CN116527541A (en) 2023-08-01

Family

ID=87405781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310418354.7A Pending CN116527541A (en) 2023-04-18 2023-04-18 Method, device, equipment and medium for predicting network transaction delay influence time

Country Status (1)

Country Link
CN (1) CN116527541A (en)

Similar Documents

Publication Publication Date Title
CN109766262B (en) Interface data processing method, automatic testing method, device, equipment and medium
CN109688202B (en) Interface data processing method and device, computing equipment and storage medium
CN111026645B (en) User interface automatic test method and device, storage medium and electronic equipment
CN112804121B (en) TTE network transmission delay test system and method
CN108900640A (en) Node calls link generation method, device, computer equipment and storage medium
CN109739711B (en) Interface test method, device, equipment and storage medium
CN110298662B (en) Automatic detection method and device for transaction repeated submission
CN111522711A (en) Data monitoring processing system, method, execution end, monitoring end and electronic equipment
CN106412975B (en) A kind of test method and device of content charging loophole
US20170220218A1 (en) Automatic Generation of Regular Expression Based on Log Line Data
CN108270783B (en) Data processing method and device, electronic equipment and storage medium
CN109639494B (en) Statistical method, device, server and storage medium of interface information
CN114297062A (en) Service testing method and device, electronic equipment and storage medium
CN111045934A (en) Page analysis method, device, client, storage medium and electronic equipment
CN113282460A (en) Distributed alarm system, method and device
CN117290244A (en) Interface test case generation method and device, computer equipment and storage medium
CN116527541A (en) Method, device, equipment and medium for predicting network transaction delay influence time
CN111866144A (en) Service request response method and device, FPGA (field programmable Gate array) equipment and storage medium
CN110825603A (en) Page first loading time determining method and device, electronic equipment and storage medium
WO2023082605A1 (en) Http message extraction method and apparatus, and medium and device
CN110752933A (en) Verification code input method and device, electronic equipment and storage medium
CN116932370A (en) Fuzzy test method, device, electronic equipment, program product and storage medium
CN109726550A (en) Abnormal operation behavioral value method, apparatus and computer readable storage medium
CN110224997B (en) Gateway-based service exposure method and device and terminal equipment
CN113242205B (en) Network traffic classification control method, device, server and storage 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