Method and device for concurrently reporting data in DPI system
The invention discloses a method and device for concurrently reporting data in a DPI system and relates to the technical field of DPI. The technical process of the method comprises following steps: the DPI system is started, and report thread number and report queue length are initialized; when a re...
Gespeichert in:
Hauptverfasser: | , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a method and device for concurrently reporting data in a DPI system and relates to the technical field of DPI. The technical process of the method comprises following steps: the DPI system is started, and report thread number and report queue length are initialized; when a report task is added to the report queue, the report task is allocated to an idle report thread of a report thread pool; a corresponding TCP file connecting descriptor list is selected according to the service type of the report task; a send function is called from effective descriptors in the TCP file connecting descriptor list to perform TCP data transmission; if a returned value is the length of a sent data package, then the TCP data transmission is finished; if the value is less than zero, then TCP data transmission is failed; if the value is larger than zero but less than the length of the sent data package, then the TCP data transmission is unfinished. By means of the method and the device, DPI report performan |
---|