CN101232386B - Method for counting MMS flow quantity - Google Patents

Method for counting MMS flow quantity Download PDF

Info

Publication number
CN101232386B
CN101232386B CN2008100052829A CN200810005282A CN101232386B CN 101232386 B CN101232386 B CN 101232386B CN 2008100052829 A CN2008100052829 A CN 2008100052829A CN 200810005282 A CN200810005282 A CN 200810005282A CN 101232386 B CN101232386 B CN 101232386B
Authority
CN
China
Prior art keywords
message
wsp
multimedia message
protocol
mms
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.)
Expired - Fee Related
Application number
CN2008100052829A
Other languages
Chinese (zh)
Other versions
CN101232386A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008100052829A priority Critical patent/CN101232386B/en
Publication of CN101232386A publication Critical patent/CN101232386A/en
Application granted granted Critical
Publication of CN101232386B publication Critical patent/CN101232386B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for the multimedia message flow statistics, the steps comprises: a message of a transmitting end is analyzed to confirm whether the message is the wireless application protocol WAP message or not; when the message is confirmed to be the multimedia message according to the type of the carrying content of a hyper text transport protocol HTTP head or a wireless session protocol WSP head of the message, the method carries out the analysis according to the WAP protocol and confirms the service identification which is matching with the multimedia message; and the multimedia message flow which is corresponding to the matching service identification is carried out the statistics. The method filters the multimedia message flow at a billing gateway, so an operator can really carry out the billing according to the number of the multimedia messages, thus avoiding the repeated billing.

Description

