CN114500418B - Data statistics method and related device - Google Patents

Data statistics method and related device Download PDF

Info

Publication number
CN114500418B
CN114500418B CN202210129712.8A CN202210129712A CN114500418B CN 114500418 B CN114500418 B CN 114500418B CN 202210129712 A CN202210129712 A CN 202210129712A CN 114500418 B CN114500418 B CN 114500418B
Authority
CN
China
Prior art keywords
data
statistical
server
statistics
statistic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210129712.8A
Other languages
Chinese (zh)
Other versions
CN114500418A (en
Inventor
彭雪娇
余兆国
孙路遥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Xingyun Zhilian Technology Co Ltd
Original Assignee
Zhuhai Xingyun Zhilian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Xingyun Zhilian Technology Co Ltd filed Critical Zhuhai Xingyun Zhilian Technology Co Ltd
Priority to CN202210129712.8A priority Critical patent/CN114500418B/en
Publication of CN114500418A publication Critical patent/CN114500418A/en
Application granted granted Critical
Publication of CN114500418B publication Critical patent/CN114500418B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a data statistics method and a related device, wherein the method is applied to a first server in a virtual switch system, the virtual switch system comprises the first server and a second server, the first server is used for executing a control function, the second server is used for executing a data forwarding function, and the first server is in communication connection with the second server; the method comprises the following steps: receiving at least one statistical data packet from a second server, the at least one statistical data packet being stored in a statistical queue; analyzing each statistic data packet to obtain first statistic data corresponding to each statistic data packet and a statistic label corresponding to the first statistic data, wherein the first statistic data is used for representing statistic data of a virtual switch system; and caching at least one first statistic data and a statistic label corresponding to the at least one statistic data packet. The method and the device are beneficial to reducing the interaction times of the first server and the second server and improving the efficiency of data acquisition.

Description

Data statistics method and related device
Technical Field
The application relates to the technical field of network communication, in particular to a data statistics method and a related device.
Background
With the development of network technology, data traffic is increasing. Currently, the efficiency of data acquisition in Open Virtual Switches (OVSs) is low. Therefore, how to improve the data acquisition efficiency in OVS is a highly desirable problem.
Disclosure of Invention
The embodiment of the application provides a data statistics method and a related device, which are beneficial to reducing the interaction times of a first server and a second server and improving the efficiency of data acquisition.
In a first aspect, an embodiment of the present application provides a data statistics method, which is applied to a first server in a virtual switch system, where the virtual switch system includes the first server and a second server, the first server is configured to execute a control function, the second server is configured to execute a data forwarding function, and the first server and the second server are connected in a communication manner; the method comprises the following steps:
receiving at least one statistical data packet from the second server, the at least one statistical data packet being stored in a statistical queue;
analyzing each statistical data packet to obtain first statistical data corresponding to each statistical data packet and a statistical tag corresponding to the first statistical data, wherein the first statistical data is used for representing the statistical data of the virtual switch system, and the statistical tag is used for counting the first statistical data;
And caching at least one first statistic data and the statistic label corresponding to the at least one statistic data packet.
In a second aspect, an embodiment of the present application provides a data statistics method, which is applied to a second server in a virtual switch system, where the virtual switch system includes a first server and the second server, the first server is configured to execute a control function, the second server is configured to execute a data forwarding function, and the first server and the second server are connected in a communication manner; the method comprises the following steps:
receiving an offload flow table and a statistical tag from the first server, wherein the offload flow table is used for representing a processing rule corresponding to second statistical data offloaded by the first server, and comprises at least one data flow;
analyzing each data flow in the unloading flow table to obtain a processing rule corresponding to each data flow;
processing the original statistical data according to the processing rule to obtain second statistical data;
when the processing rule corresponding to the second statistical data is a counting rule, determining the second statistical data as first statistical data;
Processing the first statistics data according to a preset format to obtain at least one statistics data packet, wherein each statistics label corresponds to one statistics data packet;
and sending the at least one statistical data packet and the statistical label corresponding to the at least one statistical data packet to a statistical queue.
In a third aspect, an embodiment of the present application provides a data statistics device, which is applied to a first server in a virtual switch system, where the virtual switch system includes the first server and a second server, the first server is configured to execute a control function, the second server is configured to execute a data forwarding function, and the first server and the second server are connected in a communication manner; the device comprises a receiving unit, a resolving unit and a caching unit, wherein,
the receiving unit is configured to receive at least one statistical data packet from the second server, where the at least one statistical data packet is stored in a statistical queue;
the analysis unit is used for analyzing each statistical data packet to obtain first statistical data corresponding to each statistical data packet and a statistical label corresponding to the first statistical data, wherein the first statistical data is used for representing the statistical data of the virtual switch system, and the statistical label is used for carrying out statistics on the first statistical data;
The caching unit is configured to cache at least one of the first statistics and the statistics label corresponding to the at least one statistics packet.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a computer program or instructions stored on the memory, where the processor executes the computer program or instructions to implement the steps in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program or instructions which when executed by a processor perform the steps of the first aspect of embodiments of the present application.
In a sixth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that, in the data statistics method and the related apparatus described in the embodiments of the present application, the control function and the data forwarding function of the virtual switch system are separated, the first server is used for executing the control function, the second server is used for executing the data forwarding function, the first server may receive at least one statistical data packet from the second server, parse each statistical data packet to obtain first statistical data and a statistical tag corresponding to each statistical data packet, and cache at least one first statistical data and a statistical tag corresponding to at least one statistical data packet. Therefore, the control function and the forwarding function are separated, at least one statistical data packet is acquired each time by using the statistical queue, first statistical data and a statistical label which are obtained by analyzing the statistical data packet are cached in the first server, when the first server needs to acquire the first statistical data, the first server does not need to acquire the data from the second server, but the first server can directly inquire the cache to acquire the data, so that the efficiency of acquiring the data of the first server is improved, and the interaction times of the first server and the second server are reduced.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 1B is a flowchart of a data statistics method according to an embodiment of the present application;
fig. 1C is a schematic diagram of a virtual switch system according to an embodiment of the present application;
FIG. 1D is a schematic diagram of a statistical buffer according to an embodiment of the present application;
FIG. 1E is a schematic diagram of an offload flow table provided by an embodiment of the present application;
FIG. 2 is a flow chart of a data statistics method according to an embodiment of the present application;
FIG. 3 is a flowchart of a data statistics method according to an embodiment of the present application;
FIG. 4 is a flowchart of a data statistics method according to an embodiment of the present application;
FIG. 5 is a flowchart of a data statistics method according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 7A is a block diagram showing functional units of a data statistics apparatus according to an embodiment of the present application;
FIG. 7B is a block diagram illustrating functional units of a data statistics apparatus according to an embodiment of the present application;
FIG. 7C is a block diagram illustrating functional units of a data statistics apparatus according to an embodiment of the present application;
FIG. 7D is a block diagram illustrating functional units of a data statistics apparatus according to an embodiment of the present application;
fig. 8 is a functional unit composition block diagram of a data statistics device according to an embodiment of the present application.
Detailed Description
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The key concepts and terms involved in the present application include, but are not limited to, the following:
(1) An Open Virtual Switch (OVS), a virtual switch supporting multi-layer data forwarding, is mainly deployed on a server, has better programming expansibility compared with a traditional switch, has network isolation and data forwarding functions realized by the traditional switch, operates on each physical machine realizing virtualization, and provides remote management. OVS provides two protocols for remote management in virtualized environments, one of which is OpenFlow, which manages the behavior of switches through flow tables. The OpenFlow protocol may be used to define a software defined network, implementing a network forwarding plane and a control plane separation.
(2) Flow table, openFlow, is an abstraction of the data forwarding function of a network device. In conventional network devices, data forwarding of switches and routers needs to rely on a two-layer physical address forwarding table or a three-layer internet protocol (Internet Protocol, IP) address routing table stored in the device, and the same is true of a flow table used in an OpenFlow switch, but network configuration information of each layer in a network is integrated in an entry of the flow table, so that a richer rule can be used when data forwarding is performed.
(3) Queues, a data structure, in the present application, statistics queues are used to count packets.
(4) The electronic device may be a portable electronic device that includes other functionality such as personal digital assistant and/or music player functionality, such as a cell phone, tablet computer, a wearable electronic device with wireless communication functionality (e.g., a smart watch), and so forth. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices that are equipped with IOS systems, android systems, microsoft systems, or other operating systems. The portable electronic device may also be other portable electronic devices such as a Laptop computer (Laptop) or the like. It should also be appreciated that in other embodiments, the electronic device described above may not be a portable electronic device, but rather a desktop computer. The electronic device may also include a server or the like, without limitation.
Currently, with the development of network technology, data traffic is increasing. The efficiency of data acquisition in Open Virtual Switches (OVSs) is low. Therefore, how to improve the data acquisition efficiency in OVS is a highly desirable problem.
Based on the above problems, the present application provides a data query method and related devices, and the detailed description is given below with reference to the accompanying drawings.
Referring to fig. 1A, fig. 1A is a schematic structural diagram of an electronic device according to an embodiment of the application. The electronic device includes a processor and a memory, etc. Wherein the memory is coupled to the processor. The Processor is a control center of the electronic device, and uses various interfaces and lines to connect various parts of the whole electronic device, and executes various functions of the electronic device and processes data by running or executing software programs and/or modules stored in a memory and calling the data stored in the memory, so as to monitor the electronic device as a whole, and the Processor may be a central processing unit (Central Processing Unit/Processor, CPU), a graphics Processor (Graphics Processing Unit, GPU) or a network Processor (nerve-network Processing Unit, NPU).
Further, the processor may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor.
The memory is used for storing software programs and/or modules, and the processor executes various functional applications of the electronic device by running the software programs and/or modules stored in the memory. The memory may mainly include a memory program area and a memory data area, wherein the memory program area may store an operating system, software programs required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
Referring to fig. 1B, fig. 1B is a flow chart of a data statistics method provided by an embodiment of the present application, as shown in the drawing, applied to an electronic device shown in fig. 1A, where the electronic device may be a first server in a virtual switch system, the virtual switch system includes a first server and a second server, the first server is used for executing a control function, the second server is used for executing a data forwarding function, and the first server and the second server are communicatively connected; the data statistics method comprises the following steps:
Step 101, receiving at least one statistical data packet from the second server.
The first server may be a software layer in the virtual switch system, and the first server may be a hardware layer in the virtual switch system.
Wherein the at least one statistical data packet may be stored in a statistical queue. The data storage format in the statistical data packet may be preset by an administrator of the virtual switch system, which is not limited herein. For example, the statistics packet may store a statistics tag and packet count information, byte count information, other information that the first server needs to obtain, and the like, corresponding to the statistics tag. One or more statistics packets may be included in the statistics queue.
Referring to fig. 1C, fig. 1C is a schematic diagram of a virtual switch system 10 according to an embodiment of the application. The virtual switch system comprises a first server 1 and a second server 2, a statistics queue 3 being located in a common storage area between the first server and the second server. The first server 1 may send data to the statistics queue 3, or may receive data sent by the second server 2 through the statistics queue 3. Similarly, the second server 2 may send data to the statistics queue 3, or may receive data sent by the first server 1 through the statistics queue 3.
Step 102, analyzing each statistical data packet to obtain first statistical data corresponding to each statistical data packet and a statistical label corresponding to the first statistical data.
Wherein the first statistics may be used to characterize the statistics of the virtual switch system. Taking an OVS of a bank data center as an example, for a single transaction day, account entry data of a bank on the day and account exit data of the day may be stored in the OVS, the account entry data of the day may include a public account data set and a personal account data set, the public account data set may include one or more account entry data of a public account, and the personal account data set may include account entry data of one or more personal accounts. The same holds true for the billing data on the same day. The first statistics may represent the account entry data of the bank on the current day and the account exit data of the bank on the current day, may represent the account entry data of the bank on the current day or the account exit data of the bank on the current day, may represent the personal account data set in the account entry data, may represent a certain personal account in the account entry data, or represent the account entry data and the account exit data of a certain personal account, and the like, which is not limited herein. The statistics packet may include first statistics, a destination IP address, and a source IP address. In the application, when the first server receives the statistical data packet from the second server, the destination IP address is the first server, and the source IP address is the second server.
The statistics tag may be used to count the first statistics data. The first server may obtain first statistics corresponding to the statistics tags by querying the statistics tags.
Step 103, caching at least one first statistic data and a statistic tag corresponding to the at least one statistic data packet.
The data structure for caching the first statistic data and the statistic tag can be preset in the first server, and the data structure is named as a statistic cache. Referring to fig. 1D, fig. 1D is a schematic structural diagram of a statistics cache according to an embodiment of the present application, where the statistics cache may include first statistics data and statistics tags. The first server may query first statistics corresponding to the statistics tags according to the statistics tags.
In particular implementations, a first server may receive a statistics packet from a second server communicatively coupled to the first server via a statistics queue. The first server may receive a plurality of statistic data packets at a time through the statistic queue, or may receive only one statistic data packet at a time, which is not limited herein. The first server receives the statistical data packet, analyzes the statistical data packet to obtain first statistical data and a statistical tag, and caches the first statistical data and the statistical tag according to a data structure in the statistical cache.
For example, the statistics packets A1, B1, and C1 are stored in the statistics queue, and the first server receives at least one statistics packet from the second server through the statistics queue, and may simultaneously receive a plurality of statistics packets, for example, simultaneously receive statistics packets A1, B1, and C1, or may receive only one statistics packet, for example, only statistics packet A1. The first server receives the statistical data packets A1, B1 and C1 of the second server through the statistical queue, analyzes the statistical data packets A1, B1 and C1, and obtains first statistical data A' corresponding to the statistical data packet A1 as follows: packet count=23, byte count=231, and the statistics tag corresponding to the first statistics data a' is 1001. The first statistic B' corresponding to the statistic packet B1 is: packet count=31, byte count=301, and the first statistic B' corresponds to a statistic tag of 1002. The first statistic data C' corresponding to the statistic data packet C1 is: packet count=25, byte count=342, and the first statistic C' corresponds to a statistic tag of 1003. And the first statistics a ', B ', C ' and corresponding statistics tags 1001, 1002, 1003 are cached in a statistics cache in the count management table.
It can be seen that, in the embodiment of the present application, the control function and the data forwarding function of the virtual switch system are separated, the first server is used for executing the control function, the second server is used for executing the data forwarding function, the first server may receive at least one statistical data packet from the second server, parse each statistical data packet to obtain first statistical data corresponding to each statistical data packet and a statistical tag corresponding to the first statistical data, and cache at least one first statistical data and the statistical tag corresponding to the at least one statistical data packet. Therefore, the control function and the forwarding function are separated, at least one statistical data packet is acquired each time by using the statistical queue, first statistical data and a statistical label which are obtained by analyzing the statistical data packet are cached in the first server, when the first server needs to acquire the first statistical data, the first server does not need to acquire the data from the second server, but the first server can directly inquire the cache to acquire the data, so that the efficiency of acquiring the data of the first server is improved, and the interaction times of the first server and the second server are reduced.
It should be noted that, in the above example, the first server obtains at least one statistical data packet in the second server through the statistical queue, and in other possible examples, the first server may also obtain at least one statistical data packet in the second server through direct memory access (Direct Memory Access, DMA), or other manners that help to reduce the number of direct interactions between the first server and the second server may be used, which is not limited herein. In the example of using DMA to obtain the statistics packet in the second server, the implementation steps are similar to those of the above example, and will not be repeated here.
In a possible example, before receiving at least one statistical data packet from the second server in step 101, the method may further include the steps of:
step 01, obtaining a unloading flow chart;
step 02, analyzing each data stream in the unloading stream table to obtain a processing rule corresponding to each data stream;
step 03, when the processing rule is a counting rule, distributing a statistical label for the data flow corresponding to the counting rule;
and step 04, sending the unloading flow table and the statistical label to the second server.
The offload flow table may be used to characterize a processing rule corresponding to the second statistical data offloaded by the first server. The offload flow table is generated by the first server and sent by the first server to the second server. Referring to fig. 1E, fig. 1E is a schematic diagram of an offloading flow table according to an embodiment of the application. The offload flow table may include at least one data flow, each data flow corresponding to a processing rule. Each data stream includes a header field and an action. The packet header field may be used to match data to be offloaded in the original data, and the action may be used to determine processing performed on the data to be offloaded, such as forwarding, discarding, counting, queuing, hitting, modifying, and the like, which is not limited herein. Processing rules may refer to data indicated by the header fields and actions to process the data.
It is understood that the second statistic is data to be offloaded by the first server, and the first statistic is data to be counted in the data to be offloaded by the first server, that is, the range of the first statistic is less than or equal to the second statistic.
In the specific implementation, after a offload flow table is generated in a first server, the first server analyzes each data flow in the offload flow table to obtain a processing rule corresponding to each data flow, and when the processing rule is a counting rule, a statistical label is allocated to the corresponding data flow, and the offload flow table and the statistical label are sent to a second server.
It may be appreciated that, since the processing rule corresponding to each data flow in the offload flow table is not necessarily a counting rule, and the first server allocates a statistical tag to the corresponding data flow only when the processing rule is the counting rule, the number of statistical tags may be unequal to the number of data flows, and the number of statistical tags is less than or equal to the number of data flows.
For example, the offload flow table includes data flows A, B and C, where the processing rule corresponding to data flow a is a count rule, a statistics label 1001 is assigned to data flow a, and the processing rule corresponding to data flows B and C is not a count rule, and no statistics label is assigned to data flows B and C. At the same time, the first server sends a download flow table and statistics labels 1001 to the second server.
It can be seen that, in the embodiment of the present application, a first server obtains a offload flow table, analyzes each data flow in the offload flow table, obtains a processing rule corresponding to each data flow, allocates a statistical tag to the data flow corresponding to the counting rule when the processing rule is the counting rule, and sends the offload flow table and the statistical tag to a second server. Therefore, the statistical labels are distributed according to the processing rules corresponding to each data stream, the statistical labels and the unloading stream table are sent to the second server, when the second server generates the statistical data packet, the statistical labels and the statistical data packet are matched, when the first server acquires the first statistical data, the corresponding first statistical data can be acquired according to the statistical labels, and the data acquisition efficiency is improved.
In a possible example, after the step 03 assigns a statistical label to the data flow corresponding to the counting rule, the method may further include the following steps:
and step 05, adding the statistical label to a preset count management table.
In a specific implementation, the count management table may be stored in the first server, and is used for managing a correspondence between the statistics tags and the first statistics data. When the first server obtains the first statistical data according to the statistical tag, the corresponding relation between the statistical tag and the first statistical data can be inquired in the count management table, and the first statistical data to be obtained is determined according to the statistical tag and the corresponding relation.
It can be seen that, in the embodiment of the present application, the first server may add the statistics tag to a preset count management table, where the count management table is used to manage the correspondence between the statistics tag and the first statistics data. Therefore, when the first server acquires the first statistical data according to the statistical tag, the first statistical data to be acquired can be determined according to the statistical tag and the corresponding relation between the statistical tag and the first statistical data, so that the efficiency of data acquisition is improved, and the order of data processing is ensured.
In one possible example, the method further comprises the steps of:
104, responding to a data acquisition instruction, and determining a statistical tag corresponding to the data acquisition instruction as a target tag;
step 105, determining first statistics corresponding to each target label in the count management table.
The data acquisition instruction is used for acquiring first statistics data. The data acquisition instruction may be an instruction sent by the first server itself, or may be an instruction sent by the client device received by the first server, which is not limited herein.
Wherein the target label is at least one. That is, the data acquisition instruction may indicate one statistical tag or may indicate a plurality of statistical tags. In the case where the data acquisition instruction indicates a plurality of statistical tags, the first server may acquire first statistical data corresponding to each statistical tag from the count management table at a time.
The count management table may store a correspondence between the statistical tag and the statistical cache, and the statistical cache may store a correspondence between the statistical tag and the first statistical data.
In the specific implementation, after a client device or a first server sends out a data acquisition instruction, the first server analyzes the data acquisition instruction, determines a statistical tag indicated by the data acquisition instruction, determines the statistical tag indicated by the data acquisition instruction as a target tag, determines a corresponding statistical cache according to the target tag in a count management table, and searches first statistical data in the statistical cache.
For example, the offload flow table includes data flows A, B and C, where the processing rules corresponding to data flows a and B are counting rules, and then statistical labels are assigned to data flows a and B, for example, the statistical label assigned to data flow a is 1001, the statistical label assigned to data flow B is 1002, and the processing rules corresponding to data flow C are not counting rules, and then the statistical label is not assigned to data flow C. The first server sends the offload flow table and statistics labels 1001, 1002 to the second server, which sends corresponding statistics packets A1 and B1 to the statistics queue according to the offload flow table. The first server receives the statistic data packets A1 and B1 of the second server through the statistic queue, analyzes the statistic data packets A1 and B1 to obtain first statistic data A ' and B ', and statistic tags 1002 corresponding to the statistic tags 1001 and B ' corresponding to the first statistic data A ' and B ', and caches the first statistic data A ' and B ' and the corresponding statistic tags 1001 and 1002 in a statistic cache in the count management table.
When the first server receives a data acquisition instruction of the client device or the first server, determining a corresponding statistical tag as a target tag according to the data acquisition instruction, for example, the determined target tag is 1001, querying a statistical cache corresponding to the target tag 1001 in a count management table, and querying first statistical data a 'in the statistical cache, so as to obtain first statistical data a' corresponding to the data acquisition instruction.
It can be seen that, in the embodiment of the present application, in response to a data acquisition instruction, a statistical tag corresponding to the data acquisition instruction is determined as a target tag, and first statistical data corresponding to each target tag is determined in a count management table; therefore, when the first server needs to acquire the first statistics data, the first server does not need to acquire data from the second server, but directly queries the cache in the first server, and directly determines the corresponding first statistics data in the count management table according to the target label, so that the interaction times of the first server and the second server can be reduced, and the efficiency of data acquisition can be improved.
In a possible example, the step 101 of receiving at least one statistical data packet from the second server may include the following steps:
Step 1011, determining whether the statistical thread is in an on state;
step 1012, receiving the at least one statistical data packet from the second server in the case that the statistical thread is in an on state;
step 1013, starting the statistical thread when the statistical thread is in a closed state.
The statistics thread can be used for acquiring the statistics data packet in the statistics queue. And when the statistical thread is in an on state, receiving at least one statistical data packet from the second server, analyzing each statistical data packet to obtain first statistical data and a statistical label corresponding to each statistical data packet, and caching at least one first statistical data and at least one statistical label corresponding to the at least one statistical data packet. When the statistical thread is in an off state, for example, the first server is not in an operating state, or the first server turns off the statistical thread, the statistical thread is set to an on state.
In this way, before receiving at least one statistical data packet of the second server, it is determined whether the statistical thread is in an on state, which helps to ensure normal reception of the statistical data packet, and further helps to ensure efficiency of data acquisition by the first server.
In a possible example, the step 101 of receiving at least one statistical data packet from the second server may include the following steps:
step 1014, receiving at least one statistical data packet from the second server according to a preset frequency.
The preset frequency may be preset by a manager of the virtual switch system, or may be an update function or a timer set in a statistics thread, which is not limited herein.
In the related art, the data is acquired from the second server only when the first server needs to acquire the data, if the second server is updating when the first server acquires the data from the second server, the first server needs to wait for the second server to complete updating before acquiring the data, which results in longer waiting time for acquiring the data.
In a specific implementation of this example, an update function may be set to update the statistics cache. And automatically obtaining a new statistical data packet from the statistical queue by using the idle time by default by using the updating function, analyzing the new statistical data packet to obtain new first statistical data and new statistical labels, and caching the new first statistical data and the new statistical labels.
It should be understood that the update function is set for updating the statistical buffer, and thus, any manner of updating the statistical buffer may be used, for example, setting a timer in the statistical thread, and the like, which is not limited herein.
The new statistics packet may refer to a statistics packet received by the statistics queue from the last time the statistics thread obtained the statistics packet in the statistics queue to the time the statistics thread obtained the statistics packet at the current time, from the second server. Correspondingly, referring again to fig. 1D, the data stored in the statistics cache may include statistics tags, historical first statistics, and new first statistics.
It can be seen that, in the embodiment of the present application, at least one statistics packet from the second server is received according to a preset frequency, which is helpful to update the statistics packet in the statistics queue in time and update the first statistics data in the statistics cache, and when the first server needs to acquire the first statistics data, the first server can directly query in the statistics cache in the count management table, which is helpful to reduce the interaction times of the first server and the second server, and is helpful to improve the efficiency of data acquisition.
For example, the offload flow table includes data flows A, B, C and D, where the processing rules corresponding to data flows a and B are counting rules, statistical labels 1001 and 1002 are respectively assigned to data flows a and B, and the processing rules corresponding to data flows C and D are not counting rules, and statistical labels are not assigned to data flows C and D. At the same time, the first server sends the download flow table and statistics labels 1001, 1002 to the second server.
The second server sends corresponding statistics packets A1 and B1, and statistics labels 1001 and 1002, to the statistics queue according to the offload table.
The first server receives at least one statistic packet from the second server through the statistic queue, for example, receives both statistic packets A1 and B1, or receives only one statistic packet, in the case that the statistic thread is on. Meanwhile, an updating function can be set in the statistics thread, and new statistics data packets can be automatically acquired from the statistics queue when the updating function is executed, so that timely updating of the first statistics data cached in the first server is ensured.
The first server receives the statistical data packets A1 and B1 of the second server through the statistical queue, analyzes the statistical data packets A1 and B1, and obtains first statistical data A' corresponding to the statistical data packet A1 as follows: packet count=23, byte count=231, and the statistics tag corresponding to the first statistics data a' is 1001. The first statistic B' corresponding to the statistic packet B1 is: packet count=31, byte count=301, and the first statistic B' corresponds to a statistic tag of 1002. And the first statistics a ', B' and the statistics tags 1001, 1002 are cached in a statistics cache in the count management table.
When the first server receives a data acquisition instruction of the client device or the first server, determining a corresponding statistical tag as a target tag according to the data acquisition instruction, for example, the determined target tag is 1001, querying a statistical cache corresponding to the target tag 1001 in a count management table, and querying first statistical data a 'in the statistical cache, so as to obtain first statistical data a' corresponding to the data acquisition instruction.
Therefore, by separating the control function from the forwarding function, distributing the statistical label according to the processing rule corresponding to each data flow, sending the statistical label and the unloading flow table to the second server, when the second server generates the statistical data packet, the statistical label and the statistical data packet are matched, at least one statistical data packet is acquired each time by using the statistical queue, the first statistical data obtained by analyzing the statistical data packet is cached in the first server, when the first server needs to acquire the first statistical data, the first statistical data is not required to be acquired to the second server any more, but the first statistical data is directly acquired by searching the cache in the first server, so that the efficiency of acquiring the first server data is improved, and the interaction times of the first server and the second server are reduced.
In accordance with the embodiment shown in fig. 1B, please refer to fig. 2, fig. 2 is a schematic flow chart of a data statistics method according to an embodiment of the present application, which is applied to the electronic device shown in fig. 1A, wherein the electronic device may be a first server in a virtual switch system, the virtual switch system includes a first server and a second server, the first server is used for executing a control function, the second server is used for executing a data forwarding function, and the first server and the second server are communicatively connected; the data statistics method comprises the following steps:
step 201, obtaining an offload flow table, where the offload flow table is used to characterize a processing rule corresponding to second statistical data offloaded by the first server, and the offload flow table includes at least one data flow.
And 202, analyzing each data stream in the unloading stream table to obtain a processing rule corresponding to each data stream.
And 203, when the processing rule is a counting rule, distributing a statistical label to the data flow corresponding to the counting rule, wherein each statistical label corresponds to one data flow.
Step 204, sending the offload flow table and the statistics label to the second server.
Step 205, receiving at least one statistical data packet from the second server, wherein the at least one statistical data packet is stored in a statistical queue.
Step 206, analyzing each statistic data packet to obtain first statistic data corresponding to each statistic data packet and the statistic tag corresponding to the first statistic data, where the first statistic data is used for representing the data of the virtual switch system for statistics, and the statistic tag is used for counting the first statistic data.
Step 207, caching at least one of the first statistic data and the statistic tag corresponding to the at least one statistic data packet.
The specific description of the steps 201 to 207 may refer to the corresponding steps of the data statistics method described in fig. 1B, and are not described herein.
It can be seen that, in the data statistics method described in the embodiment of the present application, an electronic device may separate a control function and a data forwarding function of a virtual switch system, where a first server is configured to perform the control function, a second server is configured to perform the data forwarding function, the first server may obtain a offload flow table, analyze each data flow in the offload flow table to obtain a processing rule corresponding to each data flow, allocate a statistics tag to the data flow corresponding to the counting rule when the processing rule is the counting rule, send the offload flow table and the statistics tag to the second server, receive at least one statistics packet from the second server, parse the each statistics packet to obtain first statistics data and statistics tag corresponding to each statistics packet, and cache at least one first statistics data and statistics tag corresponding to the at least one statistics packet. Therefore, by separating the control function from the forwarding function, sending the unloading flow table and the statistical label to the second server, using the statistical queue to acquire at least one statistical data packet each time, buffering the first statistical data and the statistical label obtained by analyzing the statistical data packet in the first server, and when the first server needs to acquire the first statistical data, the first server does not need to acquire the data again, but directly inquires the first statistical data in the buffer memory according to the statistical label in the first server, so that the efficiency of acquiring the data of the first server is improved, and the interaction times of the first server and the second server are reduced.
In accordance with the embodiment shown in fig. 1B, please refer to fig. 3, fig. 3 is a schematic flow chart of a data statistics method provided in an embodiment of the present application, which is applied to an electronic device shown in fig. 1A, wherein the electronic device may be a first server in a virtual switch system, the virtual switch system includes a first server and a second server, the first server is used for executing a control function, the second server is used for executing a data forwarding function, and the first server and the second server are communicatively connected; the data statistics method comprises the following steps:
step 301, obtaining an offload flow table, where the offload flow table is used to characterize a processing rule corresponding to second statistical data offloaded by the first server, and the offload flow table includes at least one data flow.
And 302, analyzing each data flow in the unloading flow table to obtain a processing rule corresponding to each data flow.
And 303, when the processing rule is a counting rule, distributing a statistical label to the data flow corresponding to the counting rule, wherein each statistical label corresponds to one data flow.
Step 304, adding the statistical label to a preset count management table, where the count management table is used to manage the correspondence between the statistical label and the first statistical data.
Step 305, sending the offload flow table and the statistics label to the second server.
Step 306, receiving at least one statistical data packet from the second server, wherein the at least one statistical data packet is stored in a statistical queue.
Step 307, analyzing each statistic data packet to obtain first statistic data corresponding to each statistic data packet and the statistic tag corresponding to the first statistic data, where the first statistic data is used to characterize the data of the virtual switch system for statistics, and the statistic tag is used to make statistics on the first statistic data.
Step 308, caching at least one of the first statistic data and the statistic tag corresponding to the at least one statistic data packet.
The specific description of the steps 301 to 308 may refer to the corresponding steps of the data statistics method described in fig. 1B, which are not described herein.
It can be seen that, in the data statistics method described in the embodiment of the present application, an electronic device may separate a control function and a data forwarding function of a virtual switch system, where a first server is configured to perform the control function, a second server is configured to perform the data forwarding function, the first server may obtain a offload flow table, analyze each data flow in the offload flow table to obtain a processing rule corresponding to each data flow, allocate a statistics tag to a data flow corresponding to the counting rule when the processing rule is the counting rule, add the statistics tag to a preset counting management table, send the offload flow table and the statistics tag to the second server, receive at least one statistics packet from the second server, parse the each statistics packet to obtain first statistics data and a statistics tag corresponding to each statistics packet, and cache at least one first statistics data and statistics tag corresponding to the at least one statistics packet. Therefore, by separating the control function from the forwarding function, sending the unloading flow table and the statistical label to the second server, using the statistical queue to acquire at least one statistical data packet each time, caching the first statistical data and the statistical label obtained by analyzing the statistical data packet in the first server, and when the first server needs to acquire the first statistical data, the first server does not need to acquire the data again, but directly queries the first statistical data in the cache according to the statistical label and the counting management table in the first server, thereby being beneficial to improving the efficiency of acquiring the data of the first server and reducing the interaction times of the first server and the second server.
In accordance with the embodiment shown in fig. 1B, please refer to fig. 4, fig. 4 is a schematic flow chart of a data statistics method according to an embodiment of the present application, which is applied to an electronic device shown in fig. 1A, wherein the electronic device may be a first server in a virtual switch system, the virtual switch system includes a first server and a second server, the first server is used for executing a control function, the second server is used for executing a data forwarding function, and the first server and the second server are communicatively connected; the data statistics method comprises the following steps:
step 401, obtaining an offload flow table, where the offload flow table is used to characterize a processing rule corresponding to second statistical data offloaded by the first server, and the offload flow table includes at least one data flow.
And step 402, analyzing each data flow in the unloading flow table to obtain a processing rule corresponding to each data flow.
And step 403, when the processing rule is a counting rule, distributing a statistical label to the data flow corresponding to the counting rule, wherein each statistical label corresponds to one data flow.
Step 404, adding the statistical label to a preset count management table, where the count management table is used to manage the correspondence between the statistical label and the first statistical data.
Step 405, sending the offload flow table and the statistics label to the second server.
Step 406, receiving at least one statistical data packet from the second server, wherein the at least one statistical data packet is stored in a statistical queue.
Step 407, analyzing each statistic data packet to obtain first statistic data corresponding to each statistic data packet and the statistic tag corresponding to the first statistic data, where the first statistic data is used to characterize the data of the virtual switch system for statistics, and the statistic tag is used to make statistics on the first statistic data.
Step 408, caching at least one of the first statistic data and the statistic tag corresponding to the at least one statistic data packet.
Step 409, determining a statistic tag corresponding to a data acquisition instruction as a target tag in response to the data acquisition instruction, where the data acquisition instruction is used to acquire the first statistic data, and the target tag is at least one.
Step 410, determining first statistics corresponding to each target tag in the count management table.
The specific description of the steps 401 to 410 may refer to the corresponding steps of the data statistics method described in fig. 1B, and are not described herein.
It can be seen that, in the data statistics method described in the embodiment of the present application, an electronic device may separate a control function and a data forwarding function of a virtual switch system, where a first server is configured to perform the control function, a second server is configured to perform the data forwarding function, the first server may obtain a offload flow table, analyze each data flow in the offload flow table to obtain a processing rule corresponding to each data flow, allocate a statistics tag to a data flow corresponding to the counting rule when the processing rule is the counting rule, add the statistics tag to a preset counting management table, send the offload flow table and the statistics tag to the second server, receive at least one statistics packet from the second server, parse the each statistics packet to obtain first statistics data and a statistics tag corresponding to each statistics packet, cache the at least one first statistics data and the statistics tag corresponding to the at least one statistics packet, determine the corresponding statistics tag as a target tag according to a data obtaining instruction, and determine the first statistics data corresponding to each target tag in the counting management table. Therefore, by separating the control function from the forwarding function, sending the unloading flow table and the statistical label to the second server, using the statistical queue to acquire at least one statistical data packet each time, caching the first statistical data and the statistical label obtained by analyzing the statistical data packet in the first server, and when the first server needs to acquire the first statistical data, the first server does not need to acquire the data to the second server any more, but directly inquiring the first statistical data in the cache according to the statistical label and the counting management table in the first server by determining the statistical label corresponding to the data acquisition instruction, thereby being beneficial to improving the efficiency of data acquisition of the first server and reducing the interaction times of the first server and the second server.
Referring to fig. 5, as shown in the flow chart of a data statistics method provided by the embodiment of the present application, the method is applied to the electronic device shown in fig. 1A, where the electronic device may be a second server in a virtual switch system, and the virtual switch system includes a first server and a second server, where the first server is used to execute a control function, the second server is used to execute a data forwarding function, and the first server and the second server are communicatively connected; the data statistics method comprises the following steps:
step 501, receiving an offload flow table and a statistics tag from the first server;
step 502, analyzing each data flow in the unloading flow table to obtain a processing rule corresponding to each data flow;
step 503, processing the original statistical data according to the processing rule to obtain second statistical data;
step 504, when the processing rule corresponding to the second statistical data is a counting rule, determining the second statistical data as first statistical data;
step 505, processing the first statistics data according to a preset format to obtain at least one statistics data packet;
Step 506, sending the at least one statistical data packet and the statistical label corresponding to the at least one statistical data packet to a statistical queue.
The raw statistics may be data stored by the second server, or may be data of other devices received by the second server, for example, data of a client device, which is not limited herein.
The preset format may be preset by a manager of the virtual switch system, which is not limited herein. The preset format is the format of data stored in the statistic queue, and the statistic data packet sent to the statistic queue by the second server is the preset format, so that the first server can analyze the statistic data packet according to the preset format after acquiring the statistic data packet from the statistic queue, and the data consistency is guaranteed.
In a specific implementation, the second server receives the unloading flow table and the statistical label from the first server, analyzes the unloading flow table, and determines a processing rule corresponding to second statistical data represented by the unloading flow table. Processing rules may refer to data indicated by the header fields and actions to process the data. And processing the original statistical data by the second server according to the packet header field to obtain second statistical data. And when the processing rule corresponding to the second statistical data is a counting rule, determining the second statistical data as the first statistical data, and packaging the first statistical data according to a preset format to obtain at least one statistical data packet. One for each data stream.
The second server may send a plurality of statistical data packets to the statistical queue at a time, or may send only one statistical data packet to the statistical queue at a time, which is not limited herein.
For example, the statistical data packet stored in the second server includes A1, B1, and C1. The first statistic a' in the statistic packet A1 is: packet count=23, byte count=231, and the statistics tag corresponding to the first statistics data a' is 1001. The first statistic B' in the statistic packet B1 is: packet count=31, byte count=301, and the first statistic B' corresponds to a statistic tag of 1002. The first statistic C' in the statistic packet C1 is: packet count=25, byte count=342, and the first statistic C' corresponds to a statistic tag of 1003.
The second server may send the statistics packets A1, B1, and C1 and the corresponding statistics labels of the statistics packets to the statistics queue, or send any one of the statistics packets and the corresponding statistics labels.
It can be seen that, in the embodiment of the present application, the second server may receive the offload flow table and the statistics label from the first server, analyze each data flow in the offload flow table to obtain a processing rule corresponding to each data flow, process the original statistics data according to the processing rule to obtain second statistics data, process the second statistics data according to a preset format to obtain at least one statistics packet, and send the at least one statistics packet and the statistics label corresponding to the at least one statistics packet to the statistics queue. Therefore, at least one statistical data packet can be sent to the statistical queue at one time, so that the first server can acquire the at least one statistical data packet at one time, the first statistical data obtained by analyzing the statistical data packet is cached in the first server, and when the first server needs to acquire the first statistical data, the first server can directly inquire the cache to acquire the first statistical data, thereby being beneficial to improving the data acquisition efficiency of the first server and reducing the interaction times of the first server and the second server.
In accordance with the foregoing embodiments, referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device may be a first server. As shown, the electronic device includes a processor, a memory, and a computer program or instructions stored on the memory, wherein the computer program or instructions are stored in the memory and configured to be executed by the processor. The electronic device may also include a communication interface. In an embodiment of the present application, the program includes instructions for performing the steps of:
receiving at least one statistical data packet from the second server, the at least one statistical data packet being stored in a statistical queue;
analyzing each statistical data packet to obtain first statistical data corresponding to each statistical data packet and a statistical tag corresponding to the first statistical data, wherein the first statistical data is used for representing the statistical data of the virtual switch system, and the statistical tag is used for counting the first statistical data;
and caching at least one first statistic data and the statistic label corresponding to the at least one statistic data packet.
It can be seen that, in the electronic device described in the embodiment of the present application, the control function and the data forwarding function of the virtual switch system are separated, the first server is configured to perform the control function, the second server is configured to perform the data forwarding function, the first server may receive at least one statistical data packet from the second server, parse each statistical data packet to obtain first statistical data corresponding to each statistical data packet and a statistical tag corresponding to the first statistical data, and cache at least one first statistical data and the statistical tag corresponding to the at least one statistical data packet. Therefore, the control function and the forwarding function are separated, at least one statistical data packet is acquired each time by using the statistical queue, first statistical data and a statistical label which are obtained by analyzing the statistical data packet are cached in the first server, when the first server needs to acquire the first statistical data, the first server does not need to acquire the data from the second server, but the first server can directly inquire the cache to acquire the data, so that the efficiency of acquiring the data of the first server is improved, and the interaction times of the first server and the second server are reduced.
In one possible example, before said receiving at least one statistical data packet from said second server, the above-mentioned program further comprises instructions for performing the steps of:
acquiring an unloading flow table, wherein the unloading flow table is used for representing a processing rule corresponding to second statistical data unloaded by the first server, and comprises at least one data flow;
analyzing each data flow in the unloading flow table to obtain a processing rule corresponding to each data flow;
when the processing rule is a counting rule, distributing a statistical label to the data flow corresponding to the counting rule, wherein each statistical label corresponds to one data flow;
and sending the unloading flow table and the statistical label to the second server.
In one possible example, after said assigning a statistical label to said data flow corresponding to said counting rule, the above procedure further comprises instructions for performing the following steps:
and adding the statistical tag to a preset counting management table, wherein the counting management table is used for managing the corresponding relation between the statistical tag and the first statistical data.
In one possible example, the above-described program further includes instructions for performing the steps of:
Responding to a data acquisition instruction, determining a statistical tag corresponding to the data acquisition instruction as a target tag, wherein the data acquisition instruction is used for acquiring the first statistical data, and the target tag is at least one;
and determining first statistical data corresponding to each target label in the count management table.
In one possible example, in said receiving at least one statistical data packet from said second server, the above-mentioned program comprises instructions for performing the steps of:
determining whether a statistical thread is in an open state or not, wherein the statistical thread is used for acquiring the statistical data packet in the statistical queue;
receiving the at least one statistical data packet from the second server if the statistical thread is in an on state;
and under the condition that the statistical thread is in a closed state, starting the statistical thread.
In one possible example, in said receiving at least one statistical data packet from said second server, the above-mentioned program comprises instructions for performing the steps of:
and receiving at least one statistical data packet from the second server according to a preset frequency.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It is to be understood that, in order to achieve the above-described functions, they comprise corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the present application may perform the division of the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
The electronic device shown in fig. 6 may also be a second server. When the electronic device is a second server, the electronic device includes a processor, a memory, and a computer program or instructions stored on the memory, wherein the computer program or instructions are stored in the memory and configured to be executed by the processor. The electronic device may also include a communication interface.
In an embodiment of the present application, the program includes instructions for performing the steps of:
receiving an offload flow table and a statistical tag from the first server, wherein the offload flow table is used for representing a processing rule corresponding to second statistical data offloaded by the first server, and comprises at least one data flow;
analyzing each data flow in the unloading flow table to obtain a processing rule corresponding to each data flow;
processing the original statistical data according to the processing rule to obtain second statistical data;
when the processing rule corresponding to the second statistical data is a counting rule, determining the second statistical data as first statistical data;
processing the first statistics data according to a preset format to obtain at least one statistics data packet, wherein each statistics label corresponds to one statistics data packet;
And sending the at least one statistical data packet and the statistical label corresponding to the at least one statistical data packet to a statistical queue.
It can be seen that, in the electronic device described in the embodiment of the present application, an offload flow table and a statistics tag from a first server may be received, each data flow in the offload flow table is analyzed to obtain a processing rule corresponding to each data flow, the original statistics data is processed according to the processing rule to obtain second statistics data, the second statistics data is processed according to a preset format to obtain at least one statistics packet, and the at least one statistics packet and the statistics tag corresponding to the at least one statistics packet are sent to a statistics queue. Therefore, at least one statistical data packet can be sent to the statistical queue at one time, so that the first server can acquire the at least one statistical data packet at one time, the first statistical data obtained by analyzing the statistical data packet is cached in the first server, and when the first server needs to acquire the first statistical data, the first server can directly inquire the cache to acquire the first statistical data, thereby being beneficial to improving the data acquisition efficiency of the first server and reducing the interaction times of the first server and the second server.
Referring to fig. 7A, fig. 7A is a functional block diagram of a data statistics device according to an embodiment of the present application, where the device is applied to a first server in a virtual switch system, the virtual switch system includes the first server and a second server, the first server is configured to perform a control function, the second server is configured to perform a data forwarding function, and the first server and the second server are communicatively connected; the apparatus 700 includes: a receiving unit 701, a parsing unit 702, and a buffering unit 703, wherein,
the receiving unit 701 is configured to receive at least one statistical data packet from the second server, where the at least one statistical data packet is stored in a statistical queue;
the parsing unit 702 is configured to parse each of the statistics data packets to obtain first statistics data corresponding to each of the statistics data packets and a statistics tag corresponding to the first statistics data, where the first statistics data is used for representing data of statistics performed by the virtual switch system, and the statistics tag is used for performing statistics on the first statistics data;
the buffering unit 703 is configured to buffer at least one of the first statistic data and the statistic tag corresponding to the at least one statistic data packet.
It can be seen that, in the data statistics device described in the embodiment of the present application, the control function and the data forwarding function of the virtual switch system may be separated, the first server is configured to perform the control function, the second server is configured to perform the data forwarding function, the first server may receive at least one statistical data packet from the second server, parse each statistical data packet to obtain first statistical data corresponding to each statistical data packet and a statistical tag corresponding to the first statistical data, and cache at least one first statistical data and the statistical tag corresponding to the at least one statistical data packet. Therefore, the control function and the forwarding function are separated, at least one statistical data packet is acquired each time by using the statistical queue, first statistical data and a statistical label which are obtained by analyzing the statistical data packet are cached in the first server, when the first server needs to acquire the first statistical data, the first server does not need to acquire the data from the second server, but the first server can directly inquire the cache to acquire the data, so that the efficiency of acquiring the data of the first server is improved, and the interaction times of the first server and the second server are reduced.
In one possible example, in terms of the receiving at least one statistical data packet from the second server, the receiving unit 701 is specifically configured to:
determining whether a statistical thread is in an open state or not, wherein the statistical thread is used for acquiring the statistical data packet in the statistical queue;
receiving the at least one statistical data packet from the second server if the statistical thread is in an on state;
and under the condition that the statistical thread is in a closed state, starting the statistical thread.
In one possible example, in terms of the receiving at least one statistical data packet from the second server, the receiving unit 701 is specifically configured to:
and receiving at least one statistical data packet from the second server according to a preset frequency.
In one possible example, as shown in fig. 7B, compared to fig. 7A described above, the apparatus 700 may further include: an acquisition unit 704, an allocation unit 705 and a transmission unit 706, wherein,
the obtaining unit 704 is configured to obtain an offload flow table, where the offload flow table is used to characterize a processing rule corresponding to second statistical data offloaded by the first server, and the offload flow table includes at least one data flow;
The parsing unit 702 is further configured to analyze each data flow in the offload flow table to obtain a processing rule corresponding to each data flow;
the allocation unit 705 is configured to allocate, when the processing rule is a count rule, the statistical labels to the data flows corresponding to the count rule, where each statistical label corresponds to one data flow;
the sending unit 706 is configured to send the offload flow table and the statistics label to the second server.
It can be seen that, in the data statistics device provided in the embodiment of the present application, the control function and the data forwarding function of the virtual switch system may be separated, the first server is configured to perform the control function, the second server is configured to perform the data forwarding function, the first server may obtain a offload flow table, analyze each data flow in the offload flow table to obtain a processing rule corresponding to each data flow, allocate a statistics tag to the data flow corresponding to the counting rule when the processing rule is the counting rule, send the offload flow table and the statistics tag to the second server, and receive at least one statistics packet from the second server, parse the each statistics packet to obtain first statistics data and statistics tag corresponding to each statistics packet, and cache at least one first statistics data and statistics tag corresponding to the at least one statistics packet. Therefore, by separating the control function from the forwarding function, sending the unloading flow table and the statistical label to the second server, using the statistical queue to acquire at least one statistical data packet each time, buffering the first statistical data and the statistical label obtained by analyzing the statistical data packet in the first server, and when the first server needs to acquire the first statistical data, the first server does not need to acquire the data again, but directly inquires the first statistical data in the buffer memory according to the statistical label in the first server, so that the efficiency of acquiring the data of the first server is improved, and the interaction times of the first server and the second server are reduced.
In one possible example, as shown in fig. 7C, compared to fig. 7B described above, the apparatus 700 may further include: a management unit 707 which, among other things,
the management unit 707 is configured to add the statistical label to a preset count management table, where the count management table is configured to manage a correspondence between the statistical label and the first statistical data.
It can be seen that, in the data statistics device provided in the embodiment of the present application, the control function and the data forwarding function of the virtual switch system may be separated, the first server is configured to perform the control function, the second server is configured to perform the data forwarding function, the first server may obtain a offload flow table, analyze each data flow in the offload flow table to obtain a processing rule corresponding to each data flow, allocate a statistics tag to the data flow corresponding to the counting rule when the processing rule is the counting rule, add the statistics tag to a preset counting management table, send the offload flow table and the statistics tag to the second server, receive at least one statistics packet from the second server, parse the each statistics packet to obtain first statistics data and statistics tag corresponding to each statistics packet, and cache at least one first statistics data and statistics tag corresponding to the at least one statistics packet. Therefore, by separating the control function from the forwarding function, sending the unloading flow table and the statistical label to the second server, using the statistical queue to acquire at least one statistical data packet each time, caching the first statistical data and the statistical label obtained by analyzing the statistical data packet in the first server, and when the first server needs to acquire the first statistical data, the first server does not need to acquire the data again, but directly queries the first statistical data in the cache according to the statistical label and the counting management table in the first server, thereby being beneficial to improving the efficiency of acquiring the data of the first server and reducing the interaction times of the first server and the second server.
In one possible example, as shown in fig. 7D, compared to fig. 7C described above, the apparatus 700 may further include: a determination unit 708, wherein,
the determining unit 708 is configured to determine, according to a data acquisition instruction, a statistical tag corresponding to the data acquisition instruction as a target tag, where the data acquisition instruction is used to acquire the first statistical data, and the target tag is at least one;
the determining unit 708 is further configured to determine first statistics corresponding to each of the target tags in the count management table.
It can be seen that, in the data statistics device provided in the embodiment of the present application, the control function and the data forwarding function of the virtual switch system may be separated, the first server is configured to perform the control function, the second server is configured to perform the data forwarding function, the first server may obtain a offload flow table, analyze each data flow in the offload flow table to obtain a processing rule corresponding to each data flow, allocate a statistics tag to the data flow corresponding to the counting rule when the processing rule is the counting rule, add the statistics tag to a preset counting management table, send the offload flow table and the statistics tag to the second server, receive at least one statistics packet from the second server, parse the each statistics packet to obtain first statistics data and statistics tag corresponding to each statistics packet, cache the at least one first statistics data and statistics tag corresponding to the at least one statistics packet, determine the corresponding statistics tag as a target tag according to a data obtaining instruction, and determine the first statistics data corresponding to each target tag in the counting management table. Therefore, by separating the control function from the forwarding function, sending the unloading flow table and the statistical label to the second server, using the statistical queue to acquire at least one statistical data packet each time, caching the first statistical data and the statistical label obtained by analyzing the statistical data packet in the first server, and when the first server needs to acquire the first statistical data, the first server does not need to acquire the data to the second server any more, but directly inquiring the first statistical data in the cache according to the statistical label and the counting management table in the first server by determining the statistical label corresponding to the data acquisition instruction, thereby being beneficial to improving the efficiency of data acquisition of the first server and reducing the interaction times of the first server and the second server.
Referring to fig. 8, fig. 8 is a functional block diagram of a data statistics device according to an embodiment of the present application, where the device is applied to a second server in a virtual switch system, the virtual switch system includes a first server and the second server, the first server is used for executing a control function, the second server is used for executing a data forwarding function, and the first server and the second server are communicatively connected; the apparatus 800 includes: a receiving unit 801, an analyzing unit 802, a processing unit 803, a determining unit 804, and a transmitting unit 805, wherein,
the receiving unit 801 is configured to receive an offload flow table and a statistics tag from the first server, where the offload flow table is used to characterize a processing rule corresponding to second statistics data offloaded by the first server, and the offload flow table includes at least one data flow;
the analyzing unit 802 is configured to analyze each data flow in the offload flow table to obtain a processing rule corresponding to each data flow;
the processing unit 803 is configured to process the original statistics according to the processing rule to obtain second statistics;
The determining unit 804 is configured to determine the second statistical data as first statistical data when the processing rule corresponding to the second statistical data is a counting rule;
the processing unit 803 is further configured to process the first statistics according to a preset format to obtain at least one statistics packet, where each statistics tag corresponds to one statistics packet;
the sending unit 805 is configured to send the at least one statistical data packet and the statistical label corresponding to the at least one statistical data packet to a statistical queue.
It can be seen that, in the data statistics device described in the embodiment of the present application, the control function and the data forwarding function of the virtual switch system may be separated, the first server is configured to perform the control function, the second server is configured to perform the data forwarding function, the first server may receive at least one statistical data packet from the second server, parse each statistical data packet to obtain first statistical data and a statistical tag corresponding to each statistical data packet, and cache at least one first statistical data and a statistical tag corresponding to at least one statistical data packet. Therefore, the control function and the forwarding function are separated, at least one statistical data packet is acquired each time by using the statistical queue, first statistical data and a statistical label which are obtained by analyzing the statistical data packet are cached in the first server, when the first server needs to acquire the first statistical data, the first server does not need to acquire the data from the second server, but the first server can directly inquire the cache to acquire the data, so that the efficiency of acquiring the data of the first server is improved, and the interaction times of the first server and the second server are reduced.
It may be understood that the functions of each program module of the data statistics device of the present embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not repeated herein.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of the method embodiments, and the computer includes a control platform.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising a control platform.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the application, wherein the principles and embodiments of the application are explained in detail using specific examples, the above examples being provided solely to facilitate the understanding of the method and core concepts of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (6)

1. The data statistics method is characterized by being applied to a first server in a virtual switch system, wherein the virtual switch system comprises the first server and a second server, the first server is used for executing a control function, the second server is used for executing a data forwarding function, the first server is in communication connection with the second server, the first server is a software layer in the virtual switch system, and the second server is a hardware layer in the virtual switch system; the method comprises the following steps:
Acquiring an unloading flow table, wherein the unloading flow table is used for representing a processing rule corresponding to second statistical data unloaded by the first server, and comprises at least one data flow;
analyzing each data flow in the unloading flow table to obtain a processing rule corresponding to each data flow;
when the processing rule is a counting rule, distributing the statistical labels for the data flows corresponding to the counting rule, wherein each statistical label corresponds to one data flow;
adding the statistical tag to a preset counting management table, wherein the counting management table is used for managing the corresponding relation between the statistical tag and the first statistical data;
transmitting the offload flow table and the statistics tag to the second server;
according to a preset frequency, at least one statistical data packet from the second server is received through a statistical queue, and the at least one statistical data packet is stored in the statistical queue;
analyzing each statistical data packet to obtain first statistical data corresponding to each statistical data packet and a statistical tag corresponding to the first statistical data, wherein the first statistical data comprises byte counts and packet counts, the first statistical data is used for representing the data of the virtual switch system for statistics, and the statistical tag is used for carrying out statistics on the first statistical data;
Caching at least one first statistic data and the statistic label corresponding to the at least one statistic data packet, wherein the first server comprises a statistic cache, and the statistic cache is a data structure for caching the first statistic data and the statistic label corresponding to the first statistic data;
responding to a data acquisition instruction, determining a statistical tag corresponding to the data acquisition instruction as a target tag, wherein the data acquisition instruction is used for acquiring the first statistical data, and the target tag is at least one;
and determining first statistical data corresponding to each target label in the count management table.
2. The method of claim 1, wherein said receiving at least one statistical data packet from the second server comprises:
determining whether a statistical thread is in an open state or not, wherein the statistical thread is used for acquiring the statistical data packet in the statistical queue;
receiving the at least one statistical data packet from the second server if the statistical thread is in an on state;
and under the condition that the statistical thread is in a closed state, starting the statistical thread.
3. The data statistics method is characterized by being applied to a second server in a virtual switch system, wherein the virtual switch system comprises a first server and a second server, the first server is used for executing a control function, the second server is used for executing a data forwarding function, the first server is in communication connection with the second server, the first server is a software layer in the virtual switch system, and the second server is a hardware layer in the virtual switch system; the method comprises the following steps:
receiving an offload flow table and a statistical tag from the first server, wherein the offload flow table is used for representing a processing rule corresponding to second statistical data offloaded by the first server, and comprises at least one data flow;
analyzing each data flow in the unloading flow table to obtain a processing rule corresponding to each data flow;
processing the original statistical data according to the processing rule to obtain second statistical data;
when the processing rule corresponding to the second statistical data is a counting rule, determining the second statistical data as first statistical data;
Processing the first statistics data according to a preset format to obtain at least one statistics data packet, wherein each statistics label corresponds to one statistics data packet;
sending the at least one statistical data packet and the statistical label corresponding to the at least one statistical data packet to a statistical queue;
the first server is configured to perform the following operations: acquiring an unloading flow table, wherein the unloading flow table is used for representing a processing rule corresponding to second statistical data unloaded by the first server, and comprises at least one data flow; analyzing each data flow in the unloading flow table to obtain a processing rule corresponding to each data flow; when the processing rule is a counting rule, distributing the statistical labels for the data flows corresponding to the counting rule, wherein each statistical label corresponds to one data flow; adding the statistical tag to a preset counting management table, wherein the counting management table is used for managing the corresponding relation between the statistical tag and the first statistical data; transmitting the offload flow table and the statistics tag to the second server; according to a preset frequency, at least one statistical data packet from the second server is received through a statistical queue, and the at least one statistical data packet is stored in the statistical queue; analyzing each statistical data packet to obtain first statistical data corresponding to each statistical data packet and a statistical tag corresponding to the first statistical data, wherein the first statistical data comprises byte counts and packet counts, the first statistical data is used for representing the data of the virtual switch system for statistics, and the statistical tag is used for carrying out statistics on the first statistical data; caching at least one first statistic data and the statistic label corresponding to the at least one statistic data packet, wherein the first server comprises a statistic cache, and the statistic cache is a data structure for caching the first statistic data and the statistic label corresponding to the first statistic data; responding to a data acquisition instruction, determining a statistical tag corresponding to the data acquisition instruction as a target tag, wherein the data acquisition instruction is used for acquiring the first statistical data, and the target tag is at least one; and determining first statistical data corresponding to each target label in the count management table.
4. The data statistics device is characterized by being applied to a first server in a virtual switch system, wherein the virtual switch system comprises the first server and a second server, the first server is used for executing a control function, the second server is used for executing a data forwarding function, the first server is in communication connection with the second server, the first server is a software layer in the virtual switch system, and the second server is a hardware layer in the virtual switch system; the device comprises an acquisition unit, an allocation unit, a management unit, a sending unit, a receiving unit, an analysis unit, a caching unit and a determination unit, wherein,
the obtaining unit is configured to obtain an offload flow table, where the offload flow table is used to characterize a processing rule corresponding to second statistical data offloaded by the first server, and the offload flow table includes at least one data flow;
the analyzing unit is used for analyzing each data stream in the unloading stream table to obtain a processing rule corresponding to each data stream;
the distribution unit is used for distributing the statistical labels to the data streams corresponding to the counting rule when the processing rule is the counting rule, and each statistical label corresponds to one data stream;
The management unit is used for adding the statistical label to a preset count management table, and the count management table is used for managing the corresponding relation between the statistical label and the first statistical data;
the sending unit is used for sending the unloading flow table and the statistical label to the second server;
the receiving unit is used for receiving at least one statistical data packet from the second server through a statistical queue according to a preset frequency, and the at least one statistical data packet is stored in the statistical queue;
the analysis unit is further configured to analyze each of the statistics data packets to obtain first statistics data corresponding to each of the statistics data packets and statistics labels corresponding to the first statistics data, where the first statistics data includes byte counts and packet counts, the first statistics data is used for characterizing data of statistics performed by the virtual switch system, and the statistics labels are used for performing statistics on the first statistics data;
the caching unit is configured to cache at least one first statistic data and the statistic tag corresponding to the at least one statistic data packet, where the first server includes a statistic cache, and the statistic cache is a data structure for caching the first statistic data and the statistic tag corresponding to the first statistic data;
The determining unit is used for responding to a data acquisition instruction, determining a statistical tag corresponding to the data acquisition instruction as a target tag, wherein the data acquisition instruction is used for acquiring the first statistical data, and the target tag is at least one;
the determining unit is further configured to determine first statistics corresponding to each target tag in the count management table.
5. An electronic device comprising a processor, a memory and a computer program or instructions stored on the memory, characterized in that the processor executes the computer program or instructions to implement the steps of the method of any one of claims 1-3.
6. A computer readable storage medium, characterized in that it has stored thereon a computer program or instructions which, when executed by a processor, implement the steps of the method of any of claims 1-3.
CN202210129712.8A 2022-02-11 2022-02-11 Data statistics method and related device Active CN114500418B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210129712.8A CN114500418B (en) 2022-02-11 2022-02-11 Data statistics method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210129712.8A CN114500418B (en) 2022-02-11 2022-02-11 Data statistics method and related device

Publications (2)

Publication Number Publication Date
CN114500418A CN114500418A (en) 2022-05-13
CN114500418B true CN114500418B (en) 2023-10-20

Family

ID=81479706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210129712.8A Active CN114500418B (en) 2022-02-11 2022-02-11 Data statistics method and related device

Country Status (1)

Country Link
CN (1) CN114500418B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134315B (en) * 2022-09-01 2022-12-02 珠海星云智联科技有限公司 Message forwarding method and related device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105191212A (en) * 2014-03-25 2015-12-23 华为技术有限公司 Data flow statistics collection method, system and apparatus
CN106789703A (en) * 2017-01-12 2017-05-31 上海斐讯数据通信技术有限公司 A kind of traffic policing algorithm based on SDN frameworks
CN108833304A (en) * 2018-06-26 2018-11-16 郑州云海信息技术有限公司 The management method and device of message in cloud data system
CN109840262A (en) * 2018-12-29 2019-06-04 深圳云天励飞技术有限公司 Data statistical approach and relevant apparatus
CN110677344A (en) * 2019-09-27 2020-01-10 亚信科技(成都)有限公司 Data processing method and server
CN112134806A (en) * 2020-09-30 2020-12-25 新华三大数据技术有限公司 Flow table aging time adjusting method and device and storage medium
CN114006894A (en) * 2020-12-30 2022-02-01 万翼科技有限公司 Data processing system, method, electronic device, and computer storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210144094A1 (en) * 2020-11-09 2021-05-13 Namrata Limaye Extension of openvswitch megaflow offloads to hardware to address hardware pipeline limitations

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105191212A (en) * 2014-03-25 2015-12-23 华为技术有限公司 Data flow statistics collection method, system and apparatus
CN106789703A (en) * 2017-01-12 2017-05-31 上海斐讯数据通信技术有限公司 A kind of traffic policing algorithm based on SDN frameworks
CN108833304A (en) * 2018-06-26 2018-11-16 郑州云海信息技术有限公司 The management method and device of message in cloud data system
CN109840262A (en) * 2018-12-29 2019-06-04 深圳云天励飞技术有限公司 Data statistical approach and relevant apparatus
CN110677344A (en) * 2019-09-27 2020-01-10 亚信科技(成都)有限公司 Data processing method and server
CN112134806A (en) * 2020-09-30 2020-12-25 新华三大数据技术有限公司 Flow table aging time adjusting method and device and storage medium
CN114006894A (en) * 2020-12-30 2022-02-01 万翼科技有限公司 Data processing system, method, electronic device, and computer storage medium

Also Published As

Publication number Publication date
CN114500418A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
KR101583325B1 (en) Network interface apparatus and method for processing virtual packets
CN106209506B (en) A kind of virtualization deep-packet detection flow analysis method and system
US9277012B2 (en) Apparatus and method for tracking transaction related data
EP3771169B1 (en) Message processing method and related device
CN106972985B (en) Method for accelerating data processing and forwarding of DPI (deep packet inspection) equipment and DPI equipment
US8929372B2 (en) Grid router
JP2001244987A (en) Method and device for managing service quality of network device
JP2003188877A (en) System for managing distributed network infrastructure services
US20070130367A1 (en) Inbound connection prioritization
CN110290092B (en) SDN network configuration management method based on programmable switch
KR101639797B1 (en) Network interface apparatus and method for processing virtual machine packets
US20200112523A1 (en) Data Flow Processing Method and Device
US11316916B2 (en) Packet processing method, related device, and computer storage medium
CN114500418B (en) Data statistics method and related device
EP1156629A1 (en) Network system and communication node
US10965605B2 (en) Communication system, communication control method, and communication apparatus
US7474662B2 (en) Systems and methods for rate-limited weighted best effort scheduling
CN117793583A (en) Message forwarding method and device, electronic equipment and computer readable storage medium
CN113765812A (en) Method and device for marking message
WO2023125380A1 (en) Data management method and corresponding apparatus
US11757742B2 (en) System and method to distribute traffic flows among a plurality of applications in a data center system
KR20180134219A (en) The method for processing virtual packets and apparatus therefore
US11240169B2 (en) Packet queuing
KR101773528B1 (en) Network interface apparatus and method for processing virtual machine packets
CN115499386B (en) Data forwarding method, VPP network element equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant