Summary of the invention
The present invention provides a kind of traffic classification control method, device, system, equipment and storage medium, it is intended to solve existingFlow control granularity is limited by APN quantity in some traffic classification methods, leads to the flow control that only can be realized coarse-grainSystem.
In a first aspect, the present invention provides a kind of traffic classification control method, it is applied to core network system, core network systemSystem includes: public data network gateway, classified service device and accounting server;Method includes: public data network gateway from using journeyIdentification information is extracted in the user network request that sequence is initiated;Public data network gateway is classified according to identification information and application programTable determines the affiliated applicating category of application program, wherein application program classification chart is the mapping table of identification information and applicating category;It is publicStart-stop instruction is obtained according to the affiliated applicating category of application program and command mappings table with Data Network Gateway, wherein command mappings tableFor the mapping table of start-stop instruction and applicating category, start-stop instruction is divided into open command and halt instruction;When start-stop instruction is unlatchingWhen instruction, public data network gateway transmits user network request, and requests corresponding consumed flow to be included in charging user networkThe first account on server, the first account are used for the customer flow rate data of the affiliated applicating category of statistics application program.
In a kind of traffic classification control method provided by the invention, to the configuration application program classification of public data network gatewayTable and command mappings table, when application program is connected to the network by public data network gateway requests, public data network gateway is extractedUser network requests identification information, determines the affiliated applicating category of application program according to identification information and application program classification chart,Public data network gateway obtains start-stop instruction further according to the affiliated applicating category of application program and command mappings table, when start-stop instruction isWhen open command, public data network gateway transmits user network request, and requests corresponding consumed flow to be included in user networkThe first account on accounting server is realized and carries out customer flow rate data statistics with applicating category belonging to application program.
Optionally, public data network gateway extracts identification information from the user network request that application program is initiated, and hasBody includes: the unified resource positioning for requesting user network to carry out application layer in depth data packet detection acquisition seven layer protocol of networkSymbol and/or Internet protocol address;Using uniform resource locator and/or Internet protocol address as identification information.
In a kind of traffic classification control method provided by the invention, asked by depth data packet Detection and Extraction user networkThe uniform resource locator and/or Internet protocol address of application layer in seven layer protocol of network are asked, and unified resource is positionedSymbol and/or Internet protocol address are used as identification information, identification of the realization to Application Type, further according to identification information into oneStep carries out traffic classification control, realizes and carries out customer flow rate data statistics with applicating category belonging to application program.
Optionally, command mappings table is obtained according to the residual flow data of applicating category, and residual flow data are according to chargingThe customer flow rate data of the affiliated applicating category of the application program of server statistics and workable data on flows obtain.
In a kind of traffic classification control method provided by the invention, belonging to the application program that is counted according to accounting serverThe customer flow rate data of applicating category and workable data on flows obtain residual flow data, according to the residual stream of applicating categoryIt measures data and obtains command mappings table, in turn, command mappings table is the mapping table of start-stop instruction and applicating category, passes through residual flowData generate command mappings table, to determine whether to open the network request of application program initiation, realize the network to application programThe control of request is realized in turn and carries out flow control with applicating category belonging to application program.
Second aspect, the present invention provide a kind of traffic classification control method, are applied to core network system, core network systemSystem includes: public data network gateway, classified service device and accounting server;It include: classified service device according to application class informationGenerate application program classification chart, wherein application program classification chart is the mark letter that application program is extracted from user network requestThe mapping table of breath and applicating category;Classified service device generates command mappings table according to the residual flow data of applicating category, whereinCommand mappings table is the mapping relations of start-stop instruction and applicating category, the application that residual flow data are counted according to accounting serverThe customer flow rate data of the affiliated applicating category of program and workable data on flows obtain;Classified service device sends command mappings tableWith application program classification chart so that public data network gateway is determining application program according to identification information and application program classification chartAfter affiliated applicating category;Start-stop instruction is obtained further according to the affiliated applicating category of application program and command mappings table, when start-stop refers toWhen order is open command, public data network gateway transmits user network request, and user network is requested corresponding consumed flowThe first account being included on accounting server, the first account are used for the customer flow rate number of the affiliated applicating category of statistics application programAccording to.
In a kind of traffic classification control method provided by the invention, classified service device is answered according to the generation of application class informationWith class of procedures table, command mappings table is generated according to the residual flow data of applicating category, and is sent to public data network gatewayCommand mappings table and application program classification chart, so that identification information of the public data network gateway according to application program, command mappingsTable and application program classification chart, which are realized, carries out customer flow rate data statistics with applicating category belonging to application program.
Optionally, before classified service device generates application program classification chart according to application class information, further includes: classificationServer obtains application class information with predetermined period.
In a kind of traffic classification control method provided by the invention, classified service device obtains application class with predetermined periodInformation, classified service device generate application program classification chart according to application class information, more new application classification chart may be implemented,To adapt to the traffic classification control strategy of different phase, set without adjusting the whole network each province wireless access side data and vehicle electronicsStandby configuration, classification schemes adjustment are more flexible.
Public data network gateway is introduced below, implementing principle and technical effect and above method principle and technologyEffect is similar, and details are not described herein again.
The third aspect, the present invention provide a kind of public data network gateway, comprising: extraction module is used for from application program instituteIdentification information is extracted in the user network request of initiation;Determining module, for true according to identification information and application program classification chartDetermine the affiliated applicating category of application program, wherein application program classification chart is the mapping table of identification information and applicating category;Obtain mouldBlock, for obtaining start-stop instruction according to the affiliated applicating category of application program and command mappings table, command mappings table is start-stop instructionWith the mapping table of applicating category, wherein start-stop instruction is divided into open command and halt instruction;It is included in module, for referring to when start-stopWhen order is open command, public data network gateway transmits user network request, and user network is requested corresponding consumed flowThe first account being included on accounting server, the first account are used for the customer flow rate number of the affiliated applicating category of statistics application programAccording to.
Optionally, extraction module specifically includes: requesting user network to carry out seven layers of network of acquisition of the detection of depth data packetThe uniform resource locator and/or Internet protocol address of application layer in agreement;By uniform resource locator and/or internet protocolAddress is discussed as identification information.
Optionally, command mappings table is obtained according to the residual flow data of applicating category, and residual flow data are according to chargingThe customer flow rate data of the affiliated applicating category of the application program of server statistics and workable data on flows obtain.
Classified service device is introduced below, implementing principle and technical effect and above method principle and technical effectSimilar, details are not described herein again.
Fourth aspect, the present invention provide a kind of classified service device, comprising: generation module, for according to application class informationGenerate application program classification chart, wherein application program classification chart is the mark letter that application program is extracted from user network requestThe mapping table of breath and applicating category;Generation module is also used to generate command mappings table according to the residual flow data of applicating category,Wherein, command mappings table is the mapping relations of start-stop instruction and applicating category, and residual flow data are counted according to accounting serverThe affiliated applicating category of application program customer flow rate data and workable data on flows obtain;Sending module, for sendingCommand mappings table and application program classification chart, so that public data network gateway is true according to identification information and application program classification chartAfter determining the affiliated applicating category of application program;Start-stop is obtained further according to the affiliated applicating category of application program and command mappings table to refer toIt enables, when start-stop instruction is open command, public data network gateway transmits user network request, and user network is requested to correspond toConsumed flow be included in the first account on accounting server, the first account disappears for the affiliated applicating category of statistics application programTake data on flows.
Optionally, classified service device further include: update module, for obtaining application class information with predetermined period.
Core network system is introduced below, implementing principle and technical effect and above method principle and technology are imitatedSeemingly, details are not described herein again for fruit.
5th aspect, the present invention provide a kind of core network system, comprising: public data network net involved in the third aspectIt closes, classified service device and accounting server involved in fourth aspect;Public data network gateway and classified service device communicate to connect,Classified service device and accounting server communication connection.
6th aspect, the present invention provide a kind of electronic equipment characterized by comprising at least one processor and storageDevice;Wherein, memory stores computer executed instructions;The computer execution that at least one processor executes memory storage refers toIt enables, so that at least one processor executes the traffic classification control method that first aspect and its optinal plan are related to.
7th aspect, the present invention provide a kind of computer readable storage medium, which is characterized in that computer-readable storage mediumIt is stored with computer executed instructions in matter, when processor executes computer executed instructions, realizes first aspect and its optional sideThe traffic classification control method that case is related to.
Traffic classification control method, device, system, equipment and storage medium provided by the invention, in traffic classification controlIn method processed, classified service device is to public data network gateway sending application class of procedures table and command mappings table, so that public numberThe configuration that application program classification chart and command mappings table are completed according to net gateway, when application program passes through public data network gateway requestsWhen network connection, public data network gateway extracts user network and requests identification information, according to identification information and application program pointClass table determines that the affiliated applicating category of application program, public data network gateway are reflected further according to the affiliated applicating category of application program and instructionFiring table obtains start-stop instruction, and when start-stop instruction is open command, public data network gateway transmits user network request, and will useNetwork request corresponding consumed flow in family is included in the first account on accounting server, and the first account is used for statistics application program instituteBelong to the customer flow rate data of applicating category, accounting server is according to the customer flow rate data of the affiliated applicating category of application program and canThe data on flows used obtains residual flow data, and residual flow data are sent to classified service device, so that classified serviceDevice updates command mappings table according to the residual flow data of applicating category, and realization is disappeared with applicating category belonging to application programTake data on flows statistics, more, classification quantity is more abundant for classification stage granularity.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present inventionIn attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment isA part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the artEvery other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
The term being applied to is explained below:
DPI: depth data packet detects (Deep packet inspection), refers to that a kind of network technology, general networking are setStandby only to check Ethernet head, the head IP, without analyzing the content inside TCP/UDP, this network technology is referred to as shallowData packet detection;Corresponding DPI can check the content inside TCP/UDP, so referred to as depth data packet detects, for notSame network application layer load (such as HTTP, DNS etc.) carries out depth detection, determines it by the payload detection to messageLegitimacy.
URL: uniform resource locator (Uniform Resource Locator), to the money that can be obtained from internetThe position in source and a kind of succinct expression of access method, are the addresses of standard resource on internet.
IP address: Internet protocol address (Internet Protocol Address) refers to a kind of system that IP agreement providesOne address format, it is one logical address of each network and each host assignment on internet, is shielded with thisThe difference of physical address.
Traffic classification control method provided by the invention, it is intended to solve flow control particle in existing traffic classification methodDegree is limited by APN quantity, leads to the flow control that only can be realized coarse-grain.
Fig. 1 is the structural schematic diagram of present invention traffic classification control system shown according to an exemplary embodiment.Such as Fig. 1Shown, traffic classification control system includes public data network gateway 100, classified service device 200 and accounting server 300.Wherein,Public data network gateway 100 and classified service device 200 communicate to connect, 300 communication link of classified service device 200 and accounting serverIt connects.
When the work of traffic classification control system, accounting server 300 is according to the current consumption data on flows of applicating categoryResidual flow data are obtained with workable data on flows, and residual flow data are sent to classified service device 200.Classification clothesDevice 200 be engaged according to residual flow data generation command mappings table, and command mappings table is sent to public data network gateway 100.In addition, classified service device 200 generates application program classification chart according to application class information, and application program classification chart is sent toPublic data network gateway 100, so that public data network gateway 100 completes the configuration of application program classification chart and command mappings table.
Network is initiated to public data network gateway 100 by base station 400 when the application program being located on car-mounted terminal 500 to askWhen asking, public data network gateway 100 extracts user network and requests identification information, finds out from application program classification chart and userThe corresponding applicating category of the identification information of network request, to determine applicating category belonging to application program.Public data network gatewayIt finds out from command mappings table and is instructed with start-stop corresponding to application program again.When start-stop instruction is open command, public numberAccording to the transmission user network request of net gateway, and corresponding consumed flow is requested to be included in first on accounting server user networkAccount, wherein the first account is the billing accounts being arranged on accounting server 300, for application belonging to statistics application programThe customer flow rate data of classification, and then realize and customer flow rate data statistics is carried out with applicating category belonging to application program.
Fig. 2 is the interaction schematic diagram of present invention traffic classification control method shown according to an exemplary embodiment.Such as Fig. 2Shown, traffic classification control method provided in this embodiment includes:
S101, classified service device are to public data network gateway sending application class of procedures table and command mappings table.
More specifically, application program classification chart is the identification information of application program and the mapping table of applicating category, instruction is reflectedFiring table is the mapping table of start-stop instruction and applicating category.Wherein, classified service device obtains application class information with predetermined period, pointClass server generates application program classification chart according to the classification information that user inputs.If being increased newly in application program classification chart and applying classNot, then newly-increased applicating category is sent to accounting server, and client-server is passed through to accounting server from payment main bodyOrder the set meal flow of newly-increased applicating category.
Such as: obtain user input classification information, by application program be divided into digital map navigation class, multimedia recreation application class,Map file updates class, mobile terminal downloads software upgrading class (Firmware Over-the-Air, abbreviation FOTA) in the air, anti-It steals tracking class, long-range vehicle condition information acquisition class, long-range vehicle control class and code key and exchanges class.Amap, Baidu map etc. are answeredWith class of procedures to digital map navigation class.The application programs such as Ali's music, Himalaya are sorted out to multimedia recreation application class.RespectivelyClass vehicular applications program passes through vehicle-mounted client identification module (Subscriber Identity Module, abbreviation SIM) access fortuneSeek quotient's network.
S102, public data network gateway extract identification information from the user network request that application program is initiated.
More specifically, application program initiates network request, and network request is sent to public data network gateway, public numberIdentification information is extracted from network request according to net gateway, for identification the applicating category of application program.
As a kind of specific embodiment for extracting network application request identification information, public data network gateway is to userNetwork request carries out the uniform resource locator and/or internet that the detection of depth data packet obtains application layer in seven layer protocol of networkProtocol address;And using uniform resource locator and/or Internet protocol address as identification information.
Such as: certain map navigation application program initiates network request, identifies that the URL of the flow access of the navigation application is" .zebred.com/router/ ", IP address are " 119.120.00.101 ".
S103, public data network gateway determine belonging to application program according to identification information and application program classification chart using classNot.
More specifically, application program classification chart indicates the identification information of application program and the mapping table of applicating category, from answeringThe corresponding application program classification information of identification information for finding application program with class of procedures table.If by uniform resource locatorAnd/or Internet protocol address as identification information, then URL and/or the Internet protocol address for finding application program are correspondingApplicating category.
Such as: the URL of certain map navigation application program is " .zebred.com/router/ ", and IP address is" 119.120.00.101 " finds somewhere from application program classification chart using URL and IP address as the identification information of application programThe corresponding applicating category of URL and IP address of figure navigation application program is digital map navigation class.
S104, public data network gateway obtain start-stop instruction according to the affiliated applicating category of application program and command mappings table.
More specifically, command mappings table is the mapping table of start-stop instruction and applicating category, wherein start-stop instruction is divided into unlatchingInstruction and halt instruction.Public data network gateway finds the corresponding start-stop of the affiliated applicating category of application program from command mappings tableInstruction.
Such as: certain map navigation application program initiates network request, after identification network request, certain map navigation applicationProgram belongs to digital map navigation class, if the residual flow of digital map navigation class is not zero, digital map navigation class is corresponding in command mappings tableStart-stop instruction be open command, if the residual flow of digital map navigation class is zero, digital map navigation class is corresponding in command mappings tableStart-stop instruction be halt instruction.
S105, judge whether start-stop instruction is halt instruction, if so, into S106, otherwise, into S107.
S106, public data network gateway prevent user network from requesting.
More specifically, the residual flow of the corresponding applicating category of application program is zero when start-stop instruction is halt instruction,Public data network gateway prevents user network from requesting, user network request failure, and sends to car-mounted terminal where application programThe reason of network request failure information and network request fail.
S107, the transmission user network request of public data network gateway.
More specifically, the residual flow of the corresponding applicating category of application program is not when start-stop instruction is open commandZero, public data network gateway puts general family network request.
User network is simultaneously requested corresponding consumed flow to be sent to accounting server by S108, public data network gateway.
More specifically, requesting corresponding consumption to be flowed user network after public data network gateway puts general family network requestAmount is sent to accounting server, so that user network is requested corresponding consumed flow to be included in the first account by accounting server.ItsIn, the first account is used for the customer flow rate data of the affiliated applicating category of statistics application program.
Such as: the corresponding start-stop instruction of certain map navigation application program is open command, then puts and lead to the digital map navigation applicationProgram, and flow consumed by digital map navigation application program is sent to accounting server, accounting server answers digital map navigationThe flow consumed by program is included in flow account corresponding to digital map navigation class, to update the corresponding flow account of digital map navigation classFamily.
User network is requested corresponding consumed flow to be included in the first account by S109, accounting server.
More specifically, accounting server requests corresponding consumed flow in the user network for receiving application program initiationAfterwards, user network will be requested corresponding consumed flow to be included in the first account, and will realize the update to consumed flow in the first account.
S110, accounting server are remained according to the current consumption data on flows and workable data on flows of applicating categoryRemaining data on flows.
More specifically, user orders the stream of different application classification to operator under the original state of traffic classification controlSet meal is measured, then the flow package that user orders is workable data on flows.According to having disappeared for the applicating category of historical statisticsExpense data on flows and workable data on flows can be obtained residual flow data.In the non-initial state of traffic classification controlUnder, the flow package of applicating category has consumed, and workable data on flows is that the flow package that user orders is deducted using classThe amount not consumed.
Wherein, user initiates different application to the client-server for being deployed in vehicle enterprise or car networking facilitator system sideThe set meal subscription request of classification.User includes: vehicle enterprise, car networking service provider, car owner, other payment main bodys.Client-serverThe set meal subscription request for converging the different application flow received, is ordered to the accounting server of operator;And receive meterTake the bill of all kinds of payment main bodys of server transmission.
Such as: the flow package that user orders digital map navigation class is the 100M/ month, use of monthly being paid by car owner, in flowClassify under the original state of control, data on flows workable for this month is 100M, and the currently used flow of certain navigation application program is20M, then this month residual flow data are 80M.When certain navigation application program requests access to network again, this month workable streamAmount data are 80M, and the currently used flow of certain navigation application program is 30M, then this month residual flow data are 50M.
S111, accounting server send residual flow data.
S112, classified service device generate command mappings table according to residual flow data.
More specifically, classified service device receives the residual flow data of the applicating category sent by accounting server, and sentenceThe residual flow data of disconnected applicating category whether zero, if zero, then the start-stop instruction of the applicating category is halt instruction, if notZero, then the start-stop instruction of the applicating category is open command.
Such as: when the residual flow data of digital map navigation class are zero, then the network request of certain navigation application program is shut down, whenPayment main body orders the flow package of new digital map navigation class to accounting server, so that the residual flow data of digital map navigation classWhen being not zero, then the network request of certain navigation application program is opened.
Command mappings table is sent to public data network gateway by S113, classified service device.
More specifically, public data network gateway after receiving command mappings table, determines whether to put according to command mappings tableLogical current network request, to realize that the classification to flow controls.
In traffic classification control method provided in this embodiment, public data network gateway obtains application program classification chart and refers toMapping table is enabled, when application program is connected to the network by public data network gateway requests, public data network gateway extracts user networkNetwork requests identification information, determines the affiliated applicating category of application program, public number according to identification information and application program classification chartIt is instructed according to the start-stop that net gateway obtains application program further according to the affiliated applicating category of application program and command mappings table, when start-stop refers toWhen order is open command, public data network gateway transmits user network request, and user network is requested corresponding consumed flowCharging is carried out with applicating category, so that accounting server is according to the customer flow rate data of the affiliated applicating category of application program and can makeData on flows obtains residual flow data, so that residual flow data of the classified service device according to the applicating category receivedCommand mappings table is updated, realizes and customer flow rate data statistics is carried out with applicating category belonging to application program.
Fig. 3 is the structural schematic diagram of present invention public data network gateway shown according to an exemplary embodiment.Such as Fig. 3 instituteShow, public data network gateway provided in this embodiment includes: extraction module 101, the user network for being initiated from application programIdentification information is extracted in network request;Determining module 102, for determining application program according to identification information and application program classification chartAffiliated applicating category, wherein application program classification chart is the mapping table of identification information and applicating category;Module 103 is obtained, is used forObtain start-stop instruction according to the affiliated applicating category of application program and command mappings table, wherein command mappings table be start-stop instruction withThe mapping table of applicating category, start-stop instruction are divided into open command and halt instruction;It is included in module 104, for being when start-stop instructionWhen open command, public data network gateway transmits user network request, and requests corresponding consumed flow to be included in user networkThe first account on accounting server, the first account are used for the customer flow rate data of the affiliated applicating category of statistics application program.
Optionally, extraction module 101 specifically includes: requesting user network to carry out depth data packet detection acquisition network sevenThe uniform resource locator and/or Internet protocol address of application layer in layer protocol;By uniform resource locator and/or internetProtocol address is as identification information.
Optionally, command mappings table is obtained according to the residual flow data of applicating category, and residual flow data are according to chargingThe customer flow rate data of the affiliated applicating category of the application program of server statistics and workable data on flows obtain.
Fig. 4 is the structural schematic diagram of present invention classified service device shown according to an exemplary embodiment.As shown in figure 4,The present embodiment provides a kind of classified service devices, comprising: generation module 201, for generating application program according to application class informationClassification chart, wherein application program classification chart is the identification information and applicating category that application program is extracted from user network requestMapping table;Generation module 201 is also used to generate command mappings table according to the residual flow data of applicating category, wherein instructionMapping table is the mapping relations of start-stop instruction and applicating category, the application program that residual flow data are counted according to accounting serverThe customer flow rate data of affiliated applicating category and workable data on flows obtain;Sending module 202, for sending command mappingsTable and application program classification chart, so that public data network gateway is determined according to identification information and application program classification chart using journeyAfter the affiliated applicating category of sequence;Start-stop instruction is obtained further according to the affiliated applicating category of application program and command mappings table, works as start-stopWhen instruction is open command, public data network gateway transmits user network request, and requests corresponding consumption to be flowed user networkMeter enters the first account on accounting server, and the first account is used for the customer flow rate number of the affiliated applicating category of statistics application programAccording to.
Optionally, classified service device further include: update module, for obtaining application class information with predetermined period.
Fig. 5 is the structural schematic diagram of present invention electronic equipment shown according to an exemplary embodiment.As shown in figure 5, thisThe electronic equipment 400 of embodiment includes: processor 401 and memory 402, wherein
Memory 402, for storing computer executed instructions;
Processor 401 is set for executing the computer executed instructions of memory storage with realizing to receive in above-described embodimentStandby performed each step.It specifically may refer to the associated description in preceding method embodiment.
Optionally, memory 402 can also be integrated with processor 401 either independent.
When memory 402 is independently arranged, which further includes bus 403, for connecting the storageDevice 402 and processor 401.
The embodiment of the present invention also provides a kind of computer readable storage medium, stores in the computer readable storage mediumThere are computer executed instructions, when processor executes the computer executed instructions, realizes traffic classification control as described aboveMethod.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extentPipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according toSo be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features intoRow equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solutionThe range of scheme.