CN104168553A - Sending and charging method and device for service messages - Google Patents

Sending and charging method and device for service messages Download PDF

Info

Publication number
CN104168553A
CN104168553A CN201410438746.0A CN201410438746A CN104168553A CN 104168553 A CN104168553 A CN 104168553A CN 201410438746 A CN201410438746 A CN 201410438746A CN 104168553 A CN104168553 A CN 104168553A
Authority
CN
China
Prior art keywords
service
type
option
field
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.)
Granted
Application number
CN201410438746.0A
Other languages
Chinese (zh)
Other versions
CN104168553B (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 invention provides a sending and charging method and device for service messages. The method comprises the steps that service types of the messages are determined before the service messages are sent; when the fact that the service messages include hop-by-hop option headers is determined, option fields of the hop-by-hop option headers are generated; option type fields are filled in with indication information used for indicating service type numbers carried in option data fields; option data length fields are filled in with the length of the option data fields; the option data fields are filled in with service type numbers corresponding to the determined service types so that the service types of the service messages can be determined according to the service type numbers in the charging process of the service messages, and charging is carried out according to the charging modes corresponding to the service types; the service messages are sent after the option fields are filled in. The service types transmitted through uplink and downlink data are recognized and distinguished, charging is carried out according to the charging modes corresponding to the service types, and charging of operators is clearer and more flexible.

Description

A kind of service message transmission and charging method and device
Technical field
The present invention relates to wireless communication technology field, relate in particular to a kind of service message transmission and charging method and device.
Background technology
Existing GPRS (General Packet Radio Service, GPRS) internet and 3G (Third generation, 3G (Third Generation) Moblie technology) network data service billing scheme is as follows:
The charging way of GPRS network data service is the charging way based on flow.Contrast the domestic San great 3G of operator rate 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 worrying flow abuse, needs to safeguard the connection of the application that online and flow is little always; There is flow abuse risk in duration based accounting mode, user at short notice can unconfined generation mass data, mobile network, uses peak period to be easy to cause congested.
Visible, charge on traffic mode and duration based accounting mode respectively have pluses and minuses, the data service billing scheme that the communication network of existing operator provides is main still based on duration and the simple charging way based on flow, cannot divide in detail concrete type of service, not simple and clear for user yet, be also inconvenient to carry out formulation and the adjustment of service tariff.
Following TD-LTE Network kind is abundanter, but also can emerge in large numbers increasing new business, and existing duration based accounting and charge on traffic mode are undoubtedly by the development and application of restriction new business.CHINAUNICOM is except being used existing these two kinds of charging ways, released a kind of M/T of being called as (Media/Text, multimedia/text) new wireless Internet access charging way, although this charging way clearer consumption while declaring to make user use 3G multimedia service, but while also only limiting the use of the family use 3G of UNICOM door Web content, adopt this kind of charging way, user, access in the process of the Internet, be still simple charge on traffic mode, cannot distinguish charging to all type of service flows.
Therefore the charging way that, can distinguish applied business will become the main trend of TD-LTE network billing.
Summary of the invention
The embodiment of the present invention provides a kind of service message transmission and charging method and device, can realize the charging way of differentiated service type.
The invention provides a kind of service message sending method, comprising:
Before sending service message, determine the type of service that described service message is affiliated;
Determine when described service message comprises hop-by-hop options header, generate the Option Field of described hop-by-hop options header, described Option Field comprises option type field, option data length field and option data field;
In described option type field, fill in and be used to indicate the indication information that carries type of service numbering in option data field;
In described option data length field, fill in the length of option data field;
In described option data field, fill in type of service numbering corresponding to determined type of service, so that determine the type of service under service message according to type of service numbering when to service message charging, according to the charging way corresponding with described type of service, carry out charging;
Complete option type field, option data length field and option data field and fill in rear transmission service message.
Preferably, determine the type of service that described service message is affiliated, specifically comprise:
Determine the software that produces described service message, according to the type of service under the software of the described service message of generation, determine the type of service that described service message is affiliated;
Determine when described service message comprises hop-by-hop options header, also comprise:
Option data field in the Option Field of described hop-by-hop options header, fills in for identifying the software numbering of the software that produces described service message.
Preferably, described option data field comprises type of service number field and software number field, the length of described type of service number field is definite according to the total number of predefined type of service, and the length of described software number field is determined according to the total number of predefined software.
Preferably, the length of described type of service number field is 1 byte, and the length of software number field is 3 bytes.
The present invention also provides a kind of service message charging method, comprising:
Receive service message and described service message is resolved;
Determine when described service message comprises hop-by-hop options header, resolve the Option Field of described hop-by-hop options header, described Option Field comprises option type field, option data length field and option data field;
Determine that described option type field carries while being used to indicate the indication information that carries type of service numbering in option data field, according to described option data length field location option data field;
In described option data field, obtain type of service numbering;
According to the type of service under the definite service message receiving of type of service numbering obtaining, from the charging policy information of charging way corresponding to the tactful different type of service comprising from charging rule functions unit PCRF, obtain charging way corresponding to described type of service, according to described charging way, carry out charging.
Preferably, obtain type of service numbering in described option data field after, also comprise:
In described option data field, obtain for identifying the software numbering of the software that produces described service message;
According to described service message under charging way corresponding to type of service carry out charging, specifically comprise:
According to described service message under type of service and charging way corresponding to software carry out charging.
The present invention also provides a kind of service message dispensing device, comprising:
Type of service determining unit, for before sending service message, determines the type of service that described service message is affiliated;
Option Field generation unit, while comprising hop-by-hop options header for definite described service message, generates the Option Field of described hop-by-hop options header, and described Option Field comprises option type field, option data length field and option data field;
First fills in unit, in described option type field, fills in and is used to indicate the indication information that carries type of service numbering in option data field;
Second fills in unit, in described option data length field, fills in the length of option data field;
The 3rd fills in unit, be used in described option data field, fill in type of service numbering corresponding to determined type of service, so that determine the type of service under service message according to type of service numbering when to service message charging, according to the charging way corresponding with described type of service, carry out charging;
Packet sending unit, fills in rear transmission service message for completing option type field, option data length field and option data field.
Preferably, type of service determining unit is determined the type of service under described service message, specifically comprises:
Determine the software that produces described service message, according to the type of service under the software of the described service message of generation, determine the type of service that described service message is affiliated;
Type of service numbered cell is determined when described service message comprises hop-by-hop options header, is also comprised:
Option data field in the Option Field of described hop-by-hop options header, fills in for identifying the software numbering of the software that produces described service message.
The present invention also provides a kind of service message message accounting, comprising:
Packet parsing unit, for receiving service message and described service message being resolved;
Option Field resolution unit, while comprising hop-by-hop options header for definite described service message, resolves the Option Field of described hop-by-hop options header, and described Option Field comprises option type field, option data length field and option data field;
Positioning unit, for determining that described option type field carries when being used to indicate option data field and carrying the indication information of type of service numbering, according to described option data length field location option data field;
Numbering acquiring unit, for obtaining type of service numbering in described option data field;
Charging Detail Record unit, the type of service numbering of obtaining for basis is determined the type of service under the service message receiving, from the charging policy information of charging way corresponding to the tactful different type of service comprising from charging rule functions unit PCRF, obtain charging way corresponding to described type of service, according to described charging way, carry out charging.
Preferably, after numbering acquiring unit obtains type of service numbering in described option data field, also for:
In described option data field, obtain for identifying the software numbering of the software that produces described service message;
Charging Detail Record unit specifically for according to described service message under type of service and charging way corresponding to software carry out charging.
Preferably, described service message message accounting is packet gateway PGW.
Utilize service message transmission provided by the invention and charging method and device, there is following beneficial effect:
When IPv6 communication of mobile terminal, according to the type of service that sends message, at the option of the hop-by-hop options header of IPv6, partly carry out the generation response of corresponding service type number, therefore operator can be by carrying out packet filtering and analysis to user's up-downgoing packet, identify and distinguish the type of service that user's up-downgoing data transmit, and relevant information is sent to the charge system of operator, charge system is carried out charging according to type of service according to corresponding charging way, makes the charging of operator more clear and flexible.
Accompanying drawing explanation
Fig. 1 is Ipv4 header format schematic diagram;
Fig. 2 is the basic header format schematic diagram 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 embodiment of the present invention service message sending method flow chart;
Fig. 7 is embodiment of the present invention service message charging method flow chart;
Fig. 8 is choice format schematic diagram in the embodiment of the present invention 1;
Fig. 9 is the embodiment of the present invention 2 service message charging flow schematic diagrames;
Figure 10 is embodiment of the present invention service message dispensing device structure chart;
Figure 11 is embodiment of the present invention service message message accounting structure chart.
Embodiment
Below in conjunction with drawings and Examples, service message processing method provided by the invention and device are illustrated in greater detail.
In the data service billing mode of existing GPRS network and 3G network, its major programme is exactly to adopt based on duration and the simple charging based on flow, cannot segment data service, is not easy to carry out disbursement and sattlement with third party content provider.Various new data services also exist very large difference for the demand of the network bandwidth and time delay, traditional mobile network management and operation can not adapt to new demand, need to be for the deficiency of existing charging way, the charging way of the supporting area separate service type of existing and future network structure is merged in proposition.
Mobile communications network is upgraded to TD-LTE (Time Division Long Term Evolution, time-division Long Term Evolution) afterwards, user network address starts to shift to IPv6 (Internet Protocol Version 6, internet protocol version 6) address.
If Fig. 1 is IPv4 (Internet Protocol Version 4, internet protocol version 4) header format schematic diagram, Fig. 2 is the basic header format schematic diagram of IPv6, and in header, the explanation of each field is stipulated referring to agreement, is not describing in detail here.
A feature of IPv6 agreement is, for reducing header overhead, some nonessential fields and Option Field in IPV4 header is put in extension header, strengthened the support to extension header and option part.
The extension header of IPv6 is between the basic header of IPv6 and upper-layer protocol and data, an IPv6 packet can have 0 or a plurality of extension header, each extension header is to determine by next header (NH) field in previous header (the basic header of IPv6 or extension header), be that next header fields indicates whether have what next extension header and next extension header be, in there is no the IPv6 bag of extension header, the value representation last layer agreement of this field.
Fig. 3 has shown some values of next header fields definition.Next header fields can have a plurality of values, wherein, TCP/UDP/ICMPv6 represents last layer agreement, inter-domain routing/resource reservation/encapsulate safe and effective load to represent, inter-domain routing (IDRP, Inter-Domain Routing Protocol) router that represents different internet autonomous systems inside is connected with Autonomous System Boundary Router, AS Boundary Router, and by inter-domain routing protocol exchanging routing information.The service of reserved resource when resource reservation (RSVP, Resource Reservation Protocol) is illustrated on network as special applications data stream transmitting request special service quality.Encapsulate safe and effective load (ESP, Encapsulating Security Payload) and represent data confidentiality, data verification, data integrity, and to encapsulating the playback protection service function of payload.
This embodiment of the present invention mainly partly designs with supporting area separate service type the option of the hop-by-hop options header in IPv6 extension header, below hop-by-hop options header is described.
Hop-by-hop options header is one of extension header of IPv6 normalized definition, and each node (comprising source node and destination node) from source node to destination node path needs to check the information in hop-by-hop options header.Hop-by-hop options header must be immediately following after the basic header of IPv6.As shown in Figure 4, hop-by-hop options header comprises next header fields, extension header length field and Option Field (comprising one or more options) to the form of hop-by-hop options header.
Next header (Next Header): take 8 bits, what comprise is protocol number, for identifying immediately following the protocol header after hop-by-hop options header;
Extension header length (Hdr Ext Len): take 8 bits, the value of header extension length field is the quantity of the octet piece of hop-by-hop options header, wherein do not comprise first octet, therefore, for the hop-by-hop options header of a byte, the value of its header extension length field is 0;
Option (Options): option data field is elongated is the multiple of octet but must make the length of whole hop-by-hop options header.
Option Field is the set of a series of fields, it or the characteristic of an aspect of package forward has been described, or be used as filling.In hop-by-hop options header, loaded the variable Option Field of quantity.The form of hop-by-hop field as shown in Figure 5, encode with the form of " type-length-value (TLV) " by each option, wherein:
Option type (OptIon), 8 bit fields, option type field had both identified this option, determined again the processing method of interdependent node to this option, associated documents are stipulated, in option type field, when two the highest bit representations can not be identified the type of this option when the node of Treatment Options, should how to process this option, specifically as shown in table 1.Third high bit representation in option type field is in leading to the path of target, 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, does not comprise option type and option;
Option data: this is the field of a variable length, has loaded the distinctive data of option.
Utilize the These characteristics of Ipv6 service message, for service message dispensing device, as user terminal or remote server, the embodiment of the present invention provides a kind of service message sending method, as shown in Figure 6, comprising:
Step 601, before sending service message, determines the type of service that described service message is affiliated;
Step 602, determines when described service message comprises hop-by-hop options header, generates the Option Field of described hop-by-hop options header, and described Option Field comprises option type field, option data length field and option data field;
Although this step has generated these fields, also do not fill in concrete content.
Step 603, in option type field, fills in and is used to indicate the indication information that carries type of service numbering in option data field;
Step 604, in option data length field, fills in the length of option data field;
Step 605, in option data field, fill in type of service corresponding to determined type of service numbering, so that determine the type of service under service message according to type of service numbering when to service message charging, according to the charging way corresponding with described type of service, carry out charging;
Step 606, completes option type field, option data length field and option data field and fills in rear transmission service message.
Embodiment of the present invention transmitting terminal is before sending service message, first determine the type of service of this service message, then service message is resolved, can determine whether message comprises hop-by-hop options header according to the next header fields of the basic header of Ipv6, when comprising hop-by-hop options header, according to the form of hop-by-hop options header, generate Option Field, and the option type field in Option Field, fill in and be used to indicate the indication information that carries type of service numbering in option data field and (be specially the style number of new definition, can not use the style number of the defined mistake of agreement), in option data length field, fill in the length of option data field, in option data field, fill in type of service numbering, in Option Field, length field is filled according to option data field length, thereby whether the service message that can make message accounting identify reception carries traffic type information and concrete type of service, different types of service is carried out to charging according to corresponding charging way, make the charging of operator more clear and flexible.
Preferably, the embodiment of the present invention can be, but not limited to the type of service of determining that in the following way described service message is affiliated: determine the software that produces described service message, according to the type of service under the software of the described service message of generation, determine the type of service that described service message is affiliated.
Preferably, the embodiment of the present invention is determined when described service message comprises hop-by-hop options header, is also comprised: the option data field in the Option Field of described hop-by-hop options header, fill in for identifying the software numbering of the software that produces described service message.
Option data field comprises type of service number field and software number field, and the length of type of service number field is definite according to the total number of predefined type of service, and the length of software number field is determined according to the total number of predefined software.The quantity of the total number of type of service will be much smaller than the total number quantity of software, so the length of type of service number field generally can be less than software number field length.
Particularly, can divide in advance type of service, different types of service be formulated to different type of service numberings, and each software is carried out to type of service classification, and different software is formulated to different software numberings.Can set up special mechanism to manage the complete numbering of software, be responsible for the formulation of type of service numbering specially, the application of software numbering and issuing, the negotiation of the rate that type of service and software are corresponding and determining.Like this, software or a kind of value-added service type of a type of every increase just can be classified and identify it, and the concrete software of certain type can be carried out to key words sorting, and charge accordingly.Such method will be very for the charge accounting of third party content provider clear, can attract more people to pay close attention to this respect, make the kind of software application more rich and varied.
Preferably, the embodiment of the present invention is before sending service message, according to the type of service of dividing in advance, while failing to determine the type of service under described service message, when definite described service message comprises hop-by-hop options header, option data field in the Option Field of described hop-by-hop options header, fills in full 0 and does not determine type of service with sign.Like this, message accounting can carry out charging according to existing charging way.
Preferably, the embodiment of the present invention is before sending service message, according to the type of service of dividing in advance, fail to determine the affiliated type of service of described service message, or determined the type of service under service message, but when definite described service message does not comprise hop-by-hop options header, directly send described service message.Or the embodiment of the present invention can first determine whether to comprise hop-by-hop options header, if do not comprise, directly send service message.Like this, message accounting, when parsing service message and do not comprise hop-by-hop options header, can carry out charging according to existing charging way
On the basis sending at above-mentioned service message, the embodiment of the present invention also provides a kind of service message charging method, as shown in Figure 7, comprising:
Step 701, receives service message and described service message is resolved;
Step 702, determines when service message comprises hop-by-hop options header, resolves the Option Field of hop-by-hop options header, and described Option Field comprises option type field, option data length field and option data field;
Step 703, determines that described option type field carries while being used to indicate the indication information that carries type of service numbering in option data field, according to described option data length field location option data field;
Step 704 is obtained type of service numbering in option data field;
Step 705, according to the type of service under the definite service message receiving of type of service numbering obtaining, from the charging policy information of charging way corresponding to the tactful different type of service comprising from charging rule functions unit PCRF, obtain charging way corresponding to described type of service, according to described charging way, carry out charging.
The charging policy information that the embodiment of the present invention is obtained from PCRF, comprise and different types of service and charging way corresponding to software, while determining that according to the style number of obtaining service message carries type of service numbering, also comprise: in option data field, obtain for identifying the software numbering of the software that produces described service message; Can according to described service message under type of service and charging way corresponding to software carry out charging, make charging way refinement and flexibly more.
When the service message receiving does not comprise hop-by-hop options header, according to existing charging way, service message is carried out to charging, as carried out charging according to duration based accounting mode or the charge on traffic mode of acquiescence.
If the service message receiving comprises hop-by-hop options header, option type field comprises the style number that indicating services message carries type of service numbering, but when option data field is full 0, according to existing charging way, service message is carried out to charging, as carried out charging according to duration based accounting mode or the charge on traffic mode of acquiescence.
Provide service message mode of the present invention and charging method preferred embodiment below.
Embodiment 1
The embodiment of the present invention is by designing the charging way with supporting area separate service type/software to the Option Field of IPv6 hop-by-hop options header, this Option Field dynamically generates in the protocol stack of the equipment such as mobile terminal and remote server, and can carry out type of service/software classification to up-downgoing data.
Figure 8 shows that the format design of embodiment of the present invention Option Field, this option called after discharge pattern option.Except above, about the defined content of IPv6 standard in the explanation of hop-by-hop options header, the embodiment of the present invention is defined as follows option:
For smooth reading out data, option requires strict alignment, and the alignment thereof that the present invention defines discharge pattern option is: adopt 4n+2 octet.
Option type field: 00010001, style number is 33, front two 00 represents that node is to skip unacquainted option to the mode of the processing of option, proceeds packet transaction; Be illustrated in the path of leading to target for the 3rd 0, option data content does not allow to change; 10001, and the definite final option type number of determining of front three, for the style number of new definition, can not use the style number having defined.
Option data length: 00000100, the size of regulation option data part is 4 bytes, has stipulated that the length of this option type is fixed simultaneously;
Option data: the size of value is divided in detail according to concrete type of service; First character saves mark business-type numbering; Rear three bytes are used for identifying concrete software numbering.
After the format design of option completes, the extension header option to up-downgoing packet in the protocol stack of mobile terminal and remote server end partly dynamically generates, to realize the Data classification charging of core network element.
Preferably, data traffic is mainly divided into following type of service: voice call class, video calling class, Online Video program request class, mobile phone television living broadcast class, mobile phone application shop class, generic web page are browsed class, SNS social networks class, chat class, game on line class etc.By the business type field of option data field, identify concrete type of service numbering, the rule of numbering is 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 application 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 of value-added service
Three bytes of residue of option data field are used for identification data grouping and specifically derive from which software.These three bytes can represent altogether 2^24=16777216 different software, and this numerical value can meet the problem that certain kind application numbers is various completely.
For not having the type of service of classification to identify by full 0, this type of service is according to common flow expenses standard charge.
The service message sending method of the embodiment of the present invention, supports charging way combinations such as data packet services type and duration flows, makes charging clearer and more definite:
Embodiment 2
At EPC (Evolved Packet Core, evolution block core net) in, user data S-GW (the Service Gateway that flows through respectively, gateway) and P-GW (Packet Gateway, packet gateway) node, although S-GW and P-GW have the function of charging, but from function and network configuration position, P-GW is more suitable for providing the billing function based on type of service, and present most of terminal is only supported an APN (Access Point Name, APN), but can access different services in an APN, P-GW more easily distinguishes different services and adds up respectively duration and flow than S-GW.
The embodiment of the present invention is being added the identification module of grouped data at PGW place, when service message arrives this gateway, P-GW will partly resolve the discharge pattern option of the hop-by-hop options header of service message; Determine that, when service message comprises hop-by-hop options header, the option type field in the Option Field of hop-by-hop options header is obtained style number; While determining that according to the style number of obtaining service message carries type of service numbering, in the option data field of Option Field, obtain type of service numbering and software numbering.
PGW is from PCRF (Policy and Charging Rules Function, strategy and charging rule functions unit) locate to obtain the charging policy information that comprises the charging way corresponding with different types of service, according to service message under type of service and charging way corresponding to software carry out charging, generate charging list PGW-CDR, then pass to corresponding Charging Detail Record unit.Detailed process as shown in Figure 9.
Preferably, type of service for voice and video conversational class, in order to adapt to user's use habit for a long time, can continue former duration based accounting mode, note class is carried out charging according to transmission of information packet number (being similar to amount of information), and other carry out charging according to data service software type and flow combination.
When option logarithmic data field identifies by full 0, the type is according to common flow expenses standard charge.
The method that the embodiment of the present invention provides, the chargings such as the type of service based on IPv6 hop-by-hop options header and duration flow combine are a kind of charging ways of refinement more, and its emphasis is to the design of the option part of hop-by-hop options header, identification and corresponding charging policy.When IPv6 communication of mobile terminal, the software of user terminal partly carries out the corresponding response that generates to the option of the hop-by-hop options header of IPv6 in protocol stack.Operator can identify and distinguish the type of service that user's up-downgoing data transmit by user's up-downgoing packet is carried out to packet filtering and analysis, and relevant information is sent to the charge system of operator, makes the charging of operator more clear and flexible.Implement type of service billing function and require charge node to make packet filtering and analysis to user's up-downgoing data, this requires in route that filter must flow through at user data.At P-GW, implement type of service charging and type filter analysis result is put into PGW-CDR (Packet Gateway Calling Detail Records, the call detail record of packet gateway), like this can be in the seamless charge information of being dissolved into user of type of service charge information.
The charging way of the type of service option of the embodiment of the present invention based in IPv6 hop-by-hop options header, be equally applicable to the charging segmentation of common IPv6 network, because do not have in general network and network element corresponding to P-GW, so need to add a special network element device in common IPv6 network, analyze charging, and in Route Selection header, add the IP address of this network element device.
Based on same inventive concept, in the embodiment of the present invention, also provide a kind of service message to send and message accounting, because the principle that this device is dealt with problems is similar with charging method to a kind of service message transmission, so the enforcement of this device can, referring to the enforcement of method, repeat part and repeat no more.
The present invention also provides a kind of service message dispensing device, as shown in figure 10, comprising:
Type of service determining unit 1001, for before sending service message, determines the type of service that described service message is affiliated;
Option Field generation unit 1002, while comprising hop-by-hop options header for definite described service message, generates the Option Field of described hop-by-hop options header, and described Option Field comprises option type field, option data length field and option data field;
First fills in unit 1003, in described option type field, fills in and is used to indicate the indication information that carries type of service numbering in option data field;
Second fills in unit 1004, in described option data length field, fills in the length of option data field;
The 3rd fills in unit 1005, be used in described option data field, fill in type of service numbering corresponding to determined type of service, so that determine the type of service under service message according to type of service numbering when to service message charging, according to the charging way corresponding with described type of service, carry out charging;
Packet sending unit 1006, fills in rear transmission service message for completing option type field, option data length field and option data field.
Preferably, type of service determining unit is determined the type of service under described service message, specifically comprises:
Determine the software that produces described service message, according to the type of service under the software of the described service message of generation, determine the type of service that described service message is affiliated;
Type of service numbered cell is determined when described service message comprises hop-by-hop options header, is also comprised:
Option data field in the Option Field of described hop-by-hop options header, fills in for identifying the software numbering of the software that produces described service message.
The present invention also provides a kind of service message dispensing device, comprises processor and data transceiver, wherein:
Described processor is configured to, for for before sending service message, determine the type of service that described service message is affiliated;
Option Field generation unit, while comprising hop-by-hop options header for definite described service message, generates the Option Field of described hop-by-hop options header, and described Option Field comprises option type field, option data length field and option data field; In described option type field, fill in and be used to indicate the indication information that carries type of service numbering in option data field; In described option data length field, fill in the length of option data field; In described option data field, fill in type of service numbering corresponding to determined type of service, so that determine the type of service under service message according to type of service numbering when to service message charging, according to the charging way corresponding with described type of service, carry out charging; Complete option type field, option data length field and option data field and fill in rear transmission service message;
Described data transceiver is for transceiving data under the control of described processor.
The present invention also provides a kind of service message message accounting, as shown in figure 11, comprising:
Packet parsing unit 1101, for receiving service message and described service message being resolved;
Option Field resolution unit 1102, while comprising hop-by-hop options header for definite described service message, resolves the Option Field of described hop-by-hop options header, and described Option Field comprises option type field, option data length field and option data field;
Positioning unit 1103, for determining that described option type field carries when being used to indicate option data field and carrying the indication information of type of service numbering, according to described option data length field location option data field;
Numbering acquiring unit 1104, for obtaining type of service numbering in described option data field;
Charging Detail Record unit 1105, the type of service numbering of obtaining for basis is determined the type of service under the service message receiving, from the charging policy information of charging way corresponding to the tactful different type of service comprising from charging rule functions unit PCRF, obtain charging way corresponding to described type of service, according to described charging way, carry out charging.
Preferably, after numbering acquiring unit obtains type of service numbering in described option data field, also for:
In described option data word stage casing, obtain for identifying the software numbering of the software that produces described service message;
Charging Detail Record unit specifically for according to described service message under type of service and charging way corresponding to software carry out charging.
Preferably, described service message message accounting is packet gateway PGW.
The present invention also provides a kind of service message message accounting, comprises processor and data transceiver, wherein:
Described processor be configured to for, receive service message and also described service message resolved;
Option Field resolution unit, while comprising hop-by-hop options header for definite described service message, resolves the Option Field of described hop-by-hop options header, and described Option Field comprises option type field, option data length field and option data field; Determine that described option type field carries while being used to indicate the indication information that carries type of service numbering in option data field, according to described option data length field location option data field; In described option data field, obtain type of service numbering; According to the type of service under the definite service message receiving of type of service numbering obtaining, from the charging policy information of charging way corresponding to the tactful different type of service comprising from charging rule functions unit PCRF, obtain charging way corresponding to described type of service, according to described charging way, carry out charging;
Described data transceiver is for transceiving data under the control of described processor.
The present invention is with reference to describing according to flow chart and/or the block diagram of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block diagram each flow process and/or the flow process in square frame and flow chart and/or block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computer or other programmable data processing device is produced for realizing the device in the function of flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computer or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame on computer or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.

Claims (11)

1. a service message sending method, is characterized in that, comprising:
Before sending service message, determine the type of service that described service message is affiliated;
Determine when described service message comprises hop-by-hop options header, generate the Option Field of described hop-by-hop options header, described Option Field comprises option type field, option data length field and option data field;
In described option type field, fill in and be used to indicate the indication information that carries type of service numbering in option data field;
In described option data length field, fill in the length of option data field;
In described option data field, fill in type of service numbering corresponding to determined type of service, so that determine the type of service under service message according to type of service numbering when to service message charging, according to the charging way corresponding with described type of service, carry out charging;
Complete option type field, option data length field and option data field and fill in rear transmission service message.
2. the method for claim 1, is characterized in that, determines the type of service that described service message is affiliated, specifically comprises:
Determine the software that produces described service message, according to the type of service under the software of the described service message of generation, determine the type of service that described service message is affiliated;
Determine when described service message comprises hop-by-hop options header, also comprise:
Option data field in the Option Field of described hop-by-hop options header, fills in for identifying the software numbering of the software that produces described service message.
3. method as claimed in claim 2, it is characterized in that, described option data field comprises type of service number field and software number field, the length of described type of service number field is definite according to the total number of predefined type of service, and the length of described software number field is determined according to the total number of predefined software.
4. method as claimed in claim 3, is characterized in that, the length of described type of service number field is 1 byte, and the length of software number field is 3 bytes.
5. a service message charging method, is characterized in that, comprising:
Receive service message and described service message is resolved;
Determine when described service message comprises hop-by-hop options header, resolve the Option Field of described hop-by-hop options header, described Option Field comprises option type field, option data length field and option data field;
Determine that described option type field carries while being used to indicate the indication information that carries type of service numbering in option data field, according to described option data length field location option data field;
In described option data field, obtain type of service numbering;
According to the type of service under the definite service message receiving of type of service numbering obtaining, from the charging policy information of charging way corresponding to the tactful different type of service comprising from charging rule functions unit PCRF, obtain charging way corresponding to described type of service, according to described charging way, carry out charging.
6. method as claimed in claim 5, is characterized in that, after obtaining type of service numbering, also comprises in described option data field:
In described option data field, obtain for identifying the software numbering of the software that produces described service message;
According to described service message under charging way corresponding to type of service carry out charging, specifically comprise:
According to described service message under type of service and charging way corresponding to software carry out charging.
7. a service message dispensing device, is characterized in that, comprising:
Type of service determining unit, for before sending service message, determines the type of service that described service message is affiliated;
Option Field generation unit, while comprising hop-by-hop options header for definite described service message, generates the Option Field of described hop-by-hop options header, and described Option Field comprises option type field, option data length field and option data field;
First fills in unit, in described option type field, fills in and is used to indicate the indication information that carries type of service numbering in option data field;
Second fills in unit, in described option data length field, fills in the length of option data field;
The 3rd fills in unit, be used in described option data field, fill in type of service numbering corresponding to determined type of service, so that determine the type of service under service message according to type of service numbering when to service message charging, according to the charging way corresponding with described type of service, carry out charging;
Packet sending unit, fills in rear transmission service message for completing option type field, option data length field and option data field.
8. device as claimed in claim 7, is characterized in that, type of service determining unit is determined the type of service under described service message, specifically comprises:
Determine the software that produces described service message, according to the type of service under the software of the described service message of generation, determine the type of service that described service message is affiliated;
Type of service numbered cell is determined when described service message comprises hop-by-hop options header, is also comprised:
Option data field in the Option Field of described hop-by-hop options header, fills in for identifying the software numbering of the software that produces described service message.
9. a service message message accounting, is characterized in that, comprising:
Packet parsing unit, for receiving service message and described service message being resolved;
Option Field resolution unit, while comprising hop-by-hop options header for definite described service message, resolves the Option Field of described hop-by-hop options header, and described Option Field comprises option type field, option data length field and option data field;
Positioning unit, for determining that described option type field carries when being used to indicate option data field and carrying the indication information of type of service numbering, according to described option data length field location option data field;
Numbering acquiring unit, for obtaining type of service numbering in described option data field;
Charging Detail Record unit, the type of service numbering of obtaining for basis is determined the type of service under the service message receiving, from the charging policy information of charging way corresponding to the tactful different type of service comprising from charging rule functions unit PCRF, obtain charging way corresponding to described type of service, according to described charging way, carry out charging.
10. device as claimed in claim 9, is characterized in that, after numbering acquiring unit obtains type of service numbering in described option data field, also for:
In described option data field, obtain for identifying the software numbering of the software that produces described service message;
Charging Detail Record unit specifically for according to described service message under type of service and charging way corresponding to software carry out charging.
11. devices as claimed in claim 9, is characterized in that, described 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 true CN104168553A (en) 2014-11-26
CN104168553B 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)

