Information generation method, device and equipment, computer readable medium and program product
Patent Information
- Application Number
- CN202311348042.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2025-04-18
AI Technical Summary
The prior art detects the pressure of the routing network through parameter regulation and amplification of traffic, which cannot fully reflect the routing network problem in the case of a sharp increase in the volume of packages, resulting in distortion of the pressure measurement effect and affecting the reliability and stability of the routing network.
By obtaining the package message set, the original package message set and the package scrambling message set are identified, and the routing network corresponding to the service information to be stress tested is generated to generate the processing message set, and then the network stress test is carried out.
This method can accurately detect stress test information of the routing network, discover performance bottlenecks and operation problems, and improve the reliability and stability of the routing network.
Smart Images

Figure CN119854168A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to information generation methods, devices, equipment, computer-readable media, and program products. Background Art
[0002] At present, tens of millions of packages are circulated every day based on the routing network built by network planners. When the number of packages increases dramatically, various accidents often occur when packages are circulated through the routing network. Therefore, network stress testing of the routing network is crucial. For network stress testing of the routing network, the method usually adopted is to amplify the traffic by adjusting parameters to detect the network pressure of the corresponding system of the routing network.
[0003] However, the inventors have found that when the above method is used to detect network pressure, the following technical problems often occur:
[0004] The method of amplifying traffic through parameter control cannot fully reflect the occurrence of various routing network problems when the package volume increases dramatically. There is often a problem of distorted stress testing results, resulting in poor reliability and stability of the routing network.
[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0007] Some embodiments of the present disclosure propose information generation methods, devices, equipment, computer-readable media, and program products to solve the technical problems mentioned in the above background technology section.
[0008] In a first aspect, some embodiments of the present disclosure provide an information generation method, including: obtaining a package message set; identifying an original package message set and a first package disruption message set from the package message set; generating a first package processing message set for the original package message set and the first package disruption message set using a first routing original network corresponding to the service information to be stress tested; and generating network stress test information for the first routing original network based on the first package processing message set.
[0009] Optionally, the method further includes: in response to determining that the above-mentioned business information to be stress tested has corresponding next business information to be stress tested, identifying a first package processing message subset for the above-mentioned original package message set and a second package processing message subset for the above-mentioned first package disruption message set from the above-mentioned first package processing message set; using the second routing original network corresponding to the above-mentioned next business information to be stress tested, generating a second package processing message set for the above-mentioned first package processing message subset and the above-mentioned second package processing message subset; and generating network stress testing information for the above-mentioned second routing original network according to the above-mentioned second package processing message set.
[0010] Optionally, the first package processing message set includes: a first package processing message subset and a second package processing message subset; and the first package processing message set generated for the original package message set and the first package disruption message set using the first routing original network corresponding to the service information to be stress tested includes: generating a first routing adjustment network for the first routing original network; using the first routing original network to generate the first package processing message subset for the original package message set; using the first routing original network to generate the second package processing message subset for the first package disruption message set.
[0011] Optionally, the second package processing message set includes: a third package processing message subset and a fourth package processing message subset; and the second package processing message set generated for the first package processing message subset and the second package processing message subset using the second routing original network corresponding to the next service information to be stress tested includes: generating a second routing adjustment network for the second routing original network; generating a third package processing message subset for the first package processing message subset using the second routing original network; generating a fourth package processing message subset for the second package processing message subset using the second routing adjustment network.
[0012] Optionally, the generating of a fourth package processing message subset for the second package processing message subset using the second routing adjustment network includes: generating a second package scrambling message set for the first package processing message subset; and generating the fourth package processing message subset using the second routing adjustment network according to the second package processing message subset and the second package scrambling message set.
[0013] Optionally, the first package scrambled message set is generated by the following steps: adding a message scrambled identifier to each original package message in the original package message set to obtain the added package message set; and performing at least one of package message processing order scrambling processing and package quantity amplification processing on each package message in the added package message set to obtain the first package scrambled message set.
[0014] In a second aspect, some embodiments of the present disclosure provide an information generating device, including: an acquiring unit, configured to acquire a package message set; an identifying unit, configured to identify an original package message set and a first package scrambled message set from the package message set; a first generating unit, configured to generate a first package processing message set for the original package message set and the first package scrambled message set using the first routing original network corresponding to the service information to be stress tested; and a second generating unit, configured to generate network stress testing information for the first routing original network based on the first package processing message set.
[0015] Optionally, the device also includes: in response to determining that the above-mentioned business information to be stress tested has corresponding next business information to be stress tested, identifying a first package processing message subset for the above-mentioned original package message set and a second package processing message subset for the above-mentioned first package disruption message set from the above-mentioned first package processing message set; using the second routing original network corresponding to the above-mentioned next business information to be stress tested, generating a second package processing message set for the above-mentioned first package processing message subset and the above-mentioned second package processing message subset; based on the above-mentioned second package processing message set, generating network stress test information for the above-mentioned second routing original network.
[0016] Optionally, the first generating unit may be configured to: generate a first route adjustment network for the first route original network; generate a first package processing message subset for the original package message set using the first route original network; generate a second package processing message subset for the first package disruption message set using the first route adjustment network; and generate the first package processing message set based on the first package processing message subset and the second package processing message subset.
[0017] Optionally, the device also includes: generating a second route adjustment network for the above-mentioned second route original network; using the above-mentioned second route original network, generating a third package processing message subset for the above-mentioned first package processing message subset; using the above-mentioned second route adjustment network, generating a fourth package processing message subset for the above-mentioned second package processing message subset; generating the above-mentioned second package processing message set according to the above-mentioned third package processing message subset and the above-mentioned fourth package processing message subset.
[0018] Optionally, the device further includes: generating a second package scrambling message set for the first package processing message subset; generating the fourth package processing message subset according to the second package processing message subset and the second package scrambling message set and using the second routing adjustment network.
[0019] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.
[0020] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner in the first aspect is implemented.
[0021] In a fifth aspect, some embodiments of the present disclosure provide a computer program product, including a computer program, which implements the method described in any implementation manner in the above-mentioned first aspect when executed by a processor.
[0022] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the information generation method of some embodiments of the present disclosure, the network stress test information corresponding to the original network of the first route can be accurately detected, the performance bottleneck and operation problems of the original network of the route can be better discovered, and the reliability and stability of the original network of the route can be improved. Specifically, the reason for the poor reliability and stability of the relevant routing network is that the method of amplifying the traffic through parameter control cannot fully reflect the occurrence of various routing network problems under the condition of a sharp increase in the package volume, and there is often a problem of distortion of the stress test effect, resulting in poor reliability and stability of the routing network. Based on this, the information generation method of some embodiments of the present disclosure first obtains a package message set as a stress test message set of the routing network to subsequently perform a network stress test on the original network of the first route. Then, the original package message set and the first package disruption message set are identified from the above package message set. Here, through the generation of the original package message set and the first package disruption message set, it is convenient to conduct targeted detection of the original network of the first route in the case of multiple package disruptions in the future. Further, by adding the first package disrupting message set to the package message set to perform network stress testing on the subsequent original network of the first route, the diversity detection of the original network of the first route can be greatly improved, and the reliability and stability of the network can be guaranteed. Furthermore, by using the original network of the first route corresponding to the service information to be stress tested, the first package processing message set for the above-mentioned original package message set and the above-mentioned first package disrupting message set can be accurately generated. Here, the obtained first package processing message set is used for the subsequent network test of the original network of the first route. Finally, according to the above-mentioned first package processing message set, the network stress test information for the original network of the first route can be accurately generated. In summary, by adding the first package disrupting message set for the subsequent network test of the original network of the first route, the accurate stress test of the network can be effectively guaranteed, and the reliability and stability of the network can be guaranteed. In addition, by identifying the original package message set and the first package disrupting message set, the impact of the package disturbance on the original network of the first route can be more clearly determined later, thereby improving the accuracy of the network test of the original network of the first route. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0024] Figure 1 is a schematic diagram of an application scenario of the information generation method according to some embodiments of the present disclosure;
[0025] Figure 2are flow charts of some embodiments of the information generation method according to the present disclosure;
[0026] Figure 3 are flow charts of other embodiments of the information generating method according to the present disclosure;
[0027] Figure 4 is a schematic diagram of converting a first routing original network into a first routing adjusted network according to some embodiments of the information generating method of the present disclosure;
[0028] Figure 5 is a schematic diagram of the structure of some embodiments of the information generating device according to the present disclosure;
[0029] Figure 6 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0030] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0031] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0032] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0033] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0034] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0035] With regard to the collection, storage, and use of information (such as package messages) involved in this disclosure, before performing corresponding operations, relevant organizations or individuals shall fulfill obligations including conducting personal information security impact assessments, fulfilling the obligation to inform the personal information subject, and obtaining the authorization and consent of the personal information subject in advance.
[0036] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0037] Figure 1 It is a schematic diagram of an application scenario of the information generation method according to some embodiments of the present disclosure.
[0038] exist Figure 1 In the application scenario, first, the electronic device 101 can obtain the package message set 102. In this application scenario, the package message set 102 includes: a first package message 1021, a second package message 1022, a third package message 1023, a fourth package message 1024, and a fifth package message 1025. Then, the electronic device 101 can identify the original package message set 104 and the first package scrambled message set 103 from the above package message set 102. In this application scenario, the first package scrambled message set 103 includes: a first package message 1021 and a second package message 1022. The original package message set 104 may include: a second package message 1022, a third package message 1023, and a fifth package message 1025. Further, the electronic device 101 can generate a first package processing message set 106 for the above original package message set 104 and the above first package scrambled message set 103 by using the first routing original network 105 corresponding to the service information to be stress tested. The first package processing message set 106 includes: a first package processing message 1061 corresponding to the first package message 1021, a second package processing message 1062 corresponding to the second package message 1022, a third package processing message 1063 corresponding to the third package message 1023, a fourth package processing message 1064 corresponding to the fourth package message 1024, and a fifth package processing message 1065 corresponding to the fifth package message 1025. Finally, the electronic device 101 can generate network stress test information 107 for the first route original network 105 according to the first package processing message set 106.
[0039] It should be noted that the electronic device 101 can be hardware or software. When the electronic device is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or it can be implemented as a single server or a single terminal device. When the electronic device is embodied as software, it can be installed in the hardware devices listed above. It can be implemented as multiple software or software modules for providing distributed services, for example, or it can be implemented as a single software or software module. No specific limitation is made here.
[0040] It should be understood that Figure 1 The number of electronic devices in the embodiment is only for illustration. Any number of electronic devices may be provided according to implementation requirements.
[0041] Continue to refer Figure 2 , shows a process 200 of some embodiments of the information generation method according to the present disclosure. The information generation method comprises the following steps:
[0042] Step 201, obtain a package message set.
[0043] In some embodiments, the execution subject of the above information generation method (for example Figure 1 The electronic device 101 shown can obtain the package message set through a wired connection or a wireless connection. Among them, the package message in the package message set can be a message associated with the package data. That is, the package message can be information in the form of a message. Specifically, the package message can be information about the practical dimension of the package. For example, the package message can be "Package [A] at station [B] time point [C] operation [car sealing action]".
[0044] It should be noted that the package message set includes: an original package message set and a first package scrambled message set. The original package message may be the actual original data of the package in the form of a message. The first package scrambled message may be the package data in the form of a message after the package data of the original package message is adjusted.
[0045] It should be noted that the transmission medium for the package message can be a message queue.
[0046] Furthermore, the parcel message set may be divided in the form of topic groups. For example, the parcel message set includes: multiple parcel message subsets corresponding to multiple topics. Each parcel message subset corresponds to an existing topic (Topic). That is, each parcel message subset has a corresponding Topic message channel. Each parcel message subset is a Topic message set.
[0047] Step 202: Identify the original package message set and the first package scrambled message set from the package message set.
[0048] In some embodiments, the execution subject may identify the original package message set and the first package scrambled message set from the package message set.
[0049] As an example, the execution subject may utilize an agent component to identify the original package message set and the first package disrupted message set from the package message set.
[0050] The proxy component may be a component embedded in the routing system corresponding to the original network of the first routing. The proxy component may implement data isolation for the original package message set and the first package disrupted message set.
[0051] It should be noted that each original network of the routing has a corresponding routing system. The network stress test for the original network of the routing is equivalent to the network stress test of the routing system. And each routing system has corresponding business information. In practice, the routing system includes: a proxy component. The shadow middleware in the proxy component can be used to identify message disturbances by using an interceptor or filter, and the interception processing mechanism uses Java's mature Agent dynamic interception technology.
[0052] Here, by identifying the original package message set and the first package disrupted message set, not only can the targeted first package processing message set be used to generate network stress test information, but it can also be stored through Threadlocal and transmitted between threads.
[0053] In some optional implementations of some embodiments, the first package disruption message set is generated by the following steps:
[0054] In the first step, a message scrambling identifier is added to each original package message in the original package message set to obtain the added package message set.
[0055] As an example, a message scrambling flag is added to each original package message in the above original package message set to generate an added package message and obtain an added package message set. The message scrambling flag can indicate that the corresponding added package message is a package scrambling message. For example, the message scrambling flag can be "PT".
[0056] It should be noted that the execution subject of the message disruption flag adding operation may be a stress testing engine. The stress testing engine may be an engine that performs package message disruption processing on the package message set.
[0057] In the second step, for each parcel message in the above-mentioned added parcel message set, at least one of the parcel message processing order disturbance processing and the parcel quantity amplification processing is performed to obtain the above-mentioned first parcel disrupted message set. Among them, the parcel message processing order disturbance processing can be a disruption processing of the processing order of each parcel message. The parcel message can be transmitted in the form of a message queue. The message queue represents the processing order of the parcel message. That is, the parcel message processing order disturbance processing can be a message order transformation processing of each message in the message queue. For example, the original message queue is [first parcel message, second parcel message, third parcel message, fourth parcel message, fifth parcel message]. After the message order transformation processing is performed on each message in the original message queue, a transformed message queue is obtained. The corresponding transformed message queue can be [first parcel message, third parcel message, fifth parcel message, second parcel message, fourth parcel message]. The parcel quantity amplification processing can be a random amplification processing of the number of parcels of the parcel message under the waybill, so as to verify the reordering capability of the original routing network for the parcels through a large number of parcels. For example, the waybill corresponding to the package message includes: the first package, the second package, the third package and the fourth package. Through the package quantity amplification processing, the number of packages corresponding to the first package and the third package can be specifically increased.
[0058] As an example, the above execution subject can use the spoiler in the stress testing engine to perform package message processing order disruption processing.
[0059] As another example, the execution entity may utilize the amplifier in the stress testing engine to perform package quantity amplification processing.
[0060] Step 203: using the first routing original network corresponding to the service information to be stress tested, generate a first package processing message set for the original package message set and the first package disruption message set.
[0061] In some embodiments, the execution subject may generate a first package processing message set for the original package message set and the first package disruption message set using the first routing original network corresponding to the business information to be stress tested. The business information to be stress tested may be the business information corresponding to the routing network to be stress tested. In practice, the business information to be stress tested may be the business information of the routing selection business. The business information to be stress tested has a corresponding business system. In practice, the business system may be generated by encapsulating multiple components. Specifically, the business system may include a proxy component. The first routing original network may characterize the message processing method of the package message in the business system. The first routing original network may be a routing network set for the business information to be stress tested and not adjusted. The first package processing message may be a package processing result in the form of a message.
[0062] As an example, the execution subject may perform message processing on the original package message set and the first package disrupted message set according to the network processing logic corresponding to the original network of the first route to obtain a first package processed message set.
[0063] In practice, the execution subject may utilize a routing device corresponding to the original network of the first routing to generate a first package processing message set for the original package message set and the first package disruption message set.
[0064] Step 204: Generate network stress test information for the original network of the first route according to the first package processing message set.
[0065] In some embodiments, the execution subject may generate network stress test information for the original network of the first route according to the first package processing message set, wherein the network stress test information may represent the network package performance test status of the original network of the first route.
[0066] As an example, first, the execution subject may determine the first package message processing accuracy corresponding to the first package message processing subset corresponding to the original package message set in the first package message processing set. Then, the execution subject may determine the second package message processing accuracy corresponding to the second package message processing subset corresponding to the first package scrambled message set in the first package message processing set. Finally, by comparing the difference between the first package message processing accuracy and the second package message processing accuracy, network stress test information for the original network of the first route is generated.
[0067] As another example, first, the execution subject may determine the first package message processing speed and the first package message processing accuracy corresponding to the first package message processing subset corresponding to the original package message set in the first package message processing set. Then, the execution subject may determine the second package message processing speed and the second package message processing accuracy corresponding to the second package message processing subset corresponding to the first package disruption message set in the first package message processing set. Next, determine the speed difference between the first package message processing speed and the second package message processing speed, and determine the accuracy difference between the first package message processing accuracy and the second package message processing accuracy. Finally, based on the speed difference and accuracy difference, generate network stress test information for the original network of the first route by querying the stress test table.
[0068] In some optional implementations of some embodiments, after step 204, the steps further include:
[0069] In the first step, in response to determining that the above-mentioned service information to be stress tested has corresponding next service information to be stress tested, the above-mentioned execution subject can identify the first package processing message subset for the above-mentioned original package message set and the second package processing message subset for the above-mentioned first package scrambling message set from the above-mentioned first package processing message set. The service corresponding to the next service information to be stress tested can be the service to be executed after the service corresponding to the service information to be stress tested. The specific implementation method will not be repeated.
[0070] Specifically, for the message processing of the original package message set, there are often multiple services to process in sequence, and each service has a corresponding routing device. Each routing device has a corresponding routing original network. Multiple services have corresponding execution orders. For example, the service sequence corresponding to multiple services can be [routing selection service, message processing confirmation service, package delivery service].
[0071] The second step is to generate a second package processing message set for the first package processing message subset and the second package processing message subset using the second routing original network corresponding to the next service information to be stress tested. For specific implementation methods, please refer to the generation of the first package processing message set.
[0072] The third step is to generate network stress test information for the original network of the second route according to the second package processing message set. The specific implementation method can refer to the generation of network stress test information for the original network of the first route.
[0073] Optionally, the second package processing message set includes: a third package processing message subset and a fourth package processing message subset. The third package processing message in the third package processing message subset has a one-to-one correspondence with the first package processing message in the first package processing message subset. The fourth package processing message in the fourth package processing message subset has a one-to-one correspondence with the second package processing message in the second package processing message subset. The third package processing message may be a package processing message processed for the first package processing message. The fourth package processing message may be a package processing message processed for the second package processing message.
[0074] Optionally, the generating of the second package processing message set for the first package processing message subset and the second package processing message subset by using the second routing original network corresponding to the next service information to be stress tested may include the following steps:
[0075] The first step is to generate a second routing adjustment network for the second routing original network.
[0076] The second routing adjustment network may be a routing network that adjusts nodes or network edges of the original second routing network.
[0077] The second step is to use the second routing original network to generate a third package processing message subset for the first package processing message subset. The specific implementation method is not repeated here. See the generation method of the first package processing message set.
[0078] The third step is to use the second routing adjustment network to generate a fourth package processing message subset for the second package processing message subset. The specific implementation method is not repeated here. See the generation method of the first package processing message set.
[0079] Optionally, the generating of the fourth package processing message subset for the second package processing message subset by using the second routing adjustment network may include the following steps:
[0080] The first step is to generate a second package scrambling message set for the first package processing message subset.
[0081] As an example, the execution subject may use the stress testing engine to generate a second package disruption message set for the first package processing message subset. The generation method of the second package disruption message set may refer to the generation method of the first package disruption message set.
[0082] The second step is to generate the fourth package processing message subset according to the second package processing message subset and the second package scrambling message set by using the second routing adjustment network. The specific implementation method can refer to the generation of the first package processing message set.
[0083] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the information generation method of some embodiments of the present disclosure, the network stress test information corresponding to the original network of the first route can be accurately detected, the performance bottleneck and operation problems of the original network of the route can be better discovered, and the reliability and stability of the original network of the route can be improved. Specifically, the reason for the poor reliability and stability of the relevant routing network is that the method of amplifying the traffic through parameter control cannot fully reflect the occurrence of various routing network problems under the condition of a sharp increase in the package volume, and there is often a problem of distortion of the stress test effect, resulting in poor reliability and stability of the routing network. Based on this, the information generation method of some embodiments of the present disclosure first obtains a package message set as a stress test message set of the routing network to subsequently perform a network stress test on the original network of the first route. Then, the original package message set and the first package disruption message set are identified from the above package message set. Here, through the generation of the original package message set and the first package disruption message set, it is convenient to conduct targeted detection of the original network of the first route in the case of multiple package disruptions in the future. Further, by adding the first package disrupting message set to the package message set to perform network stress testing on the subsequent original network of the first route, the diversity detection of the original network of the first route can be greatly improved, and the reliability and stability of the network can be guaranteed. Furthermore, by using the original network of the first route corresponding to the service information to be stress tested, the first package processing message set for the above-mentioned original package message set and the above-mentioned first package disrupting message set can be accurately generated. Here, the obtained first package processing message set is used for the subsequent network test of the original network of the first route. Finally, according to the above-mentioned first package processing message set, the network stress test information for the original network of the first route can be accurately generated. In summary, by adding the first package disrupting message set for the subsequent network test of the original network of the first route, the accurate stress test of the network can be effectively guaranteed, and the reliability and stability of the network can be guaranteed. In addition, by identifying the original package message set and the first package disrupting message set, the impact of the package disturbance on the original network of the first route can be more clearly determined later, thereby improving the accuracy of the network test of the original network of the first route.
[0084] Further references Figure 3 , shows a process 300 of another embodiment of the information generation method according to the present disclosure. The information generation method comprises the following steps:
[0085] Step 301, obtain a package message set.
[0086] Step 302: Identify the original package message set and the first package scrambled message set from the package message set.
[0087] Step 303: Generate a first routing adjustment network for the first routing original network.
[0088] In some embodiments, an execution entity (e.g. Figure 1 The electronic device 101 shown in the figure can generate a first route adjustment network for the above-mentioned first route original network. The first route adjustment network can be a route network that adjusts the nodes or network edges of the first route original network. The above-mentioned first package processing message set includes: a first package processing message subset and a second package processing message subset.
[0089] As an example, see Figure 4 , showing a schematic diagram of converting the first routing original network into the first routing adjustment network. The first routing original network may be routing network 401. The first routing adjustment network may be routing network 402. Routing network 401 includes: A node, B node, C node, D node, E node, F node, G node, H node, an edge representing "A node" pointing to "B node", an edge representing "A node" pointing to "C node", an edge representing "C node" pointing to "D node", an edge representing "C node" pointing to "F node", an edge representing "F node" pointing to "G node", an edge representing "G node" pointing to "H node", an edge representing "D node" pointing to "E node", an edge representing "E node" pointing to "H node", and an edge representing "B node" pointing to "E node". Routing network 402 includes: A node, B node, C node, D node, E node, F node, G node, H node, an edge representing "A node" pointing to "D node", an edge representing "A node" pointing to "C node", an edge representing "C node" pointing to "F node", an edge representing "C node" pointing to "G node", an edge representing "F node" pointing to "G node", an edge representing "G node" pointing to "H node", an edge representing "D node" pointing to "E node", an edge representing "E node" pointing to "H node", and an edge representing "B node" pointing to "E node".
[0090] Step 304: using the first routing original network, generate a first package processing message subset for the original package message set.
[0091] In some embodiments, the execution subject may use the first routing original network to generate a first package processing message subset for the original package message set. For specific implementation methods, see the generation of the first package processing message set.
[0092] Step 305: using the first routing adjustment network, generate a second package processing message subset for the first package disruption message set.
[0093] In some embodiments, the execution subject may utilize the first routing adjustment network to generate a second package processing message subset for the first package disruption message set. For specific implementation methods, see the generation of the first package processing message set.
[0094] Step 306: Generate network stress test information for the original network of the first route according to the first package processing message set.
[0095] In some embodiments, the specific implementation of steps 301-302 and 306 and the technical effects thereof can be referred to in Figure 2 The steps 201 - 202 and 204 in the corresponding embodiment are not described in detail here.
[0096] from Figure 3 It can be seen that Figure 2 Compared with the description of some corresponding embodiments, Figure 3 In the corresponding process 300 of the information generation method in some embodiments, through the corresponding input of the package messages of the first routing adjustment network and the second routing original network, targeted package processing message subsets can be generated respectively, which in turn can more specifically and accurately determine the network stress test information of the first routing original network.
[0097] Further references Figure 5 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of an information generating device, and these device embodiments are Figure 2 Corresponding to the method embodiments shown, the information generating device can be specifically applied to various electronic devices.
[0098] like Figure 5 As shown, an information generating device 500 includes: an acquisition unit 501, an identification unit 502, a first generation unit 503, and a second generation unit 504. The acquisition unit 501 is configured to acquire a package message set; the identification unit 502 is configured to identify an original package message set and a first package disrupted message set from the package message set; the first generation unit 503 is configured to generate a first package processing message set for the original package message set and the first package disrupted message set using the first route original network corresponding to the service information to be stress tested; the second generation unit 504 is configured to generate network stress test information for the first route original network according to the first package processing message set.
[0099] In some optional implementations of some embodiments, the device 500 further includes: a message identification unit, a message generation unit, and an information generation unit (not shown in the figure). The message identification unit may be configured to: in response to determining that the business information to be stress tested has corresponding next business information to be stress tested, identify a first package processing message subset for the original package message set and a second package processing message subset for the first package disruption message set from the first package processing message set. The message generation unit may be configured to: generate a second package processing message set for the first package processing message subset and the second package processing message subset using the second routing original network corresponding to the next business information to be stress tested. The information generation unit may be configured to: generate network stress test information for the second routing original network according to the second package processing message set.
[0100] In some optional implementations of some embodiments, the first package processing message set includes: a first package processing message subset and a second package processing message subset. And the first generating unit 503 may be further configured to: generate a first route adjustment network for the first route original network; generate a first package processing message subset for the original package message set using the first route original network; and generate a second package processing message subset for the first package disruption message set using the first route adjustment network.
[0101] In some optional implementations of some embodiments, the second package processing message set includes: a third package processing message subset and a fourth package processing message subset; and the message generation unit can be further configured to: generate a second route adjustment network for the second route original network; generate a third package processing message subset for the first package processing message subset using the second route original network; and generate a fourth package processing message subset for the second package processing message subset using the second route adjustment network.
[0102] In some optional implementations of some embodiments, the message generating unit may be further configured to: generate a second package disruption message set for the first package processing message subset; and generate the fourth package processing message subset based on the second package processing message subset and the second package disruption message set using the second routing adjustment network.
[0103] It is understandable that the units recorded in the information generating device 500 are similar to those in the reference Figure 2 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the information generating device 500 and the units included therein, and will not be described in detail here.
[0104] Reference below Figure 6 , which shows an electronic device (eg, Figure 1 Schematic diagram of the structure of the electronic device 101)600. Figure 6 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0105] like Figure 6 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory 602 or a program loaded from a storage device 608 into a random access memory 603. Various programs and data required for the operation of the electronic device 600 are also stored in the random access memory 603. The processing device 601, the read-only memory 602, and the random access memory 603 are connected to each other via a bus 604. An input / output interface 605 is also connected to the bus 604.
[0106] Typically, the following devices may be connected to the input / output interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 6 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0107] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a read-only memory 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.
[0108] It should be noted that the computer-readable medium in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0109] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0110] The computer-readable medium may be included in the electronic device; or it may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a package message set; identifies an original package message set and a first package scrambled message set from the package message set; generates a first package processing message set for the original package message set and the first package scrambled message set using the original network of the first route corresponding to the service information to be stress tested; and generates network stress test information for the original network of the first route according to the first package processing message set.
[0111] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0112] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0113] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, an identification unit, a first generation unit, and a second generation unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the acquisition unit may also be described as a "unit for acquiring a package message set".
[0114] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0115] Some embodiments of the present disclosure further provide a computer program product, including a computer program, which implements any of the above-mentioned information generation methods when executed by a processor.
[0116] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A method for generating information, comprising: Get the package message set; identifying an original package message set and a first package scrambled message set from the package message set; Generate a first package processing message set for the original package message set and the first package disruption message set by using the first routing original network corresponding to the service information to be stress tested; According to the first package processing message set, network stress test information for the original network of the first route is generated.
2. The method according to claim 1, wherein: The method further comprises: In response to determining that the service information to be stress tested has corresponding next service information to be stress tested, identifying a first package processing message subset for the original package message set and a second package processing message subset for the first package scrambling message set from the first package processing message set; Generate a second package processing message set for the first package processing message subset and the second package processing message subset by using the second routing original network corresponding to the next service information to be stress tested; According to the second package processing message set, network stress test information for the original network of the second route is generated.
3. The method according to claim 1, wherein: The first package processing message set includes: a first package processing message subset and a second package processing message subset; and The step of utilizing the first routing original network corresponding to the service information to be stress tested to generate a first package processing message set for the original package message set and the first package disruption message set includes: Generating a first route adjustment network for the first route original network; Using the first routing original network, generating the first package processing message subset for the original package message set; The second package handling message subset is generated for the first package scrambling message set using the first routing adjustment network.
4. The method according to claim 2, wherein: The second package processing message set includes: a third package processing message subset and a fourth package processing message subset; and The generating a second package processing message set for the first package processing message subset and the second package processing message subset by using the second routing original network corresponding to the next service information to be stress tested includes: Generating a second route adjustment network for the second route original network; Using the second routing original network, generating the third package processing message subset for the first package processing message subset; The fourth package processing message subset is generated for the second package processing message subset using the second routing adjustment network.
5. The method according to claim 4, wherein: The step of utilizing the second routing adjustment network to generate the fourth package processing message subset for the second package processing message subset includes: generating a second package scrambling message set for the first package processing message subset; The fourth package processing message subset is generated based on the second package processing message subset and the second package scrambling message set using the second routing adjustment network.
6. The method according to claim 1, wherein: The first package disruption message set is generated by the following steps: Adding a message scrambling identifier to each original package message in the original package message set to obtain an added package message set; For each package message in the added package message set, at least one of a package message processing order disruption process and a package quantity enlargement process is performed to obtain the first package disruption message set.
7. An information generating device, comprising: An acquisition unit, configured to acquire a package message set; an identification unit configured to identify an original package message set and a first package scrambled message set from the package message set; A first generating unit is configured to generate a first package processing message set for the original package message set and the first package disruption message set by using a first routing original network corresponding to the service information to be stress tested; The second generating unit is configured to generate network stress test information for the original network of the first route according to the first package processing message set.
8. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.
9. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.