CN101197687B - Method and system for network flux statistics - Google Patents

Method and system for network flux statistics Download PDF

Info

Publication number
CN101197687B
CN101197687B CN2006101240262A CN200610124026A CN101197687B CN 101197687 B CN101197687 B CN 101197687B CN 2006101240262 A CN2006101240262 A CN 2006101240262A CN 200610124026 A CN200610124026 A CN 200610124026A CN 101197687 B CN101197687 B CN 101197687B
Authority
CN
China
Prior art keywords
sip
network flow
equipment
network
flow statistic
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
CN2006101240262A
Other languages
Chinese (zh)
Other versions
CN101197687A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2006101240262A priority Critical patent/CN101197687B/en
Priority to PCT/CN2007/071163 priority patent/WO2008067758A1/en
Publication of CN101197687A publication Critical patent/CN101197687A/en
Application granted granted Critical
Publication of CN101197687B publication Critical patent/CN101197687B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a network flow statistical method which comprises that: network flow subscription equipment sends a SIP subscription message to network flow statistical equipment to request the subscription of the network flow; according to the received SIP subscription message, the network flow is counted by the network flow statistical equipment; the network flow statistical equipment returns network flow statistical results to the network flow subscription equipment through a SIP notification message. The invention also discloses a network flow statistical system. With the invention, soft switch and a SIP server can conveniently achieve the flow information of a SIP terminal and a media gateway, thereby operators can provide corresponding service measures for users according to statistical data packet and signaling flow.

Description

