Summary of the invention
For overcoming information Recognition difficulty and the limited defective of using based on SIP in the active computer network of information management, the present invention proposes a kind of service flow management method of using towards SIP.
According to an aspect of the present invention, proposed a kind of service flow management method of using towards SIP, having comprised:
Step 10), user's login local sip proxy server send PUBLISH to this sip proxy server;
Step 20), local sip user is initiated or the received communication service request, resolves SIP service request INVITE, inquires about described PUBLISH, sends the professional announcement of initiating;
Step 30), described sip proxy server intercepts and captures in network layer and comprises described professional packet of initiating announcement, based on user's sip address, every traffic communications link establishment corresponding data bag formation passage for each user carries out the scheduling of data packet queue.
Wherein, described method also comprises:
Step 40), check the access network information in the described user traffic flow information management table, when determining that the user access network type changes, carry out the adjustment of link bandwidth according to the customer service demand levels information in the described PUBLISH information.
Wherein, in the step 10), described user comprises one or more sip user on local sip user and the telecommunication main frame.
Wherein, step 10) further comprises:
Step 110), the user is according to standard SIP flow process login sip proxy server, acting server is replied 200OK message, the user sends PUBLISH to local proxy server; Described PUBLISH comprises customer service demand levels information and user access network type;
Step 120), local proxy server receives described PUBLISH, stores the local data base that comprises opposite end sip address and peer IP address into;
Step 130), the PUBLISH of issue renewal changes grade of service information and is sent to local sip proxy server; Wherein, if the user's request class information changes, when the generation network switches, send new PUBLISH in real time to local sip server.
Wherein, step 20) also comprises in: send described professionally when initiating announcement, send the user profile announcement, be used for inquiring about and upgrading the user profile of local sip proxy server.
Wherein, step 20) further comprise:
Step 210), the local user sets up multimedia service according to SIP flow process and other sip users, local proxy server is resolved INVITE and 200OK message, parses the current professional information of initiating from described 200OK message;
Step 220), according to the professional information of described current initiation, the professional designated treatment port of initiating to announce and be sent to grid layer processing unit of composition;
Step 230), local sip proxy server is according to the other side's sip address inquiring user business demand class information and access network information, and wherein user profile is sent to system bottom designated treatment port with the form of announcement;
Step 240), when local sip proxy server receives the PUBLISH of renewal, extract local user's information, after determining that the information content changes, the legacy data library information is upgraded, in time notify this to end subscriber according to opposite end User IP in the user message table and sip address information.
Wherein, step 210) further comprise: other sip users are initiated multimedia service, and the local user replys 200OK message, parse the current professional information of initiating from the INVITE that the other side sends over.
Wherein, step 230) in, described query script comprises:
Correspondent Node user and local user are the user in the same domain, and acting server is query-related information in local data base directly;
Correspondent Node user and local user are the user in the same area not, and acting server sends the sip proxy server of query messages to the other side territory according to the other side SIP address, is carried out in the territory by sip proxy server in the other side territory and inquires about.
Wherein, step 30) further comprise:
Step 310), receive new business at designated port and initiate announcement and user profile, set up the user traffic flow information management table, wherein, each professional corresponding a series of new business is initiated advertised information in the table, user can corresponding several business;
Step 320), the local user receives the professional announcement of initiating, and is foundation with the IP address and the port of user place business, at network layer intercepted data bag, and set up the packet administration queue according to described user traffic flow information management table and carry out service flow management;
Step 330), according to described packet administration queue and the described professional announcement of initiating, do not needing to carry out under the situation that QoS regulates, the inside and outside two-layer mode of changeing according to wheel of packet administration queue is carried out data packet dispatching.
Wherein, step 320) in, in the packet administration queue, outer layer queue carries out Classification Management according to the user, and interior layer queue is classified by the communication port of customer service, and the length of inside and outside data packet queue is identical.
Wherein, step 40) further comprise:
Step 410), local user's inquiring user Business Stream information management table medium-long range user's access network situation and business demand class information, in real time and previous moment user access network condition information compare;
Step 420), determine that the user inserts that condition information changes and certain time, adjustment flows to this user service flow bandwidth according to user class of service information, comprises according to user class of service the different business corresponding queues is carried out packet loss.
Use for reference the traditional business flow management method in this method, initiate professional particularity, the business of application layer is initiated message combine with scheduling, accurately realized the identification of Business Stream classification with the management of the packet of network layer at Session Initiation Protocol; By means of the distinctive extension of message mode of SIP, realize the real-time release and the change of user profile simultaneously.The present invention has adopted the new business notifying mechanism of using at the SIP typical case, with user's sip address is the management that keyword carries out the Business Stream resource, variation according to the user access network situation, allocate the bandwidth of current business flow in real time in conjunction with customer service demand levels information, improve utilization rate of network resource and current network operating efficiency effectively.
Embodiment
Below in conjunction with the drawings and specific embodiments a kind of service flow management method of using towards SIP provided by the invention is described in detail.
In according to one embodiment of present invention, a kind of method that service flow management in real time, automatically is provided for the multimedia communication service user under heterogeneous network environment is provided, and this embodiment can be applied to operate on the multimedia communication service of the audio, video data transmission on the (SuSE) Linux OS platform.Fig. 1 illustrates concrete network topology environment, and as shown in Figure 1, user A is by wireless mode access network (as WLAN), and the party B-subscriber is by wireless mode access network (supposing also to be WLAN), and C user is by the LAN access network.The party A-subscriber carries out audio frequency and video or file data transmission by core IP network with B and C user.Solid line is represented the wire link that connecting, lightning symbolic representation Radio Link.A, B and C user three all finish professional foundation and end by the login sip proxy server, and this embodiment provides each user and is in the interior situation of same management domain, and under the real network environment, each user can be in the different management domains.The method according to this invention is applicable to that simultaneously communicating pair is that heterogeneous network inserts the multimedia communication service process based on IP kernel heart net under the environment, under the situation of xenogenesis access way, the bandwidth that network can provide respectively has difference, but detection that the present invention relates to and regulative mode are suitable equally.
Fig. 2 illustrates a kind of according to an embodiment of the invention overall flow figure of the service flow management method of using towards typical SIP, a plurality of SIP communication terminal users that described method can be current main frame provide the issue of Business Stream management of information and user profile, comprise: user's login local sip proxy server sends PUBLISH (comprising user class of service information etc.) to this sip proxy server; Local sip user is initiated or the received communication service request, resolves SIP service request INVITE, inquires about described PUBLISH, sends the professional announcement of initiating; Described sip proxy server is set up the user traffic flow information management table, intercept and capture the packet that comprises described professional initiation announcement in network layer, based on user's sip address, every traffic communications link establishment corresponding data bag formation passage for each user carries out the scheduling of data packet queue; Check the access network information in the described user traffic flow information management table, when determining that the user access network type changes, carry out the adjustment of link bandwidth according to the customer service demand levels information in the described PUBLISH information.
As shown in Figures 2 and 3, when one or more sip user carries out multimedia communication on local sip user and the telecommunication main frame, carry out following steps:
(1), local sip user A, opposite end sip user B, C be login local sip proxy server (SIP Proxy) respectively, and send the PUBLISH that has information such as customer service demand levels information, user access network type to this acting server, acting server with this PUBLISH information stores to local data base.Known as those skilled in that art, PUBLISH is specific definition in Session Initiation Protocol, and the PUBLISH that above-mentioned user sends includes but not limited to customer service demand levels information, user access network type.
Further, described step (1) comprising:
(10), user A, B and C are according to the sip proxy server in the management domain of standard SIP flow process login place, login process sends REGISTER message to acting server by the user and realizes, acting server comprises answer the corresponding 200OK message of logining successfully or failing.
(11), behind each logging in system by user, the SIP extended message PUBLISH that sends the peculiar information of user that contains this user class of service information, access network information is to local proxy server.
Here the peculiar information of the user who mentions is meant the information when business of mentioning in later step (20) is set up, be directed to certain user's particular attribute message, refer in particular to customer service demand levels information and user access network type etc., message structure as shown in Figure 4.
Customer service demand levels information, corresponding to the demand difference of user to the different business grade, height ordering according to priority.In this method, will be divided into following four kinds based on the main business application of SIP, reference numeral is as shown in the table, and the user can set the order of user gradation according to actual conditions, by number order priority from high to low, and for example: 1234 or 2341.
Class of business |
Describe |
1、AUDIO |
The audio conferencing of corresponding voice-enabled chat, VOIP and other form etc. |
2、VIDEO |
Corresponding video conference, chat etc. |
3、FILE |
Respective file is shared, file transfer etc. |
4、OTHER |
Other business are as Message etc. |
(13), the PUBLISH in the local proxy server receiving step (12), simultaneously with information extractions such as the customer service demand levels information in the message body, user access network types, be stored in the middle of the local data base with the form of user profile statistical form, form is with reference to as follows usually:
Sip address 1 (this locality) |
Grade of service demand information |
The access network mode |
Sip address 1 (opposite end) |
Peer IP address 1 |
Sip address 2 (this locality) |
Grade of service demand information |
The access network mode |
Sip address 2 (opposite end) |
Peer IP address 2 |
The opposite end sip address on above table right side and peer IP address are and local sip user is set up professional opposite end user profile, are safeguarded according to SIP Signalling exchange content and are inquired about by acting server, in time empty during service ending.In the practical application, local and Correspondent Node main frame is safeguarded above-mentioned user profile statistical form separately, is convenient to the extraction of information and searches.
In the present embodiment, acting server will be stored the user profile of three user A, B, C in this example, the contents are as follows:
sip:860106767672@domainl.com |
1234 |
LAN |
sip:86010applelet@domainl.com |
2001:cc0:2026:3::1210 |
sip:86010applelet@domainl.com |
3241 |
WLAN |
sip:860106767672@domainl.com |
2001:cc0:2026:3::70 |
sip:86010alice@domainl.com |
2341 |
CDMA |
sip:86010applelet@domainl.com |
2001:cc0:2026:3::333 |
PUBLISH in the said process with reference to the accompanying drawings 4, A, B, each customer service demand levels of C are respectively 1234,3241,2341 in proper order in the example.
(14), in the above-mentioned steps, the user is according to actual conditions, the PUBLISH message that can upgrade by issue at any time change grade of service information, and is sent to the sip proxy server in this territory; Especially, network switches or during again with other access network forms login sip servers, can send new PUBLISH in real time to local sip server if the user's request class information changes, takes place.
(2), local sip user A sends or receives the request of multimedia communication service, (INVITE or 200OK) resolves and puts in order to the SIP business request information, the information of the user class of service field in the query steps (1) sends professional initiation announcement and user profile and announces to the network layer data processing unit simultaneously.
Further, described step (2) comprising:
(21), local user A sets up multimedia service according to SIP flow process and other sip users (for example user B); At first send INVITE to acting server, acting server is finished transfer then, and this message is sent to user B; User B replys 200OK, and local user A is by reply ACK in the acting server, and new business begins to set up.Local proxy server extracts the partial information in INVITE and the 200OK message simultaneously, long-distance user's sip address in the update user information admin table and IP address, and message structure is as shown in Figure 4.
(22) step below continuing to carry out; If do not obtain the 2000K message that the other side responds, then whole process is no longer proceeded, and this new business is set up failure.
(22), parse the current professional relevant information of initiating in the 2000K message of local host from above-mentioned steps (21), comprise both sides' sip address, IP address, port numbers, type of service etc., then service related information is formed the professional announcement of initiating, is announced content usually with reference to following table:
Flag bit |
User's sip address |
Type of service |
Local IP |
Remote I P |
Port numbers |
In the present embodiment, the service announcement content is with reference to following table:
IF |
sip:86010applelet@domainl.com |
2 |
2001:cc0:2026:3::1210 |
2001:cc0:2026:3::70 |
7981 |
(23), the business in the step (32) is initiated announcement and be sent to grid layer processing unit designated treatment port (for example 9111).For above-mentioned steps (21), (22) and (23), there be second kind of situation, the reciever that promptly local sip user is initiated as business is at first initiated professional situation by the sip user on the other-end.At this moment, reply 200OK message, from the INVITE that the other side sends over, parse the current professional relevant information of initiating immediately by the local user.
What narrate in the above-mentioned steps is the situation that the local user initiatively initiates multimedia service, if professional by end subscriber is initiatively initiated, and the reciever that local sip user A will initiate as business this moment.As shown in Figure 3, the party A-subscriber at first receives to the INVITE of end subscriber C and resolve, and extracts wherein sip address, IP address then, and information such as port, type of service are formed the professional announcement of initiating, and reply 200K message simultaneously.Service announcement thes contents are as follows:
IF |
sip:86010alice@domainl.com |
1 |
2001:cc0:2026:3::1210 |
2001:cc0:2026:3::70? |
7743 |
(24), acting server is according to the other side's sip address inquiry associated user's business demand class information and access network information, and the user profile of inciting somebody to action wherein is sent to system bottom designated treatment port (being 9111 in this example) with the form of announcing, message is distinguished with flag bit, and query script is divided into following two kinds of situations:
Under (241) the situations, Correspondent Node user and local user are the user in the same domain, and at this moment, acting server is query-related information in local data base directly, and the result is returned terminal inquiry port (9102);
In this example, user A, B, C all are in in the management domain, and this moment, acting server was incited somebody to action directly query-related information in local data base, and the result is returned terminal system bottom inquiry port (9102); Under the actual conditions, also exist the user to be positioned at the situation of different management domains, at this moment, acting server sends the sip proxy server of query messages to the other side territory according to the other side's sip address, by inquiring about in the acting server execution territory in the other side territory, the result is back to acting server in this territory, query script adopts message inquiry mode, choose particular port and communicate, as (9103 and 9104).
Above-mentioned user profile announcement content is with reference to following table:
UI |
sip:86010applelet@domainl.com |
3241 |
WLAN |
Under (242) second kinds of situations, Correspondent Node user and local user are the user in the same area not, at this moment, acting server sends the sip proxy server of query messages to the other side territory according to the other side's sip address, by inquiring about in the acting server execution territory in the other side territory, the result is back to acting server in this territory, query script adopts message inquiry mode, choose particular port and communicate, as (9103 and 9104).
Above-mentioned user profile announcement content is usually with reference to following table:
Flag bit |
User's sip address |
Grade of service demand information |
The access network mode |
(25), in conjunction with situation about mentioning in (14), user B, C all may send the change that the PUBLISH of renewal comes notification agent server self information in the communication process, when local proxy server receives the PUBLISH of renewal, at first extract local user's wherein information, the information of this moment and the information of earlier stored are compared, if information is identical, then be left intact; If finding the information content changes, then the legacy data library information is covered, and in time notify this to end subscriber (being local sip user A in this example) according to the opposite end User IP in the user message table and sip address information, and notice still adopts the mode that sends message, and form and port numbers are constant.
(3), intercept and capture the packet mail to respective user, initiating content in the announcement according to business, is that keyword is set up and maintenance customer's Business Stream information management table with user's sip address in network layer, and along with communication process carries out real-time update.Simultaneously, every traffic communications link establishment corresponding data bag formation passage for each user carries out the scheduling of data packet queue according to predetermined way.
Further, described step (3) comprising:
(31), receive from the new business of application layer at designated port (9111) and to initiate announcement and user profile, and the information in will announce extracts, and sets up the user traffic flow information management table simultaneously, the list structure reference is as follows:
Annotate: all corresponding a series of information of each business in the table, user can simultaneously corresponding several business, and specifying information all can initiate to obtain in the announcement by new business.
In the present embodiment, the user traffic flow information management table is as follows,
(32), local user A receives the professional announcement of initiating, and indicates that this multimedia service successfully opens.To be foundation this moment with user place service IP address and port, intercept and capture the professional corresponding packets such as audio frequency and video that mail to user B, C in network layer, and on local host, be respectively each user according to the content in the above-mentioned subscriber information management table and set up traffic data and assure the reason formation, carry out service flow management, to classify according to each service port in the user message table, and then will be with the processing of classifying of port data bag.
Here the packet Interception Mechanism of mentioning mainly refers to the functional framework (as Netfilter etc.) of realization Packet Filtering/processing that operating system provides, and the function that provides by these mechanism carries out temporary transient catching and handling with the packet that user A mails to user B, C.
Packet administration queue schematic diagram is as shown in Figure 5: packet adopts " deque " scheduling mechanism, and at first, outer layer queue carries out Classification Management according to the user, and interior layer queue is classified by the communication port of place customer service.The length of inside and outside data packet queue is identical, is 2048 bytes.
(33), the data packet queue structure in the integrating step (32), unifiedly carry out the scheduling of packet.Do not needing to carry out under the situation that QoS regulates (be network condition well and under the situation about switching that is not moved), inside and outsidely two-layerly all carrying out data packet dispatching according to the mode of tradition wheel commentaries on classics.When opposite end user access network information changes, then carry out the adjustment of corresponding service stream bandwidth according to the strategy in the step (4).
(4), the access network information in the periodic test user message table, judge whether active user's access network situation change has taken place.When the type of user access network changes, carry out the adjustment of respective links bandwidth in conjunction with customer service demand levels information.
Further, described step (4) comprising:
(41), local user A is access network situation and the business demand class information of cyclic polling the sip user B, the C that communicate by letter with the active user with T second (for example 2s), and in real time and t before second user's access situation compare, if current time and t before second user's access situation change and this situation has continued certain hour (for example 2 seconds), assert that just change has taken place user's access network situation.
(42), when user's access situation changes and this situation continued certain hour (for example 1.5 seconds), adjust according to the situation of the current access network situation of user and in conjunction with user class of service information and to flow to this user service flow bandwidth, to realize by the packet loss of adjusting the data packet queue of setting up in (32), promptly come the different business corresponding queues is carried out packet loss, specific strategy according to the order of user class of service
With reference to following table:
In the last table, the packet loss of the data packet queue of every kind of Business Stream correspondence that is the active user when a kind of access network environment is changed to another kind of access network environment of the percentage numeral of each grade of service correspondence, concrete changing value is increase or the minimizing based on the corresponding packet loss of previous moment.For example, when the user when the WLAN environment change is CDMA, the value of corresponding every kind of service queue packet loss adjustment reduces 20%, 32%, 40%, 55% respectively, otherwise then adopts opposite strategy to increase corresponding packet loss value.
Following table shows that the information of user B than previous moment change (previous moment information is as the criterion with the user profile of party B-subscriber in the step (13)) has taken place under current time
sip:86010applelet@domainl.com |
3241 |
CDMA |
2001:cc0:2026:3::70 |
Under the present case, user B is by in WLAN-cdma network, and should adjust the formation of user's corresponding service stream packets this moment as follows, adjustment process with reference to the accompanying drawings 6:
According to said method of the present invention, can be efficiently, the Business Stream information to the active user manages quickly, the packet of each Business Stream correspondence is dispatched row; When the user access network situation changes, can distribute rationally by assurance and reasonable resources that effective adjusting reaches service quality.
It should be noted that at last, above embodiment is only in order to describe technical scheme of the present invention rather than the present technique method is limited, the present invention can extend to other modification, variation, application and embodiment on using, and therefore thinks that all such modifications, variation, application, embodiment are in spirit of the present invention and teachings.