Positioning incoming and outgoing packet statistical method based on breeboot programmable switching chip

By using the barefoot programmable switching chip positioning in and out packet statistics method in the shunt device, the problem of unclear traffic direction in the device is solved, intuitive display of traffic statistics and rapid adjustment of equipment strategies are achieved, and equipment performance and customer experience are improved.

CN119561873APending Publication Date: 2025-03-04NANJING BALANCE NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311129255.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-04
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In the diverter equipment, due to the complex flow of the wire network, the equipment is unclear about the direction of the traffic during use, which can easily cause traffic leakage and positioning difficulties, affecting the customer's experience.

Method used

The positioning in-out packet statistics method based on barefoot programmable switching chip is adopted, and the traffic in-out ports of fixed five-tuples are counted in real time, and statistical data is written when the matching rule hits, which is displayed in the web or command line interface.

Benefits of technology

It realizes intuitive observation of traffic in and out of the port, simplifies equipment strategy adjustment, shortens problem positioning time, saves manpower and operation and maintenance costs, and improves equipment throughput.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119561873A_ABST
    Figure CN119561873A_ABST
Patent Text Reader

Abstract

The invention discloses a positioning incoming and outgoing packet statistical method based on a breeboot programmable switching chip, which is used for carrying out real-time statistics on the flow of a fixed quintuple at an incoming and outgoing port. In the process of real-time statistics, the following scheme is adopted: after a positioning rule is bound to a fixed port, port input and output flows are matched through the rule, if the port input and output flows are hit, counting statistics operation is carried out, and when a display command is input into an upper layer or a display button is clicked, a count is obtained from beareboot statistics, and the counting is carried out. And the flow input and output quantity is displayed in a web or command line interface. According to the method, the specific flow inlet and outlet condition can be directly observed, display is more visual, timely adjustment of equipment strategies is facilitated, and economic losses are avoided. During the operation period of the shunting equipment, the problem positioning time can be greatly shortened, the manpower and the operation and maintenance cost are saved, and the equipment throughput can be twice that of the original equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method for counting incoming and outgoing packets based on a barefoot programmable switching chip. Background Art

[0002] With the continuous development of communication technology, the application of splitters is increasing, and the demand for the performance of related products is getting higher and higher. Related products often need to accept customer customization requirements. However, due to the high complexity of line network traffic, the equipment is not clear about the direction of the required traffic during use, which can easily cause traffic leakage, great difficulty in positioning, and difficulty for customers to use. Therefore, in order to facilitate customers to intuitively locate the traffic direction of the equipment during use, how to implement a method for counting incoming and outgoing packets is a difficult point. Summary of the invention

[0003] To solve the above problems, the present invention proposes a method for locating inbound and outbound packets based on a barefoot programmable switching chip, which performs real-time statistics on the traffic of a fixed five-tuple at the inbound and outbound ports. In the process of real-time statistics, the patent adopts the following scheme: after the positioning rule is bound to a fixed port, if the port input and output traffic are matched, the statistics are written to the calculated location. When the upper layer inputs a display command or clicks a display button, the count is obtained from the barefoot statistics, and the traffic input and output quantities are displayed in the web or command line interface.

[0004] The specific steps are as follows: Step 1: Because the number of inbound and outbound traffic of the specified five-tuple needs to be counted, the inbound port and the outbound port to be counted are first bound, and the rule matching five-tuple and the rule number are written into the Barefoot matching table, and the statistical space is allocated.

[0005] Step 2: If traffic is input into or output from a port, first determine whether the port belongs to the port of the binding positioning rule. If it is determined to be a binding port, match the five-tuple parsed by the message with the rule matching table added to barefoot in step 1. If a match is found, obtain the rule number and port number.

[0006] Step 3: The corresponding statistics writing position is calculated by the rule number and port number, and the underlying statistics of barefoot are increased by one.

[0007] Step 4: When the operator enters a command to display the statistics of incoming and outgoing packets, the packet statistics are obtained by obtaining the location written in step 3 of the barefoot bottom layer and displayed on the operator's web interface or command line.

[0008] Compared with the prior art, the technical solution of the present invention has the following significant beneficial effects: 1. This patented method can directly observe the specific flow in and out, and the more intuitive display is conducive to timely adjustment of equipment strategies to avoid economic losses.