A kind of method of counting MMS flow quantity
Technical field
The present invention relates to a kind of charging method, specifically, relate to the method for counting MMS flow quantity in a kind of wireless data communication system.
Background technology
MMS is to be carrier with WAP (wireless application protocol) (WAP, Wireless Application Protocol), by the GSM data network, transmits the information that comprises various multimedia forms such as literal, image, sound, data.Multimedia message both can be used as the radio network information tool of communications, can be used as the internet access instrument again.As the tool of communications of wireless network, it has added multimedia element on the basis of note, and information capacity is also bigger; As the access tool of the Internet, its advantage is to visit, upgrade specific Internet resources whenever and wherever possible, can become a kind of special internet information transmission/reception channel.
Multimedia message now also is the new growth bright spot of value-added service, and existing application comprises: point-to-point application comprises common function of multimedia message, multimedia message greeting card, color word; Subscription service comprises weather forecast, mobile phone magazine, selected picture CRBT etc.; Downloading service comprises the download of picture, CRBT; The Internet business comprises and upgrades album, blog etc.
In the face of numerous application, existing multimedia message charging way is divided into two kinds: press that bar charges and according to the GPRS charge on traffic, the main charging way of operator's employing now is to charge by bar, but because multimedia message has produced flow in by charging gateway, generated corresponding flow ticket like this in by charging gateway, this has just produced the problem that repeats to charge.The method that existing processing repeats to charge is: estimation user's use traffic in the time of operator call list at every the end of month, return to the certain multimedia message fee of user according to estimation, but this estimation is very inaccurate, and cause chargeing very inaccurate to user's multimedia message.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method of counting MMS flow quantity, can filter out the flow of multimedia message.
Technical scheme is as follows:
A kind of method of counting MMS flow quantity, step comprises:
(1) analyzes the transmitting terminal message, confirm whether described message is WAP (wireless application protocol) WAP message;
(2) when determining that according to the HTML (Hypertext Markup Language) HTTP head of described message or WSP WSP entrained content type described message is multimedia message, according to described wap protocol analysis and determine the service identification of described multimedia message coupling;
(3) the multimedia message message flow of the described service identification correspondence of statistical match.
Further, in the step (1), described WAP message is carried on User Datagram Protoco (UDP) UDP or the Wireless Datagram Protocol WDP, by the correlated information match of protocal analysis thread according to configuration information in the system and message, the protocol type that obtains disposing after the match is successful.
Further, step (2) comprising:
(21) position of described WSP WSP in location or HTML (Hypertext Markup Language) HTTP message confirms that the method for WSP is the POST method;
(22) five-tuple and the uniform resource position mark URL in the described message of extraction, and navigate to the service identification that described multimedia message is mated.
Further, in the step (3), directly mate described service identification according to the information of the five-tuple of follow-up multimedia message message, and add up the multimedia message message flow of described service identification correspondence.
Further, in the step (3), the described multimedia message message flow of described statistics is: mate according to the five-tuple information of follow-up multimedia message message and the five-tuple information that has write down, the multimedia message message flow that the match is successful is added on the corresponding multimedia message message flow of corresponding business sign.
Further, in the step (2), when the application of carrying as described WSP was multimedia message MMS request, the value of the ContentType field in the WSP protocol Data Unit was application/vnd.wap.mms-message.
Further, in the step (2),, and can not find service identification, then define the original position of described WSP message according to five-tuple and Transaction Identifier TID if described message is a uplink message.
Further, in the step (2), when locating the original position of described WSP message, peel bottom User Datagram Protoco (UDP) udp protocol content earlier off, obtain WTP protocol Data Unit content, peel fixing head and the variable header information of wireless transmission protocol WTP again off, then navigate to the original position of described WSP message.
Technique effect of the present invention is:
By filter out the flow of multimedia message at the charging gateway place, make operator really to charge, thereby having avoided repeating charge according to multimedia message bar number.Specifically, by analysis user multimedia message message,, and then, count the flow of multimedia message according to five-tuple and URL validation of information service identification if determine that according to Content Type among the WSP this message is multimedia message; Deduct the flow of this part in the time of final call list, thereby avoid repeating to charge and the inaccuracy charging, reach the effect of accurate billing with the merchant of battalion.
Description of drawings
Fig. 1 is the structure chart of WTP protocol Data Unit;
Fig. 2 is the structure chart of WSP protocol Data Unit;
Fig. 3 sends the multimedia message flow chart;
Fig. 4 counting MMS flow quantity flow chart.
Embodiment
Multimedia message is carried in the wap protocol, by WSP (WSP, WirelessSession Protocol) or HTML (Hypertext Markup Language) (HTTP, Hypertext Transfer Protocol) transmission information between client and MMS (multimedia message) center, existing MMS (Microsoft Media Server) Protocol data cell has 8 class message:
1, transmission multimedia message (M-Send.req, M-Send.conf);
2, receipts multimedia message (WSP/HTTP Get.req, M-Retrieve.conf);
3, notify new multimedia message arrival (M-Notification.ind, M-NotifyResp.ind);
4, pay the report (M-Delivery.ind) that sends multimedia message;
5, confirm the transmission (M-Acknowledge.req) of multimedia message.
Operator is now only to sending MMS customer end individual event charge, the present invention is by analyzing the client message that sends multimedia message, just analyze the M-Send.req content of message, the Content Type (content type) that carries according to message HTTP head or WSP head determines whether this message is multimedia message, the service identification that this multimedia message is mated, the flow of counting MMS are determined in analysis according to wap protocol then.
Technical solution of the present invention may further comprise the steps:
1, analysis user message confirms whether this message is the wap protocol message.
The wap protocol message is carried on User Datagram Protoco (UDP) (UDP, User DatagramProtocol) or Wireless Datagram Protocol (WDP, Wireless Datagram Protocol) on, by the correlated information match of protocal analysis thread according to configuration information in the system (source address, destination address and port numbers) and message, the protocol type that can obtain disposing after the match is successful.
2, the position of location WSP or HTTP message confirms that the method for WSP is the POST method.
The value that the POST method refers to the type field of protocol Data Unit among the WSP is Post (0x60).
3, five-tuple and the URL in the extraction message navigates to the service identification of multimedia message coupling, and preserves this service identification;
4, confirm the MMS request that is applied as that WSP carries.
When the application of carrying as WSP was the MMS request, the value of the ContentType field in the WSP protocol Data Unit was application/vnd.wap.mms-message.
5, the subsequent user message directly mates this service identification according to the information of five-tuple, and statistics user MMS message flow;
Five-tuple and URL refer to source purpose IP, source destination interface, protocol type and the URL information that extracts in the solicited message, mate with the relevant information that disposes in the system to obtain service identification, and record five-tuple information and service identification are also preserved.
Statistics user MMS message flow is the five-tuple information of directly mating above-mentioned record according to the five-tuple information of follow-up message, and the match is successful, and the back flow is added to the corresponding business sign.
6, call list the time, deduct the traffic fee that MMS produces during statistics user cost of use and use.
In the time of call list, because operator is according to the bar number charging of multimedia message, so will deduct the flow of multimedia message in user's total flow.
Below in conjunction with the drawings and specific embodiments technical scheme of the present invention is made further more detailed description.
Existing wap protocol comprises WAP1.0 and WAP2.0, and present embodiment is mainly based on the WAP1.0 agreement, and the multimedia message implementation method of WAP2.0 agreement is consistent with the WAP1.0 agreement basically.Multimedia message is carried in the wap protocol, and the WAP browse application is all carried out layer in the mode of WSP+WTP and carried, and wireless transmission protocol (WTP, Wireless Transaction Protocol) is mainly used in control session (Session).
As shown in Figure 1, be that (Service Data Unit, SDU), (Protocol Data Unit PDU) comprises the data of message and N eight hytes to this protocol Data Unit for the service data unit that only contains a WTP PDU datagram.
1, UDP head
WTP is carried on the UDP, so each protocol Data Unit all contains the UDP head.
2, CON sign
The CON sign is first continuous sign position of fixing head, points out whether variable part comprises TPI (transmission data entries).
3, PDU type
The PDU type points out that what type the PDU of WTP is on earth, and type comprises: Invoke, Result, ACK, Abort, Segmented Invoke, Segment Result, Negative Ack.
4, Transaction Identifier (TID)
Transaction Identifier (TID) can will be sought out with a specific affairs associated packet.
5、Flag
The PDU type that Flag is corresponding different has different sign positions.
6, variable head
Variable head comprises information such as the grouping of some wtp and performance.
7, WSP protocol Data Unit
Shown in 2, be the content that the WSP protocol Data Unit comprises, the protocol Data Unit of Post type comprise in have:
(1) type (TYPE)
Type is the type of WSP protocol Data Unit, comprising: Connect, ConnectReply, Redirect, post, get etc.
(2)UriLen
UriLen is the length in URI territory.
(3)HeadsLen
HeadsLen is the length in Heads territory.
(4)URL
URL be URL(uniform resource locator) (Uniform Resource Locator, URL).
(5)ContentType
ContentType refers to the content type of data, and corresponding multimedia message is application/vnd.wap.mms-message.
(6)Headers
Headers is the head of request.
(7)Data
Data is the data of request.
As shown in Figure 3, be to send the multimedia message flow chart, operator is only to sending the multimedia message charge now, thus in the analysis user message message of an analysis request.
Step S301 sends the request of setting up session by WSP client (WSP Client) to WAP gateway (WSP GW).
Step S302, WAP gateway is replied replying of the request of foundation, and with going up the Session ID that sets up, Session ID is used for discerning the session of foundation in follow-up session management procedure.
Step S303, MMS agency (MMS Sender) send Post Request message to MMSCenter (MMS center), call WSP/HTTP POST operation, embedded MM--Send.req message.
Comprising in this MM--Send.req message can be for the resource locator of MMS center addressing; The request message that MMS Sender submits to comprises TID, and the corresponding relation that is used for a pair of request of mark and replys is distributed by MMS Sender.
Step S304 can also comprise follow-up message in the POST message of transmission, and follow-up message sends to the MMS center in same session.
Step S305 after request is received at the MMS center, can respond a WSP/HTTP POST message, wherein comprises the result of institute's solicit operation.
If the MMS agency accepts request, conditional code is " accepted ", and the words of mistake can the tape error error code.
Step S306 after reciprocal process finishes, sends the request that disconnects session connection by WSP client, and the session of the Session ID of appointment will be disconnected connection.
Step S307, WAP gateway provide the disconnection session connection and reply.
As shown in Figure 4, be the counting MMS flow quantity flow chart, below in conjunction with WTP protocol Data Unit, WSP protocol Data Unit and the process that sends multimedia message, the process of the counting MMS flow quantity that the present invention is proposed is described in detail.
Step S401 determines that protocol type is a wap protocol.
Information according to configuration information in the system (source address, destination address and port numbers) and extraction transmission message in this step is complementary the protocol type that can obtain disposing after the match is successful.
Step S402 judges that the message that receives is uplink message or downlink message.
If the message that receives is a downlink message, execution in step S403; If the message that receives is a uplink message, execution in step S404.
Step S403 if message is a downlink message, then searches particular memory region according to five-tuple and TID, obtains service identification, and adds up the flow of this service identification.
Step S4031 searches particular memory region according to five-tuple and TID;
Step S4032 judges whether to find service identification, if can find, and execution in step S4033, otherwise finish;
Step S4033, the flow of statistics downlink message.
Step S404 if message is a uplink message, then earlier searches particular memory region according to five-tuple and TID, if can obtain service identification, then directly adds up the flow of this message.
Step S4041 searches particular memory region according to five-tuple and TID;
Step S4042, if can obtain service identification, execution in step S410 adds up the flow of this uplink message; If can not obtain service identification, execution in step S405.
Step S405 if this message is a uplink message, and can not find service identification according to five-tuple and TID, then defines the original position of WSP message.
In this step, location WSP original position is peeled bottom udp protocol content earlier off, obtains WTP protocol Data Unit content, peels fixing head and the variable header information of WTP again off, just navigates to the original position of WSP message.
Step S406 judges whether the WSP method is the POST method, if, execution in step S408; Otherwise execution in step S407.
The method of judging in this step judges that according to TYPE field among the WSP TYPE field is that 0x60 is the POST method; The TYPE field is that 0x01 is the CONNECT method; The TYPE field is that 0x05 is the Disconnect method.
Step S407 if the WSP method is not the POST method, judges whether the method into CONNECT again, if the CONNECT method, and deletion record district information and write down new TID then; If be the DISCONNECT method, direct deletion record district information; Other method does not then deal with.
Step S4071 when not being the POST method, continues to judge whether the method into CONNECT, if execution in step S4072; Otherwise execution in step S4073;
Step S4072, if the CONNECT method, deletion record district information and write down new TID then;
Step S4073 further judges whether the method into DISCONNECT, if, execution in step S4074;
Step S4074, if be the DISCONNECT method, then deletion record district information finishes.
Step S408 is if the POST method is then searched task identifier with five-tuple and URL in the filter rule list of system configuration.
Step S409, find task identifier after, record five-tuple, URL, TID and service identification are to the specific memory zone.
Step S410, whether what judge WSP carrying is multimedia message, if the multimedia message corresponding multimedia message message flow of statistical service sign then finishes matching process.
Whether what judge the WSP carrying in this step is multimedia message, mainly is to judge according to ContentType field among the WSP, if this field is accurately mated application/vnd.wap.mms-message, thinks that then this message is the multimedia message message, otherwise non-multimedia message message.
The above only is the preferred embodiments of the invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (8)