A kind of method and system of network flow statistic
Technical field
The present invention relates to the communications field, relate in particular to a kind of method and system of network flow statistic.
Background technology
(Next Generation Net NGN) adopts carrying and professional control separated structures to next generation network, and soft switch and media gateway are separated into two different entities.Media gateway is passed through in soft switch, access media gateway (Access Media Gateway for example, AMG), integrated access equipment (Integrated Access Device, IAD) etc. link to each other with the terminal use, perhaps pass through media gateway, for example Trunk Media Gateway (Trunk Media Gateway, TMG), (Universal Media Gateway UMG) waits and to link to each other with soft switch or switch Universal Media Gateway.Because the framework that soft switch adopts carrying to separate with business control, soft switch can't be obtained signaling traffic information automatically.In practice, soft switch can by with handle traffic statistics or the soft switch of finishing each user's calling under the soft switch cooperating of media gateway and carry out traffic statistics going into the out-trunk gateway, reach good charging effect.
If soft switch and media gateway or terminal room adopt session initiation protocol (Session InitiationProtocol, SIP) during intercommunication, because the framework that uses the control carrying to separate, soft switch just can't be learnt the flow of media gateway, but flow has important function for operator, according to flow results, can calculate each user or relaying in a period of time or the concrete expense of certain calling, in time grasp client's means of subsistence, take the respective service measure.
Under IP Telecommunication Network based on packet switching, can be implemented in based on MGCP (Media Gateway Control Protocol, MGCP) or H.248 the data packet flow of the switch of agreement or media gateway place statistics per call, promptly when call finishes, sip server or soft switch, the statistic flow if desired of the CSCF network element in the IMS territory for example, just by MGCP or H.248 agreement send audit command messages request network flow calculation to the media gateway of the user attaching of calling and called, media gateway by MGCP or H.248 the audit response message of agreement beam back incoming call exhalation byte number at the single call statistics.Operator charges by the data packet flow that counts.
There is following shortcoming in the network flux statistical method of prior art:
1, can only then can't add up for sip terminal or media gateway based on MGCP/H.248 protocol statistics bag flow;
2, can't add up user terminal or the media gateway data packet flow in a period of time;
3, can't add up the signaling traffic of user terminal or media gateway.
Summary of the invention
Technical problem to be solved by this invention is, a kind of method and system of network flow statistic is provided, makes sip server or soft switch can obtain sip terminal or data packet flow and the signaling traffic information of media gateway in certain time length or single conversation or some cycles.
In order to solve the problems of the technologies described above, the present invention proposes a kind of statistical method of network traffics, may further comprise the steps:
Network traffics are subscribed to equipment and are sent the sip subscribe message that expansion has XML message body to network flow statistic equipment, and network traffics pull subscription; Described network traffics subscription equipment is soft switch or sip server; Described network flow statistic equipment is sip terminal or media gateway;
After network flow statistic equipment receives described sip subscribe message, judge the corresponding traffic statistics function of XML message body content of whether supporting its expansion,, then carry out network flow statistic according to the described sip subscribe message that receives if support;
Network flow statistic equipment returns to network traffics by the SIP notification message with the network flow statistic result and subscribes to equipment.
Wherein, the network flow statistic that carries out of described network flow statistic equipment be packet and or the signaling packet traffic statistics.
Wherein, described step also comprises: after network flow statistic equipment receives described sip subscribe message, judge whether to support the corresponding flow statistical function, if judged result is for being, carry out corresponding network flow statistic, if network flow statistic equipment is not supported described traffic statistics function, then return the sip response message that expression can not be accepted subscribe request to network traffics subscription equipment.
Wherein, described step comprises: network flow statistic equipment starts the fixedly network flow statistic of duration according to the start-up time in the described sip subscribe message that receives; According to the traffic statistics time of sip subscribe message, network flow statistic equipment then stops network flow statistic in the traffic statistics time, and by the SIP notification message fixedly the network flow statistic result in the duration return to network traffics and subscribe to equipment;
Wherein, described step comprises: network flow statistic equipment starts the network flow statistic of single call according to the start-up time of the described sip subscribe message that receives; When end of calling, network flow statistic equipment stops network flow statistic, and by the SIP notification message network flow statistic result of single call is returned to network traffics and subscribe to equipment;
Wherein, described step comprises: network flow statistic equipment is according to the start-up time of the described sip subscribe message that receives, the network flow statistic of start-up period; According to the effective timing statistics and the traffic statistics time of sip subscribe message, described effective timing statistics is the integral multiple of traffic statistics time, network flow statistic equipment each traffic statistics time then, by the SIP notification message each network flow statistic result is returned to network traffics and subscribe to equipment, until effective timing statistics then, stop network flow statistic.
As another kind of implementation, described step can also comprise: network flow statistic equipment is according to the SIP termination messages of subscribing to equipment from network traffics, stop network flow statistic, final traffic statistics result is sent to network traffics by the SIP notification message subscribe to equipment.
Correspondingly, the present invention also provides a kind of network flow statistic system, comprising:
Network traffics are subscribed to equipment, and being used for has the sip subscribe message of XML message body and receive the sip message that it returns by the expansion of the network traffics that pull subscription to the initiation of network flow statistic equipment, obtain the network flow statistic result; Described network traffics subscription equipment is soft switch or sip server; Described network flow statistic equipment is sip terminal or media gateway;
Network flow statistic equipment, behind the described sip subscribe message that is used to receive, judge the corresponding traffic statistics function of XML message body content of whether supporting its expansion, if support, then carry out corresponding traffic statistics, and by the SIP notification message network flow statistic result of correspondence is returned to network traffics and subscribe to equipment according to described sip subscribe message.
Wherein, described network traffics subscription equipment comprises:
The flow subscriber units is used for sending the sip subscribe message of subscribed network flow or the SIP termination messages of termination network flow statistic to network flow statistic equipment, receives network flow statistic equipment to its sip message that returns;
Process flow block, the entrained traffic statistics result of SIP notification message who is used for network flow statistic equipment is returned handles accordingly.
Wherein, described network flow statistic equipment comprises:
The information receiving and transmitting unit, be used to receive the sip subscribe request message of the equipment of subscribing to from network traffics, and return expression to it and accept or refuse the sip response message of subscribed network flow and the SIP notification message that comprises the traffic statistics result to the transmission of network traffics subscription equipment;
The traffic statistics unit, according to the traffic statistics start-up time of described sip subscribe message, start network flow statistic, described network flow statistic is one or more the combination in the following mode: to packet and or signaling packet fixedly duration statistics, packet and or signaling packet are carried out periodic statistics, packet and or signaling packet are carried out the single call statistics, and then stop network flow statistic in the traffic statistics time.
Preferably, described network flow statistic equipment further comprises:
Identifying unit is used for the described sip subscribe message that the message Transmit-Receive Unit receives is analyzed, and judges and whether supports corresponding traffic statistics function.
Implement the present invention, have following beneficial effect:
By event notification mechanism (the Specific Event Notification that uses SIP RFC3265 to describe, SIP) and carry out corresponding extend markup language (Extensible Markup Language, XML) expand, sip server or soft switch can obtain sip terminal or media gateway in certain time length or single conversation or some cycles data packet flow and the statistical information of signaling traffic, thereby make that operator can be according to the packet that comes out, the signaling traffic data are analyzed, grasp user's details and expense situation, so that corresponding service measures to be provided.
Description of drawings
Fig. 1 is the composition schematic diagram of network flow statistic system embodiment of the present invention;
Fig. 2 is the first embodiment schematic flow sheet of network flux statistical method of the present invention;
Fig. 3 is the second embodiment schematic flow sheet of network flux statistical method of the present invention;
Fig. 4 is the 3rd an embodiment schematic flow sheet of network flux statistical method of the present invention.
Embodiment
The core of the embodiment of the invention is, event notification mechanism (Specific EventNotification) based on Session Initiation Protocol carries out corresponding XML expansion, effectively solving in the prior art soft switch can only be based on the MGCP or the data packet flow of agreement statistics media gateway H.248, and the network traffics that can not add up sip terminal, can not add up the data packet flow in a period of time and the problem of signaling traffic, make sip server or soft switch can add up the data packet flow and the signaling traffic of sip terminal or media gateway, make things convenient for operator to charge and corresponding service measures are provided by the network traffics of statistics.
Referring to Fig. 1, be the composition schematic diagram of network flow statistic system embodiment of the present invention.
The network flow statistic system that the embodiment of the invention provides comprises:
Network traffics are subscribed to equipment 1, in the time of specific implementation, it can be soft switch, it also can be sip server, as IP Multimedia System (IP Multimedia Subsystem, IMS) (the Server-Calling session Controlling function of the CSCF network element in the territory, S-CSCF) or other network elements, network traffics subscribe to equipment 1 by the network traffics of initiating to network flow statistic equipment 2 to pull subscription sip subscribe message and receive its sip response message that returns and SIP notification message, to obtain the network flow statistic result;
Network flow statistic equipment 2, in specific implementation, can be existing network element or newly-increased network elements such as sip terminal and IAD, TMG, UMG, AMG, network flow statistic equipment 2 is used for carrying out corresponding traffic statistics according to described SIP subscribe message, and by the SIP notification message network flow statistic result is returned to network traffics subscription equipment 1.
Described network traffics are subscribed to equipment 1 and are specifically comprised:
Flow subscriber units 10 is used for sending to network flow statistic equipment 2 sip subscribe message and the sip response message of subscribed network flow, and receives network flow statistic equipment 2 to its sip response message that returns and SIP notification message;
Process flow block 11, the traffic statistics result who is used for the SIP notification message is carried charges, reports webmaster, stores processor etc. accordingly;
Wherein process flow block specifically also comprises:
Flow processing module 110 is used to store the flow statistics, so that the follow-up network planning;
Flow reports unit 111, is used for the traffic statistics result is reported webmaster, so that webmaster carries out the observation and the management of network traffics;
Charge on traffic unit 112 is used for storing the network flow statistic result into ticket, to its processing of chargeing.
Described network flow statistic equipment 2 specifically comprises:
Information receiving and transmitting unit 20, be used to receive the sip subscribe request message of subscribing to equipment 1 from network traffics, and return expression to it and accept or refuse the sip response message of subscribed network flow and the SIP notification message that comprises the traffic statistics result to the transmission of network traffics subscription equipment;
Identifying unit 21 is used for the described sip subscribe message that message Transmit-Receive Unit 20 receives is analyzed, and judges the corresponding traffic statistics function of message body content of whether supporting its expansion;
Traffic statistics unit 22, when identifying unit 21 decision network traffic statistics equipment 2 are supported the corresponding traffic statistics function of the message body content of described expansion, according to the traffic statistics start-up time of described sip message, start network flow statistic, described network flow statistic is: to packet and signaling packet fixedly duration statistics, packet and signaling packet are carried out periodic statistics, packet and signaling packet are carried out the single call statistics, and then stop network flow statistic in the traffic statistics time.
Referring to Fig. 2, be the schematic flow sheet of first embodiment of network flux statistical method of the present invention.
In this enforcement, sip server or soft switch need be subscribed to sip terminal or packet or the signaling traffic of media gateway in a period of time, and concrete realization flow is as follows:
In the S100 step, sip server or soft switch send SIP Subscribe message to sip terminal or media gateway, network traffics pull subscription, the Expire header field that has in the Subscribe message is that effective time is long, effective duration in the present embodiment is 3600 seconds, Event is the traffic statistics incident, be defined as flux-stat in the present embodiment, carry the title of XML message body in the Content-Type message, be defined as Content-Type:application/x-flux-stat-request+xml in the present embodiment.The XML particular content of Subscribe message comprises:
A, statistical (stat type), the flow of statistics, periodic statistics, single conversation for a long time when comprising fixedly is fixing duration in the present embodiment the inside.
The bag type of B, statistics (flux stat type) comprises packet statistics, signaling packet statistics, packet and statistics of signaling packet.
C, statistical counting mode (count type) comprise the number of statistics transmission/reception bag, total size (bite number) of transmission/reception bag.
D, start absolute time (start real time), inform the absolute time of startup
E, traffic statistics time (total time for stat), the time that indicating terminal or gateway are added up, can be different from time of Expire, the time of Expire is the effective time of expression subscribed network flow.
The code of concrete SIP Subscribe example message is as follows:
SUBSCRIBE?sip:191.178.1.1:5061?SIP/2.0
Via:SIP/2.0/UDP?191.178.99.101:5060;branch=z9hG4bKc3faa9eb2f24a14f6c
f4c1c1f2e0f483;orig-sub
Max-Forwards:70
Route:<sip:191.178.1.1:5061;lr>
P-Asserted-Identity:<sip:191.178.99.101>
P-Charging-Vector:cid-value=173SX-20060822165427-02224868;orig-ioi=sub.
pccw.com;term-ioi=sub.pccw.com;icid-generated-at=191.178.99.101
Privacy:none
From:<sip:191.178.99.101>;tag=ded66c7393d8b7e29fe25cf851ff0e60
To:<sip:191.178.1.1>
Call-ID:3bcd5f0ecff18de2e8c34202d5515a18
CSeq:13992?SUBSCRIBE
Event:flux-stat
Expires:3600
Contact:<sip:191.178.99.101:5060>
Content-Length:XXX
Content-Type:application/x-flux-stat-request+xml
<?xml?version=″1.0″?>
<flux-stat-request?ref=″aps?1-2234543″>
<stat?type=fix-timer/>
<count?type=packet-number-and-total-bytes/>
<start?real?time=2006-07-23-12-00-00/>
<fux?stat?type=rtp-packets-and-siginal-packets/>
<total?time?for?stat=3600/>
</flux-stat-request>
At step S101, after sip terminal or media gateway are received the SIP Subscribe flow subscribe message of sip server or soft switch, sip terminal or media gateway are analyzed it, if the corresponding traffic statistics function of sip terminal or media gateway support, then return SIP 200 response messages to sip server or soft switch, this subscribe request has been accepted in indication.If sip terminal or media gateway are not supported XML message body that expands, should reply SIP 489 corresponding message this moment, and expression can not receive this subscriptions, and soft switch at this moment or other sip server be the transmitted traffic subscribe message no longer.
At step S102, sip terminal or media gateway send SIP Notify message to sip server or soft switch, start corresponding statistical function the start-up time that defines in XML message body simultaneously, and Notify message reports sip server or soft switch with initial statistic behavior.In the concrete SIP Notify message, the Subscription-State header field uses Subscription-State:start to represent that other every index all is 0 outside the beginning.
At step S103, SIP Notify message is received in sip server or soft switch, returns SIP 200 response messages to sip terminal or media gateway;
At step S104, the traffic statistics that define in XML message body are after time is up, sip terminal or media gateway send SIP Notify message to sip server or soft switch, final statistics is reported sip server or soft switch, in the concrete SIP Notify message, carry the Subscription-State header field, the expression statistics finishes, and the result of statistics comprises: statistical, send packet, receive packet, send signaling, receive signaling, send the data word joint number, receive the data word joint number, send the signaling byte number, receive the signaling byte number.
The code of concrete SIP Notify example message is as follows:
NOTIFY?sip:191.178.99.101:5060?SIP/2.0
Via:SIP/2.0/UDP?191.178.1.1:5061;branch=z9hG4bK280716337
Call-ID:3bcd5f0ecff18de2e8c34202d5515a18
From:<sip:191.178.1.1>;tag=44b23fac
To:<sip:191.178.99.101>;tag=ded66c7393d8b7e29fe25cf851ff0e60
CSeq:1?NOTIFY
Contact:<sip:191.178.1.1:5061>
Subscription-State:terminated;reason=completed
Max-Forwards:70
Accept:application/sdp
Event:flux-stat
Supported:100rel,timer
Content-Length:XXX
Content-Type:application/x-flux-stat-result+xml
<?xml?version=″1.0″?>
<flux-stat-result?ref=″aps?1-2234543″>
<stat?type=fix-timer/>
<sent?rtp?packets=1000/>
<receive?rtp?packets=1200/>
<sent?siginal?packets=10/>
<receive?siginal?packets=12/>
<sent?total?rtp?btis=1000000/>
<receive?total?rtp?bits=1200000/>
<sent?total?siginal?bits=10000/>
<receive?total?siginal?bits=12000/>
</flux-stat-result>
Need to prove, after starting the traffic statistics task, sip server or soft switch can send the SIP termination messages to sip terminal or media gateway at any time, be Subscribe message, wherein, among the Expire of Subscribe message 0, expression stops statistics task, then as another kind of execution mode, at step S104, sip terminal or media gateway can stop network flow statistic after receiving the SIP termination messages, and, final statistics is reported sip server or soft switch to sip server or soft switch transmission SIP Notify message.
At step S105, SIP Notify message is received in sip server or soft switch, returns SIP 200 response messages to sip terminal or media gateway, confirms to have received the traffic statistics result.After the traffic statistics result is received in sip server or soft switch, can be saved in the middle of the ticket, carry out user's charging, also can report webmaster, observe online flow for webmaster.
Referring to Fig. 3, be the schematic flow sheet of second embodiment of network flux statistical method of the present invention.
In this enforcement, packet or signaling traffic when sip server or soft switch need be subscribed to sip terminal or media gateway single call, concrete realization flow is as follows:
In the S200 step, sip server or soft switch send SIPSubscribe message to sip terminal or media gateway, network traffics pull subscription, the Expire header field that has in the Subscribe message is that effective time is long, Event is the traffic statistics incident, wherein the measurement type in the XML message body of carrying in the Subscribe message is the single call traffic statistics, and specific code is as follows:
<?xml?version=″1.0″?>
<flux-stat-request?ref=″aps1-2234543″>
<stat?type=next-call/>
<count?type=packet-number-and-total-bytes/>
<flux?stat?type=rtp-packets-and-siginal-packets/>
</flux-stat-request>
At step S201, after sip terminal or media gateway are received the SIP Subscribe flow subscribe message of sip server or soft switch, sip terminal or media gateway are analyzed it, if the corresponding traffic statistics function of sip terminal or media gateway support, then return SIP 200 response messages to sip server or soft switch, this subscribe request has been accepted in indication.If sip terminal or media gateway are not supported XML message body that expands, should reply SIP 489 corresponding message this moment, and expression can not receive this subscriptions, and soft switch at this moment or other sip server be the transmitted traffic subscribe message no longer.
At step S202, sip terminal or media gateway send SIP Notify message to sip server or soft switch, start corresponding statistical function the start-up time that defines in XML message body simultaneously, and Notify message reports sip server or soft switch with initial statistic behavior.In the concrete SIP Notify message, the Subscription-State header field uses Subscription-State:start to represent that other every index all is 0 outside the beginning.
At step S203, SIP Notify message is received in sip server or soft switch, returns SIP 200 response messages to sip terminal or media gateway;
At step S204, sip server or soft switch are to the SIP Invite message of sip terminal or media gateway transmission expression calling subscriber's off-hook, and request is set up and called out connection;
At step S205, sip terminal or media gateway are returned SIP 180 ring-back tone message to sip server or soft switch, expression called subscriber ring;
At step S206, sip terminal or media gateway are returned SIP 200 response messages to sip server or soft switch, expression called subscriber off-hook;
At step S207, sip server or soft switch send SIP ACK message to sip terminal or media gateway, and what acknowledge receipt of the called subscriber plucks agent message, and calling and called are set up to call out and connected, and converse;
At step S208, sip terminal or media gateway are returned SIP BYE message to sip server or soft switch, expression called subscriber on-hook;
At step S209, sip server or soft switch send SIP 200 response messages to sip terminal or media gateway, and called subscriber's on-hook message is received in expression, call out to connect and cut off, so far end of conversation;
Need to prove that the traffic statistics that sip terminal or media gateway are carried out are in this whole process of step S204 to S209;
At step S210, behind the end of conversation, sip terminal or media gateway send SIP Notify message to sip server or soft switch, final statistics is reported sip server or soft switch, in the concrete SIP Notify message, carry the Subscription-State header field, represent to add up end, the result of statistics comprises: statistical, transmission packet, reception packet, transmission signaling, reception signaling, transmission data word joint number, reception data word joint number, transmission signaling byte number, reception signaling byte number.
The code of concrete XML example message is as follows:
<?xml?version=″1.0″?>
<flux-stat-result?ref=″aps?1-2234543″>
<stat?type=next-call/>
<sent?rtp?packets=1000/>
<receive?rtp?packets=1200/>
<sent?siginal?packets=10/>
<receive?siginal?packets=12/>
<sent?total?rtp?btis=1000000/>
<receive?total?rtp?bits=1200000/>
<sent?total?siginal?bits=10000/>
<receive?total?siginal?bits=12000/>
</flux-stat-result>
Need to prove, after starting the traffic statistics task, sip server or soft switch can send the SIP termination messages to sip terminal or media gateway at any time, be Subscribe message, wherein, among the Expire of Subscribe message 0, expression stops statistics task, then as another kind of execution mode, at step S210, sip terminal or media gateway can stop network flow statistic after receiving the SIP termination messages, and, final statistics is reported sip server or soft switch to sip server or soft switch transmission SIP Notify message.
At step S211, SIP Notify message is received in sip server or soft switch, returns SIP 200 response messages to sip terminal or media gateway, confirms to have received the traffic statistics result.After the traffic statistics result is received in sip server or soft switch, can be saved in the middle of the ticket, carry out user's charging, also can report webmaster, observe online flow for webmaster.
Referring to Fig. 4, be the schematic flow sheet of the 3rd embodiment of network flux statistical method of the present invention.
In this enforcement, sip server or soft switch need the packet or the signaling traffic of periodic statistics sip terminal or media gateway, this traffic statistics generally are the SIP media gateway to be carried out traffic statistics just be suitable for, be used to add up the flow in certain time period, concrete realization flow is as follows:
In the S300 step, sip server or soft switch send SIPSubscribe message to sip terminal or media gateway, network traffics pull subscription, the Expire header field that has in the Subscribe message is that effective time is long, effective duration in the present embodiment need be greater than the duration in the XML message body, the integral multiple of duration in the XML message body normally, Event is the traffic statistics incident, in the present embodiment flux-stat, carrying the title of XML message body in the Content-Type message, is Content-Type:application/x-flux-stat-request+xml in the present embodiment.Here Tong Ji type is a periodic statistics, and subscribing to duration is 24 hours, on to call time be 1 hour.
The message code of XML in the Subscribe message is specific as follows:
<?xml?version=″1.0″?>
<flux-stat-request?ref=″aps?1-2234543″>
<stat?type=circle-stat/>
<count?type=packet-number-and-total-bytes/>
<start?real?time=2006-07-23-12-00-00/>
<flux?stat?type=rtp-packets-and-siginal-packets/>
<total?timefor?stat=3600/>
</flux-stat-request>
At step S301, after sip terminal or media gateway are received the SIP Subscribe flow subscribe message of sip server or soft switch, sip terminal or media gateway are analyzed it, if the corresponding traffic statistics function of sip terminal or media gateway support, then return SIP 200 response messages to sip server or soft switch, this subscribe request has been accepted in indication.If sip terminal or media gateway are not supported XML message body that expands, should reply SIP 489 corresponding message this moment, and expression can not receive this subscriptions, and soft switch at this moment or other sip server be the transmitted traffic subscribe message no longer.
At step S302, sip terminal or media gateway send SIP Notify message to sip server or soft switch, start corresponding statistical function the start-up time that defines in XML message body simultaneously, and Notify message reports sip server or soft switch with initial statistic behavior.In the concrete SIP Notify message, the Subscription-State header field uses Subscription-State:start to represent that other every index all is 0 outside the beginning.
At step S303, SIP Notify message is received in sip server or soft switch, returns SIP 200 response messages to sip terminal or media gateway;
At step S304, the traffic statistics that define in XML message body are after time is up, sip terminal or media gateway send SIP Notify message to sip server or soft switch, final statistics is reported sip server or soft switch, in the concrete SIP Notify message, carry the Subscription-State header field, the expression statistics finishes, and the result of statistics comprises: statistical, send packet, receive packet, send signaling, receive signaling, send the data word joint number, receive the data word joint number, send the signaling byte number, receive the signaling byte number.
The code of concrete SIP Notify example message is as follows:
<?xml?version=″1.0″?>
<flux-stat-result?ref=″aps1-2234543″>
<stat?type=circle-stat/>
<sent?rtp?packets=1000/>
<receive?rtp?packets=1200/>
<sent?siginal?packets=10/>
<receive?siginal?packets=12/>
<sent?total?rtp?btis=1000000/>
<receive?total?rtp?bits=1200000/>
<sent?total?siginal?bits=10000/>
<receive?total?siginal?bits=12000/>
</flux-stat-result>
Need to prove, after starting the traffic statistics task, sip server or soft switch can send the SIP termination messages to sip terminal or media gateway at any time, be Subscribe message, wherein, among the Expire of Subscribe message 0, expression stops statistics task, then as another kind of execution mode, at step S304, sip terminal or media gateway can stop network flow statistic after receiving the SIP termination messages, and, final statistics is reported sip server or soft switch to sip server or soft switch transmission SIP Notify message.
At step S305, SIP Notify message is received in sip server or soft switch, returns SIP 200 response messages to sip terminal or media gateway, confirms to have received the traffic statistics result.After the traffic statistics result is received in sip server or soft switch, can be saved in the middle of the ticket, carry out user's charging, also can report webmaster, observe online flow for webmaster.
At step S306, after the first time, statistics sent, sip terminal or media gateway were restarted traffic statistics, and the traffic statistics time also sent a traffic statistics result in promptly one hour to reporting the traffic statistics result later on once more;
At step S307, SIP Notify message is received in sip server or soft switch, returns SIP 200 response messages to sip terminal or media gateway, confirms to have received the traffic statistics result.
Above disclosed is a kind of preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (9)

