CN115473835B - Flow statistics method and related equipment - Google Patents

Flow statistics method and related equipment Download PDF

Info

Publication number
CN115473835B
CN115473835B CN202210938852.XA CN202210938852A CN115473835B CN 115473835 B CN115473835 B CN 115473835B CN 202210938852 A CN202210938852 A CN 202210938852A CN 115473835 B CN115473835 B CN 115473835B
Authority
CN
China
Prior art keywords
local area
area network
flow
node
interface
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
CN202210938852.XA
Other languages
Chinese (zh)
Other versions
CN115473835A (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.)
Beijing Co Wheels Technology Co Ltd
Original Assignee
Beijing Co Wheels 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 Beijing Co Wheels Technology Co Ltd filed Critical Beijing Co Wheels Technology Co Ltd
Priority to CN202210938852.XA priority Critical patent/CN115473835B/en
Publication of CN115473835A publication Critical patent/CN115473835A/en
Application granted granted Critical
Publication of CN115473835B publication Critical patent/CN115473835B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2441Traffic characterised by specific attributes, e.g. priority or QoS relying on flow classification, e.g. using integrated services [IntServ]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a flow statistics method and related equipment, wherein the method comprises the following steps: acquiring a flow request and a local area network identifier corresponding to the flow request; routing the flow request to flow nodes in local area networks corresponding to the local area network identifiers through interfaces, wherein the local area network identifiers are in one-to-one correspondence with each of the at least two local area networks, and the interfaces are in one-to-one correspondence with each of the at least two local area networks; and the flow nodes in the local area network corresponding to the local area network identifiers are used for carrying out resource statistics on the flow requests through the access points corresponding to the local area network. The forwarding of the flow requests in the Ethernet system is realized through the local area network on the basis of maintaining the original hardware connection, so that the flow requests with different local area network identifications complete resource statistics through the access points in the flow chip.

Description

