[go: up one dir, main page]

CN109450656A - A kind of charging flow drawing generating method and device - Google Patents

A kind of charging flow drawing generating method and device Download PDF

Info

Publication number
CN109450656A
CN109450656A CN201811645371.XA CN201811645371A CN109450656A CN 109450656 A CN109450656 A CN 109450656A CN 201811645371 A CN201811645371 A CN 201811645371A CN 109450656 A CN109450656 A CN 109450656A
Authority
CN
China
Prior art keywords
port
data
user
time range
target flow
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.)
Pending
Application number
CN201811645371.XA
Other languages
Chinese (zh)
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 CENTURY BROADBAND INTERNET DATA CENTER Co Ltd
Original Assignee
BEIJING CENTURY BROADBAND INTERNET DATA CENTER 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 CENTURY BROADBAND INTERNET DATA CENTER Co Ltd filed Critical BEIJING CENTURY BROADBAND INTERNET DATA CENTER Co Ltd
Priority to CN201811645371.XA priority Critical patent/CN109450656A/en
Publication of CN109450656A publication Critical patent/CN109450656A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/067Generation of reports using time frame reporting
    • 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

Landscapes

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

Abstract

This application discloses a kind of charging flow drawing generating method and devices, are related to Internet communication technology field, and method described herein includes: the user identifier based on user, obtain the port-mark for connecting at least one port of the user;The port-mark of port based on acquisition determines the source flux data that the port generates;For each port, the time range based on acquisition extracts target flow data from the source flux data that the determining port generates;The time range is to intercept the scheduled time range of the target flow data;Target flow data based on extraction generate the flow diagram for being used for charge on traffic.The data on flows of the above method and device, acquisition has intuitive, improves the accuracy rate of charging result, has saved human cost, and improves the efficiency of charging.

Description