1. the method for a counting MMS flow quantity is characterized in that, described method is included in the charging gateway place and carries out:
(1) analyzes the transmitting terminal message, confirm whether described message is WAP (wireless application protocol) WAP message;
(2) when determining that according to the HTML (Hypertext Markup Language) HTTP head of described message or WSP WSP entrained content type described message is multimedia message, according to the wap protocol analysis and determine the service identification of described multimedia message coupling;
(3) the multimedia message message flow of the described service identification correspondence of statistics.
2. the method for counting MMS flow quantity as claimed in claim 1, it is characterized in that, in the step (1), described WAP message is carried on User Datagram Protoco (UDP) UDP or the Wireless Datagram Protocol WDP, by the correlated information match of protocal analysis thread with configuration information in the system and message, the protocol type that obtains disposing after the match is successful.
3. the method for counting MMS flow quantity as claimed in claim 1 is characterized in that, step (2) comprising:
(21) original position of location WSP WSP or HTML (Hypertext Markup Language) HTTP message confirms that the method for WSP is the POST method;
(22) five-tuple and the uniform resource position mark URL in the described message of extraction, and navigate to the service identification that described multimedia message is mated.
4. the method for counting MMS flow quantity as claimed in claim 3 is characterized in that, in the step (3), the information of the five-tuple of follow-up multimedia message message is directly mated described service identification, and add up the multimedia message message flow of described service identification correspondence.
5. the method for counting MMS flow quantity as claimed in claim 4, it is characterized in that, in the step (3), the described multimedia message message flow of described statistics is: the five-tuple information of follow-up multimedia message message and the five-tuple information that has write down are mated, the multimedia message message flow that the match is successful is added on the corresponding multimedia message message flow of corresponding business sign.
6. the method for counting MMS flow quantity as claimed in claim 1, it is characterized in that, in the step (2), when the value of described WSP WSP entrained ContentType field is application/vnd.wap.mms-message, determine that described message is multimedia message.
7. the method for counting MMS flow quantity as claimed in claim 1 is characterized in that, in the step (2), if described message is a uplink message, and can not find service identification according to five-tuple and Transaction Identifier TID, then locatees the original position of WSP message.
8. the method for counting MMS flow quantity as claimed in claim 7, it is characterized in that, in the step (2), when locating the original position of described WSP message, peel bottom User Datagram Protoco (UDP) udp protocol content earlier off, obtain WTP protocol Data Unit content, peel fixing head and the variable header information of wireless transmission protocol WTP again off, then navigate to the original position of described WSP message.
CN2008100052829A 2008-02-20 2008-02-20 Method for counting MMS flow quantity Expired - Fee Related CN101232386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100052829A CN101232386B (en) 2008-02-20 2008-02-20 Method for counting MMS flow quantity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100052829A CN101232386B (en) 2008-02-20 2008-02-20 Method for counting MMS flow quantity