Cited By (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
CN109714494A (en) * 2019-01-03 2019-05-03 中国联合网络通信集团有限公司 List generating method and system, ticket generate server
CN111327649A (en) * 2018-12-14 2020-06-23 中国电信股份有限公司 Service data processing method, device, SMF, system and storage medium
CN112448918A (en) * 2019-08-29 2021-03-05 华为技术有限公司 Message transmission method and device and computer storage medium
WO2024040884A1 (en) * 2022-08-26 2024-02-29 华为技术有限公司 Service processing method, apparatus and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010053209A1 (en) * 2000-06-20 2001-12-20 Alcatel Call charging method, a related call charging device, a related call charging object and a related call charging object development system
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010053209A1 (en) * 2000-06-20 2001-12-20 Alcatel Call charging method, a related call charging device, a related call charging object and a related call charging object development system
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

Cited By (8)

* 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
CN111327649A (en) * 2018-12-14 2020-06-23 中国电信股份有限公司 Service data processing method, device, SMF, system and storage medium
CN111327649B (en) * 2018-12-14 2023-04-21 中国电信股份有限公司 Service data processing method, device, SMF, system and storage medium
CN109714494A (en) * 2019-01-03 2019-05-03 中国联合网络通信集团有限公司 List generating method and system, ticket generate server
CN109714494B (en) * 2019-01-03 2021-02-02 中国联合网络通信集团有限公司 Call bill generation method and system and call bill generation server
CN112448918A (en) * 2019-08-29 2021-03-05 华为技术有限公司 Message transmission method and device and computer storage medium
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

Also Published As

Publication number Publication date
CN104168553B (en) 2017-11-03

Similar Documents

Publication Publication Date Title
CN101163091B (en) Resource admission control system and method
KR101409626B1 (en) Method for generating and providing a new pcc/qos rule based on an application request message
KR101421872B1 (en) Method and system for generating pcc rules based on service requests
US20160374008A1 (en) Service provider certified device policy management
CN102668458B (en) System and method for reporting packet characteristics in a network environment
KR101376021B1 (en) Method for pcrf to autonomously respond to cell capacity shortage
KR101376020B1 (en) Handling of expired message for generation of policy and charging rules node
EP2521385B1 (en) Policy and charging control method, gateway and mobile terminal thereof
CN104168553A (en) Sending and charging method and device for service messages
US10555325B2 (en) Network resource prioritization for mobile termination services
US20160142294A1 (en) Gx-Rx BINDING WITH AN ALTERNATE TO APN
US20150056950A1 (en) Session binding using subscriber identification
CN104685839A (en) Method and apparatus for processing packet
CN101616009B (en) Method for transmitting data service and equipment thereof
WO2007096754A1 (en) Context-based processing of data flows for differentiated charging
JP2014531159A (en) Processing messages related to multiple potential entities
CN108200606A (en) A kind of network resource scheduling method, intelligent control center and gateway
CN103181121B (en) A kind of access processing method, equipment and system
CN101163102B (en) Resource admission control method and policy decision functional unit
CN100542097C (en) A kind of dialogue distribution method based on the grouped data flow based charging
US20120233335A1 (en) Auxiliary host and sessions
CN106256147A (en) The method and apparatus of assisted network flow
CN101529802A (en) Method and system for applying a policy to access telecommunication services

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