Cut-up stream self-checking method and device and storage medium

Through the automated copying and streaming self-test method, the tag information is automatically forwarded and detected data packets, which solves the problems of low manual detection efficiency and high cost, and achieves efficient and accurate detection of multiple network ports.

CN119603192AActive Publication Date: 2025-03-11SHENZHEN TIPTOP INFORMATION TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411865877.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-18
Publication Date
2025-03-11
Estimated Expiration
2044-12-18

AI Technical Summary

Technical Problem

In the prior art, the health status detection of the server network port mainly relies on manual flow detection, resulting in high labor costs, low detection efficiency, and easy to miss or errors.

Method used

Provides a self-test method for copying streaming, which can obtain streaming requests, configure streaming task data packets, and monitor streaming status in real time. Data packets are transmitted sequentially between network ports, and the forwarding path is determined using tag information to automatically complete the flow and detection of data packets.

Benefits of technology

It realizes one-time detection of multiple network ports, reduces repeated operations, improves detection efficiency, avoids manual errors and omissions, and improves the degree of automation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119603192A_ABST
    Figure CN119603192A_ABST
Patent Text Reader

Abstract

The invention discloses a copy stream self-checking method, which comprises the following steps of: obtaining a stream request which comprises parameters of a stream task; configuring a streaming task data packet according to parameters in the request, starting a corresponding service to send the streaming task data packet to a to-be-detected network port, and monitoring a streaming state in real time; when the network port receives the streaming task data packet, detecting a mark on the streaming task data packet; if the streaming task data packet does not carry the mark, marking the streaming task data packet according to the current network port information, and forwarding the streaming task data packet to the next network port according to a specified forwarding network port on the mark; and if the streaming task data packet carries the mark, updating the mark according to the current network port information, and forwarding the streaming task data packet to the next network port according to a specified forwarding network port on the mark.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to a copy machine streaming self-checking method, device and storage medium. Background Art

[0002] Traffic Generation, also known as network load testing, flow testing or network performance testing, is a method of stress testing and performance evaluation of computer networks by simulating actual application loads. Its purpose is to generate a large amount of network traffic, simulate actual usage scenarios, and evaluate the performance and reliability of network equipment.

[0003] At present, the health status of server network ports is mainly detected by manually testing each network port. This method has many shortcomings. On the one hand, it consumes a lot of labor costs, and on the other hand, it requires manual statistics and calculation of the health of each network port. Therefore, a copy machine flow self-test method, device and storage medium that can solve the above problems are needed. Summary of the invention

[0004] The main purpose of the present application is to provide a copy machine streaming self-test method, device and storage medium, aiming to solve the problems mentioned in the background technology.

[0005] The present application provides a copy machine flow self-test method, the method comprising: Get the streaming request, which contains the parameters of the streaming task; Configure the streaming task data packet according to the parameters in the request, start the corresponding service to send the streaming task data packet to the network port to be detected, and monitor the streaming status in real time; When the network port receives a data packet of a traffic task, a tag on the data packet of the traffic task is detected, wherein the tag is used to indicate the source network port information and the designated forwarding network port, and all the network ports to be detected are pre-set to pass through in sequence, and the tag generated according to any network port information includes a unique designated forwarding network port; If the data packet of the streaming task does not carry a mark, the data packet of the streaming task is marked according to the current network port information, and forwarded to the next network port according to the designated forwarding network port on the mark; If the streaming task data packet carries a tag, the tag is updated according to the current network port information, and the data packet is forwarded to the next network port according to the designated forwarding network port on the tag.

[0006] Furthermore, the step of “if the data packet of the streaming task carries a mark” specifically includes: Confirm whether the designated forwarding network port on the mark is the current network port. If the designated forwarding network port on the mark is the current network port, continue to mark the data packet of the streaming task according to the current network port information; If the designated forwarding network port on the tag does not match the current network port, it is considered an abnormal state and a warning is issued.

[0007] Furthermore, the parameters of the streaming task include a streaming time duration. When the streaming task is executed to a specified time duration, the streaming task is stopped.

[0008] Furthermore, the “real-time monitoring of streaming status” specifically includes monitoring network status and / or coding efficiency and / or packet loss rate.

[0009] Furthermore, the “all network ports to be detected are pre-set to be passed in sequence” specifically means: All network ports to be detected are pre-set to a circular order, and each network port to be detected has a unique source and a unique designated forwarding network port.

[0010] Furthermore, after "if the data packet of the streaming task carries a mark", it also includes: determining whether the data packet of the streaming task passes through the current network port for the first time, If the data packet of the traffic task passes through the current network port for the first time, the data packet of the traffic task is marked according to the information of the current network port, and forwarded to the next network port according to the designated forwarding network port on the mark; If the data packet of the traffic-making task is not the first time to pass through the current network port, it is determined that the detection cycle is completed and the traffic-making task is ended.