A kind of charging flow drawing generating method and device
Technical field
This application involves Internet communication technology fields, more particularly, to a kind of charging flow drawing generating method and device.
Background technique
Internet data center (Internet Data Center, IDC) is that telecommunication department utilizes existing interconnection Netcom Believe that route, bandwidth resources, the standardization telecommunication field grade building environment of foundation provide trust server for enterprise, government, rent And the all-around service of increment correlation etc..
Currently, when Internet data center carries out charging to data on flows, it is necessary first to manually obtain data on flows, later Corresponding expense is determined according to the data on flows manually obtained.The data on flows that aforesaid way obtains lacks intuitive, is utilizing When the data on flows that aforesaid way obtains determines expense, needs to be analyzed and processed a large amount of data on flows, seriously reduce The efficiency of charging, and the mode heavy workload of above-mentioned artificial acquisition data on flows, be easy to appear mistake, waste of manpower cost, And it can further reduce the efficiency of charging.
Summary of the invention
In view of this, the application's is designed to provide a kind of charging flow drawing generating method and device, the flow of acquisition Data have intuitive, improve the accuracy rate of charging result, have saved human cost, and improve the efficiency of charging.
In a first aspect, the embodiment of the present application provides a kind of charging flow drawing generating method characterized by comprising
User identifier based on user obtains the port-mark for connecting at least one port of the user;
The port-mark of port based on acquisition determines the source flux data that the port generates;
For each port, the time range based on acquisition, from the source flux data that the determining port generates Extract target flow data;The time range is to intercept the scheduled time range of the target flow data;
Target flow data based on extraction generate the flow diagram for being used for charge on traffic.
In a kind of possible embodiment, the time range based on acquisition extracts mesh from determining in source flux data Data on flows is marked, is specifically included:
The corresponding initial time of the time range is extracted, and the initial time based on extraction, determined in the port The starting point of flow is intercepted in corresponding source flux data;
The time range corresponding termination time is extracted, and the termination time based on extraction, determined in the port The terminal of flow is intercepted in corresponding source flux data;
According to the determining beginning and end, target flow data are extracted from the source flux data that the port generates.
In a kind of possible embodiment, the initial time for extracting the time range, comprising:
Calculate the duration between the start time of the time range and standard synchronisation time;
Based on the duration, the corresponding initial time of the time range is determined.
In a kind of possible embodiment, after extracting the corresponding target flow data in each port, further includes:
User identifier based on user determines the user terminal address communicated with the user;
The corresponding flow diagram in each port that the user will be connected, is sent to the user terminal address.
In a kind of possible embodiment, the target flow data based on extraction generate the stream for being used for charge on traffic Spirogram, comprising:
Target flow data based on extraction generate waveform diagram, and extract the traffic statistics number of the target flow data According to;
The traffic statistics of waveform diagram and extraction based on generation, generate the flow diagram.
In a kind of possible embodiment, the traffic statistics, comprising: the maximum stream flow in the time range Value.
In a kind of possible embodiment, further includes:
Based on the peak flow values for including in the traffic statistics, the charge on traffic amount of money of the user is determined.
Second aspect, the embodiment of the present application also provide a kind of charging flow diagram generating means characterized by comprising
Module is obtained, for obtaining the user identifier and time range of user;The time range is to intercept the target The scheduled time range of data on flows;It is also used to the user identifier based on user, obtains at least one for connecting the user The port-mark of port
Determining module determines the source flux that each port generates for the port-mark based on each port Data;
Extraction module, for being directed to each port, the time range based on acquisition is generated from the determining port Target flow data are extracted in source flux data;;
Flow diagram generation module generates the flow diagram for being used for charge on traffic for the target flow data based on extraction.
In a kind of possible embodiment, the determining module is specifically used for:
The corresponding initial time of the time range is extracted, and the initial time based on extraction, determined in the port The starting point of flow is intercepted in corresponding source flux data;
The time range corresponding termination time is extracted, and the termination time based on extraction, determined in the port The terminal of flow is intercepted in corresponding source flux data;
According to the determining beginning and end, target flow data are extracted from the source flux data that the port generates.
In a kind of possible embodiment, the determining module is also used to:
Calculate the duration between the start time of the time range and standard synchronisation time;
Based on the duration, the corresponding initial time of the time range is determined.
In a kind of possible embodiment, described device, further includes:
Sending module determines the user terminal address communicated with the user for the user identifier based on user;Also The corresponding flow diagram in each port for that will connect the user, is sent to the user terminal address.
In a kind of possible embodiment, the flow diagram generation module is also used to:
Target flow data based on extraction generate waveform diagram, and extract the traffic statistics number of the target flow data According to;
The traffic statistics of waveform diagram and extraction based on generation, generate the flow diagram.
In a kind of possible embodiment, the traffic statistics, comprising: the maximum stream flow in the time range Value.
In a kind of possible embodiment, described device, further includes:
Charging determining module, for determining the user based on the peak flow values for including in the traffic statistics The charge on traffic amount of money.
The third aspect, the embodiment of the present application also provide a kind of electronic equipment, comprising: processor, memory and bus, it is described Memory is stored with the executable machine readable instructions of the processor, when electronic equipment operation, the processor with it is described By bus communication between memory, the machine readable instructions executed when being executed by the processor it is above-mentioned in a first aspect, or Step in any possible embodiment of first aspect.
Fourth aspect, the embodiment of the present application also provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter, which executes above-mentioned in a first aspect, or first aspect when being run by processor Step in any possible embodiment.
A kind of charging flow drawing generating method and device provided by the embodiments of the present application, the user identifier based on user, really Surely the source flux data that at least one port of the user generates are connected, for each port, from the determining port In the source flux data of generation, the time range based on acquisition extracts the corresponding target flow data in the port, and generates and be used for The flow diagram of charge on traffic.Compared with the data on flows in the prior art for needing basis manually to obtain determines corresponding expense, The data on flows of acquisition has intuitive, improves the accuracy rate of charging result, has saved human cost, and improve charging Efficiency.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of flow chart of charging flow drawing generating method provided by the embodiment of the present application;
Fig. 2 shows a kind of structural schematic diagrams of charging flow diagram generating means provided by the embodiment of the present application;
Fig. 3 shows the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application Middle attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only It is some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is real The component for applying example can be arranged and be designed with a variety of different configurations.Therefore, below to the application's provided in the accompanying drawings The detailed description of embodiment is not intended to limit claimed scope of the present application, but is merely representative of the selected reality of the application Apply example.Based on embodiments herein, those skilled in the art institute obtained without making creative work There are other embodiments, shall fall in the protection scope of this application.
Internet data center IDC is that telecommunication department utilizes existing internet communication route and bandwidth resources, foundation Telecommunication field grade building environment is standardized, provides the complete of the related fields such as trust server, rental and increment for enterprise, government Orientation service.
Currently, when Internet data center carries out charging to data on flows, it is necessary first to manually obtain data on flows, at present The data on flows generated using the network port that cacti software monitors user connects.The php language realization of cacti software, Its major function is serviced with Simple Network Management Protocol (Simple Network Management Protocol, SNMP) Data on flows is obtained, then stores data on flows with RRDtool (Round Robin Database Tool), when user needs When checking data on flows, need manually from cacti software obtain data on flows, manually generated traffic statistics, and The expense that user uses port to generate is calculated according to traffic statistics.
It is existing using cacti software monitors user connect the network port generate data on flows and to above-mentioned flow The method that data carry out charging, has the disadvantage that
(1) when user needs to check data on flows, according to the flow diagram that RRDtool is generated, user is manually intercepted The target flow data for needing to check, the process manually intercepted, when being that selection user needs to check that data on flows is corresponding Between flow diagram in range, manual screenshot manually intercepts target flow number currently without the screenshot process of automation later It is higher according to the artificial and time cost of consuming;Due to intercepting target flow data by the way of manually, if a large amount of use Family needs to check the data on flows of oneself, and administrative staff need to waste screenshot one by one of many times, and probably grasp It makes mistakes, leads to the target flow data for obtaining mistake;
(2) after intercepting target flow data, it is also necessary to manually generated traffic statistics, and according to traffic statistics The expense that user uses port to generate is calculated, since the data on flows of acquisition lacks intuitive, what is obtained using aforesaid way When data on flows determines expense, needs to be analyzed and processed a large amount of data on flows, seriously reduce the efficiency of charging.
In view of this, the application's is designed to provide data on flows acquisition methods and device, charging result is improved Accuracy rate has saved human cost, and improves the efficiency of charging.
To be generated to a kind of charging flow diagram disclosed in the embodiment of the present application first convenient for understanding the present embodiment Method describes in detail.
Embodiment one
As shown in Figure 1, being a kind of charging flow drawing generating method provided by the embodiment of the present application one.Execute the charging stream The equipment that the equipment of spirogram generation method can be to provide Internet communication services can be and exclusively carry out the generation of charging flow diagram Electronic equipment, be also possible to carry out charge on traffic electronic equipment.It is below to exclusively carry out charging flow diagram from executing subject The angle of the electronic equipment of generation is illustrated charging flow drawing generating method provided by the embodiment of the present application one.This Shen Please embodiment one provide charging flow drawing generating method, comprising:
S101: the user identifier based on user obtains the port-mark for connecting at least one port of the user.
The user identifier of above-mentioned user may include that the user name of user, user identifier number (Identity, ID) etc. are appointed One may indicate that the identification information of user identity.One user can open up in server end for connecting and providing data service Several ports determine the end for connecting at least one port of the user therefore, it is necessary to the user identifier based on above-mentioned user Mouth mark.Here at least one port can be all of the port that the user opens up in server end, can be as the user In the section ports that server end opens up.
Illustratively, on the basis of the data on flows that the network port connected using cacti software monitors user is generated, Cacti software can constantly be stored the data on flows that each port generates in a manner of flow diagram, and be generated for each port Data on flows corresponding flow diagram number, formed flow map logo (local_graph_id).It therefore, can be based on user's User identifier determines the corresponding local_graph_id of data on flows that at least one port for connecting the user generates.And And can establish database, user identifier and local_graph_id are stored into database, the use of subsequent step is facilitated.
S102: the port-mark of the port based on acquisition determines the source flux data that the port generates.
Specifically, customer flow figure can be obtained into the administration page of user traffic data by cacti software Administration authority, to obtain the flow diagram for obtaining cacti Software Create and storing.
S103: each port, the time range based on acquisition, the source flux number generated from the determining port are directed to According to middle extraction target flow data;The time range is to intercept the scheduled time range of the target flow data.
Specifically, the corresponding target flow data in the port can be extracted by following step:
Step 1 extracts the corresponding initial time of the time range, and the initial time based on extraction, determines The starting point of flow is intercepted in the corresponding source flux data in the port.
In order to obtain synchronous, readily identified time range, extracting the corresponding initial time of the time range can To be carried out by following step: calculating the duration between the start time of the time range and standard synchronisation time;Based on institute Duration is stated, determines the corresponding initial time of the time range
Illustratively, timestamp, which can be used, indicates the corresponding initial time of the time range, by the time range Start time be converted into the corresponding timestamp of start time of time range, specifically, the available time range Start time, such as 12:00 on January 1st, 2018 and standard synchronisation time, such as January 1 (00:00:00GMT) in 1970. The standard synchronisation time is subtracted using the start time of the time range, start time and the standard for obtaining the time range are same Walk the duration between the time.And above-mentioned duration is converted into number of seconds, obtain the corresponding initial time of the time range.
Step 2 is extracted the time range corresponding termination time, and the termination time based on extraction, is determined The terminal of flow is intercepted in the corresponding source flux data in the port.
Likewise, extracting the corresponding termination of the time range to obtain synchronous, readily identified time range Time can be carried out by following step: calculate the duration between the end time of the time range and standard synchronisation time; Based on the duration, the time range corresponding termination time is determined
Illustratively, timestamp, which can be used, indicates the time range corresponding termination time, by the time range End time be converted into the corresponding timestamp of end time of time range, specifically, the available time range End time, such as 12:00 on January 1st, 2018 and standard synchronisation time, such as January 1 (00:00:00GMT) in 1970. The standard synchronisation time is subtracted using the end time of the time range, end time and the standard for obtaining the time range are same Walk the duration between the time.And above-mentioned duration is converted into number of seconds, obtain the time range corresponding termination time.
Step 3, according to the determining beginning and end, extract target flow from the source flux data that the port generates Data.
Specifically, background script can be used by computer shell (shell), to the source flux of cacti software acquisition Data, intercept the corresponding initial time of the time range, such as the corresponding timestamp of start time of time range and described It time range corresponding termination time, such as the data on flows between the corresponding timestamp of end time of time range, obtains Target flow data.
S104: the target flow data based on extraction generate the flow diagram for being used for charge on traffic.
Target flow data of the following step based on extraction can be used, generate the flow diagram for being used for charge on traffic:
Target flow data based on extraction generate waveform diagram, and extract the traffic statistics number of the target flow data According to;The traffic statistics of waveform diagram and extraction based on generation, generate the flow diagram.
Specifically, the target flow data based on extraction, and according to the time range, generate waveform diagram.For example, described Time range is, using minute as the unit time, every 5 minutes or 10 minutes, to be drawn according to real-time traffic data in the case where one day A point is made, to generate waveform diagram.In another example the time range be one month in the case where, using hour as the unit time, Every 1 hour or 2 hours, a point is drawn according to real-time traffic data, to generate waveform diagram.
Also, each real-time traffic data, obtain peak flow values in the time range.It include institute to extract State the traffic statistics of the peak flow values in time range.Above-mentioned traffic statistics are in addition to including in the time range Peak flow values, can also include the time range in average flow rate value.
Later, the flow diagram for being used for charge on traffic is generated, above-mentioned flow diagram includes the waveform diagram generated and the flow of extraction Statistical data.User can get information about the data on flows in the time range by waveform diagram, and can be based on institute The peak flow values for including in traffic statistics are stated, determine the charge on traffic amount of money of the user.Without to a large amount of flow Data are analyzed and processed, and substantially increase the efficiency and accuracy that charging is carried out to data on flows.
In a kind of possible embodiment, after obtaining target flow data, it is also based on user's mark of user Know, determines the user terminal address communicated with the user;The corresponding flow in each port that the user will be connected Figure, is sent to the user terminal address.
Illustratively, the user terminal address may include email address, wechat address etc. it is any it is common communicatedly Location.
Specifically, for example, the user terminal address be email address in the case where, can be by the corresponding mailbox of each user Address stores in the database.For each user, after the target flow data for intercepting the user, by shell according to this The email address of user generates the html file of mail, and the target flow data of interception are inserted in above-mentioned html file, thus The target flow data of interception are sent to corresponding user by the email address recorded in database.
By the embodiment of the present application, data on flows acquisition side described in the embodiment of the present application is may be implemented in the operation maintenance personnel of IDC The exploitation page of method carries out the management of ownership goal data on flows, in the exploitation page, adds the user identifier, each of user The port-mark and user that connect the port of user need to obtain the time range of target flow data, and soft based on cacti The corresponding data on flows in port for each connection user that part generates, interception obtain target flow data, later, can will cut The target flow data taken pass through the mailing addresses such as the email address recorded in database and are sent to corresponding user.To convenient User gets information about the data on flows in the time range by waveform diagram, and facilitating makes in notice user preset time range The expense generated with the data on flows of port.
Further, in a kind of possible embodiment, it is also based on the user identifier of user, is obtained and the use The corresponding preset time interval of the user identifier at family.Every the preset time interval, the user identifier based on user is obtained Take the port-mark for connecting at least one port of the user.And the port-mark of the port based on acquisition, determine the end The source flux data that mouth generates;For each port, the time range based on acquisition, the source generated from the determining port Target flow data are extracted in data on flows;The time range is the scheduled time model for intercepting the target flow data It encloses;Target flow data based on extraction generate the flow diagram for being used for charge on traffic.
It specifically, can be by the user identifier and the use of the user of each user or priority support for needing to charge The corresponding preset time interval of the user identifier at family, each user need to obtain the corresponding time range of target flow data, And the storage of the related datas such as port-mark (such as local_graph_id) of each user is into database.And use foot Any mode timing such as this is polled above-mentioned database.For each user, obtains the user and need to obtain target stream The preset time interval for measuring data, when reaching above-mentioned preset time interval, according to the user identifier of the user, the user User identifier corresponding preset time range and the user port-mark, intercept user needed for target flow data. For example, can determine the target flow data in user 3 months, and based on the target flow in user 3 months every three months Data generate the flow diagram for carrying out charging to the flow used in user 3 months.It can also be according to comprising being flowed in 3 months The flow diagram for measuring statistical data determines that user uses the expense of the 3 months datas on flows generated in port.
Charging flow drawing generating method provided by the embodiments of the present application needs basis manually to obtain in the prior art Data on flows determines that corresponding expense is compared, and the data on flows of acquisition has intuitive, improves the accuracy rate of charging result, saves About human cost, and improve the efficiency of charging.
Based on the same technical idea, the embodiment of the present application also provide a kind of charging flow diagram generating means, electronic equipment, And computer storage medium etc., for details, reference can be made to following embodiments.
Embodiment two
As shown in Fig. 2, being a kind of charging flow diagram generating means 200 that the embodiment of the present application two provides, comprising:
Module 201 is obtained, for obtaining the user identifier and time range of user;The time range is to intercept the mesh Mark the scheduled time range of data on flows;It is also used to the user identifier based on user, obtains and connects at least the one of the user The port-mark of a port
Determining module 202 determines the source stream that each port generates for the port-mark based on each port Measure data;
Extraction module 203, for being directed to each port, the time range based on acquisition is produced from the determining port Target flow data are extracted in raw source flux data;;
Flow diagram generation module 204 generates the flow for being used for charge on traffic for the target flow data based on extraction Figure.
In a kind of possible embodiment, the determining module 202 is specifically used for:
The corresponding initial time of the time range is extracted, and the initial time based on extraction, determined in the port The starting point of flow is intercepted in corresponding source flux data;
The time range corresponding termination time is extracted, and the termination time based on extraction, determined in the port The terminal of flow is intercepted in corresponding source flux data;
According to the determining beginning and end, target flow data are extracted from the source flux data that the port generates.
In a kind of possible embodiment, the determining module 202 is also used to:
Calculate the duration between the start time of the time range and standard synchronisation time;
Based on the duration, the corresponding initial time of the time range is determined.
In a kind of possible embodiment, described device 200, further includes:
Sending module 205, for the user identifier based on user, with determining the user terminal communicated with the user Location;It is also used to connect the corresponding flow diagram in each port of the user, is sent to the user terminal address.
In a kind of possible embodiment, the flow diagram generation module 204 is also used to:
Target flow data based on extraction generate waveform diagram, and extract the traffic statistics number of the target flow data According to;
The traffic statistics of waveform diagram and extraction based on generation, generate the flow diagram.
In a kind of possible embodiment, the traffic statistics, comprising: the maximum stream flow in the time range Value.
In a kind of possible embodiment, described device 200, further includes:
Charging determining module 206, for determining the use based on the peak flow values for including in the traffic statistics The charge on traffic amount of money at family.
Data on flows acquisition device provided by the embodiments of the present application is needed in the prior art according to the stream manually obtained Amount data determine that corresponding expense is compared, and the data on flows of acquisition has intuitive, improves the accuracy rate of charging result, save Human cost, and improve the efficiency of charging.
Embodiment three
Fig. 3 shows a kind of electronic equipment 300 provided by the embodiment of the present application, including processor 301, memory 302, Bus 303, the processor 301 and memory 302 are connected by bus 303;Processor 301 is for executing in memory 302 The executable module of storage, such as computer program.
Wherein, memory 302 may include high-speed random access memory (Random Access Memory, RAM), It may further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
It is total that bus 303 can be industry standard architecture (Industry Standard Architecture, ISA) Line, external equipment interconnection (Peripheral Component Interconnect, PCI) bus expand industrial standard summary Structure (Extended Industry Standard Architecture, EISA) bus etc..The bus can be divided into address Bus, data/address bus, control bus etc..Only to be indicated with a four-headed arrow in Fig. 3 convenient for indicating, it is not intended that only A piece bus or a type of bus.
Wherein, memory 302 is for storing program, and the processor 301 executes the journey after receiving and executing instruction Sequence, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle In device 301, or realized by processor 301.
Processor 301 may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realization Each step of method can be completed by the integrated logic circuit of the hardware in processor 301 or the instruction of software form.On The processor 301 stated can be general processor, including central processing unit (Central Processing Unit, CPU), net Network processor (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing At programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.It may be implemented or execute the disclosed each side in the embodiment of the present invention Method, step and logic diagram.General processor can be microprocessor or the processor is also possible to any conventional processing Device etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processor and execute completion, Or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory, dodge It deposits, read-only memory, this fields such as programmable read only memory or electrically erasable programmable memory, register are mature to deposit In storage media.The storage medium is located at memory 302, and processor 301 reads the information in memory 302, complete in conjunction with its hardware The step of at above-mentioned charging flow drawing generating method.
Electronic equipment provided by the embodiments of the present application, it is true with the data on flows in the prior art for needing basis manually to obtain Fixed corresponding expense is compared, and the data on flows of acquisition has intuitive, improves the accuracy rate of charging result, saved manpower at This, and improve the efficiency of charging.
A kind of charging flow diagram generating means provided in an embodiment of the present invention and electronic equipment, and it is provided by the above embodiment A kind of charging flow drawing generating method technical characteristic having the same reaches identical so also can solve identical technical problem Technical effect.
Example IV
Present embodiment discloses a kind of computer readable storage medium, calculating is stored on the computer readable storage medium Machine program, the computer program execute the step in the charging flow drawing generating method of above-described embodiment when being run by processor.
The computer program product of charging flow drawing generating method is carried out provided by the embodiment of the present application, including is stored The computer readable storage medium of the executable non-volatile program code of processor, the instruction that said program code includes are available In executing previous methods method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, the application Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the application State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the application Technical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen It please be described in detail, those skilled in the art should understand that: anyone skilled in the art Within the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution, should all cover the protection in the application Within the scope of.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (10)

1. a kind of charging flow drawing generating method characterized by comprising
User identifier based on user obtains the port-mark for connecting at least one port of the user;
The port-mark of port based on acquisition determines the source flux data that the port generates;
For each port, the time range based on acquisition is extracted from the source flux data that the determining port generates Target flow data;The time range is to intercept the scheduled time range of the target flow data;
Target flow data based on extraction generate the flow diagram for being used for charge on traffic.
2. the method according to claim 1, wherein the time range based on acquisition, from determining source flux Target flow data are extracted in data, are specifically included:
The corresponding initial time of the time range is extracted, and the initial time based on extraction, determined corresponding in the port Source flux data in intercept flow starting point;
The time range corresponding termination time is extracted, and the termination time based on extraction, determined corresponding in the port Source flux data in intercept flow terminal;
According to the determining beginning and end, target flow data are extracted from the source flux data that the port generates.
3. according to the method described in claim 2, it is characterized in that, the initial time for extracting the time range, comprising:
Calculate the duration between the start time of the time range and standard synchronisation time;
Based on the duration, the corresponding initial time of the time range is determined.
4. the method according to claim 1, wherein extract the corresponding target flow data in each port it Afterwards, further includes:
User identifier based on user determines the user terminal address communicated with the user;
The corresponding flow diagram in each port that the user will be connected, is sent to the user terminal address.
5. the method according to claim 1, wherein the target flow data based on extraction, generation are used for The flow diagram of charge on traffic, comprising:
Target flow data based on extraction generate waveform diagram, and extract the traffic statistics of the target flow data;
The traffic statistics of waveform diagram and extraction based on generation, generate the flow diagram.
6. according to the method described in claim 5, it is characterized in that, the traffic statistics, comprising: in the time range Peak flow values.
7. according to the method described in claim 6, it is characterized by further comprising:
Based on the peak flow values for including in the traffic statistics, the charge on traffic amount of money of the user is determined.
8. a kind of charging flow diagram generating means characterized by comprising
Module is obtained, for obtaining the user identifier and time range of user;The time range is to intercept the target flow The scheduled time range of data;It is also used to the user identifier based on user, obtains at least one port for connecting the user Port-mark
Determining module determines the source flux data that each port generates for the port-mark based on each port;
Extraction module, for being directed to each port, the time range based on acquisition, the source stream generated from the determining port It measures and extracts target flow data in data;;
Flow diagram generation module generates the flow diagram for being used for charge on traffic for the target flow data based on extraction.
9. a kind of electronic equipment characterized by comprising processor, memory and bus, the memory are stored with the place The executable machine readable instructions of device are managed, when electronic equipment operation, pass through bus between the processor and the memory Communication executes the charging flow diagram as described in claim 1 to 7 is any when the machine readable instructions are executed by the processor The step of method of generation.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer journey on the computer readable storage medium Sequence executes the method that the charging flow diagram as described in claim 1 to 7 is any generates when the computer program is run by processor The step of.
CN201811645371.XA 2018-12-30 2018-12-30 A kind of charging flow drawing generating method and device Pending CN109450656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811645371.XA CN109450656A (en) 2018-12-30 2018-12-30 A kind of charging flow drawing generating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811645371.XA CN109450656A (en) 2018-12-30 2018-12-30 A kind of charging flow drawing generating method and device

Publications (1)

Publication Number Publication Date
CN109450656A true CN109450656A (en) 2019-03-08

Family

ID=65539816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811645371.XA Pending CN109450656A (en) 2018-12-30 2018-12-30 A kind of charging flow drawing generating method and device

Country Status (1)

Country Link
CN (1) CN109450656A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172751A (en) * 2020-09-11 2022-03-11 北京金山云网络技术有限公司 Bandwidth bill generation method and device, electronic equipment and medium
CN116192542A (en) * 2022-12-06 2023-05-30 中国联合网络通信集团有限公司 Charging method and device for data traffic and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110149091A1 (en) * 2005-07-26 2011-06-23 Frank Clemente Internet direct device
CN104461385A (en) * 2014-12-02 2015-03-25 国电南瑞科技股份有限公司 Multi-hard disk balanced storage method with self-adaptive port traffic
CN105450468A (en) * 2015-11-23 2016-03-30 中国电信股份有限公司 IDC user information management system and method
CN105743726A (en) * 2014-12-10 2016-07-06 中兴通讯股份有限公司 Traffic statistics and analysis method for feature data message and corresponding device
CN107018040A (en) * 2017-02-27 2017-08-04 杭州天宽科技有限公司 A kind of port data collection, the implementation method for caching and showing
CN107888456A (en) * 2017-12-04 2018-04-06 北京百度网讯科技有限公司 Method and device for monitoring port data volume
CN107979506A (en) * 2017-10-30 2018-05-01 阿里巴巴集团控股有限公司 Flow obtains and high in the clouds display systems, method, apparatus and equipment
CN108400909A (en) * 2018-02-12 2018-08-14 腾讯科技(深圳)有限公司 A kind of flow statistical method, device, terminal device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110149091A1 (en) * 2005-07-26 2011-06-23 Frank Clemente Internet direct device
CN104461385A (en) * 2014-12-02 2015-03-25 国电南瑞科技股份有限公司 Multi-hard disk balanced storage method with self-adaptive port traffic
CN105743726A (en) * 2014-12-10 2016-07-06 中兴通讯股份有限公司 Traffic statistics and analysis method for feature data message and corresponding device
CN105450468A (en) * 2015-11-23 2016-03-30 中国电信股份有限公司 IDC user information management system and method
CN107018040A (en) * 2017-02-27 2017-08-04 杭州天宽科技有限公司 A kind of port data collection, the implementation method for caching and showing
CN107979506A (en) * 2017-10-30 2018-05-01 阿里巴巴集团控股有限公司 Flow obtains and high in the clouds display systems, method, apparatus and equipment
CN107888456A (en) * 2017-12-04 2018-04-06 北京百度网讯科技有限公司 Method and device for monitoring port data volume
CN108400909A (en) * 2018-02-12 2018-08-14 腾讯科技(深圳)有限公司 A kind of flow statistical method, device, terminal device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张承: "基于Cacti的网络性能监测实践", 《电信技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114172751A (en) * 2020-09-11 2022-03-11 北京金山云网络技术有限公司 Bandwidth bill generation method and device, electronic equipment and medium
CN116192542A (en) * 2022-12-06 2023-05-30 中国联合网络通信集团有限公司 Charging method and device for data traffic and storage medium
CN116192542B (en) * 2022-12-06 2024-06-04 中国联合网络通信集团有限公司 Charging method and device for data traffic and storage medium

Similar Documents

Publication Publication Date Title
CN110532168B (en) Full-link interface pressure measurement method and device, computer equipment and storage medium
CN108647699A (en) task image processing method, device, equipment and storage medium
CN108173727A (en) A kind of intelligent appliance method of network entry and equipment
CN108170538A (en) A kind of information processing method, device and electronic equipment
CN109508404A (en) Repair instructional video management method, device, terminal device and storage medium
CN109474603A (en) Data packet capturing processing method and terminal device
CN109450656A (en) A kind of charging flow drawing generating method and device
CN108055167B (en) Application-oriented interface communication protocol modeling method and device
CN109086289A (en) A kind of media data processing method, client, medium and equipment
CN109784795A (en) Inventory status calculation method, device, equipment and medium
CN107508687A (en) A kind of method, apparatus of charging, Internet of Things application platform and accounting server
CN107633462A (en) Power marketing checking method and terminal device
CN107566513A (en) Test equipment DOS environmental data collecting methods and system
CN103632522A (en) Mobile phone meter reading system
CN102984242A (en) Automatic identification method and device of application protocols
CN108073699B (en) Big data aggregation analysis method and device
CN106131238A (en) The sorting technique of IP address and device
CN105653207B (en) A kind of real time parsing method and system of flash interface information
CN103997419A (en) Universal template configuration management method and apparatus compatible with multiple services
CN117176802A (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN105610655A (en) Router flow monitoring and analyzing method
CN109739626A (en) A kind of workflow engine and the access control method based on workflow engine
CN108021394A (en) PCM signal acquisition method and device
CN110493306A (en) Information-pushing method and client, server-side, system
Cleary et al. High precision traffic 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190308

RJ01 Rejection of invention patent application after publication