Publications (2)

Publication Number Publication Date
CN101232386A CN101232386A (en) 2008-07-30
CN101232386B true CN101232386B (en) 2011-04-20

Family

ID=39898583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100052829A Expired - Fee Related CN101232386B (en) 2008-02-20 2008-02-20 Method for counting MMS flow quantity

Country Status (1)

Country Link
CN (1) CN101232386B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931974B (en) * 2010-07-27 2012-12-05 崔振 Method and device for filtering data base in mobile communication network
CN102142990B (en) 2010-12-31 2016-11-02 华为技术有限公司 Business consumption monitoring method and apparatus
CN102439907B (en) * 2010-12-31 2014-02-19 华为技术有限公司 Method and device for monitoring business volume
CN102843656A (en) * 2011-06-21 2012-12-26 中兴通讯股份有限公司 Charging method and charging device
CN103067903A (en) * 2012-12-31 2013-04-24 华为技术有限公司 Charging method and device and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Open Mobile Allicace.Multimedia Messaging Service Encapsulation Protocol Version 1.1.2002,第8,10,11-12页. *
陈莉华等.内容计费流量核减准确性问题.电信工程技术与标准化 10.2007,(10),第81~84页.
陈莉华等.内容计费流量核减准确性问题.电信工程技术与标准化 10.2007,(10),第81~84页. *