[0011] Furthermore, the “all network ports to be detected are pre-set to be passed in sequence” specifically means: The network ports to be detected include an initial network port, an intermediate network port and a final network port which are arranged in sequence, any intermediate network port has a unique source and a unique designated forwarding network port, the initial network port corresponds to a unique designated forwarding network port, and the final network port corresponds to a unique source; After "configuring the streaming task data packet according to the parameters in the request", the corresponding service is started to send the streaming task data packet to the initial network port.

[0012] Furthermore, the “all network ports to be detected are pre-set to be passed in sequence, and the tag generated according to any network port information includes a unique designated forwarding network port” is achieved by configuring iptables rules.

[0013] The present invention also provides a copy machine current self-test device, the device comprising: The acquisition module is used to obtain a streaming request, which includes parameters of the streaming task; The traffic module is used to configure the traffic task data packet according to the parameters in the request, start the corresponding service to send the traffic task data packet to the network port to be detected, and monitor the traffic status in real time; The network port serial forwarding module is used to detect the mark on the streaming task data packet when the network port receives the streaming task data packet, wherein the mark is used to indicate the source network port information and the designated forwarding network port, and all the network ports to be detected are pre-set to be passed in sequence, and the mark generated according to any network port information includes a unique designated forwarding network port; if the streaming task data packet does not carry a mark, the streaming task data packet is marked according to the current network port information, and forwarded to the next network port according to the designated forwarding network port on the mark; if the streaming task data packet carries a mark, the mark is updated according to the current network port information, and forwarded to the next network port according to the designated forwarding network port on the mark.

[0014] The present invention also provides a storage medium, which includes a stored program, and when the program is executed, controls the device where the computer-readable storage medium is located to execute the above method.

[0015] Compared with manually performing flow detection on each network port, the present invention can detect multiple network ports at one time, reducing repeated operations and avoiding omissions or errors that may occur when manually detecting network ports one by one, thereby saving time and improving detection efficiency; and the degree of automation, the system can automatically complete the flow and detection of data packets between various network ports without manual intervention. Since the data packets pass through all the network ports that need to be detected in turn, the situation of each network port can be taken into account, ensuring that the health of all network ports is fully detected, avoiding the problem that only some important network ports may be focused on and other network ports are ignored during manual detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0018] Figure 1 It is a flow chart of the steps of a copy machine flow self-test method provided by one embodiment of the present invention.

[0019] Figure 2 It is a modular diagram of a copy machine current self-checking device according to one embodiment of the present invention.

[0020] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0021] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0022] See also Figure 1-2 The present application provides a copy machine flow self-test method, the method comprising: S10: A streaming request is obtained, which includes parameters of the streaming task.

[0023] S20: configuring a streaming task data packet according to the parameters in the request, starting a corresponding service to send the streaming task data packet to the network port to be detected, and monitoring the streaming status in real time.

[0024] S30: When the network port receives a data packet of a streaming task, the mark on the data packet of the streaming task is detected, wherein the mark is used to indicate the source network port information and the designated forwarding network port, and all network ports to be detected are pre-set to pass in sequence, and the mark generated according to any network port information includes a unique designated forwarding network port.

[0025] S31: If the data packet of the streaming task does not carry a mark, the data packet of the streaming task is marked according to the current network port information, and forwarded to the next network port according to the designated forwarding network port on the mark.

[0026] S32: If the data packet of the streaming task carries a tag, the tag is updated according to the current network port information, and the data packet is forwarded to the next network port according to the designated forwarding network port on the tag.

[0027] Compared with manually performing flow detection on each network port, the present invention can detect multiple network ports at one time, reducing repeated operations and avoiding omissions or errors that may occur when manually detecting network ports one by one, thereby saving time and improving detection efficiency; and the degree of automation, the system can automatically complete the flow and detection of data packets between various network ports without manual intervention. Since the data packets pass through all the network ports that need to be detected in turn, the situation of each network port can be taken into account, ensuring that the health of all network ports is fully detected, avoiding the problem that only some important network ports may be focused on and other network ports are ignored during manual detection.

[0028] In one embodiment of the present invention, the step of “if the data packet of the streaming task carries a mark” specifically includes: Confirm whether the designated forwarding network port on the mark is the current network port. If the designated forwarding network port on the mark is the current network port, continue to mark the data packet of the streaming task according to the current network port information; If the designated forwarding network port on the tag does not match the current network port, it is considered an abnormal state and a warning is issued.

[0029] In one embodiment of the present invention, the parameters of the traffic-breaking task include the duration of the traffic-breaking time. When the traffic-breaking task is executed to a specified duration, the traffic-breaking task is stopped.