[0009] 2. This patented method can greatly shorten the time for locating problems during the operation of the diversion equipment, saving manpower and operation and maintenance costs.

[0010] 3. This patented method can be operated during the operation of the diversion device to avoid restarting the device or interrupting the device function due to problem location, which will affect the economic benefits generated.

[0011] 4. This patented method increases the throughput of the device by 2 times, and puts the statistics of incoming and outgoing packets, which were previously not good at processing, on a suitable barefoot switch, thus enhancing the competitiveness of the product. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component shown in various figures may be represented by the same reference numeral. For clarity, not every component is labeled in every figure. Embodiments of various aspects of the present invention will now be described by way of example and with reference to the accompanying drawings, in which: Figure 1 The invention discloses a flow chart of a method for counting incoming and outgoing packets based on a barefoot programmable switching chip. DETAILED DESCRIPTION

[0013] In order to make the purpose and technical solution of the present disclosure more clearly understood, the present disclosure is further elaborated in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0014] The flowchart of the method for locating incoming and outgoing packets based on the barefoot programmable switching chip of the present invention is as follows: Figure 1 As shown, for the fixed five-tuple traffic, real-time statistics are performed at the inlet and outlet ports. In the real-time statistics process, this patent adopts the following scheme: after the positioning rule is bound to the fixed port, if the port input and output traffic are matched, the statistics are written to the calculated location. When the upper layer inputs the display command or clicks the display button, the count is obtained from the barefoot statistics, and the traffic input and output numbers are displayed in the web or command line interface.

[0015] The specific steps are as follows: Step 1: Because the number of inbound and outbound traffic of the specified five-tuple needs to be counted, the inbound port and the outbound port to be counted are first bound, and the rule matching five-tuple and the rule number are written into the Barefoot matching table, and the statistical space is allocated.

[0016] Step 2: If traffic is input into or output from a port, first determine whether the port belongs to the port of the binding positioning rule. If it is determined to be a binding port, match the five-tuple parsed by the message with the rule matching table added to barefoot in step 1. If a match is found, obtain the rule number and port number.

[0017] Step 3: The corresponding statistics writing position is calculated by the rule number and port number, and the underlying statistics of barefoot are increased by one.

[0018] Step 4: When the operator enters a command to display the statistics of incoming and outgoing packets, the packet statistics are obtained by obtaining the location written in step 3 of the barefoot bottom layer and displayed on the operator's web interface or command line.

[0019] Various aspects of the present invention are described in this disclosure with reference to the accompanying drawings, in which many illustrative embodiments are shown. The embodiments of the present disclosure are not necessarily defined to include all aspects of the present invention. It should be understood that the various concepts and embodiments introduced above, as well as those described in more detail below, can be implemented in any of many ways, because the concepts and embodiments disclosed by the present invention are not limited to any implementation. In addition, some aspects disclosed by the present invention can be used alone, or in any appropriate combination with other aspects disclosed by the present invention.

[0020] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.

Claims

1. A method for locating incoming and outgoing packets based on a barefoot programmable switching chip, characterized in that: The method performs real-time statistics on the traffic of the fixed five-tuple at the inlet and outlet ports. During the real-time statistics process, the patent adopts the following scheme: after the positioning rule is bound to the fixed port, if the port input and output traffic are matched, the statistics are written to the calculated location. When the upper layer inputs the display command or clicks the display button, the count is obtained from the barefoot statistics, and the traffic input and output quantities are displayed in the web or command line interface; The specific steps are as follows: Step 1: Because the number of inbound and outbound traffic of the specified five-tuple needs to be counted, the input port and output port whose inbound and outbound traffic needs to be counted are first bound, and the rule matching five-tuple and rule number are written into the Barefoot matching table, and statistical space is allocated; Step 2: If traffic is input to or output from a port, first determine whether the port belongs to the port of the binding positioning rule. If it is determined to be a binding port, match the five-tuple parsed by the message with the rule matching table added to barefoot in step 1. If a match is found, obtain the rule number and port number; Step 3: Calculate the corresponding statistics writing position through the rule number and port number, and increase the underlying statistics of barefoot by one; Step 4: When the operator enters a command to display the statistics of incoming and outgoing packets, the packet statistics are obtained by obtaining the location written in step 3 of the barefoot bottom layer and displayed on the operator's web interface or command line.