Also Published As

Publication number Publication date
CN101232386A (en) 2008-07-30

Similar Documents

Publication Publication Date Title
CN100454911C (en) Method and apparatus for obtaining data information
CN100377523C (en) Data service information collecting device and charging method using same
EP1026853B1 (en) Charging method for information communication network
TW550961B (en) Mobile phone Internet access utilizing short message services apparatus and method
EP1981229A1 (en) Method and system for implementing short message signature and short message implementing device
WO2001069891A1 (en) Arranging of billing in a telecommunication system
CN101232386B (en) Method for counting MMS flow quantity
CN101188505B (en) content type recognition method and device
CN103368826A (en) System and method for providing advertisement messages
CN101471953A (en) Information transmission method, system and device
CN101325745A (en) Method, system and equipment for collecting number of message series advertisements
WO2009145659A1 (en) Method for transmitting measured advertising and/or information and a system for carrying out said method
CN101227657B (en) MMS element tracing analysis system and method
KR20020055347A (en) Contents relay service apparatus for reducing the quantity of data of web contents on internet and transmitting the reduced data
CN102395117A (en) Method and device for identifying content type
CN101466088A (en) System for Java wireless service charging and implementing method thereof
CN101729266B (en) Charging method and device for link building messages
EP1755351B1 (en) Wireless protocol system combined with sms in mobile environment
CN101361070A (en) Distribution of information in telecommunication systems
JP2003258841A (en) System and method for returning charge, and gateway device
JP3348714B2 (en) Apparatus in mobile terminal company, billing method, and recording medium recording billing program
CN100489903C (en) Mobile fund transferring system utilizing information service and its method
CN102239729B (en) Method, device and system for mobile network access control
CN103874055A (en) Method and system for transmitting subscriber identity to WAP gateway and PDSN
KR100366546B1 (en) The Wireless Location-dependent Advertisement Service System and Method using Messaging Function of Wireless Terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110420

Termination date: 20210220

CF01 Termination of patent right due to non-payment of annual fee