1. the statistical method of network traffics is characterized in that, may further comprise the steps:
Network traffics are subscribed to equipment and are sent the sip subscribe message that expansion has XML message body to network flow statistic equipment, and network traffics pull subscription; Described network traffics subscription equipment is soft switch or sip server; Described network flow statistic equipment is sip terminal or media gateway;
After network flow statistic equipment receives described sip subscribe message, judge the corresponding traffic statistics function of XML message body content of whether supporting its expansion,, then carry out network flow statistic according to the described sip subscribe message that receives if support;
Network flow statistic equipment returns to network traffics by the SIP notification message with the network flow statistic result and subscribes to equipment.
2. network flux statistical method as claimed in claim 1 is characterized in that, described step comprises:
Network flow statistic equipment starts the fixedly network flow statistic of duration according to the start-up time in the described sip subscribe message that receives;
According to the traffic statistics time in the sip subscribe message, network flow statistic equipment then stops described network flow statistic in the traffic statistics time, and by the SIP notification message fixedly the network flow statistic result in the duration return to network traffics and subscribe to equipment.
3. network flux statistical method as claimed in claim 1 is characterized in that, described step comprises: network flow statistic equipment starts the network flow statistic of single call according to the start-up time in the described sip subscribe message that receives;
When end of calling, network flow statistic equipment stops described network flow statistic, and by the SIP notification message network flow statistic result of single call is returned to network traffics and subscribe to equipment.
4. network flux statistical method as claimed in claim 1 is characterized in that, described step comprises: network flow statistic equipment is according to the start-up time of the described sip subscribe message that receives, the network flow statistic of start-up period;
Network flow statistic equipment network flow calculation in the traffic statistics time in each sip subscribe message, and pass through the SIP notification message to network traffics subscription equipment transmission network flow statistic result, and the effective timing statistics in sip subscribe message then, stops network flow statistic.
5. as each described network flux statistical method in the claim 1 to 4, it is characterized in that, the network flow statistic that described network flow statistic equipment carries out be packet and or the signaling packet traffic statistics.
6. network flux statistical method as claimed in claim 1 is characterized in that, described step comprises:
Network flow statistic equipment stops network flow statistic according to the SIP termination messages of subscribing to equipment from network traffics, final traffic statistics result is sent to network traffics by the SIP notification message subscribe to equipment.
7. a network flow statistic system is characterized in that, comprising:
Network traffics are subscribed to equipment, and being used for has the sip subscribe message of XML message body and receive the sip message that it returns by the expansion of the network traffics that pull subscription to the initiation of network flow statistic equipment, obtain the network flow statistic result; Described network traffics subscription equipment is soft switch or sip server; Described network flow statistic equipment is sip terminal or media gateway;
Network flow statistic equipment, after being used to receive described sip subscribe message, judge the corresponding traffic statistics function of XML message body content of whether supporting its expansion, if support, then carry out corresponding traffic statistics, and by the SIP notification message network flow statistic result of correspondence is returned to network traffics and subscribe to equipment according to described sip subscribe message.
8. network flow statistic as claimed in claim 7 system is characterized in that, described network traffics are subscribed to equipment and specifically comprised:
The flow subscriber units is used for sending the sip subscribe message of subscribed network flow or the SIP termination messages of termination network flow statistic to network flow statistic equipment, receives network flow statistic equipment to its sip message that returns;
Process flow block, the entrained traffic statistics result of SIP notification message who is used for network flow statistic equipment is returned handles accordingly.
9. network flow statistic as claimed in claim 7 system is characterized in that described network flow statistic equipment comprises:
The information receiving and transmitting unit, be used to receive the sip subscribe message of the equipment of subscribing to from network traffics, and return expression to it and accept or refuse the sip response message of subscribed network flow and the SIP notification message that comprises the traffic statistics result to the transmission of network traffics subscription equipment;
Identifying unit is used for the described sip subscribe message that the message Transmit-Receive Unit receives is analyzed, and judges the corresponding traffic statistics function of XML message body content of whether supporting its expansion;
The traffic statistics unit, according to the traffic statistics start-up time of described sip subscribe message, start network flow statistic, described network flow statistic is one or more the combination in the following mode: to packet and or signaling packet fixedly duration statistics, packet and or signaling packet are carried out periodic statistics, packet and or signaling packet are carried out the single call statistics, and then stop network flow statistic in the traffic statistics time.
CN2006101240262A 2006-12-04 2006-12-04 Method and system for network flux statistics Expired - Fee Related CN101197687B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2006101240262A CN101197687B (en) 2006-12-04 2006-12-04 Method and system for network flux statistics
PCT/CN2007/071163 WO2008067758A1 (en) 2006-12-04 2007-12-04 Method, device and system for network traffic statistics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101240262A CN101197687B (en) 2006-12-04 2006-12-04 Method and system for network flux statistics