Flow statistics method and related equipment
Technical Field
The present application relates to the field of network technologies, and in particular, to a traffic statistics method and related devices.
Background
The Ethernet system comprises a flow node and a plurality of chip nodes, wherein each of the plurality of chip nodes is connected with the flow node, each of the plurality of chip nodes is connected with each other, the flow node comprises a physical interface and a plurality of access point names, the access point names respectively correspond to the plurality of access points in the operator core network, and the Ethernet system accesses the Internet through the operator core network.
In general, the ethernet system accesses the internet in a simple scenario, and no special traffic distinguishing process is performed for the scenario that multiple chip nodes access the internet. Therefore, when the ethernet system has a plurality of ethernet nodes and different application flows need to be counted by different access points in the operator core network or the flows in the ethernet system need to be sent to different environments, at this time, the manner of packing the application flows with the operator core network directly through the ethernet system for communication cannot realize the respective statistics of the different application flows.
Disclosure of Invention
Accordingly, an objective of the present application is to provide a flow statistics method and related devices for solving or partially solving the above-mentioned problems.
In view of the above object, a first aspect of the present application provides a traffic statistics method, the method being applied to chip nodes belonging to at least two local area networks in an ethernet system, each of the local area networks comprising at least one chip node and at least one traffic node; the method comprises the following steps:
acquiring a flow request and a local area network identifier corresponding to the flow request;
routing the flow request to flow nodes in local area networks corresponding to the local area network identifiers through interfaces, wherein the local area network identifiers are in one-to-one correspondence with each of the at least two local area networks, and the interfaces are in one-to-one correspondence with each of the at least two local area networks;
the flow nodes in the local area network corresponding to the local area network identifiers are used for carrying out resource statistics on the flow requests through the access points corresponding to the local area network;
the method for acquiring the interface comprises the following steps:
and constructing the interface according to the application type corresponding to the chip node, wherein the application type corresponding to the chip node corresponds to the local area network one by one.
A second aspect of the present application provides a traffic statistics device, the device being installed in a chip node belonging to at least two local area networks in an ethernet system, each of the local area networks comprising at least one chip node and at least one traffic node; the device comprises:
the acquisition module is configured to acquire a flow request and a local area network identifier corresponding to the flow request;
the routing module is configured to route the flow request to the flow nodes in the local area networks corresponding to the local area network identifiers through interfaces, the local area network identifiers are in one-to-one correspondence with each of the at least two local area networks, and the interfaces are in one-to-one correspondence with each of the at least two local area networks;
the flow nodes in the local area network corresponding to the local area network identifiers are used for carrying out resource statistics on the flow requests through the access points corresponding to the local area network;
the flow statistics device also comprises an acquisition interface module for acquiring an interface;
the acquisition interface module is configured to: and constructing the interface according to the application type corresponding to the chip node, wherein the application type corresponding to the chip node corresponds to the local area network one by one.
A third aspect of the application provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of the first aspect when executing the program.
A fourth aspect of the application provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of the first aspect.
A fifth aspect of the application provides a vehicle comprising a flow statistics apparatus as described in the second aspect, or an electronic device as described in the third aspect, or a storage medium as described in the fourth aspect.
As can be seen from the above description, the traffic statistics method and related device provided by the present application utilize the correspondence between the traffic request and the local area network in the ethernet system, route the traffic request to the corresponding local area network, avoid the improvement of the hardware level by the application of the local area network in the ethernet system, send the traffic request to the traffic node through the interface by the chip node in the local area network, and implement the forwarding of the traffic request in the ethernet system through the local area network on the basis of maintaining the original hardware connection, so that the traffic requests with different local area network identifications complete the resource statistics by the access point in the traffic node.
Drawings
In order to more clearly illustrate the technical solutions of the present application or related art, the drawings that are required to be used in the description of the embodiments or related art will be briefly described below, and it is apparent that the drawings in the following description are only embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort to those of ordinary skill in the art.
FIG. 1 is a schematic diagram of an Ethernet system networking architecture;
FIG. 2 is a flow chart of a flow statistics method according to an embodiment of the present application;
FIG. 3 is a detailed expanded view of step 104;
FIG. 4 is a schematic diagram of a flow statistics device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As described in the background, as shown in fig. 1, the ethernet system includes a traffic node and a plurality of chip nodes, where each of the plurality of chip nodes is connected to the traffic node, each of the plurality of chip nodes is connected to each other, and the traffic node includes a physical interface and a plurality of access points, where the access points respectively correspond to a plurality of network access points in the operator core network, and the ethernet system accesses the internet through the operator core network.
In general, the internet access of the ethernet system is traffic communication under a simple scenario, and no special traffic distinguishing process is performed for the scenario that a plurality of chip nodes access the internet. Therefore, when the ethernet system has a plurality of ethernet nodes and different application flows need to be counted by different access points in the operator core network or the flows in the ethernet system need to be sent to different environments, at this time, the manner of packing the application flows with the operator core network directly through the ethernet system for communication cannot realize the respective statistics of the different application flows.
It follows that improvements in the communication manner of the chip nodes and the traffic nodes in the ethernet system are needed to realize statistics of different application traffic.
In view of this, the embodiment of the present application provides a traffic statistics method, which can be applied to traffic statistics in an ethernet system, and it can be understood that a node in the ethernet system may include a server of a computer network, and may be a client or a network device.
As shown in fig. 2, the method of the present embodiment is applied to chip nodes belonging to at least two local area networks in an ethernet system, where each local area network includes at least one chip node and at least one traffic node, and the embodiment of the present application is described by taking a vehicle ethernet as an example. The method of the embodiment comprises the following steps:
step 101, obtaining a flow request and a local area network identifier corresponding to the flow request.
In this step, the Chip node refers to an integrated circuit node including a complete System, and the preferred Chip node in the embodiment of the present application may be an SOC (System on Chip), which may be a product, which may be an integrated circuit with a specific target, and the SOC may include the complete System and have the entire content of embedded software. The flow request refers to the flow of the application program through the internet, and the preferred flow request in the embodiment of the application can be an application in the SOC. The lan identifier refers to an identifier of the lan marking the traffic request, and the preferred lan identifier in this embodiment may be a virtual lan identifier. For example, the lan identification may include vlan1 (Virtual Local Area Network, virtual lan), vlan2, vlan3, where vlan1 may be user traffic such as map navigation, video data, cell phone traffic, etc., vlan2 may be vendor traffic data such as upgrades, cell phone control, etc., vlan3 may be third party application data, etc. In this way, an identification basis is provided for subsequent routing of traffic requests to the local area network.
Step 102, routing the flow request to a flow node in a local area network corresponding to the local area network identifier through an interface, wherein the local area network identifier corresponds to each of the at least two local area networks one by one, and the interface corresponds to each of the at least two local area networks one by one; and the flow nodes in the local area network corresponding to the local area network identifiers are used for carrying out resource statistics on the flow requests through the corresponding access points.
In this step, the interface refers to a virtual network interface in the chip node, and the preferred interface in the embodiment of the present application may be a virtual eth (local network card) virtual port in the SOC. For example, the interface of the chip node in lan1 is eth0.1, the interface of the chip node in lan2 is eth0.2, the interface of the chip node in lan3 is eth0.3, and so on. Thus, a data basis is provided for the subsequent flow nodes to count the flow requests according to the local area network.
Returning to fig. 1, for example, the lan1 may include a traffic node, a chip node 1 and a chip node 2, where the chip node 1 includes an interface 1 corresponding to the lan1 and an interface 2 corresponding to the lan2, and the chip node 1 receives a traffic request and lan1 and vlan2 corresponding to the traffic request, where the traffic request includes a user traffic of the lan1 and a vendor traffic of the lan2 (not shown in fig. 1); the chip node 1 routes user traffic through the interface 1 to traffic nodes in the local area network vlan1 corresponding to vlan1 and the chip node 1 routes vendor traffic through the interface 2 to traffic nodes in the local area network vlan2 (not shown in fig. 1) corresponding to vlan 2.
For another example, the chip node 2 includes an interface 1 corresponding to the lan1, and the chip node 2 receives a traffic request and lan1 corresponding to the traffic request, where the traffic request includes a user traffic of lan 1; the chip node 2 routes the user traffic to the traffic node in the local area network vlan1 corresponding to vlan1 through interface 1.
The traffic node refers to a node responsible for communication with the operator core network, and the traffic node preferred in the embodiment of the present application may be 5g_soc (5 th Generation Mobile Communication Technology, fifth generation mobile communication technology). The access point refers to a network path specified by the operator core network, and the preferred access point in this embodiment may be an APN (Access Point Name ), which defines a network path for all traffic request connections, and determines what network is accessed by a node in the ethernet system by which access mode. An APN is a parameter that must be configured when the APN connects to the internet through the operator's core network, and the APN is used to distinguish which network the node will access later to assign the IP of which network segment.
Returning to fig. 1, for example, traffic nodes in lan1 make statistics of user traffic sent by chip node 1 and chip node 2 through interface 1 via access point 1.
Through the scheme, the flow requests are routed into the corresponding local area network by utilizing the corresponding relation between the flow requests and the local area network in the Ethernet system, the improvement of a hardware level is avoided through the application of the local area network in the Ethernet system, the chip nodes in the local area network send the flow requests to the flow nodes through interfaces, the forwarding of the flow requests in the Ethernet system is realized through the local area network on the basis of maintaining the original hardware connection, and the flow requests with different local area network identifications are subjected to resource statistics through the access points in the flow nodes.
In some embodiments, the method for acquiring the interface includes:
and constructing the interface according to the application type corresponding to the chip node, wherein the application type corresponding to the chip node corresponds to the local area network one by one.
In the above scheme, the different chip nodes correspond to different types of applications, for example, returning to fig. 1, the application types corresponding to the chip node 1 are user traffic and vendor traffic, the interface 1 and the interface 2 are built in the chip node 1, the application types corresponding to the chip node 2 are user traffic, the interface 1 is built in the chip node 2, and the application types corresponding to the chip node 3 are user traffic, vendor traffic and third party application traffic. The local area network corresponding to the user flow is vlan1, the local area network corresponding to the vehicle manufacturer flow is vlan2, and the local area network corresponding to the third party application is vlan3; the interface corresponding to the user flow is an interface 1, the interface corresponding to the vehicle merchant flow is an interface 2, and the interface corresponding to the third party application is an interface 3. It can be understood that in the process of applying the chip node, the application type corresponding to the chip node can be newly added, deleted and modified.
Through the scheme, an interface foundation is provided for the subsequent chip nodes to send the flow to the flow chip through the interfaces of different local area networks.
In some embodiments, the chip node constructs interfaces of the plurality of local area networks according to application types corresponding to the chip node, including:
in response to determining that the application type corresponding to the chip node is single, the chip node constructs a default routing interface as the interface;
and in response to determining that the application types corresponding to the chip nodes are multiple, the chip nodes respectively construct routing interfaces corresponding to each application type as the interfaces according to the corresponding relation between the application types corresponding to the chip nodes and the local area network.
In the above scheme, when only one application type exists in the chip node, the chip node does not need to perform multiple virtual operations on the gateway interface eth, that is, the traffic request of the chip node is sent to the traffic node by the default routing interface. For example, only user traffic is in the chip node SOC1, and all traffic requests of the SOC1 may be sent through the default routing node eth 0.1.
Through the scheme, an interface foundation is provided for the subsequent chip nodes to send the flow to the flow chip through the interfaces of different local area networks.
In some embodiments, step 102 specifically includes:
step 1021, determining an application type corresponding to the flow request according to the corresponding relation between the local area network identifier of the flow request and the local area network and the corresponding relation between the application type and the local area network;
step 1022, routing the flow request to a flow node in the local area network corresponding to the application type according to the application type.
In the above-mentioned scheme, in order to send the traffic request in the chip node through different local area networks, the local area network corresponding to the traffic request needs to be selected first. Specifically, according to the corresponding relation between the local area network identifier of the flow request and the local area network and the corresponding relation between the application type corresponding to the chip node and the local area network. For example, a lan1 local area network corresponding to the user traffic is selected.
Through the scheme, a route basis is provided for the subsequent chip nodes to send traffic to the traffic chip through interfaces of different local area networks.
In some embodiments, step 1022 specifically includes:
responsive to determining that the application type is single, routing the flow request to a flow node in a local area network corresponding to the default routing interface;
and responding to the determination that the application types are multiple, and respectively routing the flow requests to the flow nodes in the local area network corresponding to the application types according to the corresponding relation between the application types and the local area network.
In the above scheme, the routing manner of the chip node for the traffic request may include a default route or a policy route, where the default route refers to that all traffic requests in the chip node are sent by one default route node, and the policy route refers to that the traffic requests in the chip node are sent by a route node selected according to a certain policy condition.
Through the scheme, a route basis is provided for the subsequent chip nodes to send traffic to the traffic chip through interfaces of different local area networks.
In some embodiments, as shown in fig. 3, step 104 specifically includes:
step 1041, determining a resource management system corresponding to the flow request according to the flow request;
step 1042, obtaining a resource calculation standard corresponding to the resource management system;
step 1043, performing resource statistics on the traffic request according to the access point, and calculating a resource statistics result of the resource management system according to the resource calculation standard.
In the above solution, the resource management system refers to a system for managing traffic resources, and the preferred resource management system in the embodiment of the present application may be a system for managing an application program, for example, a resource management system corresponding to user traffic is a user. The resource calculation standard refers to a standard executed by a resource management system to calculate resources, and the preferred resource calculation standard in the embodiment of the present application may be a unit price of calculating a flow request in an application program, for example, the resource calculation standard corresponding to a user flow may be 0.1 yuan per hundred megabytes. The resource statistics result refers to the product of the resource statistics value and the resource calculation standard, and the preferred resource statistics result in the embodiment of the present application may be the amount corresponding to the resource, for example, if the user traffic is 120 megabits, the resource statistics result is 0.12 yuan.
By the scheme, a calculation mode is provided for counting the resource statistics results corresponding to different flow requests.
It should be noted that, the method of the embodiment of the present application may be performed by a single device, for example, a computer or a server. The method of the embodiment can also be applied to a distributed scene, and is completed by mutually matching a plurality of devices. In the case of such a distributed scenario, one of the devices may perform only one or more steps of the method of an embodiment of the present application, the devices interacting with each other to accomplish the method.
It should be noted that the foregoing describes some embodiments of the present application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments described above and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Based on the same inventive concept, on the basis of the corresponding implementation manner of the above-mentioned example methods, the following specific implementation cases are possible.
Embodiments of the present application may further include:
the application on the SOC (corresponding to the chip node in the embodiment of the present application) sends the traffic of the application itself (corresponding to the traffic request in the embodiment of the present application) to the different vlan (corresponding to the lan in the embodiment of the present application) by means of policy routing or default routing, and then the data of the different vlan is routed to the corresponding access point on the 5g_soc (corresponding to the traffic node in the embodiment of the present application). The mobile core network charges by following the traffic in the different apn.
In which an in-vehicle local area network (ethernet system corresponding to an embodiment of the present application) may divide a plurality of vlan:
each vlan has a different role, e.g. vlan1 may be user traffic such as map navigation, video data, cell phone traffic, etc., vlan2 may be vendor traffic data such as upgrades, cell phone control, etc., vlan3 may be third party application data, etc.
Multiple ethernet virtual interfaces can be virtualized according to vlan on each soc, each interface points to one vlan, and each soc can use different vlan according to actual situation.
If some of the soc nodes, such as soc2, only use vlan1, the default route may be directed to eth0.1 so that all applications on soc2 are routed through vlan2 to access point 2 and then billed according to vlan 2.
If some of the soc nodes like soc1 use vlan1, 2 at the same time, network data of one part of the application can be routed to vlan1 and network data of another part of the application can be directed to vlan2 by policy routing, so that the route on soc1 is routed to different access points through different vlan, and then the application on soc1 can be charged by different application
The 5g_soc routes data on different interfaces to different access points through different routing policies, for example, data on interface eth0.1 corresponding to vlan1 (corresponding to the interface according to the embodiment of the present application) is routed to access point 1, and data received by interface eth0.1 corresponding to vlan2 is routed to access point 2.
The mobile core network realizes the charging of different service parties by counting the data flow of different access points.
Based on the same inventive concept, the application also provides a flow statistics device corresponding to the method of any embodiment.
Referring to fig. 4, the traffic statistics device is applied to chip nodes belonging to at least two local area networks in an ethernet system, each local area network comprising at least one chip node and at least one traffic node; the device comprises:
an obtaining module 201, configured to obtain a flow request and a local area network identifier corresponding to the flow request;
a routing module 202 configured to route the traffic request to a traffic node in a local area network corresponding to the local area network identifier through an interface, the local area network identifier being in one-to-one correspondence with each of the at least two local area networks, the interface being in one-to-one correspondence with each of the at least two local area networks;
and the flow nodes in the local area network corresponding to the local area network identifiers are used for carrying out resource statistics on the flow requests through the access points corresponding to the local area network.
In some embodiments, the flow statistics apparatus further comprises an acquisition interface module that acquires an interface;
the acquisition interface module is configured to: and constructing the interface according to the application type corresponding to the chip node, wherein the application type corresponding to the chip node corresponds to the local area network one by one.
In some embodiments, the acquisition interface module is specifically further configured to:
in response to determining that the application type corresponding to the chip node is single, constructing a default route interface as the interface;
and respectively constructing a routing interface corresponding to each application type as the interface according to the corresponding relation between the application type and the local area network in response to the fact that the application type corresponding to the chip node is a plurality of.
In some embodiments, the routing module 202 specifically includes:
the determining unit is configured to determine the application type corresponding to the flow request according to the corresponding relation between the local area network identifier of the flow request and the local area network and the corresponding relation between the application type and the local area network;
and the node routing unit is configured to route the flow request to a flow node in a local area network corresponding to the application type according to the application type.
In some embodiments, the node routing unit is specifically configured to:
responsive to determining that the application type is single, routing the flow request to a flow node in a local area network corresponding to the default routing interface;
and responding to the determination that the application types are multiple, and respectively routing the flow requests to the flow nodes in the local area network corresponding to the application types according to the corresponding relation between the application types and the local area network.
In some embodiments, the traffic node in the local area network corresponding to the local area network identifier is specifically configured to:
determining a resource management system corresponding to the flow request according to the flow request;
acquiring a resource calculation standard corresponding to the resource management system;
and carrying out resource statistics on the flow request according to the access point, and calculating a resource statistics result of the resource management system according to the resource calculation standard.
For convenience of description, the above devices are described as being functionally divided into various modules, respectively. Of course, the functions of each module may be implemented in the same piece or pieces of software and/or hardware when implementing the present application.
The device of the foregoing embodiment is configured to implement the corresponding flow statistics method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, the application also provides an electronic device corresponding to the method of any embodiment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the flow statistics method of any embodiment when executing the program.
Fig. 5 shows a more specific hardware architecture of an electronic device according to this embodiment, where the device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 implement communication connections therebetween within the device via a bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit ), microprocessor, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 1020 may store an operating system and other application programs, and when the embodiments of the present specification are implemented in software or firmware, the associated program code is stored in memory 1020 and executed by processor 1010.
The input/output interface 1030 is used to connect with an input/output module for inputting and outputting information. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
Communication interface 1040 is used to connect communication modules (not shown) to enable communication interactions of the present device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 1050 includes a path for transferring information between components of the device (e.g., processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
It should be noted that although the above-described device only shows processor 1010, memory 1020, input/output interface 1030, communication interface 1040, and bus 1050, in an implementation, the device may include other components necessary to achieve proper operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The electronic device of the foregoing embodiment is configured to implement the corresponding flow statistics method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiment, which is not described herein.
Based on the same inventive concept, the present application also provides a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the flow statistics method according to any of the embodiments above, corresponding to the method according to any of the embodiments above.
The computer readable media of the present embodiments, including both permanent and non-permanent, removable and non-removable media, may be used to implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The storage medium of the foregoing embodiments stores computer instructions for causing the computer to perform the flow statistics method described in any of the foregoing embodiments, and has the advantages of the corresponding method embodiments, which are not described herein.
Based on the same inventive concept, the application also provides a vehicle corresponding to the method of any embodiment, which comprises the flow statistics device, the electronic device or the storage medium in the embodiment, and the vehicle device realizes the flow statistics method of any embodiment.
The vehicle of the foregoing embodiments is configured to perform the flow statistics method described in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described herein.
Those of ordinary skill in the art will appreciate that: the discussion of any of the embodiments above is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; the technical features of the above embodiments or in the different embodiments may also be combined within the idea of the application, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the application as described above, which are not provided in detail for the sake of brevity.
Additionally, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown within the provided figures, in order to simplify the illustration and discussion, and so as not to obscure the embodiments of the present application. Furthermore, the devices may be shown in block diagram form in order to avoid obscuring the embodiments of the present application, and also in view of the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the embodiments of the present application are to be implemented (i.e., such specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the application, it should be apparent to one skilled in the art that embodiments of the application can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative in nature and not as restrictive.
While the application has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of those embodiments will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
The present embodiments are intended to embrace all such alternatives, modifications and variances which fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, and the like, which are within the spirit and principles of the embodiments of the application, are intended to be included within the scope of the application.

Claims (9)

1. A traffic statistics method, characterized in that the method is applied to chip nodes belonging to at least two local area networks in an ethernet system, each local area network comprising at least one chip node and at least one traffic node; the method comprises the following steps:
acquiring a flow request and a local area network identifier corresponding to the flow request;
routing the flow request to flow nodes in local area networks corresponding to the local area network identifiers through interfaces, wherein the local area network identifiers are in one-to-one correspondence with each of the at least two local area networks, and the interfaces are in one-to-one correspondence with each of the at least two local area networks;
the flow nodes in the local area network corresponding to the local area network identifiers are used for carrying out resource statistics on the flow requests through the access points corresponding to the local area network;
the method for acquiring the interface comprises the following steps:
and constructing the interface according to the application type corresponding to the chip node, wherein the application type corresponding to the chip node corresponds to the local area network one by one.
2. The method of claim 1, wherein the constructing the interface according to the application type corresponding to the chip node comprises:
in response to determining that the application type corresponding to the chip node is single, constructing a default route interface as the interface;
and respectively constructing a routing interface corresponding to each application type as the interface according to the corresponding relation between the application type and the local area network in response to the fact that the application type corresponding to the chip node is a plurality of.
3. The method of claim 2, wherein the routing the traffic request through the interface to the traffic node in the local area network to which the local area network identifier corresponds comprises:
determining an application type corresponding to the flow request according to the corresponding relation between the local area network identifier of the flow request and the local area network and the corresponding relation between the application type and the local area network;
and routing the flow request to a flow node in a local area network corresponding to the application type according to the application type.
4. The method of claim 3, wherein the routing the traffic request according to the application type to a traffic node in a local area network corresponding to the application type comprises:
responsive to determining that the application type is single, routing the flow request to a flow node in a local area network corresponding to the default routing interface;
and responding to the determination that the application types are multiple, and respectively routing the flow requests to the flow nodes in the local area network corresponding to the application types according to the corresponding relation between the application types and the local area network.
5. The method of claim 1, wherein the traffic node in the local area network corresponding to the local area network identifier is specifically configured to:
determining a resource management system corresponding to the flow request according to the flow request;
acquiring a resource calculation standard corresponding to the resource management system;
and carrying out resource statistics on the flow request according to the access point, and calculating a resource statistics result of the resource management system according to the resource calculation standard.
6. A traffic statistics device, characterized in that the device is applied to chip nodes belonging to at least two local area networks in an ethernet system, each local area network comprising at least one chip node and at least one traffic node; the device comprises:
the acquisition module is configured to acquire a flow request and a local area network identifier corresponding to the flow request;
the routing module is configured to route the flow request to the flow nodes in the local area networks corresponding to the local area network identifiers through interfaces, the local area network identifiers are in one-to-one correspondence with each of the at least two local area networks, and the interfaces are in one-to-one correspondence with each of the at least two local area networks;
the flow nodes in the local area network corresponding to the local area network identifiers are used for carrying out resource statistics on the flow requests through the access points corresponding to the local area network;
the flow statistics device also comprises an acquisition interface module for acquiring an interface;
the acquisition interface module is configured to: and constructing the interface according to the application type corresponding to the chip node, wherein the application type corresponding to the chip node corresponds to the local area network one by one.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable by the processor, the processor implementing the method of any one of claims 1 to 6 when the computer program is executed.
8. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 5.
9. A vehicle, characterized by comprising: a flow rate statistics device as claimed in claim 7, or an electronic apparatus as claimed in claim 7, or a storage medium as claimed in claim 8.
CN202210938852.XA 2022-08-05 2022-08-05 Flow statistics method and related equipment Active CN115473835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210938852.XA CN115473835B (en) 2022-08-05 2022-08-05 Flow statistics method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210938852.XA CN115473835B (en) 2022-08-05 2022-08-05 Flow statistics method and related equipment

Publications (2)

Publication Number Publication Date
CN115473835A CN115473835A (en) 2022-12-13
CN115473835B true CN115473835B (en) 2023-09-26

Family

ID=84366274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210938852.XA Active CN115473835B (en) 2022-08-05 2022-08-05 Flow statistics method and related equipment

Country Status (1)

Country Link
CN (1) CN115473835B (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6233613B1 (en) * 1997-08-18 2001-05-15 3Com Corporation High impedance probe for monitoring fast ethernet LAN links
US6578021B1 (en) * 1998-12-29 2003-06-10 International Business Machines Corporation Method and system for classifying network devices in virtual LANs
CN1716867A (en) * 2004-06-29 2006-01-04 杭州华为三康技术有限公司 Data flow statistic method and device
CN101237332A (en) * 2008-02-29 2008-08-06 福建星网锐捷网络有限公司 Billing method, billing system and traffic statistical device
CN101335708A (en) * 2008-08-06 2008-12-31 杭州华三通信技术有限公司 Packet forwarding method and operator edge converging equipment
CN101984598A (en) * 2010-11-04 2011-03-09 成都市华为赛门铁克科技有限公司 Message forwarding method and deep packet inspection (DPI) device
CN103281212A (en) * 2013-06-21 2013-09-04 武汉烽火网络有限责任公司 Method for monitoring performance of metro Ethernet
CN105553698A (en) * 2015-12-09 2016-05-04 福建天晴数码有限公司 Traffic counting method and traffic counting system based on local area network
CN108551422A (en) * 2018-03-30 2018-09-18 青岛海信宽带多媒体技术有限公司 A kind of gateway, its network message processing method, device and gateway storage medium
CN109547222A (en) * 2018-11-07 2019-03-29 斑马网络技术有限公司 The flow statistical method and device of network request
CN110071878A (en) * 2019-04-15 2019-07-30 杭州迪普信息技术有限公司 Message flow statistical method, device, electronic equipment
CN112822087A (en) * 2020-12-30 2021-05-18 深圳市共进电子股份有限公司 Data distinguishing method, data distinguishing device, router and network relay equipment
CN114285781A (en) * 2021-12-17 2022-04-05 中国电信股份有限公司 SRV6 service traffic statistical method, device, electronic equipment and medium
DE202022102631U1 (en) * 2022-05-13 2022-05-25 Wadee Alhalabi Intelligent defense system against distributed Denial of Service (DDoS) attacks in Internet of Things (IoT) networks

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11758399B2 (en) * 2017-05-25 2023-09-12 Huawei Technologies Co., Ltd. Wireless local area network configuration using probe request frame having authentication information

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6233613B1 (en) * 1997-08-18 2001-05-15 3Com Corporation High impedance probe for monitoring fast ethernet LAN links
US6578021B1 (en) * 1998-12-29 2003-06-10 International Business Machines Corporation Method and system for classifying network devices in virtual LANs
CN1716867A (en) * 2004-06-29 2006-01-04 杭州华为三康技术有限公司 Data flow statistic method and device
CN101237332A (en) * 2008-02-29 2008-08-06 福建星网锐捷网络有限公司 Billing method, billing system and traffic statistical device
CN101335708A (en) * 2008-08-06 2008-12-31 杭州华三通信技术有限公司 Packet forwarding method and operator edge converging equipment
CN101984598A (en) * 2010-11-04 2011-03-09 成都市华为赛门铁克科技有限公司 Message forwarding method and deep packet inspection (DPI) device
CN103281212A (en) * 2013-06-21 2013-09-04 武汉烽火网络有限责任公司 Method for monitoring performance of metro Ethernet
CN105553698A (en) * 2015-12-09 2016-05-04 福建天晴数码有限公司 Traffic counting method and traffic counting system based on local area network
CN108551422A (en) * 2018-03-30 2018-09-18 青岛海信宽带多媒体技术有限公司 A kind of gateway, its network message processing method, device and gateway storage medium
CN109547222A (en) * 2018-11-07 2019-03-29 斑马网络技术有限公司 The flow statistical method and device of network request
CN110071878A (en) * 2019-04-15 2019-07-30 杭州迪普信息技术有限公司 Message flow statistical method, device, electronic equipment
CN112822087A (en) * 2020-12-30 2021-05-18 深圳市共进电子股份有限公司 Data distinguishing method, data distinguishing device, router and network relay equipment
CN114285781A (en) * 2021-12-17 2022-04-05 中国电信股份有限公司 SRV6 service traffic statistical method, device, electronic equipment and medium
DE202022102631U1 (en) * 2022-05-13 2022-05-25 Wadee Alhalabi Intelligent defense system against distributed Denial of Service (DDoS) attacks in Internet of Things (IoT) networks

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
分布式网络流量监测;刘军良;肖宗水;;计算机工程(第20期);全文 *
局域网流量工程研究;马达;;内蒙古科技与经济(第23期);全文 *

Also Published As

Publication number Publication date
CN115473835A (en) 2022-12-13

Similar Documents

Publication Publication Date Title
US20240236038A1 (en) Multi-tenant aware dynamic host configuration protocol (dhcp) mechanism for cloud networking
CN109145025B (en) Multi-data-source integrated data query method and device and service server
US10917379B2 (en) Domain intercommunication in shared computing environments
CN108809945A (en) Realize the method, apparatus and Internet of Things cloud platform that equipment room interconnects
CN108401037A (en) User terminal and the binding method of equipment, device and system
CN109558091B (en) Lookup table storage method and device and computer readable storage medium
US20210234715A1 (en) Consistent provision of member node group information on virtual overlay network
CN113886336A (en) Flow detection method, device, equipment and medium
CN110474960B (en) Method and device for service deployment in virtual network
CN106921578A (en) The generation method and device of a kind of forwarding-table item
CN107888717A (en) A kind of domain name determines method, apparatus and electronic equipment
CN105450585A (en) Information transmission method and device
US20200029189A1 (en) System and method for collaborative caching
CN113821307B (en) Method, device and equipment for quickly importing virtual machine images
US10778802B2 (en) Mobile device identification
CN115473835B (en) Flow statistics method and related equipment
CN109271438A (en) A kind of data bank access method and its system
CN109032693A (en) Method and device for loading display information, electronic equipment and readable storage medium
CN112261176A (en) Method for acquiring actual network access relationship and related equipment
CN115021831A (en) Weak network testing method, device, system, equipment and storage medium
CN114363254B (en) Tenant isolation method and device and electronic equipment
CN114071448B (en) Data transmission method, related network node and storage medium
CN116016448A (en) Service network access method, device, equipment and storage medium
CN114928556A (en) Interface service test method and related equipment
CN115955458A (en) Method and device for identifying content distribution network address

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