CN104168553B - A kind of service message is sent and charging method and device - Google Patents

A kind of service message is sent and charging method and device Download PDF

Info

Publication number
CN104168553B
CN104168553B CN201410438746.0A CN201410438746A CN104168553B CN 104168553 B CN104168553 B CN 104168553B CN 201410438746 A CN201410438746 A CN 201410438746A CN 104168553 B CN104168553 B CN 104168553B
Authority
CN
China
Prior art keywords
service
type
field
option
service message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410438746.0A
Other languages
Chinese (zh)
Other versions
CN104168553A (en
Inventor
赵国胜
李广鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201410438746.0A priority Critical patent/CN104168553B/en
Publication of CN104168553A publication Critical patent/CN104168553A/en
Application granted granted Critical
Publication of CN104168553B publication Critical patent/CN104168553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Meter Arrangements (AREA)

Abstract

The present invention provides a kind of service message and sent and charging method and device, and this method includes:The type of service of message is determined before service message is sent;When determining that service message includes hop-by-hop options header, the Option Field of hop-by-hop options header is generated;In option type field, fill in for indicating to carry the configured information that type of service is numbered in option data field;In Option Data Length field, the length of option data field is filled in;In option data field, the corresponding type of service numbering of identified type of service is filled in, so as to number the type of service belonging to determining service message according to type of service when to service message charging, charging is carried out according to charging mode corresponding with type of service;Complete to send service message after Option Field is filled in.The present invention supports identification to distinguish the type of service of user's up-downgoing data transmission, and charging is carried out according to corresponding charging mode according to type of service, makes the charging of operator become apparent from and flexibly.

Description

A kind of service message is sent and charging method and device
Technical field
Sent and charging method and device the present invention relates to wireless communication technology field, more particularly to a kind of service message.
Background technology
Existing GPRS (General Packet Radio Service, GPRS) networks and 3G (Third Generation, 3rd generation mobile communication technology) network data service billing scheme is as follows:
The charging mode of GPRS network data service is the charging mode based on flow.The big operator 3G moneys in the contrast country three Take situation, China Mobile and China Telecom's data in mobile phone business are still traditional charge on traffic and duration based accounting mode.
For charge on traffic mode, although operator without having to worry about flow abuse, but need safeguard it is always on and The connection of the small application of flow;There is flow abuse risk in duration based accounting mode, user unconfined can produce in a short time Mass data, congestion is easily caused in mobile network using peak period.
It can be seen that, charge on traffic mode and duration based accounting mode respectively have advantage and disadvantage, the communication network offer of existing operator Data service billing scheme is mainly also based on duration and the simple charging mode based on flow, it is impossible to specific type of service Divided in detail, it is also not simple and clear for user, be also inconvenient to carry out the formulation and adjustment of service tariff.
Following TD-LTE Networks species is more enriched, but also can emerge in large numbers increasing new business, when existing Long charging and charge on traffic mode will undoubtedly limit the development and application of new business.CHINAUNICOM except using it is existing both Outside charging mode, the new wireless networking charging mode that one kind is referred to as M/T (Media/Text, multimedia/text) is proposed, Although the charging mode is claimed to the consumption being more clearly understood that when making user using 3G multimedia services, but also only limits the use of family use connection It is still simple flowmeter during user accesses internet using this kind of charging mode during logical 3G door Web contents Take mode, it is impossible to which charging is made a distinction to all type of service flows.
Therefore, it is possible to distinguish the charging mode of applied business by the main trend as TD-LTE network billings.
The content of the invention
The embodiment of the present invention provides a kind of service message and sent and charging method and device, can realize differentiated service type Charging mode.
The present invention provides a kind of service message sending method, including:
Before service message is sent, the type of service belonging to the service message is determined;
When determining that the service message includes hop-by-hop options header, the Option Field of the hop-by-hop options header, institute are generated Stating Option Field includes option type field, Option Data Length field and option data field;
In the option type field, fill in for indicating to carry the instruction that type of service is numbered in option data field Information;
In the Option Data Length field, the length of option data field is filled in;
In the option data field, the corresponding type of service numbering of identified type of service is filled in, so that right During service message charging according to type of service number determine service message belonging to type of service, according to the type of service pair The charging mode answered carries out charging;
Complete to send service message after option type field, Option Data Length field and option data field are filled in.
Preferably, the type of service belonging to the service message is determined, is specifically included:
It is determined that the software of the service message is produced, according to the type of service belonging to the software for producing the service message, Determine the type of service belonging to the service message;
When determining that the service message includes hop-by-hop options header, in addition to:
Option data field in the Option Field of the hop-by-hop options header, fills in and produces the business for identifying The software numbering of the software of message.
Preferably, the option data field includes type of service number field and software number field, the service class The length of type number field determines that the length of the software number field is according to pre- according to pre-defined type of service total number The software total number first defined is determined.
Preferably, the length of the type of service number field is 1 byte, and the length of software number field is 3 words Section.
The present invention also provides a kind of service message charging method, including:
Receive service message and the service message is parsed;
When determining that the service message includes hop-by-hop options header, the Option Field of the hop-by-hop options header, institute are parsed Stating Option Field includes option type field, Option Data Length field and option data field;
Determine that the option type field is carried for indicating to carry the instruction that type of service is numbered in option data field During information, option data field is positioned according to the Option Data Length field;
Type of service numbering is obtained in the option data field;
The type of service belonging to the service message for determining to receive is numbered according to the type of service of acquisition, is advised from strategy with charging Then the business is obtained in the accounting policy information for the corresponding charging mode of different types of service that functional unit PCRF is included The corresponding charging mode of type, charging is carried out according to the charging mode.
Preferably, in the option data field after acquisition type of service numbering, in addition to:
The software numbering for identifying the software for producing the service message is obtained in the option data field;
The corresponding charging mode of type of service according to belonging to the service message carries out charging, specifically includes:
The corresponding charging mode of type of service and software according to belonging to the service message carries out charging.
The present invention also provides a kind of service message dispensing device, including:
Type of service determining unit, for before service message is sent, determining the service class belonging to the service message Type;
Option Field generation unit, during for determining that the service message includes hop-by-hop options header, generates the hop-by-hop The Option Field of option header, the Option Field includes option type field, Option Data Length field and option data word Section;
First fills in unit, is used to indicate to carry in option data field in the option type field, filling in The configured information of type of service numbering;
Second fills in unit, in the Option Data Length field, filling in the length of option data field;
3rd fills in unit, in the option data field, filling in the corresponding business of identified type of service Type number, so as to number the type of service belonging to determining service message according to type of service when to service message charging, is pressed Charging is carried out according to charging mode corresponding with the type of service;
Packet sending unit, is filled in for completing option type field, Option Data Length field and option data field After send service message.
Preferably, type of service determining unit determines the type of service belonging to the service message, specifically includes:
It is determined that the software of the service message is produced, according to the type of service belonging to the software for producing the service message, Determine the type of service belonging to the service message;
When type of service numbered cell determines that the service message includes hop-by-hop options header, in addition to:
Option data field in the Option Field of the hop-by-hop options header, fills in and produces the business for identifying The software numbering of the software of message.
The present invention also provides a kind of service message message accounting, including:
Packet parsing unit, for receiving service message and being parsed to the service message;
Option Field resolution unit, during for determining that the service message includes hop-by-hop options header, parses the hop-by-hop The Option Field of option header, the Option Field includes option type field, Option Data Length field and option data word Section;
Positioning unit, for determining that the option type field is carried for indicating to carry service class in option data field During the configured information of type numbering, option data field is positioned according to the Option Data Length field;
Numbering acquiring unit, for obtaining type of service numbering in the option data field;
Charging Detail Record unit, for the type of service belonging to the service message according to the numbering determination reception of the type of service of acquisition, From the accounting policy information of the Policy and Charging Rules Function PCRF corresponding charging modes of different types of service included It is middle to obtain the corresponding charging mode of the type of service, carry out charging according to the charging mode.
Preferably, after numbering acquiring unit obtains type of service numbering in the option data field, it is additionally operable to:
The software numbering for identifying the software for producing the service message is obtained in the option data field;
Charging Detail Record unit is specifically for according to charging mode corresponding with type of service and software belonging to the service message Carry out charging.
Preferably, the service message message accounting is packet gateway PGW.
The service message provided using the present invention is sent and charging method and device, is had the advantages that:
When IPv6 communication of mobile terminal, according to the type of service for sending message, in the choosing of IPv6 hop-by-hop options header Item parts carry out the generation response of corresponding service type number, therefore operator can be by wrapping to user's up-downgoing packet Filtering and analysis, to recognize the type of service for distinguishing the transmission of user's up-downgoing data, and related information transmission to operator Charge system, charge system according to type of service according to corresponding charging mode carry out charging, make the charging of operator more It is clear and flexible.
Brief description of the drawings
Fig. 1 is Ipv4 header format schematic diagrames;
Fig. 2 is the basic header format schematic diagrames of Ipv6;
Fig. 3 is the value schematic diagram of the defined type of next header field;
Fig. 4 is hop-by-hop options header format schematic diagram;
Fig. 5 is choice format schematic diagram in hop-by-hop options header;
Fig. 6 is service message sending method flow chart of the embodiment of the present invention;
Fig. 7 is service message charging method flow chart of the embodiment of the present invention;
Fig. 8 is choice format schematic diagram in the embodiment of the present invention 1;
Fig. 9 is the service message charging flow schematic diagram of the embodiment of the present invention 2;
Figure 10 is service message dispensing device structure chart of the embodiment of the present invention;
Figure 11 is service message message accounting structure chart of the embodiment of the present invention.
Embodiment
The service message treating method and apparatus that the present invention is provided is carried out in more detail with reference to the accompanying drawings and examples Explanation.
In the data service billing mode of existing GPRS network and 3G network, its major programme is exactly using based on duration With the simple charging based on flow, it is impossible to be finely divided data service, it is not easy to carry out expense with third party content provider Clearing.For the demand of the network bandwidth and time delay, there is also very big difference, traditional mobile network for various new data services Network is managed and operation does not adapt to new demand, it is necessary to for the deficiency of existing charging mode, propose to merge existing and future The charging mode of the support differentiated service type of network structure.
Mobile communications network is upgraded to TD-LTE, and (Time Division Long Term Evolution, the time-division drills for a long time Enter) after, user network address is with starting to IPv6 (Internet Protocol Version 6, internet protocol version 6) Shift location.
As Fig. 1 illustrates for IPv4 (Internet Protocol Version 4, internet protocol version 4) header format Figure, Fig. 2 is that the explanation of each field in the basic header format schematic diagrames of IPv6, header is provided referring to agreement, is not being retouched in detail here State.
One feature of IPv6 agreements is, for reduction header overhead, by some nonessential fields in IPV4 header and Option Field is put into extension header, strengthens the support to extension header and option portion.
IPv6 extension header is located between the basic headers of IPv6 and upper-layer protocol and data, and IPv6 packet can be with There are 0 or multiple extension headers, each extension header is by previous header (the basic headers of IPv6 or extension header) In next header (NH) field determine that is, next header fields have indicated whether next extension header and next What extension header is, in the IPv6 bags without extension header, and the value of this field represents last layer agreement.
Fig. 3 shows some values that next header fields are defined.Next header fields can have multiple values, its In, TCP/UDP/ICMPv6 represents last layer agreement, and inter-domain routing/resource reservation/encapsulation Secu-rity Payload is represented, Yu Jian roads By (IDRP, Inter-Domain Routing Protocol) represent router inside different internet autonomous systems with Autonomous System Boundary Router, AS Boundary Router is connected, and exchanges routing iinformation by inter-domain routing protocol.Resource reservation (RSVP, Resource Reservation Protocol) represent to ask special service matter on network for special applications data stream transmitting During amount reserved resource service.Secu-rity Payload (ESP, Encapsulating Security Payload) is encapsulated to represent Data confidentiality, data verification, data integrity, and service function is protected to the playback for having encapsulated payload.
This embodiment of the present invention mainly the option portion of the hop-by-hop options header in IPv6 extension headers is designed with Differentiated service type is supported, hop-by-hop options header is illustrated below.
Hop-by-hop options header is one of extension header that IPv6 specifications are defined, from source node to destination node path on it is every Individual node (including source node and destination node) is required for checking the information in hop-by-hop options header.Hop-by-hop options header must be tight Follow after the basic headers of IPv6.The form of hop-by-hop options header is as shown in figure 4, hop-by-hop options header includes next header word Section, extension header length field and Option Field (including one or more options).
Next header (Next Header):Take 8 bits, comprising be protocol number, for identify immediately hop-by-hop choosing Protocol header after item header;
Extension header length (Hdr Ext Len):8 bits are taken, the value of Header Extension Length field is hop-by-hop options The quantity of the octet block of header, wherein not including first octet, therefore, for the hop-by-hop options header of a byte For, the value of its Header Extension Length field is 0;
Option (Options):Option data field is elongated, but the length of whole hop-by-hop options header must be made to be 8 The multiple of bit byte.
Option Field is a series of set of fields, it or describe packet forwarding one side characteristic, or Person is used as filling.The Option Field of variable amounts is loaded with hop-by-hop options header.The form of hop-by-hop field is as shown in figure 5, every Individual option is encoded with the form of " type-length-value (TLV) ", wherein:
Option type (OptIon), is 8 bit fields, and option type field had both identified this option, is determined again Processing method of the interdependent node to the option, associated documents it has been specified that, in option type field, highest two represents to work as It is specific as shown in table 1 when the node of Treatment Options can not recognize the type of the option, it should how to handle this option.Option The 3rd high-order expression in type field is in the path of target is led to, and option data can change (=1), or can not change (=0).
Table 1
Option Data Length (Option Data Length), is 8 bit fields, represents the byte number of option, no Including option type and option;
Option data:This is the field of a variable length, is loaded with the distinctive data of option.
Using the These characteristics of Ipv6 service messages, for service message dispensing device, such as user terminal or remote service Device, the embodiment of the present invention provides a kind of service message sending method, as shown in fig. 6, including:
Step 601, before service message is sent, the type of service belonging to the service message is determined;
Step 602, when determining that the service message includes hop-by-hop options header, the option of the hop-by-hop options header is generated Field, the Option Field includes option type field, Option Data Length field and option data field;
Although the step generates these fields, but without filling in specific content.
Step 603, in option type field, fill in for indicating to carry type of service numbering in option data field Configured information;
Step 604, in Option Data Length field, the length of option data field is filled in;
Step 605, in option data field, the corresponding type of service numbering of identified type of service is filled in, so that When to service message charging according to type of service number determine service message belonging to type of service, according to the service class The corresponding charging mode of type carries out charging;
Step 606, complete to send business after option type field, Option Data Length field and option data field are filled in Message.
Transmitting terminal of the embodiment of the present invention is before service message is sent, it is first determined the type of service of the service message, so Service message is parsed afterwards, can determine whether message includes hop-by-hop according to next header fields of the basic headers of Ipv6 Option header, when comprising hop-by-hop options header, Option Field is generated according to the form of hop-by-hop options header, and in Option Field In option type field, fill in for indicate in option data field carry type of service numbering configured information (be specially The style number newly defined, it is impossible to use the style number of the defined mistake of agreement), in Option Data Length field, fill in option number According to the length of field, length field is according to option data word in option data field fills in type of service numbering, Option Field Segment length is filled in, so as to so that message accounting identifies whether the service message of reception carries traffic type information and specific Type of service, to different types of service according to corresponding charging mode carry out charging, make operator charging become apparent from and Flexibly.
Preferably, the embodiment of the present invention can be, but not limited to determine the business belonging to the service message in the following way Type:It is determined that the software of the service message is produced, according to the type of service belonging to the software for producing the service message, it is determined that Type of service belonging to the service message.
Preferably, when the embodiment of the present invention determines that the service message includes hop-by-hop options header, in addition to:It is described by The option data field in the Option Field of option header is jumped, the software for identifying the software for producing the service message is filled in Numbering.
Option data field includes type of service number field and software number field, the length of type of service number field Determined according to pre-defined type of service total number, the length of software number field is true according to pre-defined software total number It is fixed.The quantity of type of service total number will be much smaller than software total number quantity, therefore the length of type of service number field is general Software number field length can be less than.
Specifically, type of service can be divided in advance, and different types of service are formulated to different types of service and numbered, and Type of service classification is carried out to each software, and different softwares are formulated to different software numbering.Special mechanism can be set up Complete numbering to software is managed, and is responsible for the formulation of type of service numbering specially, application and issue, business that software is numbered The negotiation and determination of type and the corresponding rate of software.So, the software or a kind of value-added service type of type are often increased Just it can be classified and is identified, it is possible to specific certain type of software is subjected to key words sorting, and carried out corresponding Charge.Such method will be very clear for the charge accounting of third party content provider, can attract more Many people's concern this respects so that the species of software application is more rich and varied.
Preferably, the embodiment of the present invention, according to the type of service divided in advance, not can determine that before service message is sent When going out the type of service belonging to the service message, it is determined that the service message include hop-by-hop options header when, it is described by The option data field in the Option Field of option header is jumped, full 0 is filled in and is not determined by type of service to identify.So, charging Device can carry out charging according to existing charging mode.
Preferably, the embodiment of the present invention, according to the type of service divided in advance, not can determine that before service message is sent Go out the type of service belonging to the service message, or have determined that the type of service belonging to service message, but it is determined that described When service message does not include hop-by-hop options header, the service message is directly transmitted.Or, the embodiment of the present invention can be determined first Whether hop-by-hop options header is included, if not including, directly transmit service message.So, message accounting is parsing business report When text does not include hop-by-hop options header, charging can be carried out according to existing charging mode
On the basis of the transmission of above-mentioned service message, the embodiment of the present invention also provides a kind of service message charging method, such as Shown in Fig. 7, including:
Step 701, receive service message and the service message is parsed;
Step 702, when determining that service message includes hop-by-hop options header, the Option Field of hop-by-hop options header, institute are parsed Stating Option Field includes option type field, Option Data Length field and option data field;
Step 703, determine that the option type field is carried for indicating that type of service is carried in option data field to be compiled Number configured information when, according to the Option Data Length field position option data field;
Step 704, type of service numbering is obtained in option data field;
Step 705, the type of service belonging to the service message for determining to receive is numbered according to the type of service of acquisition, from strategy Obtained from the accounting policy information of the charging rule functions unit PCRF corresponding charging modes of different types of service included The corresponding charging mode of the type of service, charging is carried out according to the charging mode.
The accounting policy information that the embodiment of the present invention is obtained from PCRF, comprising corresponding from different types of service and software Charging mode, when determining that service message carries type of service numbering according to the style number of acquisition, in addition to:In option data field The middle software numbering obtained for identifying the software for producing the service message;Then can be according to belonging to the service message Type of service and the corresponding charging mode of software carry out charging, charging mode is more refined and flexibly.
When the service message of reception does not include hop-by-hop options header, service message is counted according to existing charging mode Take, such as carry out charging according to the duration based accounting mode or charge on traffic mode of acquiescence.
If the service message received includes hop-by-hop options header, option type field carries business comprising instruction service message The style number of type number, but option data field be full 0 when, according to existing charging mode to service message carry out charging, such as Charging is carried out according to the duration based accounting mode or charge on traffic mode of acquiescence.
Service message mode of the present invention and charging method preferred embodiment is given below.
Embodiment 1
The embodiment of the present invention is designed to support differentiated service class by the Option Field to IPv6 hop-by-hop options headers The charging mode of type/software, Option Field dynamic generation in the protocol stack of the equipment such as mobile terminal and remote server, and Type of service/software classification can be carried out to up-downgoing data.
Fig. 8 show the format design of Option Field of the embodiment of the present invention, and the option is named as discharge pattern option.Except Outside IPv6 specifications in hop-by-hop options header explanation defined content, the embodiment of the present invention does as follows to option Definition:
In order to smoothly read data, option requires close alignment, and the alignment thereof that the present invention defines discharge pattern option is: Using 4n+2 octet.
Option type field:00010001, i.e. style number are 33, and front two 00 represents mode of the node to the processing of option Unacquainted option is to skip, proceeds packet transaction;Represent in the path of target is led to for 3rd 0, in option data Appearance does not allow to change;10001, and the final determination option type number of front three determination, it is the style number newly defined, it is impossible to using The style number of defined mistake.
Option Data Length:00000100, the size of regulation option data part is 4 bytes, while defining the choosing The length of item type is fixed;
Option data:The size of value is divided in detail according to specific type of service;First character is saved to identify industry Service type is numbered;Three bytes are used for identifying specific software numbering afterwards.
After the completion of the format design of option, to up-downgoing data point in mobile terminal and the protocol stack of remote server The extension header option portion of group carries out dynamic generation, to realize the data classification charging of core network element.
Preferably, data traffic is broadly divided into following type of service:It is voice call class, video calling class, online Video frequency requested program broadcasting-like, mobile phone television living broadcast class, mobile phone using shop class, generic web page browse class, SNS social networks class, chat class, Game on line class etc..Specific type of service numbering is identified with the business type field of option data field, the rule of numbering is such as Shown in table 2:
Table 2
0 1 2 3 4 5 6 7 Packet Service type
0 0 0 0 0 0 0 0 Unfiled business
0 0 0 0 0 0 0 1 Voice call
0 0 0 0 0 0 1 0 Video calling
0 0 0 0 0 0 1 1 Mobile phone applies store
0 0 0 0 0 1 0 0 Video request program software
0 0 0 0 0 1 0 1 Mobile phone television living broadcast
0 0 0 0 0 1 1 0 Ringing sound of cell phone is downloaded
X X X X X X X X Certain type value-added service
Three bytes of residue of option data field are used for which software mark data packet is derive specifically from.These three words Section can represent altogether 2^24=16777216 different softwares, and it is various that the numerical value can meet certain species application numbers completely The problem of.
Then identified for the type of service without classification with full 0, the type of service is according to common flow expenses standard Charge.
The service message sending method of the embodiment of the present invention, is supported the charging such as data packet services type and duration flow Mode is combined, and makes charging definitely:
Embodiment 2
In EPC (Evolved Packet Core, evolution block core net), user data flows separately through S-GW (Service Gateway, gateway) and P-GW (Packet Gateway, packet gateway) node, although S-GW and P-GW There is the function of charging, but from function and network structure position, P-GW is more suitable for providing the charging work(based on type of service Can, and most of terminals only support an APN (Access Point Name, APN) now, but at one Different services can be accessed in APN, P-GW more easily discriminates different services and respectively statistics duration and flow than S-GW.
The embodiment of the present invention is adding the identification module of grouped data at PGW, when service message reaches this gateway, P- GW to the discharge pattern option portion of the hop-by-hop options header of service message will parse;Determine that service message is included During hop-by-hop options header, the option type field in the Option Field of hop-by-hop options header obtains style number;According to acquisition When style number determines that service message carries type of service numbering, type of service volume is obtained in the option data field of Option Field Number and software numbering.
PGW is from PCRF (Policy and Charging Rules Function, Policy and Charging Rules Function) Place obtains including the accounting policy information of charging mode corresponding from different types of service, according to the industry belonging to service message Service type and the corresponding charging mode of software carry out charging, generate charging list PGW-CDR, then pass to corresponding Charging Detail Record unit.Tool Body process is as shown in Figure 9.
Preferably for the type of service of voice and video conversational class, in order to adapt to the use habit of user for a long time, Former duration based accounting mode can be continued, short message class carrys out charging according to transmission information packet number (being similar to information content), Other are combined according to data service software type and flow carrys out charging.
When option number data field is identified with full 0, the type is charged according to common flow expenses standard.
Method provided in an embodiment of the present invention, type of service and duration flow based on IPv6 hop-by-hop options headers are combined A kind of charging mode more refined Deng charging, its emphasis be the option portion to hop-by-hop options header design, identification and Corresponding charging policy.When IPv6 communication of mobile terminal, the hop-by-hop options of the software of user terminal in protocol stack to IPv6 The option portion of header carries out corresponding generation response.Operator can be by carrying out packet filtering to user's up-downgoing packet and dividing Analysis, to recognize the type of service for distinguishing the transmission of user's up-downgoing data, and the charging system of related information transmission to operator System, makes the charging of operator become apparent from and flexibly.Implementing type of service billing function requires charge node to user's up-downgoing Data make packet filtering and analysis, and this requires that filter must be in the route that user data is flowed through.Implement service class in P-GW Type charging and type filter analysis result be put into PGW-CDR (Packet Gateway Calling Detail Records, The call detail record of packet gateway), so can be the seamless charge information for being dissolved into user of type of service charge information In.
Charging mode of the embodiment of the present invention based on the type of service option in IPv6 hop-by-hop options headers, is equally applicable to The charging subdivision of common IPv6 networks, because the no and corresponding network elements of P-GW in general network, need common A special network element device is added in IPv6 networks and carries out analysis charging, and adds in routing header the network element device IP address.
Based on same inventive concept, a kind of service message is additionally provided in the embodiment of the present invention and is sent and message accounting, by The principle for solving problem in the device is sent to a kind of service message and charging method is similar, therefore the implementation of the device can be joined The implementation of square method, repeats part and repeats no more.
The present invention also provides a kind of service message dispensing device, as shown in Figure 10, including:
Type of service determining unit 1001, for before service message is sent, determining the industry belonging to the service message Service type;
Option Field generation unit 1002, during for determining that the service message includes hop-by-hop options header, generation is described The Option Field of hop-by-hop options header, the Option Field includes option type field, Option Data Length field and option number According to field;
First fills in unit 1003, is used to indicate in option data field in the option type field, filling in Carry the configured information of type of service numbering;
Second fills in unit 1004, in the Option Data Length field, filling in the length of option data field;
3rd fills in unit 1005, corresponding in the option data field, filling in identified type of service Type of service is numbered, so as to number the service class belonging to determining service message according to type of service when to service message charging Type, charging is carried out according to charging mode corresponding with the type of service;
Packet sending unit 1006, for completing option type field, Option Data Length field and option data field Service message is sent after filling in.
Preferably, type of service determining unit determines the type of service belonging to the service message, specifically includes:
It is determined that the software of the service message is produced, according to the type of service belonging to the software for producing the service message, Determine the type of service belonging to the service message;
When type of service numbered cell determines that the service message includes hop-by-hop options header, in addition to:
Option data field in the Option Field of the hop-by-hop options header, fills in and produces the business for identifying The software numbering of the software of message.
The present invention also provides a kind of service message dispensing device, including processor and data transceiver, wherein:
The processor is configurable for being used for before service message is sent, and determines the industry belonging to the service message Service type;
Option Field generation unit, during for determining that the service message includes hop-by-hop options header, generates the hop-by-hop The Option Field of option header, the Option Field includes option type field, Option Data Length field and option data word Section;In the option type field, fill in for indicating to carry the configured information that type of service is numbered in option data field; In the Option Data Length field, the length of option data field is filled in;In the option data field, fill in really The corresponding type of service numbering of fixed type of service, so that according to type of service numbering determination business when to service message charging Type of service belonging to message, charging is carried out according to charging mode corresponding with the type of service;Completion option type field, Option Data Length field and option data field send service message after filling in;
The data transceiver is used for the transceiving data under the control of the processor.
The present invention also provides a kind of service message message accounting, as shown in figure 11, including:
Packet parsing unit 1101, for receiving service message and being parsed to the service message;
Option Field resolution unit 1102, during for determining that the service message includes hop-by-hop options header, parsing is described The Option Field of hop-by-hop options header, the Option Field includes option type field, Option Data Length field and option number According to field;
Positioning unit 1103, for determining that the option type field is carried for indicating to carry industry in option data field During the configured information of service type numbering, option data field is positioned according to the Option Data Length field;
Numbering acquiring unit 1104, for obtaining type of service numbering in the option data field;
Charging Detail Record unit 1105, for the service class belonging to the service message according to the numbering determination reception of the type of service of acquisition Type, believes from the charging policy of the Policy and Charging Rules Function PCRF corresponding charging modes of different types of service included The corresponding charging mode of the type of service is obtained in breath, charging is carried out according to the charging mode.
Preferably, after numbering acquiring unit obtains type of service numbering in the option data field, it is additionally operable to:
The software numbering for identifying the software for producing the service message is obtained in the option data word stage casing;
Charging Detail Record unit is specifically for according to charging mode corresponding with type of service and software belonging to the service message Carry out charging.
Preferably, the service message message accounting is packet gateway PGW.
The present invention also provides a kind of service message message accounting, including processor and data transceiver, wherein:
The processor is configurable for, and receives service message and the service message is parsed;
Option Field resolution unit, during for determining that the service message includes hop-by-hop options header, parses the hop-by-hop The Option Field of option header, the Option Field includes option type field, Option Data Length field and option data word Section;Determine that the option type field is carried for indicating to carry the configured information that type of service is numbered in option data field When, option data field is positioned according to the Option Data Length field;Type of service is obtained in the option data field Numbering;The type of service belonging to the service message for determining to receive is numbered according to the type of service of acquisition, from strategy and charging regulation The service class is obtained in the accounting policy information for the corresponding charging mode of different types of service that functional unit PCRF is included The corresponding charging mode of type, charging is carried out according to the charging mode;
The data transceiver is used for the transceiving data under the control of the processor.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (11)

1. a kind of service message sending method, it is characterised in that including:
Before service message is sent, it is determined that the software of the service message is produced, according to the software for producing the service message Affiliated type of service, determines the type of service belonging to the service message;
When determining that the service message includes hop-by-hop options header, the Option Field of the hop-by-hop options header, the choosing are generated Item field includes option type field, Option Data Length field and option data field;
In the option type field, fill in and believe for the instruction for indicating to carry type of service numbering in option data field Breath;
In the Option Data Length field, the length of option data field is filled in;
In the option data field, the corresponding type of service numbering of identified type of service is filled in, so as to business The type of service belonging to determining service message is numbered according to type of service during message charging, according to corresponding with the type of service Charging mode carries out charging;
Complete to send service message after option type field, Option Data Length field and option data field are filled in.
2. the method as described in claim 1, it is characterised in that when determining that the service message includes hop-by-hop options header, also Including:
Option data field in the Option Field of the hop-by-hop options header, fills in and produces the service message for identifying Software software numbering.
3. method as claimed in claim 2, it is characterised in that the option data field include type of service number field and Software number field, the length of the type of service number field is determined according to pre-defined type of service total number, described The length of software number field is determined according to pre-defined software total number.
4. method as claimed in claim 3, it is characterised in that the length of the type of service number field is 1 byte, soft The length of part number field is 3 bytes.
5. a kind of service message charging method, it is characterised in that including:
Receive service message and the service message is parsed, the service message is service message dispensing device according to production Type of service belonging to the software of the raw service message, determines what is sent after the type of service belonging to the service message;
When determining that the service message includes hop-by-hop options header, the Option Field of the hop-by-hop options header, the choosing are parsed Item field includes option type field, Option Data Length field and option data field;
Determine that the option type field is carried for indicating to carry the configured information that type of service is numbered in option data field When, option data field is positioned according to the Option Data Length field;
Type of service numbering is obtained in the option data field;
The type of service belonging to the service message for determining to receive is numbered according to the type of service of acquisition, from strategy and charging regulation work( The type of service is obtained in the accounting policy information for the corresponding charging mode of different types of service that energy unit PCRF is included Corresponding charging mode, charging is carried out according to the charging mode.
6. method as claimed in claim 5, it is characterised in that obtain type of service in the option data field and number it Afterwards, in addition to:
The software numbering for identifying the software for producing the service message is obtained in the option data field;
The corresponding charging mode of type of service according to belonging to the service message carries out charging, specifically includes:
The corresponding charging mode of type of service and software according to belonging to the service message carries out charging.
7. a kind of service message dispensing device, it is characterised in that including:
Type of service determining unit, for before service message is sent, it is determined that the software of the service message is produced, according to production Type of service belonging to the software of the raw service message, determines the type of service belonging to the service message;
Option Field generation unit, during for determining that the service message includes hop-by-hop options header, generates the hop-by-hop options The Option Field of header, the Option Field includes option type field, Option Data Length field and option data field;
First fills in unit, is used to indicate to carry business in option data field in the option type field, filling in The configured information of type number;
Second fills in unit, in the Option Data Length field, filling in the length of option data field;
3rd fills in unit, in the option data field, filling in the corresponding type of service of identified type of service Numbering so that when to service message charging according to type of service number determine service message belonging to type of service, according to The corresponding charging mode of the type of service carries out charging;
Packet sending unit, for completing to send out after option type field, Option Data Length field and option data field are filled in Send service message.
8. device as claimed in claim 7, it is characterised in that type of service numbered cell determine the service message include by When jumping option header, in addition to:
Option data field in the Option Field of the hop-by-hop options header, fills in and produces the service message for identifying Software software numbering.
9. a kind of service message message accounting, it is characterised in that including:
Packet parsing unit, for receiving service message and the service message being parsed, the service message is business Packet transmission device determines the industry belonging to the service message according to the type of service belonging to the software for producing the service message Sent after service type;
Option Field resolution unit, during for determining that the service message includes hop-by-hop options header, parses the hop-by-hop options The Option Field of header, the Option Field includes option type field, Option Data Length field and option data field;
Positioning unit, for determining that the option type field is carried for indicating that type of service is carried in option data field to be compiled Number configured information when, according to the Option Data Length field position option data field;
Numbering acquiring unit, for obtaining type of service numbering in the option data field;
Charging Detail Record unit, for the type of service belonging to the service message according to the numbering determination reception of the type of service of acquisition, from plan Obtained in the accounting policy information of the corresponding charging mode of different types of service slightly included from charging rule functions unit PCRF The corresponding charging mode of the type of service is taken, charging is carried out according to the charging mode.
10. device as claimed in claim 9, it is characterised in that numbering acquiring unit is obtained in the option data field After type of service numbering, it is additionally operable to:
The software numbering for identifying the software for producing the service message is obtained in the option data field;
Charging Detail Record unit according to charging mode corresponding with type of service and software belonging to the service message specifically for carrying out Charging.
11. device as claimed in claim 9, it is characterised in that the service message message accounting is packet gateway PGW.
CN201410438746.0A 2014-08-29 2014-08-29 A kind of service message is sent and charging method and device Active CN104168553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410438746.0A CN104168553B (en) 2014-08-29 2014-08-29 A kind of service message is sent and charging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410438746.0A CN104168553B (en) 2014-08-29 2014-08-29 A kind of service message is sent and charging method and device

Publications (2)

Publication Number Publication Date
CN104168553A CN104168553A (en) 2014-11-26
CN104168553B true CN104168553B (en) 2017-11-03

Family

ID=51912145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410438746.0A Active CN104168553B (en) 2014-08-29 2014-08-29 A kind of service message is sent and charging method and device

Country Status (1)

Country Link
CN (1) CN104168553B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789123A (en) * 2017-01-10 2017-05-31 李金方 Information flow-rate IP packet classification charge methods
CN111327649B (en) * 2018-12-14 2023-04-21 中国电信股份有限公司 Service data processing method, device, SMF, system and storage medium
CN109714494B (en) * 2019-01-03 2021-02-02 中国联合网络通信集团有限公司 Call bill generation method and system and call bill generation server
CN112448918B (en) * 2019-08-29 2023-06-09 华为技术有限公司 Message transmission method and device and computer storage medium
WO2024040884A1 (en) * 2022-08-26 2024-02-29 华为技术有限公司 Service processing method, apparatus and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739409A (en) * 2012-06-15 2012-10-17 中兴通讯股份有限公司 Internet traffic charging device and method
WO2013056447A1 (en) * 2011-10-20 2013-04-25 华为技术有限公司 Method and device for sending and receiving ipv6 data packet
CN103200552A (en) * 2013-03-20 2013-07-10 广州从兴电子开发有限公司 Communication control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1168805A1 (en) * 2000-06-20 2002-01-02 Alcatel Call charging method, a related device, object and object-oriented development system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013056447A1 (en) * 2011-10-20 2013-04-25 华为技术有限公司 Method and device for sending and receiving ipv6 data packet
CN102739409A (en) * 2012-06-15 2012-10-17 中兴通讯股份有限公司 Internet traffic charging device and method
CN103200552A (en) * 2013-03-20 2013-07-10 广州从兴电子开发有限公司 Communication control method

Also Published As

Publication number Publication date
CN104168553A (en) 2014-11-26

Similar Documents

Publication Publication Date Title
CN104168553B (en) A kind of service message is sent and charging method and device
US20210315037A1 (en) Small data usage enablement in 3gpp networks
US8406137B2 (en) Method and system for generating PCC rules based on service requests
CN101163091B (en) Resource admission control system and method
JP5629001B2 (en) System and method for generating and updating PCC rules based on service requests
KR101409626B1 (en) Method for generating and providing a new pcc/qos rule based on an application request message
JP5507709B2 (en) Method for PCRF to respond autonomously to lack of cell capacity
CN103718508B (en) Senior determination, process and control in communication network
US9209983B2 (en) Generating a single advice of charge request for multiple sessions in a network environment
CN104685839B (en) For handling the method and apparatus of grouping
KR20110025932A (en) Online charging architecture in lte/epc communication networks
TW201141165A (en) Controlling packet filter installation in a user equipment
CN101662758A (en) Billing method, gateway equipment and content billing system
JP2010527542A (en) Methods for billing services such as push mail
CN101534519A (en) Method for displaying package switching congestion state of wireless communication network
CN101374100A (en) Method, apparatus and system for sorting WiMAX business data stream packet
CN101616009B (en) Method for transmitting data service and equipment thereof
US9202237B2 (en) Generating a single billing record for multiple sessions in a network environment
CN101447934B (en) Business flow-recognizing method and system thereof and business flow charging method and system thereof
CN104170357B (en) The generalization that quality class indexes in wireless network
CN103298145A (en) Configuration method, device and system of differentiated services code point (DSCP) information
WO2016011831A1 (en) Charging method and device, access device, and service quality control method and device
WO2007096754A1 (en) Context-based processing of data flows for differentiated charging
CN108135013A (en) Internet of things service bearing method and system
CN106162755A (en) A kind of method and system shared for mobile terminal Internet access flow

Legal Events

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