CN111628906A - Method for carrying out flow statistics and monitoring on IP of bullet-supplying public network - Google Patents
Method for carrying out flow statistics and monitoring on IP of bullet-supplying public network Download PDFInfo
- Publication number
- CN111628906A CN111628906A CN202010393376.9A CN202010393376A CN111628906A CN 111628906 A CN111628906 A CN 111628906A CN 202010393376 A CN202010393376 A CN 202010393376A CN 111628906 A CN111628906 A CN 111628906A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- flow
- public network
- unbinding
- service
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0894—Packet rate
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Abstract
The invention provides a method for carrying out flow statistics and monitoring on an elastic public network IP, which comprises the steps of designing a product monitoring flow record table; monitoring initialization; acquiring flow at fixed time; actively triggering and counting the current flow; and monitoring and reporting. According to the method for carrying out flow statistics and monitoring on the IP of the elastic public network, disclosed by the invention, a public cloud user can conveniently acquire the information such as real-time flow, speed and the like of EIP purchased by the public cloud user, and an operator can conveniently carry out flow statistics and charging.
Description
Technical Field
The invention belongs to the field of elastic public networks, and particularly relates to a method for carrying out flow statistics and monitoring on an IP (Internet protocol) of an elastic public network.
Background
An Elastic IP Address (EIP) is a public IP Address resource that can be purchased and held independently. The intranet and the public network can be communicated with and accessed to each other through the IP address, in addition, a public cloud operator provides an EIP flow monitoring and counting function for a user, and the user can conveniently check the flow, the speed and other relevant information used by the EIP purchased by the user, so that the monitoring of the flow, the speed and other relevant information and the counting of the use flow of the EIP are inevitable.
Disclosure of Invention
In view of the above, the present invention provides a method for traffic statistics and monitoring of an elastic public network IP, which aims to overcome the above-mentioned defects in the prior art. The method aims to enable public cloud users to conveniently acquire information such as real-time flow and rate of EIP purchased by the public cloud users, and facilitate flow statistics and charging of operators.
In order to achieve the purpose, the technical method of the invention is realized as follows:
a method for carrying out flow statistics and monitoring on an IP (Internet protocol) of a bullet public network comprises a core service, a monitoring service, a metering service and a unbinding state table; the specific method comprises the following steps:
s1, binding a core service with an elastic public network IP, carrying out monitoring initialization on a monitoring service, and starting flow measurement by a measurement service;
s2, the core service unbinds the elastic public network IP, the monitoring service actively triggers and counts the current flow, and then unbinding information is stored in an unbinding state table;
s3, the monitoring service counts the current flow, and calls back the Core service Core to trigger the real unbinding operation, wherein the Core service Core triggers the real unbinding operation and notifies the metering service of finishing metering and deletes the state table of the unbinding time;
and S4, deleting the IP of the elastic public network and deleting the flow data of the EIP in the product monitoring flow record table.
Further, the specific process of monitoring initialization of step S1 is as follows:
s101, designing a product monitoring flow recording table for recording the flow of the EIP in the incoming and outgoing directions at the current moment and the last moment:
s102, inflow and outflow flow initialization, namely initializing a specific flow value of the public network IP, setting the flow values in the inflow direction and the outflow direction as 0, and storing the 0 flow value into a product monitoring flow record table.
Further, the monitoring service also has a function of acquiring flow at regular time, and the specific process is as follows: and acquiring the statistic parameters of the IP of the elastic public network, acquiring the network flow of the IP of the elastic public network in different router devices, and storing the flow acquired by the different devices into a product monitoring flow record table.
The method comprises a monitoring and reporting function, and the specific process comprises the following steps: and judging whether the operation is a timing operation or not, judging whether the flow of all the router equipment is acquired or not, and if the operation is finished, calculating the flow value and reporting the speed to an upper monitoring platform.
Further, reporting the obtained EIP related monitoring parameters by adopting a kafka middleware.
Further, the unbinding information in step S2 includes an Id of the IP record, a port Id of the binding, a user Id, and a time when the unbinding is started.
Further, step S3 further includes setting for error proofing, and the specific process is as follows: and (4) scanning the unbinding time state table every 20 seconds, judging whether the existing recorded unbinding state lasts for 60S, and if the existing recorded unbinding state lasts for 60S, actively triggering the unbinding operation.
Compared with the prior art, the invention has the following advantages:
1. the real-time flow value of the EIP in each routing device can be monitored, and the method is more accurate;
2. the monitored data is used as source data of flow measurement, is reasonably utilized and is dynamically decoupled with binding and unbinding operations of the EIP;
3. the flow and the rate of the EIP can be monitored in real time, and the monitored data is used as a data source for flow measurement, so that the measurement is more accurate; in addition, binding and unbinding of the EIP can dynamically adjust the monitoring service, and the method is more convenient.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a block diagram of an embodiment of the present invention;
FIG. 2 is a flow chart of method steps according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used only for convenience in describing the present invention and for simplicity in description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed and operated in a particular orientation, and thus, are not to be construed as limiting the present invention. Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first," "second," etc. may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless otherwise specified.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art through specific situations.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
The invention provides a method for monitoring and counting the flow of an elastic public network IP under a public cloud platform, aiming at enabling a public cloud user to conveniently acquire the information such as real-time flow, speed and the like of EIP purchased by the public cloud user and facilitating the flow counting and charging of an operator. In order to achieve the above object, the present application provides the following technical means:
1. designing a product monitoring flow recording table for recording the flow of the EIP in and out directions at the current moment and the last moment, wherein the flow recording table is shown as the following table:
2. the function of the initialization is monitored and controlled,
initializing inflow and outflow flow, namely initializing a specific flow value of the public network IP, setting the flow values of the inflow direction and the outflow direction as 0, and storing the 0 flow value into a tbl _ monitor _ flow _ volume _ record table;
3. the function of acquiring the flow at fixed time,
and the Agent is notified at regular time to obtain the IP statistical parameters of the public network, and is used for obtaining the network flow of the IP of the public network in different router devices and storing the flow obtained by different devices.
Judging whether the operation is a timing operation or not, judging whether the flow of all router equipment is acquired or not, and if the operation is finished, calculating data such as flow values and speeds and reporting the data to an upper monitoring platform, namely, a monitoring reporting function;
4. actively triggering the function of counting the flow at the current moment,
the Agent is actively informed to the equipment to obtain the statistical parameters of the public network IP, the statistical parameters are used for obtaining the network flow of the public network IP in different router equipment, and the statistical parameters are different from the timing operation in that the monitoring and reporting are not needed;
5. the function of reporting is monitored and controlled,
sending the obtained EIP related monitoring parameters through kafka middleware;
the specific operation steps are as follows:
1. when the Core service binds the EIP, informing the monitoring service to carry out monitoring initialization and informing the metering service to start flow metering;
2. when the Core service unbinds the EIP,
(1) informing a monitoring service to actively trigger and count the current-time flow, then storing the unbinding time into a unbinding time state table, and recording the Id of the IP, the bound portId, the user Id and the time for starting unbinding;
(2) after the monitoring service counts the current flow, the Core service is called back to trigger the real unbinding operation, including informing the metering service of finishing metering and deleting the state table of the unbinding time;
(3) considering the abnormal problem of the monitoring service, the Core service may not be called back to trigger the unbinding, a timing task is added, the unbinding time state table is swept once every 20 seconds, whether the existing record unbinding state lasts for 60S or not is judged, and if the record unbinding state lasts for 60S, the unbinding operation is actively triggered.
3. When the EIP is deleted, the flow data of the EIP in the tbl _ monitor _ flow _ volume _ record table is deleted.
4. The monitoring service acquires flow at regular time, informs the Agent to carry out flow statistics, and after the Agent acquires flow information, calls back the monitoring service to store and push flow data.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (6)
1. A method for carrying out flow statistics and monitoring on a supply public network IP is characterized by comprising the following steps: core service, monitoring service, metering service and unbinding state table; the specific method comprises the following steps:
s1, binding a core service with an elastic public network IP, carrying out monitoring initialization on a monitoring service, and starting flow measurement by a measurement service;
s2, the core service unbinds the elastic public network IP, the monitoring service actively triggers and counts the current flow, and then unbinding information is stored in an unbinding state table;
s3, the monitoring service counts the current flow, and calls back the Core service Core to trigger the real unbinding operation, wherein the Core service Core triggers the real unbinding operation and notifies the metering service of finishing metering and deletes the state table of the unbinding time;
and S4, deleting the IP of the elastic public network and deleting the flow data of the EIP in the product monitoring flow record table.
2. The method for traffic statistics and monitoring of the elastic public network IP according to claim 1, characterized in that: the specific process of monitoring initialization of step S1 is as follows:
s101, designing a product monitoring flow recording table for recording the flow of the EIP in the incoming and outgoing directions at the current moment and the last moment:
s102, inflow and outflow flow initialization, namely initializing a specific flow value of the public network IP, setting the flow values in the inflow direction and the outflow direction as 0, and storing the 0 flow value into a product monitoring flow record table.
3. The method for traffic statistics and monitoring of the elastic public network IP according to claim 2, characterized in that: the monitoring service also has a function of acquiring flow at regular time, and the specific process is as follows: and acquiring the statistic parameters of the IP of the elastic public network, acquiring the network flow of the IP of the elastic public network in different router devices, and storing the flow acquired by the different devices into a product monitoring flow record table.
The method comprises a monitoring and reporting function, and the specific process comprises the following steps: and judging whether the operation is a timing operation or not, judging whether the flow of all the router equipment is acquired or not, and if the operation is finished, calculating the flow value and reporting the speed to an upper monitoring platform.
4. The method for traffic statistics and monitoring of the elastic public network IP according to claim 4, characterized in that: and reporting the obtained EIP related monitoring parameters by adopting a kafka middleware.
5. The method for traffic statistics and monitoring of the elastic public network IP according to claim 1, characterized in that: the unbinding information in the step S2 includes Id of the IP record, port Id of the binding, user Id, and time to start unbinding.
6. The method for traffic statistics and monitoring of the elastic public network IP according to claim 1, characterized in that: step S3 further includes error-proofing setting, and the specific process is as follows: and (4) scanning the unbinding time state table every 20 seconds, judging whether the existing recorded unbinding state lasts for 60S, and if the existing recorded unbinding state lasts for 60S, actively triggering the unbinding operation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010393376.9A CN111628906B (en) | 2020-05-11 | 2020-05-11 | Method for carrying out flow statistics and monitoring on elastic public network IP |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010393376.9A CN111628906B (en) | 2020-05-11 | 2020-05-11 | Method for carrying out flow statistics and monitoring on elastic public network IP |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111628906A true CN111628906A (en) | 2020-09-04 |
CN111628906B CN111628906B (en) | 2023-05-09 |
Family
ID=72272801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010393376.9A Active CN111628906B (en) | 2020-05-11 | 2020-05-11 | Method for carrying out flow statistics and monitoring on elastic public network IP |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111628906B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112968802A (en) * | 2021-02-25 | 2021-06-15 | 紫光云技术有限公司 | Universal method for managing IP state and relation of elastic public network |
CN113806367A (en) * | 2021-09-08 | 2021-12-17 | 紫光云(南京)数字技术有限公司 | Method for measuring elastic public network IP according to pause time |
CN114710443A (en) * | 2022-03-17 | 2022-07-05 | 杭州华橙软件技术有限公司 | Traffic scheduling method and device for forwarding server |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102307246A (en) * | 2010-09-25 | 2012-01-04 | 广东电子工业研究院有限公司 | Protection system and method for secure communication among virtual machines based on cloud computing |
CN103166989A (en) * | 2011-12-13 | 2013-06-19 | 中国电信股份有限公司 | Resource use metering method and resource use metering system for cloud computing |
CN105959125A (en) * | 2016-07-18 | 2016-09-21 | 北京首都在线科技股份有限公司 | Network data traffic billing system and billing method |
CN107360006A (en) * | 2017-06-12 | 2017-11-17 | 北京三快在线科技有限公司 | A kind of resource billing method and device |
CN107919968A (en) * | 2016-10-08 | 2018-04-17 | 中兴通讯股份有限公司 | A kind of charging method and device |
CN109286506A (en) * | 2018-11-05 | 2019-01-29 | 中国联合网络通信集团有限公司 | A kind of method, system and device of charge on traffic |
CN109743415A (en) * | 2019-02-27 | 2019-05-10 | 上海浪潮云计算服务有限公司 | A kind of public cloud network resilience IP realization method and system |
CN110969492A (en) * | 2019-12-20 | 2020-04-07 | 北京金山云网络技术有限公司 | Pricing method, device and system of cloud product |
CN111010347A (en) * | 2019-11-30 | 2020-04-14 | 北京浪潮数据技术有限公司 | Network flow control method and related device of cloud platform |
CN111030868A (en) * | 2019-12-19 | 2020-04-17 | 紫光云(南京)数字技术有限公司 | Method for solving failure of elastic public network IP issuing equipment |
-
2020
- 2020-05-11 CN CN202010393376.9A patent/CN111628906B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102307246A (en) * | 2010-09-25 | 2012-01-04 | 广东电子工业研究院有限公司 | Protection system and method for secure communication among virtual machines based on cloud computing |
CN103166989A (en) * | 2011-12-13 | 2013-06-19 | 中国电信股份有限公司 | Resource use metering method and resource use metering system for cloud computing |
CN105959125A (en) * | 2016-07-18 | 2016-09-21 | 北京首都在线科技股份有限公司 | Network data traffic billing system and billing method |
CN107919968A (en) * | 2016-10-08 | 2018-04-17 | 中兴通讯股份有限公司 | A kind of charging method and device |
CN107360006A (en) * | 2017-06-12 | 2017-11-17 | 北京三快在线科技有限公司 | A kind of resource billing method and device |
CN109286506A (en) * | 2018-11-05 | 2019-01-29 | 中国联合网络通信集团有限公司 | A kind of method, system and device of charge on traffic |
CN109743415A (en) * | 2019-02-27 | 2019-05-10 | 上海浪潮云计算服务有限公司 | A kind of public cloud network resilience IP realization method and system |
CN111010347A (en) * | 2019-11-30 | 2020-04-14 | 北京浪潮数据技术有限公司 | Network flow control method and related device of cloud platform |
CN111030868A (en) * | 2019-12-19 | 2020-04-17 | 紫光云(南京)数字技术有限公司 | Method for solving failure of elastic public network IP issuing equipment |
CN110969492A (en) * | 2019-12-20 | 2020-04-07 | 北京金山云网络技术有限公司 | Pricing method, device and system of cloud product |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112968802A (en) * | 2021-02-25 | 2021-06-15 | 紫光云技术有限公司 | Universal method for managing IP state and relation of elastic public network |
CN112968802B (en) * | 2021-02-25 | 2023-04-18 | 紫光云技术有限公司 | Universal method for managing IP state and relation of elastic public network |
CN113806367A (en) * | 2021-09-08 | 2021-12-17 | 紫光云(南京)数字技术有限公司 | Method for measuring elastic public network IP according to pause time |
CN114710443A (en) * | 2022-03-17 | 2022-07-05 | 杭州华橙软件技术有限公司 | Traffic scheduling method and device for forwarding server |
CN114710443B (en) * | 2022-03-17 | 2024-03-19 | 杭州华橙软件技术有限公司 | Traffic scheduling method and device for forwarding server |
Also Published As
Publication number | Publication date |
---|---|
CN111628906B (en) | 2023-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111628906A (en) | Method for carrying out flow statistics and monitoring on IP of bullet-supplying public network | |
US10637771B2 (en) | System and method for real-time load balancing of network packets | |
US11438464B2 (en) | Method of reporting traffic metrics by a user plane function, UPF, to a session management function, SMF, in a telecommunication network, as well as a corresponding UPF | |
US7328262B2 (en) | Telecommunications network subscriber experience measurement | |
US7929512B2 (en) | Performance management of cellular mobile packet data networks | |
US8750133B2 (en) | Method and monitoring component for network traffic monitoring | |
US20080102816A1 (en) | Automatic device detection system and method | |
US9008682B2 (en) | Performance monitoring of location-based service in a mobile telecommunications network | |
GB2428933A (en) | Enriching call data records with handset information | |
CN107371154A (en) | It is a kind of to realize the anonymous method reported of MDT measurements | |
EP1764981B1 (en) | System and method of forwarding end user correlated states | |
WO2009008783A1 (en) | Method and apparatus for determining service performance. | |
CN101702811A (en) | Monitoring method and device for quality of service | |
US8055201B1 (en) | System and method for providing integrated voice quality measurements for wireless networks | |
JP2003528492A (en) | Understanding service quality with SIM toolkit | |
CN100433874C (en) | Mobile terminal reporting capability information automatically and report method | |
CN112671597A (en) | Method for carrying out sectional statistics on internal and external flows of elastic public network IP in shared bandwidth | |
KR101697250B1 (en) | Model information collecting method for user equipment accessed to mobile communication network and model information collecting apparatus for user equipment | |
CN111935769B (en) | Poor cell identification method, device and equipment | |
US20150229744A1 (en) | Method and Device for Service Analysis | |
CN105284141B (en) | A kind of method and device of charging | |
CN101507289B (en) | Performance monitoring in a telephone network | |
TW201620320A (en) | Mobile Internet access quality analysis system and method | |
US20050097205A1 (en) | System, method and terminal for measuring the quality of service in a telecommunications network | |
IE83529B1 (en) | Telecommunications network subscriber experience measurement |
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 |