Publications (2)

Publication Number Publication Date
CN101197687A CN101197687A (en) 2008-06-11
CN101197687B true CN101197687B (en) 2011-04-27

Family

ID=39491678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101240262A Expired - Fee Related CN101197687B (en) 2006-12-04 2006-12-04 Method and system for network flux statistics

Country Status (2)

Country Link
CN (1) CN101197687B (en)
WO (1) WO2008067758A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101600186B (en) 2009-06-12 2013-11-06 中兴通讯股份有限公司 Method and device for traffic statistics and automatic computation of network charge
US10015286B1 (en) 2010-06-23 2018-07-03 F5 Networks, Inc. System and method for proxying HTTP single sign on across network domains
US8959571B2 (en) * 2010-10-29 2015-02-17 F5 Networks, Inc. Automated policy builder
CN102480711B (en) * 2010-11-30 2016-04-20 中国电信股份有限公司 Charge on traffic method and packet data serving node
US8737204B2 (en) 2011-05-02 2014-05-27 Telefonaktiebolaget Lm Ericsson (Publ) Creating and using multiple packet traffic profiling models to profile packet flows
CN102509251A (en) * 2011-09-27 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Data statistics method and device
US8817655B2 (en) 2011-10-20 2014-08-26 Telefonaktiebolaget Lm Ericsson (Publ) Creating and using multiple packet traffic profiling models to profile packet flows
EP2587751A1 (en) 2011-10-24 2013-05-01 TELEFONAKTIEBOLAGET LM ERICSSON (publ) Method and arrangement for data clustering
CN104378749B (en) * 2013-08-12 2020-03-10 中兴通讯股份有限公司 Charging implementation method and system based on SDN EPC network
CN104684003B (en) * 2015-02-12 2017-12-26 洛阳市质量技术监督检验测试中心 A kind of mobile network's flow-measuring method
CN104683967A (en) * 2015-02-12 2015-06-03 洛阳市质量技术监督检验测试中心 Mobile network flow measurement system
CN106407636B (en) * 2015-07-31 2020-02-14 腾讯科技(深圳)有限公司 Integration result statistical method and device
CN108632478B (en) * 2017-03-24 2021-01-26 北京京东尚科信息技术有限公司 Method and device for counting call details, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437351A (en) * 2002-02-05 2003-08-20 华为技术有限公司 Charge method based on data flow quantity
CN1474538A (en) * 2002-08-09 2004-02-11 华为技术有限公司 Method for realizing charge informing of network terminal based on initial conversation protocol
WO2005009021A1 (en) * 2003-07-22 2005-01-27 Nokia Corporation Charging in a communication system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW344054B (en) * 1996-09-20 1998-11-01 Ibm System and method for measuring and accounting for data traffic on networks
US6108782A (en) * 1996-12-13 2000-08-22 3Com Corporation Distributed remote monitoring (dRMON) for networks
CN100438411C (en) * 2002-11-14 2008-11-26 华为技术有限公司 Network traffic statistical method of IP device
US7031264B2 (en) * 2003-06-12 2006-04-18 Avaya Technology Corp. Distributed monitoring and analysis system for network traffic
US7443803B2 (en) * 2004-03-23 2008-10-28 Fujitsu Limited Estimating and managing network traffic

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1437351A (en) * 2002-02-05 2003-08-20 华为技术有限公司 Charge method based on data flow quantity
CN1474538A (en) * 2002-08-09 2004-02-11 华为技术有限公司 Method for realizing charge informing of network terminal based on initial conversation protocol
WO2005009021A1 (en) * 2003-07-22 2005-01-27 Nokia Corporation Charging in a communication system