[0030] In one embodiment of the present invention, the "real-time monitoring of flow status" specifically includes monitoring network conditions and / or coding efficiency and / or packet loss rate; in this embodiment, by real-time monitoring of the flow status and key indicators of data packets (such as network conditions, coding efficiency, packet loss rate, etc.), more accurate network port health data can be obtained.

[0031] In the present invention, each time a traffic task is performed, all network ports to be detected are randomly arranged in order, that is, the order of the network ports detected is different during each traffic self-test, thereby avoiding false detection or misdetection that may be caused by the detection order.

[0032] In one embodiment of the present invention, the "all network ports to be detected are pre-set to pass through in sequence" specifically means: all network ports to be detected are pre-set to a circular order, and each network port to be detected has a unique source and a unique designated forwarding network port. In this embodiment, the data packet of the streaming task can enter any network port to start the streaming task, and the streaming task is started randomly from a certain network port, which will have a relatively higher accuracy for self-test.

[0033] On the basis of the above embodiment, further, after "if the data packet of the streaming task carries a mark", it also includes: determining whether the data packet of the streaming task passes through the current network port for the first time.

[0034] If the data packet of the streaming task passes through the current network port for the first time, the data packet of the streaming task is marked according to the current network port information, and forwarded to the next network port according to the designated forwarding network port on the mark; if the data packet of the streaming task does not pass through the current network port for the first time, it is determined that the detection cycle is completed and the streaming task is ended.

[0035] In one embodiment of the present invention, the “all network ports to be detected are pre-set to pass through in sequence” specifically means: The network ports to be detected include an initial network port, an intermediate network port and a final network port which are arranged in sequence, any intermediate network port has a unique source and a unique designated forwarding network port, the initial network port corresponds to a unique designated forwarding network port, and the final network port corresponds to a unique source; After "configuring the streaming task data packet according to the parameters in the request", the corresponding service is started to send the streaming task data packet to the initial network port.

[0036] In one embodiment of the present invention, the "all network ports to be detected are pre-set to be passed in sequence, and the tag generated according to any network port information includes a unique designated forwarding network port" is achieved by configuring iptables rules.

[0037] Based on the aforementioned flow self-checking method, one implementation method of the user's specific operation is as follows: Step 1: Log in to the streaming page. Users access the designated streaming page through a browser or other client, which integrates all the function buttons and status display areas required for streaming operations.

[0038] Step 2: Click "Start" to start streaming. The user finds and clicks the "Start" button on the streaming page, and the system immediately sends a streaming request to the backend processing module. The request contains various parameters required for streaming, such as streaming duration, etc.

[0039] Step 3: The backend starts streaming. After receiving the streaming request, the backend processing module configures the streaming task according to the parameters in the request, and starts the corresponding service to collect, encode, encapsulate and transmit the network card and performance data. During this process, the backend processing module will monitor the streaming status in real time, including key indicators such as network status, encoding efficiency, and packet loss rate.

[0040] Step 4: Wait for the streaming to end automatically or stop manually. The streaming task can end automatically according to the preset time or conditions, such as reaching the specified duration, file size, or receiving an external stop signal. At the same time, the user can also manually click the "Stop" button on the copy machine streaming page to end the streaming task in advance. Regardless of the way it ends, the system will record and save all data during the streaming process.

[0041] Step 5: Generate a report. The report generation module is automatically started after the streaming task is completed, and generates a detailed streaming report based on the data saved in the data storage module. The report content includes but is not limited to streaming time, duration, video quality indicators (such as resolution, frame rate), network performance indicators (such as bandwidth usage, delay time), error logs, etc.

[0042] Step 6: Download the report for viewing. Users can find and download the streaming report on the streaming page. The downloaded report file supports Excel viewing, which is convenient for users to view and analyze on different devices.

[0043] With reference to this specific embodiment, once the system is set up, the user can start the detection process by simple operations (such as logging into the copy machine streaming page and clicking the "Start" button), without complex technical knowledge and operation skills. Moreover, it has wide applicability and can adapt well to different types of servers and network environments.

[0044] The present invention also provides a copy machine current self-test device 100, the device comprising: The acquisition module 10 is used to acquire a streaming request, which includes parameters of the streaming task; The traffic-making module 20 is used to configure the traffic-making task data packet according to the parameters in the request, start the corresponding service to send the traffic-making task data packet to the network port to be detected, and monitor the traffic-making status in real time; The network port serial forwarding module 30 is used to detect the mark on the streaming task data packet when the network port receives the streaming task data packet, wherein the mark is used to indicate the source network port information and the designated forwarding network port, and all the network ports to be detected are pre-set to be passed in sequence, and the mark generated according to any network port information includes a unique designated forwarding network port; if the streaming task data packet does not carry a mark, the streaming task data packet is marked according to the current network port information, and forwarded to the next network port according to the designated forwarding network port on the mark; if the streaming task data packet carries a mark, the mark is updated according to the current network port information, and forwarded to the next network port according to the designated forwarding network port on the mark.

