CN104917742B - A kind of information transferring method and device - Google Patents

A kind of information transferring method and device Download PDF

Info

Publication number
CN104917742B
CN104917742B CN201410635553.4A CN201410635553A CN104917742B CN 104917742 B CN104917742 B CN 104917742B CN 201410635553 A CN201410635553 A CN 201410635553A CN 104917742 B CN104917742 B CN 104917742B
Authority
CN
China
Prior art keywords
session
entity
pcrf
identity information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410635553.4A
Other languages
Chinese (zh)
Other versions
CN104917742A (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 CN201410635553.4A priority Critical patent/CN104917742B/en
Priority claimed from CN201480000852.9A external-priority patent/CN105144836B/en
Publication of CN104917742A publication Critical patent/CN104917742A/en
Application granted granted Critical
Publication of CN104917742B publication Critical patent/CN104917742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A kind of information transferring method and device, device include:Session request receiving unit, for receiving the first session request of third-party application entity transmission, the first session request includes the identity information of target entity in the identity information and net of third-party application entity;First session establishment unit, for establishing the first session with third-party application entity;Request transmitting unit, for the second session request of target entity transmission into net, the identity information of identity information of second session request comprising anchor entity and third-party application entity;Second session establishment unit, for establishing the second session with target entity in net;Information receiving unit, for receiving the information that target entity reports in net, information includes the identity information of reported event and third-party application entity;Reported event is transmitted to corresponding third-party application entity by retransmission unit for the identity information according to the third-party application entity included in information.In this way, achieve that the correct identification and forwarding of stream of packets.

Description

A kind of information transferring method and device
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of information transferring method and device.
Background technology
With the continuous development of information technology, the interaction mould between Mobile Network Operator and third party service provider Formula is increasingly intended to the mechanism of XML (eXtensible Markup Language, extensible markup language) changes:In net Anchor entity establishes HTTP (HyperText Transfer Protocol, Hyper text transfer association with third-party application entity View) connection, anchor entity and other entities (i.e. target entity in the net of third-party application entity requests session) foundation in net Diameter (diameter, Diameter are the upgraded versions of radius radius protocol) session, at this point, anchor entity can conduct Intermediary addresses for third-party application entity, and third-party application entity is linked into carrier network, realizes third-party application Interaction in entity and net between target entity.Wherein, can be regarded as being located at can directly and network in mobile network for anchor entity External equipment (such as:Third-party application entity) communication network edge device, schematic diagram shown in Figure 1, PC in figure (Protocol Converter, protocol converter) is as anchor entity and third party entity AF (Application Function, application function) HTTP connections are established, and want to set up target entity PCRF (Policy in the net of session with AF And Charging Rules Function, Policy and Charging Rules Function) establish Diameter sessions.
If establishing in third-party application entity and net during target entity session, occur multiple AF pass through it is same PC addresses the situation of same PCRF, and corresponding which AF of stream in the session between PC and PCRF then cannot be distinguished in PC, so as to draw The problem of stream of packets that hair flows through PC can not be accurately forwarded to target AF.
The content of the invention
The information transferring method and device of the embodiment of the present invention, the stream of packets for flowing through anchor entity to be correctly forwarded to Target third-party application entity.
For this purpose, the embodiment of the present invention provides following technical solution:
In a first aspect, an embodiment of the present invention provides a kind of information transmission device, described device includes:
Session request receiving unit, for receiving the first session request of third-party application entity transmission, first meeting The identity information of target entity in identity information and net of the words request comprising the third-party application entity;
First session establishment unit, for establishing the first session with the third-party application entity;
Request transmitting unit, for the second session request of target entity transmission, second session request into the net The identity information of identity information comprising anchor entity and the third-party application entity;
Second session establishment unit, for establishing the second session with target entity in the net;
Information receiving unit, for receiving the information that target entity reports in the net, described information includes reported event With the identity information of third-party application entity;
Retransmission unit, for reporting thing by described according to the identity information of the third-party application entity included in described information Part is transmitted to corresponding third-party application entity.
Second aspect, an embodiment of the present invention provides a kind of information transmission device, described device includes:
Session request transmitting element, for sending the first session request to anchor entity, first session request includes The identity information of target entity in the identity information and net of third-party application entity;The identity information of the third-party application entity For being forwarded to target entity in the net when target entity sends the second session request into the net in the anchor entity;
For receiving the response that the anchor entity returns, the is established with the anchor entity for first session establishment unit One session;
Information receiving unit after target entity establishes the second session in the anchor entity and the net, receives The reported event that the anchor entity is forwarded according to the identity information of the third-party application entity, the third-party application entity Identity information and the reported event anchor entity is sent to by target entity in the net.
The third aspect, an embodiment of the present invention provides a kind of information transferring method, the described method includes:
Anchor entity receives the first session request that third-party application entity is sent, and first session request includes described The identity information of target entity in the identity information and net of third-party application entity;
The anchor entity establishes the first session with the third-party application entity, and target entity is sent into the net Second session request, identity information of second session request comprising the anchor entity and the third-party application entity Identity information;
The anchor entity establishes the second session with target entity in the net, and receives target entity in the net and report Information, described information includes the identity information of reported event and third-party application entity;
The anchor entity reports thing according to the identity information of the third-party application entity included in described information by described Part is transmitted to corresponding third-party application entity.
Fourth aspect, an embodiment of the present invention provides a kind of information transferring method, the described method includes:
Third-party application entity sends the first session request to anchor entity, and first session request includes the described 3rd The identity information of target entity in the identity information and net of square application entity;The identity information of the third-party application entity is used for In the anchor entity target entity in the net is forwarded to when target entity sends the second session request into the net;
The third-party application entity receives the response that the anchor entity returns, and the first meeting is established with the anchor entity Words;
After target entity establishes the second session in the anchor entity and the net, the third-party application entity receives The reported event that the anchor entity is forwarded according to the identity information of the third-party application entity, the third-party application entity Identity information and the reported event anchor entity is sent to by target entity in the net.
The information transferring method and device of the embodiment of the present invention, in anchor entity according to the request of third-party application entity, Establish and net in Diameter sessions between target entity when, the identity information of third-party application entity is sent to mesh in net Entity is marked, so that target entity, can be by the when collecting the network event for needing to report to third-party application entity in net The identity information of tripartite's application entity is added in the information reported, and anchor entity is sent jointly to network event, in this way, anchor Point entity can identity information be foundation, network event is accurately forwarded to corresponding third-party application entity, realizes grouping The correct identification and forwarding of stream.
Description of the drawings
It in order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in application for those of ordinary skill in the art, can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the schematic diagram that AF is interacted by PC with PCRF;
Fig. 2 is the schematic diagram that multiple AF address a PCRF by a PC;
Fig. 3 is the flow chart of the information transferring method embodiment 1 of anchor entity of embodiment of the present invention side;
Fig. 4 is the stream that anchor node entity receives the first session request that third-party application entity is sent in the embodiment of the present invention Cheng Tu;
Fig. 5 is the flow chart of the information transferring method embodiment 2 of anchor entity of embodiment of the present invention side;
Fig. 6 is the flow chart of the information transferring method embodiment 3 of anchor entity of embodiment of the present invention side;
Fig. 7 is the flow chart of the information transferring method of third-party application entity of embodiment of the present invention side;
Fig. 8 is the schematic diagram of the information transmission device of anchor entity of embodiment of the present invention side;
Fig. 9 is the schematic diagram of session request receiving unit in the embodiment of the present invention;
Figure 10 is the schematic diagram of the information transmission device of third-party application entity of embodiment of the present invention side;
Figure 11 is the schematic diagram of session request transmitting element in the embodiment of the present invention;
Figure 12 is that the hardware of message transfer system of the embodiment of the present invention forms schematic diagram.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction with the accompanying drawings with embodiment to this Inventive embodiments are described in further detail.
Before technical solution of the present invention is introduced, first the application scenarios of the present invention are explained.
By taking user is by user terminal access video website as an example, AF servers of video website can conduct during this Third-party application entity, request and the Policy and Charging Rules Function PCRF (nets i.e. in the present invention in carrier network Interior target entity) session is established, accurate billing is realized, at this point, AF can be first with the edge device of carrier network (i.e. in the present invention Anchor entity, anchor entity can be directly exposed to third party, and as a kind of example, anchor entity can be presented as protocol converter PC HTTP connections) are established;Then Diameter sessions are established by PC and PCRF again, it is final to realize between third party and user terminal Session.
In actual application, it is possible that multiple AF address the situation of same PCRF by same PC, such as Shown in Fig. 2, while there are 3 AF (being respectively AF1, AF2, AF3) to access PCRF by PC, if PCRF collects needs on AF1 The network event of report, but when carrying out event forwarding by PC, the network event cannot be distinguished in PC will be transmitted to for which in 3 AF It is a, that is to say, that the present invention program is primarily directed to multiple third-party application entities and addresses one by an anchor entity In net during target entity, the identification problem of the stream on same anchor entity of initiation.
The present invention program is explained below in conjunction with the accompanying drawings.
Referring to Fig. 3, the flow chart of the information transferring method embodiment 1 of anchor entity side in the embodiment of the present invention is shown, It may include:
Step 101, anchor entity receives the first session request that third-party application entity is sent, first session request The identity information of target entity in identity information and net comprising the third-party application entity.
AF first sends the first session request, to establish third-party application entity and anchor point reality as session setup side to PC Http session between body, the first session request include at least following two information:
(1) identity information of third-party application entity
This information mainly plays two aspects:When in order to make that PC clearly currently establishes that HTTP is connected with it the 3rd Whom side is, so that PC carries out legitimacy authentication to the AF, judges whether the AF has the permission of access carrier network, to this Inventive embodiments are without repeating.Second is that this information is sent to the PCRF of AF queued sessions by PC to, so that PCRF is follow-up Give the correct time on network event, this information can be added to and reported in information, the foundation of stream identification is carried out as PC, to this It can refer to and hereafter introduce.
It should be noted that the identity information of the third-party application entity outside operator's mobile communications network can embody To be at least one of following:The IP address (IPv4 addresses or IPv6 addresses) of AF, uniform resource position mark URL (Universal Resource Locator), the connection identifier between third-party application entity and anchor entity, the embodiment of the present invention, which can not be done, to be had Body limits.Wherein, according to the difference of the message transfer mechanism used between third-party application entity and anchor entity, connection identifier It can be presented as:If establishing the first session by websocket, websocket connection identifier is embodied as;If pass through HTTP2.0 establishes the first session, then is embodied as HTTP connection identifier.
(2) in net target entity identity information
This information is primarily to it is whom that the clear and definite AF of PC is made, which currently to want to set up the object of session, so that PC is correctly to this Object initiates the second session request, establishes Diameter sessions.
It should be noted that the identity information of target entity can be presented as in net:The Diameter host identifications of PCRF with And the mark in Diameter domains residing for PCRF.In this case, third-party application entity A F is according to user terminal UE (User Equipment identity information) carries out netting interior target entity PCRF addressing, and determining the mark of PCRF (can be presented as PCRF's Diameter host name and/or IP address) and place Diameter domains mark, will be both as the body of target entity in net Part information is sent to PC.This correspondence being primarily due between UE identity informations and PCRF identity informations can be in advance the 3rd It is pre-configured in square application entity AF, in this way, third-party application entity A F is in the case where knowing UE identity informations, by looking into Look for configuration relation, you can obtain PCRF identity informations.
Alternatively, the identity information of target entity can be also presented as in net:The identity information of user terminal UE, for example, UE (International Mobile Subscriber Identification, international mobile user identity are known by IP address, IMSI Other code), MSISDN (Mobile Station International ISDN number, mobile station International ISDN number) etc., this Inventive embodiments can be not specifically limited this.In this case, third-party application entity A F will directly be used to initially address UE identity information as net in target entity addressing input information be sent to PC, carried out netting interior target entity accordingly by PC PCRF is addressed, and is determined the mark of PCRF and its mark in place Diameter domains, is carried out subsequent session establishment process.UE identity Correspondence between information and PCRF identity informations can be pre-configured in anchor entity PC in advance, in this way, anchor entity PC is in the case where knowing UE identity informations, by searching for configuration relation, you can obtains PCRF identity informations.In view of third party Application entity AF is the equipment outside carrier network, if net external equipment is with target entity identity in Diameter domains in addressing net The permission of information, it is clear that the security of target entity is relatively low in net, therefore in this mode using UE identity informations as target in net The input information of entity addressing, by the anchor entity PC being located in network net the addressing of interior target entity, can improve the Secure session in tripartite's application entity and net between target entity.
In this step, anchor entity receives the mode for the first session request that third-party application entity is sent, can be by more The message transfer mechanism of kind XMLization is realized, for example, the technologies such as websocket, HTTP2.0.It is in a manner of websocket below Example, is explained the specific implementation of this step, for details, reference can be made to flow chart shown in Fig. 4.
Step 201, the anchor entity establishes web-based set with the third-party application entity by once shaking hands Connect word websocket connections;
Step 202, the anchor entity receives what the third-party application entity transmitted in the websocket connections First session request.
Webscoket provides the TCP of the real time implementation of a full duplex between anchor entity and third-party application entity (Transport Control Protocol, transmission control protocol) connects, and what is created in this TCP connection is each Webscoket connections correspond to the session between a third-party application entity and anchor entity, so as to effectively overcome tradition HTTP mechanism in, http session is initiated as HTTP clients by third-party application entity always, and for anchor entity Event reports the limitation for the function adaptation for being only capable of carrying out non real-timeization using HTTP long polls or HTTP stream mechanisms.
When establishing websocket connections, third-party application entity sends HTTP GET Upgrade to anchor entity please It asks, a new websocket connection is established in request;Accordingly, anchor entity to third-party application entity authentication by it is rear then Switching Protocol response messages are returned to third-party application entity, show to be successfully established therebetween Websocket connections.In this way, in the websocket connections of foundation, so that it may will be between third-party application entity and anchor entity Http session message be encapsulated in Onmessage methods, and Send methods is called to conversate the transmission of message.For example, the Http session message between tripartite's application entity and anchor entity:AF session establishments, AF session modifications, AF session terminations, industry The event of business plane of flow reports procedure messages such as (Traffic Plane Event Reporting) that can be encapsulated in In Onmessage methods, by the entity of one end Send methods is called to be sent to other end entity.
In addition, it is necessary to explanation, when terminating communication between third-party application entity and anchor entity, terminate http session Afterwards, third-party application entity can call close methods to discharge the occupied resource of websocket connections, including transport layer TCP resources.
Step 102, the anchor entity establishes the first session, and the target into the net with the third-party application entity Entity sends the second session request, and second session request includes the identity information of the anchor entity and the third party should With the identity information of entity.
Anchor entity is received after the first session request of third-party application entity transmission, you can is included according in request The identity information of third-party application entity establish the first session, i.e. HTTP connections with corresponding third-party application entity;Meanwhile Anchor entity can also into corresponding net, target entity sends the according to the identity information of target entity in the net included in request Two session requests, to establish the Diameter sessions in anchor entity and the net between target entity.
It should be noted that following two information should be at least included in the second session request:
(1) in the identity information of third-party application entity, i.e. step 101 the of the first session request is sent to anchor entity The identity information of tripartite's application entity, whom the third party that request and its session are understand that net interior target entity is, and then After network event is got, anchor entity can be notified accurately to carry out stream identification.
(2) identity information of anchor entity, so that target entity clearly knows that whose request establishes the second meeting with it in net Words can specifically be presented as the mark in Diameter domains residing for the Diameter host identifications and anchor entity of anchor entity.
In addition, it can also further comprise the identity information for netting interior target entity in the second session request, so that target in net Entity judges that current second session request whether for oneself, can be not specifically limited this embodiment of the present invention.
Step 103, the anchor entity establishes the second session with target entity in the net, and receives target in the net The information that entity reports, described information include the identity information of reported event and third-party application entity.
Step 104, the anchor entity according to the identity information of the third-party application entity included in described information by institute It states reported event and is transmitted to corresponding third-party application entity.
Target entity establishes the second session in anchor entity and net, i.e., after Diameter sessions, if target entity in net The network event for needing to report to third-party application entity is collected, then can be sent to anchor entity and report information, it is real by anchor point Body is forwarded into row information.Specifically, report in information in addition to comprising the network event that reports is needed, should also contain the network The identity information for the third-party application entity that event is directed to, so that anchor entity can carry out stream identification according to the identity information, And then the network event included in information will be reported to be accurately forwarded to corresponding third-party application entity, solve the problems, such as stream identification.
It should be noted that such as introduction made above, anchor entity can perform following after the first session request is received Action:The first session between anchor entity and third-party application entity, the second session request of target entity transmission into net are established, In addition, anchor entity can also be established and safeguard one and the corresponding list of target entity in net, add in table be with The identity information of the corresponding all third-party application entities of target entity in the net, that is to say, that is added in table is all logical Cross the identity information that same anchor entity addresses the third-party application entity of target entity in same net.Referring to Fig. 2 examples cited, In the list corresponding with PCRF that PC is established and safeguarded, addition be AF1, AF2, AF3 identity information.That is, anchor point One list of entity maintaining corresponds to target entity namely a corresponding anchor entity in a net and is established with target entity in net The second session.
Based on anchor entity safeguard list, the embodiment of the present invention additionally provide two kinds termination session scheme, below one One is explained.
Scheme one
Referring to Fig. 5, the flow chart of the information transferring method embodiment 2 of anchor entity side in the embodiment of the present invention is shown, It may include:
Step 301, anchor entity receives the first session request that third-party application entity is sent, first session request The identity information of target entity in identity information and net comprising the third-party application entity.
Step 302, the anchor entity establishes the first session, and the target into the net with the third-party application entity Entity sends the second session request, and second session request includes the identity information of the anchor entity and the third party should With the identity information of entity.
Step 301,302 with step 101,102 identical, details are not described herein again.
Step 303, the identity information of the third-party application entity is added in list by the anchor entity, the row Table is corresponding with target entity in the net.
It should be noted that anchor entity establishes the first session, the anchor entity target into net with third-party application entity The second session request of entity transmission, anchor entity add the identity information of third-party application entity into list, and three processing are dynamic The execution sequence of work does not interfere with the technique effect of the embodiment of the present invention, therefore the embodiment of the present invention does considered critical not to this.
Step 304, the anchor entity establishes the second session with target entity in the net, and receives target in the net The information that entity reports, described information include the identity information of reported event and third-party application entity.
Step 305, the anchor entity according to the identity information of the third-party application entity included in described information by institute It states reported event and is transmitted to corresponding third-party application entity.
Step 304,305 with step 103,104 identical, details are not described herein again.
Step 306, the anchor entity receives the session termination request that third-party application entity to be terminated is sent, the meeting The identity information of the third-party application entity to be terminated is included in words termination request.
If occurs the situation for needing termination session in conversation procedure, such as:It is out of touch between user and third party's network, Or third party's network judges that congestion occurs for some region, it is necessary to teste preference relatively low user alleviates congestion, the Tripartite's application entity can send session termination request to anchor entity, to terminate the session without maintaining again.
Such as Fig. 2 examples cited, when AF1 needs to terminate the first session between PC, AF1 can be used as third party to be terminated Application entity sends session termination request to PC.
Step 307, the anchor entity judges the third-party application reality to be terminated whether is only preserved in the list The identity information of body, if it is, performing step 308, the anchor entity empties the list and second session that terminates; If it is not, then performing step 309, the anchor entity deletes the body of the third-party application to be terminated preserved in the list Part information.
Anchor entity is received after the session termination request that termination third-party application entity is sent, and checks its row safeguarded Table, and be handled differently according to inspection result:
(1) if only addition needs to be terminated the identity information of third-party application entity in list, illustrate anchor entity this When why in net target entity keep the second session, be in order to third-party application entity terminate forwarding net in target reality The network event that body obtains, if this only one third-party application entity will also terminate session at this time, then anchor entity is also Need not be further continued for keep the second session, its second session between target entity in net therefore anchor entity can directly terminate, i.e., Terminate Diameter sessions;Meanwhile anchor entity can also empty list, and the resource of list occupancy is discharged, termination and third party The first session between application entity.
(2) if in list in addition to the identity information of third-party application entity to be terminated, other third parties are also preserved The identity information of application entity, as AF1 ask termination session, but anchor entity safeguard list in also preserve AF2, AF3 Identity information at this point, in order to ensure anchor entity after the session with AF1 that terminates, remains to normally forward network to AF2, AF3 Event, anchor entity should continue to keep and net in the second session between target entity, meanwhile, anchor entity should also delete local row The identity information of the third-party application entity to be terminated preserved in table, termination and the first session between it, in the examples described above, That is the HTTP connections between termination PC and AF1, continue to retain the HTTP connections between PC and AF2, AF3.
(3) if not finding the identity information of third-party application entity to be terminated in lists, anchor entity can not be right Session termination request carries out any processing, certainly, can also send fault alarm, the embodiment of the present invention can not do this specific limit It is fixed.
Scheme two
Such as said program one, anchor entity can only safeguard a list, i.e. anchor entity establishes multiple third-party applications Entity correspondingly, in list preserves multiple third parties of target entity session in the net to the session of target entity in same net The identity information of application entity.It is also understood that it is in anchor entity and the net between target entity that list is corresponding Diameter sessions.
In addition, anchor entity establishes session of multiple third-party application entities to target entity in different nets, corresponding In this, anchor entity will safeguard multiple lists, and target entity safeguards a list in as each net, and every list is used respectively In the identity information for preserving multiple third-party application entities of target entity in corresponding net.It is also understood that every list Corresponding to the Diameter sessions in some net in the anchor entity and multiple nets in target entity between target entity respectively (needs What is illustrated is, it is generally the case that in synchronization, anchor entity only establishes a Diameter meeting with target entity in some net Words).
For example, PC1 establishes the session between AF1, AF2, AF3 and PCRF1 as the agency of PCRF1, while can continue to make Session between AF4, AF5 and PCRF2 is established for the agency of PCRF2, the agency as PCRF3 is established between AF6 and PCRF3 Session or even session between more AF and PCRF can be also established, only make referential herein for example, repeating no more.At this In the case of kind, anchor entity will create and safeguard at least two lists, and every list corresponds to target entity in a net, as above Example is stated, PC1 will safeguard three lists, and a list corresponds to the Diameter sessions between PC1 and PCRF1, added in table It is AF1, AF2, AF3, a list corresponds to the Diameter sessions between PC1 and PCRF2, and that added in table is AF4, AF5, and one Zhang Liebiao corresponds to the Diameter sessions between PC1 and PCRF3, and that added in table is AF6.
The scheme of at least two lists is safeguarded based on anchor entity, the embodiment of the present invention additionally provides the letter of anchor entity side Transfer approach embodiment 3 is ceased, referring to Fig. 6, it may include:
Step 401, anchor entity receives the first session request that third-party application entity is sent, first session request The identity information of target entity in identity information and net comprising the third-party application entity.
Step 402, the anchor entity establishes the first session, and the target into the net with the third-party application entity Entity sends the second session request, and second session request includes the identity information of the anchor entity and the third party should With the identity information of entity.
Step 401,402 with step 101,102 identical, details are not described herein again.
Step 403, the anchor entity searches the identity of target entity in the net from least two lists of maintenance The corresponding pending list of information, and the identity information of the third-party application entity is added in the pending list.
It should be noted that anchor entity establishes the first session, the anchor entity target into net with third-party application entity Entity sends the identity information that the second session request, anchor entity add third-party application entity into pending list, three The execution sequence of processing action does not interfere with the technique effect of the embodiment of the present invention, therefore the embodiment of the present invention is done strictly not to this It limits.
Step 404, the anchor entity establishes the second session with target entity in the net, and receives target in the net The information that entity reports, described information include the identity information of reported event and third-party application entity.
Step 405, the anchor entity according to the identity information of the third-party application entity included in described information by institute It states reported event and is transmitted to corresponding third-party application entity.
Step 404,405 with step 103,104 identical, details are not described herein again.
Step 406, the anchor entity receives the session termination request that third-party application entity to be terminated is sent, the meeting Identity information comprising the third-party application entity to be terminated and the third-party application entity to be terminated in words termination request The identity information of target entity in corresponding net.
Step 407, the anchor entity searched from least two lists of maintenance described in third-party application to be terminated it is real List in the corresponding net of body corresponding to the identity information of target entity.
Step 408, whether only preserving the third party to be terminated in the list that the anchor entity judgement is found should With the identity information of entity, if it is, performing step 409, the anchor entity empties the list found, and terminates The second session in net corresponding with the third-party application entity to be terminated between target entity;If it is not, then perform step 410, the anchor entity deletes the identity information of the third-party application to be terminated preserved in the list.
Step 408~410 are identical with step 307~309, and details are not described herein again.
In addition, it is necessary to explanation, for the scheme that anchor entity safeguards at least two lists, third party to be terminated The identity information of third-party application entity to be terminated can also be only included in the session termination request that application entity is sent, is corresponded to This, anchor entity can search every list one by one according to the identity information of third-party application entity to be terminated, and conversate end Knot.Certainly, first found in scheme two above according to the identity information of target entity in net and add third-party application reality to be terminated The list of body identity information, then be removed from the list identity information and conversate termination, it can also improve session of the embodiment of the present invention The efficiency of termination.
Corresponding with the information transfer process of anchor entity side described above, the embodiment of the present invention additionally provides third party The information transfer process of application entity side for details, reference can be made to the information transferring method of third-party application entity side shown in Fig. 7 Flow chart, it may include:
Step 501, third-party application entity sends the first session request to anchor entity, and first session request includes The identity information of target entity in the identity information and net of the third-party application entity;The identity of the third-party application entity Information is used to be forwarded to target in the net when target entity sends the second session request into the net in the anchor entity Entity;
Step 502, the third-party application entity receives the response that the anchor entity returns, and is built with the anchor entity Vertical first session;
Step 503, after target entity establishes the second session in the anchor entity and the net, the third-party application Entity receives the reported event that the anchor entity is forwarded according to the identity information of the third-party application entity, the third party The identity information of application entity and the reported event are sent to the anchor entity by target entity in the net.
The present embodiment is mainly from third-party application entity side, the explanation carried out to the information transfer process of the present invention Explanation.Similarly, the present embodiment is also required to establish following two sessions:
1. the first session
First session is initiated and established from third-party application entity to anchor entity, and detailed process can be found in institute above It introduces, details are not described herein again.It should be stressed that the identity letter of the third-party application entity in the first session request Breath, except (mainly being closed when anchor entity and third-party application entity establish the first session to third-party application entity Method authenticates) outside use, it is additionally operable to that by information addition in the second session request, target in net is sent to by anchor entity Entity, in this way, when target entity collects reported event in net, it is possible to which the information and reported event are sent jointly into anchor Reported event so that anchor entity carries out stream identification on this basis, is correctly forwarded to third-party application entity by point entity.
Specifically, the process of third-party application entity to anchor entity the first session request of transmission can be presented as:Described Tripartite's application entity and the anchor entity are established web-based socket websocket and are connected by once shaking hands;It is described Third-party application entity transmits first session request in the websocket connections to the anchor entity.
2. the second session
After anchor entity establishes the first session with third-party application entity, you can be triggered to third-party application entity requests Target entity in the net of session (being identified by the identity information of target entity in the net that is included in the first session request) sends the Two session requests, request establishes the second session with target entity in net, while the identity information of third-party application entity is sent It is preserved to target entity in net.The detailed process for establishing the second session also can be found in introduction made above, and details are not described herein again.
The first session is established in third-party application entity and anchor entity, anchor entity establishes second with target entity in net After session, if target entity collects and needs the event that is reported to third-party application entity in net, by reported event and The object (i.e. the identity information of third-party application entity) that event is directed to is sent to anchor entity, so that anchor entity is according to the 3rd Reported event is correctly forwarded to the object that event is directed to by the identity information of square application entity.
Accordingly, the embodiment of the present invention also provides the corresponding information transmission device of method shown in a kind of and Fig. 3, i.e., above In anchor entity, referring to Fig. 8, show the schematic diagram of information transmission device embodiment 1, it may include:
Session request receiving unit 601, for receive third-party application entity transmission the first session request, described first Session request includes the identity information of target entity in the identity information and net of the third-party application entity;
First session establishment unit 602, for establishing the first session with the third-party application entity;
Request transmitting unit 603, please for the second session request of target entity transmission, second session into the net Seek the identity information of the identity information comprising anchor entity and the third-party application entity;
Second session establishment unit 604, for establishing the second session with target entity in the net;
Information receiving unit 605, for receiving the information that target entity reports in the net, described information includes and reports thing The identity information of part and third-party application entity;
Retransmission unit 606, will be described for the identity information according to the third-party application entity included in described information Event forwarding is reported to corresponding third-party application entity.
Schematic diagram shown in Figure 9, as a kind of achievable mode, the session request receiving unit may include:
Connection establishment unit 701, for establishing web-based set by once shaking hands with the third-party application entity Connect word websocket connections;
Session request receiving subelement 702, for receiving the third-party application entity in the websocket connections First session request of transmission.
With embodiment of the method 2 shown in figure 5 above correspondingly, if the information transmission device of the embodiment of the present invention is also safeguarded One with the net in the corresponding list of target entity, in the list be added with institute corresponding with target entity in the net There is the identity information of third-party application entity, then on the basis of schematic diagram shown in Fig. 8, information transmission device may also include as follows Unit:
Terminate request reception unit, described for receiving the session termination request that third-party application entity to be terminated is sent The identity information of the third-party application entity to be terminated is included in session termination request;
Judging unit, for judging the identity of the third-party application entity to be terminated whether is only preserved in the list Information;
Session termination unit, for when the judging unit is judged to being, emptying the list and terminating described second Session;
Unit is deleted, waits to terminate for when the judging unit is determined as no, deleting preserve in the list described The identity information of third-party application.
With embodiment of the method 3 shown in figure 6 above correspondingly, the information transmission device of the embodiment of the present invention can also be according to The request of tripartite's application entity establishes the second session with target entity in other nets, and safeguards and target entity in other nets Corresponding list, added with all third-party application entities corresponding with target entity in other nets in the list Identity information, then the session termination request that the termination request reception unit receives further include the identity letter of target entity in net Breath, then on the basis of schematic diagram shown in Fig. 8, information transmission device may also include such as lower unit:
Terminate request reception unit, described for receiving the session termination request that third-party application entity to be terminated is sent The identity information of the third-party application entity to be terminated is included in session termination request;
Searching unit corresponds to for searching the identity information of target entity in the net from least two lists of maintenance List;
Judging unit described treats termination the 3rd for judging whether only to preserve in list that the searching unit finds The identity information of square application entity;
Session termination unit is treated for when the judging unit is judged to being, emptying the list and terminating with described The second session in the corresponding net of termination third-party application entity between target entity;
Unit is deleted, waits to terminate for when the judging unit is determined as no, deleting preserve in the list described The identity information of third-party application.
Accordingly, the embodiment of the present invention also provides the corresponding information transmission device of method shown in a kind of and Fig. 7, i.e., above In third-party application entity, referring to Figure 10, show the schematic diagram of information transmission device, it may include:
Session request transmitting element 801, for sending the first session request, the first session request bag to anchor entity The identity information of target entity in the identity information and net of the entity containing third-party application;The identity letter of the third-party application entity Breath is real for being forwarded to target in the net when target entity sends the second session request into the net in the anchor entity Body;
First session establishment unit 802 for receiving the response that the anchor entity returns, is established with the anchor entity First session;
Information receiving unit 803 after target entity establishes the second session in the anchor entity and the net, connects The reported event that the anchor entity is forwarded according to the identity information of the third-party application entity is received, the third-party application is real The identity information of body and the reported event are sent to the anchor entity by target entity in the net.
Schematic diagram shown in Figure 11, as a kind of achievable mode, the session request transmitting element may include:
Connection establishment unit 901, for establishing web-based socket by once shaking hands with the anchor entity Websocket connections;
Session request transmission sub-unit 902, in the websocket connections to the anchor entity transmission described in First session request.
Further, the embodiment of the present invention also each provides the information transmission device and third-party application of anchor entity side The hardware of the information transmission device of entity side is formed.It may include at least one processor (such as CPU), at least one network interface Or other communication interfaces, memory and at least one communication bus, the connection communication being used to implement between these devices.Place Reason device is used to perform the executable module stored in memory, such as computer program.Memory may be included and deposited at random at a high speed Access to memory (RAM:Random Access Memory), it is also possible to further include non-labile memory (non-volatile Memory), a for example, at least magnetic disk storage.Being realized by least one network interface (can be wired or wireless) should Communication connection between system gateway and at least one other network element can use internet, wide area network, local network, Metropolitan Area Network (MAN) Deng.
The schematic diagram of message transfer system shown in Figure 12, it may include third-party application entity 1001, anchor entity 1002nd, target entity 1003 in net.
Wherein, program instruction is stored in the memory of third-party application entity, processor can refer to according to these programs Order performs following steps:
The first session request is sent to anchor entity, the identity that first session request includes third-party application entity is believed The identity information of target entity in breath and net;The identity information of the third-party application entity is used in the anchor entity to institute It states and is forwarded to target entity in the net when target entity sends the second session request in net;
The response that the anchor entity returns is received, the first session is established with the anchor entity;
After target entity establishes the second session in the anchor entity and the net, the anchor entity is received according to institute State third-party application entity identity information forwarding reported event, the identity information of the third-party application entity and it is described on Report event is sent to the anchor entity by target entity in the net.
Corresponding to this, program instruction is also stored in the memory of anchor entity, processor can refer to according to the program of storage Order correspondingly performs following steps:
The first session request that third-party application entity is sent is received, first session request should comprising the third party With the identity information of target entity in the identity information and net of entity;
The first session is established with the third-party application entity, and the second session of target entity transmission please into the net It asks, second session request includes the identity information of anchor entity and the identity information of the third-party application entity;
The second session is established with target entity in the net, and receives the information that target entity reports in the net, it is described Information includes the identity information of reported event and third-party application entity;
The reported event is transmitted to by correspondence according to the identity information of the third-party application entity included in described information Third-party application entity.
The present invention program can described in the general context of computer executable instructions, such as Program unit.Usually, program unit includes routines performing specific tasks or implementing specific abstract data types, program, right As, component, data structure etc..The present invention program can also be put into practice in a distributed computing environment, in these Distributed Calculations In environment, by performing task by communication network and connected remote processing devices.In a distributed computing environment, program Unit can be located in the local and remote computer storage media including storage device.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are the differences with other embodiments.It is real especially for device For applying example, since it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to embodiment of the method Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component explanation Unit may or may not be physically separate, the component shown as unit may or may not be Physical location, you can be located at a place or can also be distributed in multiple network element.It can be according to the actual needs Some or all of module therein is selected to realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying In the case of creative work, you can to understand and implement.
The embodiment of the present invention is described in detail above, specific embodiment used herein carries out the present invention It illustrates, the explanation of above example is only intended to help to understand the method and apparatus of the present invention;Meanwhile for the one of this field As technical staff, thought according to the invention, there will be changes in specific embodiments and applications, to sum up institute It states, this specification content should not be construed as limiting the invention.

Claims (20)

1. a kind of information transmission device, which is characterized in that described device includes:
Session request receiving unit, for receiving the first session request of third-party application entity A F transmissions, first session The identity information of uniform resource position mark URL of the request comprising the AF and Policy and Charging Rules Function PCRF, wherein, The identity information of the PCRF is included for the identity information for the user terminal being addressed to the PCRF;
First session establishment unit, for establishing the first session with the AF;
Request transmitting unit, for sending the second session request to the PCRF, second session request includes protocol conversion Connection identifier between the identity information of device PC and the AF and the PC, the URL and the connection identifier are all the AF Identity information;
Second session establishment unit, for establishing the second session with the PCRF;
Information receiving unit, for receiving the information that the PCRF is reported, described information includes reported event and the connection mark Know;
Retransmission unit, it is corresponding for being transmitted to the reported event according to the connection identifier included in described information AF。
2. the apparatus according to claim 1, which is characterized in that the identity information of the PCRF further includes:The diameter of PCRF Diameter host identifications and the mark in PCRF places Diameter domains;
The identity information of the PC includes:The mark in Diameter domains where the Diameter host identifications and PC of PC.
3. the apparatus according to claim 1, which is characterized in that the session request receiving unit includes:
Connection establishment unit, for establishing web-based socket websocket by once shaking hands with the AF and being connected;
Session request receiving subelement, first session transmitted for receiving the AF in the websocket connections Request.
4. the apparatus according to claim 1, which is characterized in that described device safeguards one and the corresponding row of the PCRF Table is added with the identity information of all AFs corresponding with the PCRF in the list.
5. device according to claim 4, which is characterized in that described device further includes:
Terminate request reception unit, for receiving the session termination request that AF to be terminated is sent, is wrapped in the session termination request Identity information containing the AF to be terminated.
6. device according to claim 5, which is characterized in that described device further includes:
Judging unit, for judging the identity information of the AF to be terminated whether is only preserved in the list;
Session termination unit, for when the judging unit is judged to being, emptying the list and second session that terminates;
Unit is deleted, for when the judging unit is determined as no, deleting the AF's to be terminated preserved in the list Identity information.
7. device according to claim 6, which is characterized in that described device is established also according to the request of AF with other PCRF Second session, and maintenance and each other corresponding lists of PCRF, added with corresponding with other PCRF in the list The identity information of all AF, then the session termination request that the termination request reception unit receives further include the identity letter of PCRF Breath, described device further include:
Searching unit for searching the corresponding list of the identity information of the PCRF from least two lists of maintenance, then is led to Know the identity information that the AF to be terminated whether is only preserved in the list that the judging unit judgement is found.
8. a kind of information transmission device, which is characterized in that described device includes:
Session request transmitting element, for sending the first session request to protocol converter PC, first session request includes The uniform resource position mark URL of third-party application entity A F and the identity information of Policy and Charging Rules Function PCRF, In, the identity information of the PCRF is included for the identity information for the user terminal being addressed to the PCRF;
For receiving the response that the PC is returned, the first session is established with the PC for first session establishment unit;
Information receiving unit, for after the PC and the PCRF establish the second session, receive the PC according to the AF with The reported event of connection identifier forwarding between the PC, the connection identifier and the reported event are sent to by the PCRF The PC, the URL and the connection identifier are all the identity informations of the AF.
9. device according to claim 8, which is characterized in that the identity information of the PCRF further includes:The diameter of PCRF Diameter host identifications and the mark in PCRF places Diameter domains;
The identity information of the PC includes:The mark in Diameter domains where the Diameter host identifications and PC of PC.
10. device according to claim 8, which is characterized in that the session request transmitting element includes:
Connection establishment unit, for establishing web-based socket websocket by once shaking hands with the PC and being connected;
Session request transmission sub-unit, for transmitting first session request to the PC in the websocket connections.
11. a kind of information transferring method, which is characterized in that the described method includes:
Protocol converter PC receives the first session request that third-party application entity A F is sent, and first session request includes institute The uniform resource position mark URL of AF and the identity information of Policy and Charging Rules Function PCRF are stated, wherein, the PCRF's Identity information is included for the identity information for the user terminal being addressed to the PCRF;
The PC and AF establishes the first session, and sends the second session request, second session request to the PCRF Connection identifier between identity information comprising the PC and the AF and the PC, the URL and the connection identifier are all The identity information of the AF;
The PC and PCRF establishes the second session, and receives the information that the PCRF is reported, and described information includes and reports thing Part and the connection identifier;
The reported event is transmitted to corresponding AF by the PC according to the connection identifier included in described information.
12. according to the method for claim 11, which is characterized in that
The identity information of the PCRF further includes:Diameter domains where the diameter Diameter host identifications and PCRF of PCRF Mark;
The identity information of the PC includes:The mark in Diameter domains where the Diameter host identifications and PC of PC.
13. according to the method for claim 11, which is characterized in that the PC receives the first session request that AF is sent, bag It includes:
The PC and the AF establish web-based socket websocket and are connected by once shaking hands;
The PC receives first session request that the AF is transmitted in the websocket connections.
14. according to the method for claim 11, which is characterized in that the PC safeguards one and the corresponding row of the PCRF Table is added with the identity information of all AFs corresponding with the PCRF in the list.
15. according to the method for claim 14, which is characterized in that the method further includes:
The PC receives the session termination request that AF to be terminated is sent, and includes the AF's to be terminated in the session termination request Identity information.
16. according to the method for claim 15, which is characterized in that the method further includes:
The PC judges the identity information of the AF to be terminated whether is only preserved in the list, if so, the PC is then clear The empty list and second session that terminates;If not, the PC, which then deletes preserved in the list described, treats termination the The identity information of tripartite's application.
17. according to the method for claim 16, which is characterized in that the PC is established also according to the request of AF with other PCRF Second session, and maintenance and each other corresponding lists of PCRF, added with corresponding with other PCRF in the list The identity information of all AF, then the session termination request further include the identity information of PCRF, and the method further includes:
The PC searches the corresponding list of identity information of the PCRF from least two lists of maintenance, then performs and described sentence The step of identity information of the AF to be terminated whether is only preserved in the disconnected list.
18. a kind of information transferring method, which is characterized in that the described method includes:
Third-party application entity A F sends the first session request to protocol converter PC, and first session request includes the AF Uniform resource position mark URL and Policy and Charging Rules Function PCRF identity information, wherein, the identity of the PCRF Information is included for the identity information for the user terminal being addressed to the PCRF;
The AF receives the response that the PC is returned, and the first session is established with the PC;
After the PC and the PCRF establish the second session, the AF receives the PC according between the AF and the PC The reported event of connection identifier forwarding, the connection identifier and the reported event are sent to the PC by the PCRF, described URL and the connection identifier are all the identity informations of the AF.
19. according to the method for claim 18, which is characterized in that
The identity information of the PCRF further includes:Diameter domains where the diameter Diameter host identifications and PCRF of PCRF Mark;
The identity information of the PC includes:The mark in Diameter domains where the Diameter host identifications and PC of PC.
20. according to the method for claim 18, which is characterized in that the AF sends the first session request to PC, including:
The AF and the PC establish web-based socket websocket and are connected by once shaking hands;
The AF transmits first session request in the websocket connections to the PC.
CN201410635553.4A 2014-03-11 2014-03-11 A kind of information transferring method and device Active CN104917742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410635553.4A CN104917742B (en) 2014-03-11 2014-03-11 A kind of information transferring method and device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201480000852.9A CN105144836B (en) 2014-03-11 2014-03-11 A kind of information transferring method and device
CN201410635553.4A CN104917742B (en) 2014-03-11 2014-03-11 A kind of information transferring method and device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201480000852.9A Division CN105144836B (en) 2014-03-11 2014-03-11 A kind of information transferring method and device

Publications (2)

Publication Number Publication Date
CN104917742A CN104917742A (en) 2015-09-16
CN104917742B true CN104917742B (en) 2018-05-29

Family

ID=54086453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410635553.4A Active CN104917742B (en) 2014-03-11 2014-03-11 A kind of information transferring method and device

Country Status (1)

Country Link
CN (1) CN104917742B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10250723B2 (en) * 2017-04-13 2019-04-02 BlueTalon, Inc. Protocol-level identity mapping
CN111246478B (en) * 2020-01-20 2021-09-21 广州爱浦路网络技术有限公司 HSS-based 5G core network information processing device and method
CN113438096B (en) * 2020-03-23 2022-08-19 中国电信股份有限公司 Method, system and application function entity for guaranteeing service quality

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217789A (en) * 2008-01-10 2008-07-09 中兴通讯股份有限公司 A selecting method of strategies under non-roaming scenery and the functional server of charging rules
CN101227391A (en) * 2008-01-09 2008-07-23 中兴通讯股份有限公司 Tactics under non-roaming condition and method for selecting charging regulation function entity
CN102300263A (en) * 2011-09-23 2011-12-28 电信科学技术研究院 Policy and charging rules function (PCRF) determination method, device and system
CN102905390A (en) * 2011-07-26 2013-01-30 中兴通讯股份有限公司 Session association method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9942938B2 (en) * 2012-04-27 2018-04-10 Interdigital Patent Holdings, Inc. Registration for device-to-device (D2D) communications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227391A (en) * 2008-01-09 2008-07-23 中兴通讯股份有限公司 Tactics under non-roaming condition and method for selecting charging regulation function entity
CN101217789A (en) * 2008-01-10 2008-07-09 中兴通讯股份有限公司 A selecting method of strategies under non-roaming scenery and the functional server of charging rules
CN102905390A (en) * 2011-07-26 2013-01-30 中兴通讯股份有限公司 Session association method, device and system
CN102300263A (en) * 2011-09-23 2011-12-28 电信科学技术研究院 Policy and charging rules function (PCRF) determination method, device and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
3rd Generation Partnership Project;Technical Specification Group Core Network and Terminals;Study on XML based access of AF to the PCRF(Release 12);3GPP;《3GPP TR 29.817 V2.0.0 (2014-02)》;20140310;协议文档第60页,图C.2.1 *

Also Published As

Publication number Publication date
CN104917742A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
US10313858B2 (en) Service layer interworking using MQTT protocol
CN107534563B (en) Enhanced redirection processing from policy server
US9603058B2 (en) Methods, systems, and computer readable media for triggering a service node to initiate a session with a policy and charging rules function
EP2823624B1 (en) Method and apparatus for identifying an application associated with an ip flow using dns data
US9032480B2 (en) Providing multiple APN connections support in a browser
US9948646B1 (en) Machine type communication interworking function proxy
EP2627032B1 (en) Method, policy server and gateway for determining policies
CN105743670B (en) Access control method, system and access point
CN105530666B (en) Binding session method and system
EP3871370A1 (en) Methods of and devices for executing policy rules on a per application basis in a telecommunications system
US8862869B1 (en) Method and apparatus for providing network initiated session encryption
CN105122741A (en) Method and apparatus for controlling service chain of service flow
CN104917742B (en) A kind of information transferring method and device
CN107534649A (en) Change the IMS supplementary service datas in IMS network
US10631145B1 (en) Dynamic provision of application related sponsored data connectivity
CN105144836B (en) A kind of information transferring method and device
EP3073691B1 (en) Method and device for improving qos
WO2014124881A1 (en) Systems, methods and computer program products for enabling a communication device to provide session improvement requests to a server of a network operator's access network
EP2605480A1 (en) Apparatus and method for HTTP analysis
EP3086593B1 (en) Network entity and method for monitoring an ims-based service
CN103139205A (en) Message processing method, device and network server
CN109391914B (en) Method and equipment for addressing session
KR20160075655A (en) Data processing method, device and system
WO2019035106A1 (en) Efficient signalling multiplexing in a web-technology based network
BR112016020891B1 (en) INFORMATION TRANSMISSION METHOD AND DEVICE

Legal Events

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