Also Published As

Publication number Publication date
WO2008067758A1 (en) 2008-06-12
CN101197687A (en) 2008-06-11

Similar Documents

Publication Publication Date Title
CN101197687B (en) Method and system for network flux statistics
US7463624B2 (en) Monitoring connection state between main equipment and terminal in network telephone system
CN102138312A (en) Failure recovery in an IP multimedia subsystem network
CN101491042A (en) Methods, systems, and computer program products for providing Internet Protocol Multimedia Subsystem (IMS) services in response to Advanced Intelligent Network (AIN) triggers
EP2297917A1 (en) System and methods for quality of experience reporting
JP2000209282A (en) Voice gateway and its path selection method
RU2011151783A (en) SERVICE BACKGROUND BLOCK, AGENCY SYSTEM AND CALL MANAGEMENT METHOD IN SUCH SYSTEM
KR100794416B1 (en) Method of obtaining the packet charge data for the voice over internet protocol call using session initiation protocol
CN102804685A (en) Method and apparatus for use in an IP multimedia subsystem
US20140242942A1 (en) Optimization of online charging triggers in communication networks
KR20060028128A (en) Apparatus and method of providing caller identification in voip service system
CN101365157A (en) Service triggering method, system and apparatus
CN1976376B (en) Method for calling session, IP telephone system and IP telephone terminal
US7283624B1 (en) Idle detection for answer supervision
KR100770946B1 (en) Apparatus and method for providing video streaming service to sip user agent using session initiation protocol
KR100907612B1 (en) Method and system for charging after session termination in IP multimedia subsystem
KR100959019B1 (en) Method for collecting billing information in real time by forking SIP messages in a SIP-based network
US20080274720A1 (en) Method for Collecting User Behavior During Run-Time in a Mobile 3Gpp Ip-Based Multimedia Subsystem (Ims)
CN101286951B (en) Session preemption method
KR100996643B1 (en) System and method for processing accounting based on IMS
KR100461726B1 (en) A System for Providing the Service Using Open Service API in Integrated Network Based on Internet
EP1855454A1 (en) Method and apparatus for speaker identification in a conference call
KR100740387B1 (en) Method and Devices for Transmitting Data in VoIP Key-Phone System
KR100911816B1 (en) Charge processing system for video communication and method thereof
CN101110684A (en) Polychrome business implementing method

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
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110427

Termination date: 20111204