[0045] The present invention also provides a storage medium, which includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute the above method.

[0046] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A copy machine flow self-test method, characterized in that: The method comprises: Get the streaming request, which contains the parameters of the streaming task; Configure the streaming task data packet according to the parameters in the request, start the corresponding service to send the streaming task data packet to the network port to be detected, and monitor the streaming status in real time; When the network port receives a data packet of a traffic task, a tag on the data packet of the traffic task is detected, wherein the tag is used to indicate the source network port information and the designated forwarding network port, and all the network ports to be detected are pre-set to pass through in sequence, and the tag generated according to any network port information includes a unique designated forwarding network port; If the data packet of the streaming task does not carry a mark, the data packet of the streaming task is marked according to the current network port information, and forwarded to the next network port according to the designated forwarding network port on the mark; If the streaming task data packet carries a tag, the tag is updated according to the current network port information, and the data packet is forwarded to the next network port according to the designated forwarding network port on the tag.

2. The method for self-testing a copy machine according to claim 1, characterized in that: The "if the data packet of the streaming task carries a mark" specifically includes: Confirm whether the designated forwarding network port on the mark is the current network port. If the designated forwarding network port on the mark is the current network port, continue to mark the data packet of the streaming task according to the current network port information; If the designated forwarding network port on the tag does not match the current network port, it is considered an abnormal state and a warning is issued.

3. The method for self-testing a copy machine according to claim 1, characterized in that: The parameters of the streaming task include the duration of the streaming time. When the streaming task is executed to reach the specified duration, the streaming task is stopped.

4. The method for self-testing a copy machine according to claim 1, characterized in that: The “real-time monitoring of streaming status” specifically includes monitoring network conditions and / or coding efficiency and / or packet loss rate.

5. The copy machine self-test method according to claim 1, characterized in that: The "all network ports to be detected are pre-set to pass through in sequence" specifically means: All network ports to be detected are pre-set to a circular order, and each network port to be detected has a unique source and a unique designated forwarding network port.

6. The copy machine self-test method according to claim 5, characterized in that: After "if the data packet of the streaming task carries a mark", the method further includes: determining whether the data packet of the streaming task passes through the current network port for the first time, If the data packet of the traffic task passes through the current network port for the first time, the data packet of the traffic task is marked according to the information of the current network port, and forwarded to the next network port according to the designated forwarding network port on the mark; If the data packet of the traffic-making task is not the first time to pass through the current network port, it is determined that the detection cycle is completed and the traffic-making task is ended.

7. The copy machine self-test method according to claim 1, characterized in that: The "all network ports to be detected are pre-set to pass through in sequence" specifically means: The network ports to be detected include an initial network port, an intermediate network port and a final network port which are arranged in sequence, any intermediate network port has a unique source and a unique designated forwarding network port, the initial network port corresponds to a unique designated forwarding network port, and the final network port corresponds to a unique source; After "configuring the streaming task data packet according to the parameters in the request", the corresponding service is started to send the streaming task data packet to the initial network port.

8. The copy machine flow self-test method according to claim 1, characterized in that: The "all network ports to be detected are pre-set to be passed in sequence, and the mark generated according to any network port information includes a unique designated forwarding network port" is achieved by configuring iptables rules.

9. A copy machine current self-test device, characterized in that: The device comprises: The acquisition module is used to obtain a streaming request, which includes parameters of the streaming task; The traffic module is used to configure the traffic task data packet according to the parameters in the request, start the corresponding service to send the traffic task data packet to the network port to be detected, and monitor the traffic status in real time; The network port serial forwarding module is used to detect the mark on the streaming task data packet when the network port receives the streaming task data packet, wherein the mark is used to indicate the source network port information and the designated forwarding network port, and all the network ports to be detected are pre-set to be passed in sequence, and the mark generated according to any network port information includes a unique designated forwarding network port; if the streaming task data packet does not carry a mark, the streaming task data packet is marked according to the current network port information, and forwarded to the next network port according to the designated forwarding network port on the mark; if the streaming task data packet carries a mark, the mark is updated according to the current network port information, and forwarded to the next network port according to the designated forwarding network port on the mark.

10. A storage medium, characterized in that: It includes a stored program, which controls the device where the computer-readable storage medium is located to execute the copy machine streaming self-test method of any one of claims 1-8 when the program is running.

Citation Information

Patent Citations

  • Serpentine-flow-based network port testing method

    CN102684948A

  • Test method, test system and computer readable storage medium

    CN110233779A

  • Switch network status test system and method

    CN113141279A

  • Flow testing method, device and equipment for high-speed port of switch

    CN115766512A

  • Switch self-test flow beating method, system and device and storage medium

    CN117544537A