CN106302638B - Data management method, forwarding equipment and system - Google Patents

Data management method, forwarding equipment and system Download PDF

Info

Publication number
CN106302638B
CN106302638B CN201610601794.6A CN201610601794A CN106302638B CN 106302638 B CN106302638 B CN 106302638B CN 201610601794 A CN201610601794 A CN 201610601794A CN 106302638 B CN106302638 B CN 106302638B
Authority
CN
China
Prior art keywords
session
message
identifier
record information
forwarding device
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
CN201610601794.6A
Other languages
Chinese (zh)
Other versions
CN106302638A (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 CN201610601794.6A priority Critical patent/CN106302638B/en
Publication of CN106302638A publication Critical patent/CN106302638A/en
Application granted granted Critical
Publication of CN106302638B publication Critical patent/CN106302638B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0892Network architectures or network communication protocols for network security for authentication of entities by using authentication-authorization-accounting [AAA] servers or protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures
    • H04L65/1089In-session procedures by adding media; by removing media
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Abstract

The embodiment of the invention discloses a data management method, forwarding equipment and a system, wherein the method comprises the following steps: the forwarding equipment acquires session record information, wherein the session record information comprises a session identifier and a session management equipment identifier; the forwarding device creates a query request message, wherein the query request message comprises the session identifier; the forwarding device sends the query request message to the session management device corresponding to the session management device identifier; and the forwarding equipment receives a result message sent by the session management equipment, and deletes the session record information if determining that the session corresponding to the session identifier does not exist in the session management equipment according to the result message. The session record information can be accurately determined to be the junk data, so that the junk data can be accurately identified and deleted, and the stability of the session can be ensured on the premise of ensuring the system capacity.

Description

Data management method, forwarding equipment and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data management method, a forwarding device, and a system.
Background
Third generation partnership project (3)rdGeneration Partnership Project, 3GPP), session binding means that in Policy and Charging Control (PCC) networking, it needs to be ensured that messages related to the same session and sent by different communication interfaces or network devices are all forwarded by a forwarding device to the same Policy and Charging Rules Function (PCRF) device.
In order to ensure that messages related to the same session and sent by different communication interfaces or network devices are all forwarded by a forwarding device to the same PCRF device, it is necessary to forward, at the forwarding device, for example: a Diameter protocol forwarding Device (DRA) stores session record information thereon, for example: session identification (Session ID), Packet Data Network gateway (PGW) address, PCRF address, Internet Protocol (IP) address, subscriber number, timestamp, etc. The DRA belongs to a Diameter (Diameter) routing agent, and is Diameter signaling transfer equipment, which supports a relay (relay) function and a proxy (proxy) function, and is used for receiving Diameter signaling and according to information in a message, for example: and the Destination area (Destination-real) is routed to other Diameter equipment.
Under the normal conversation process, the conversation recording information is deleted after the conversation is finished; for example: and the DRA receives a message which is sent by the PGW to the PCRF equipment and used for deleting the session and then executes the deletion of the session record information. However, in practical applications, various messages may cause that a message sent by the PGW to the PCRF device for deleting the session is lost due to a bearer problem or other reasons, or cause that the session record information is not deleted but is kept in the forwarding device. The session record information of the finished session is kept in the forwarding device, which is garbage data and wastes system capacity.
In order to save system capacity, it is necessary to age the garbage data, that is: and (5) deleting. One aging method commonly used at present is aging according to a timestamp, and assuming aging according to a one-month time point, session record information more than one month is considered as garbage data.
The problem of abnormal use of session service caused by mistakenly deleting session record information exists in data aging in a time stamp mode.
Disclosure of Invention
The embodiment of the invention provides a data management method, forwarding equipment and a system, which are used for accurately identifying and deleting junk data and ensuring the stability of a session on the premise of ensuring the system capacity.
In one aspect, an embodiment of the present invention provides a data management method, including:
the forwarding equipment acquires session record information, wherein the session record information comprises a session identifier and a session management equipment identifier; the forwarding device creates a query request message, wherein the query request message comprises the session identifier; the forwarding device sends the query request message to the session management device corresponding to the session management device identifier; and the forwarding equipment receives the result message sent by the session management equipment, and if the session corresponding to the session identifier does not exist according to the result message, the session record information can be deleted, so that the deletion of the session record information which becomes junk data is realized.
In an optional implementation manner, the session record information further includes a timestamp; the acquiring the session record information includes: and if the time stamp is determined to be longer than a preset threshold value from the current time, acquiring the session recording information. The optional implementation mode provides a scheme for screening the session record information, so that the session record information which is more likely to be junk data is extracted, and unnecessary establishment and transmission of query request messages are reduced.
In an optional implementation, the method further includes:
and if the session corresponding to the session identifier exists in the session management equipment according to the result message, updating the timestamp in the session record information to be the current time.
Based on the implementation scheme of filtering the session record information by adopting the timestamp, frequent sending of query request messages for the sessions which continuously keep the existence state can be avoided by updating the timestamp.
In an optional implementation manner, a more specific application scenario is also provided, where the forwarding device includes a diameter protocol forwarding device; the session management apparatus includes: a packet data network gateway, PGW.
In an alternative implementation, the session record information is not necessarily garbage data, and the usage process is as follows: the method further comprises the following steps:
after receiving session data from at least two source ends, if the session data from at least two source ends both correspond to the session identifier, the forwarding device forwards the session data from at least two source ends to a policy and charging rule function device according to the session record information.
Based on the forwarding device being a diameter protocol forwarding device; in an application scenario in which the session management device is a PGW, in order to reduce modifications to a communication system for compatibility with a current communication protocol, the following solutions are provided: the query request message includes: a re-authentication request (RAR) message, wherein the RAR message also carries a packet data network gateway (PGW) identifier and a PCRF identifier which are the same as those in the session record information;
the result message includes: re-authentication response RAA message;
the forwarding device does not forward the RAA message after receiving the RAA message.
In another aspect, an embodiment of the present invention further provides a forwarding device, including:
the information acquisition unit is used for acquiring session record information which comprises a session identifier and a session management equipment identifier;
a message creating unit, configured to create a query request message, where the query request message includes the session identifier;
a message sending unit, configured to send the query request message to a session management device corresponding to the session management device identifier;
a result receiving unit, configured to receive a result message sent by the session management device;
and the data management unit is used for deleting the session record information if the session corresponding to the session identifier does not exist in the session management equipment according to the result message.
In an optional implementation manner, the session record information further includes a timestamp;
and the information acquisition unit is used for acquiring the session recording information if the time stamp is longer than a preset threshold value from the current time.
In an optional implementation manner, the forwarding device further includes:
and the updating unit is used for updating the timestamp in the session record information to be the current time if the session corresponding to the session identifier is determined to exist in the session management equipment according to the result message.
In an alternative implementation, the forwarding device comprises a diameter protocol forwarding device; the session management apparatus includes: a packet data network gateway, PGW.
In an optional implementation manner, the forwarding device further includes:
a data receiving unit, configured to receive session data from at least two source ends;
and the data forwarding unit is configured to, after the data receiving unit receives the session data from the at least two source ends, forward the session data from the at least two source ends to a policy and charging rule function device according to the session record information if the session data from the at least two source ends both correspond to the session identifier.
In an optional implementation manner, the query request message includes: a re-authentication request (RAR) message, wherein the RAR message also carries a packet data network gateway (PGW) identifier and a PCRF identifier which are the same as those in the session record information;
the result message includes: re-authentication response RAA message;
a forwarding control unit, configured to control the result receiving unit not to forward the RAA message after receiving the RAA message.
Embodiments of the present invention in three aspects further provide a communication system, including: the session management system comprises a forwarding device and a session management device, wherein the forwarding device is any one of the forwarding devices provided by the embodiments of the present invention.
An embodiment of the present invention further provides a forwarding device, including: an input device, a processor, and a memory; wherein the memory stores executable software code; the processor implements the method flow in the embodiments of the present invention by executing the executable code.
According to the technical scheme, the embodiment of the invention has the following advantages: the method comprises the steps that a forwarding device for storing session record information constructs a query request message and sends the query request message to a corresponding session management device, and the session record information can be accurately determined to be junk data under the condition that the corresponding session does not exist, so that the junk data can be accurately identified and deleted, and the stability of the session can be ensured on the premise of ensuring the system capacity.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic diagram of a network architecture according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a communication system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a network architecture of a typical application scenario according to an embodiment of the present invention, where the network device includes: PGW, DRA1, DRA2, PCRF1, PCRF2, Application Function (AF) device, etc.; DRA1 and DRA2 are used as forwarding devices, and session record information is stored in DRA1 and DRA2, for example, each piece of session record information includes: session ID, PGW address, PCRF address, IP address, subscriber number, timestamp, etc. Assuming that data from the AF and the PGW about the same Session ID reaches DRA1, DRA1 finds the PCRF address according to the Session record information corresponding to the Session ID, and sends the received data from the AF and the PGW about the same Session ID to the PCRF address.
An embodiment of the present invention provides a data management method, as shown in fig. 2, which can refer to a network architecture diagram shown in fig. 1, including:
201: the forwarding equipment acquires session record information, wherein the session record information comprises a session identifier and a session management equipment identifier;
the forwarding device is a network device having the capability of forwarding the session related data, and the embodiment of the present invention is not limited as to whether it will modify the session related data to be forwarded and whether it has other functions.
The forwarding device can obtain session record information from local, wherein the session identifier is an identifier used for uniquely identifying the session in the network, and the session management device identifier is an identifier used for uniquely identifying the session management device in the network; as to which specific representation is used, for example: device identification codes, host names, IP addresses, or the like are possible, and embodiments of the present invention are not limited to these. In addition, based on different networking architectures, if provisions are made in the correspondingly used communication protocol with respect thereto, the identification of the protocol provisions and the format required for the identification may preferably be used.
202: the forwarding device creates a query request message, wherein the query request message contains the session identifier;
the query request message is a message that the session management device can recognize, recognize the corresponding session according to the session identifier after receiving the query request message, and return whether the session exists in the session management device. The message for realizing the query function of the query request message can be selected according to the needs in different communication systems and in the same communication system, and the existing message is preferably used; for example: a Re-authentication Request (Re-Auth-Request, RAR) message, where the RAR message may carry a session identifier, and based on the specification of the RAR message in the 3GPP protocol, if a corresponding session does not exist, there will be no information of the session on a session management device, especially on a PGW, and the PGW will return an error, and the error result is that the information of the session cannot be identified. That is, the query request message only needs the session management device to return information indicating whether there is a corresponding session in the session management device, and the information may not be identifiable, or may directly inform that the session is not stored, or the like.
203: the forwarding device sends the query request message to the session management device corresponding to the session management device identifier;
204: the forwarding equipment receives a result message sent by the session management equipment;
205: and if the forwarding equipment determines that the session corresponding to the session identifier does not exist in the session management equipment according to the result message, deleting the session record information.
The result message has a function of informing the forwarding device whether there is a corresponding session in the session management device, for example: the session does not exist in the session management apparatus, the session management apparatus cannot recognize the session, and the like; can be considered to have this function. The session record information deletion realizes the aging deletion of the junk data.
In the embodiment of the invention, the forwarding device for storing the session record information constructs the query request message and sends the query request message to the corresponding session management device, and the session record information can be accurately determined to be the junk data under the condition that the corresponding session does not exist, so that the junk data can be accurately identified and deleted, and the stability of the session can be ensured on the premise of ensuring the system capacity.
In this embodiment, the session record information acquired by the forwarding device does not need to be every piece of query request information, which may be periodic cleaning; or filtering by using the timestamp of the session record information, which is specifically as follows: the forwarding device acquiring the session record information includes:
the session record information also comprises a timestamp;
and the forwarding equipment acquires the session record information if the time stamp is longer than a preset threshold value from the current time.
In this embodiment, the timestamp is time information included in the session record information, and the time information is generally used to indicate the time of creating the session record, and corresponds to the time of creating the session. The predetermined threshold is used to determine how long the session recording information is present, that is: the time duration after the session is created; different sessions may have a large difference in duration, but a session does not always exist, so a threshold may be set to determine that a large likelihood of the session does not exist; how the predetermined threshold is set in the embodiments of the present invention is not to be limited uniquely based on the use. After the session records are screened once through the timestamp, the session record information capable of sending the query request message is less, and unnecessary message transmission can be reduced.
According to the scheme of screening the session record information based on the timestamp, if the session is determined to exist, the timestamp can be updated, and the situation that query requests are frequently sent for the session with a longer duration is avoided, which is specifically as follows: the method further comprises the following steps:
and if the session corresponding to the session identifier exists in the session management equipment according to the result message, updating the timestamp in the session record information to be the current time.
Based on a specific application scenario, as shown in fig. 1, the forwarding device includes a diameter protocol forwarding device; the session management device includes: a packet data network gateway, PGW.
Based on the application scenario shown in fig. 1, during the session persisting, the session record information is used as follows (i.e. the above method further includes:
after receiving session data from at least two source ends, if the session data from at least two source ends all correspond to the session identifier, the forwarding device forwards the session data from at least two source ends to a policy and charging rule function device according to the session record information, so as to implement a forwarding function of the forwarding device.
The embodiment further provides that the query request message includes: a re-authentication request (RAR) message, wherein the RAR message also carries a packet data network gateway (PGW) identifier and a PCRF identifier which are the same as those in the session record information;
the result message includes: re-authentication Answer (Re-Auth-Answer, RAA) message;
the forwarding device does not forward the RAA message after receiving the RAA message.
In this embodiment, the existing message in the 3GPP protocol is compatible with the existing communication protocol of the current network system, and the change may be only the RAR message created by the DRA, and the RAR message is not forwarded after receiving the RAA message. Therefore, the modification to the network system is small, and the technical application is easy to realize.
Based on the network architecture shown in fig. 1, an embodiment of the present invention provides a more detailed implementation method, which is shown in fig. 3 and includes:
301. after determining that the session record information in the database needs to be aged, the DRA firstly takes out the corresponding session record information from the database according to the timestamp of the session record; for example: the time stamp shows that the session duration is longer than a certain time, and the session record information is taken out, and the time can be configured. And then the DRA constructs a Re-authentication Request (Re-Auth-Request, RAR) message according to the session data.
In the RAR information, there may be included: session ID, Dhostname and Ohostname; wherein, the Session ID is the Session ID recorded in the Session record and is used for uniquely identifying the Session corresponding to the Session record information; the Dhostname is a corresponding PGW in the session recording information and is used for indicating which PGW the session recording information is sent from, and finally the RAR message is also sent to the PGW according to the communication protocol; ohostname is a host name (Hostname) of a corresponding PCRF in the session record information, and is used for indicating which PCRF device the session record information is directed to, and the DRA simulates the PCRF device to send an RAR message; these pieces of information are data stored in the recording information.
302. After the DRA constructs the RAR message, the RAR message is sent to the PGW.
According to the current communication protocol, the PGW returns a Re-authentication/authorization response message (RAA) message, and if the PGW does not have the SESSION, the PGW reports an error in the RAA and carries information with a cause value of unknown SESSION (unknown _ SESSION).
303. When the DRA receives the RAA message, the DRA intercepts the RAA message and does not forward the RAA message, and according to the content of the RAA message, the DRA: the error cause value is unknown _ SESSION, the SESSION is determined to be absent, and the locally stored SESSION record information of the corresponding SESSION ID can be aged and deleted; if there is no error or the error reason is not unknown _ SESSION, the SESSION record information is deleted without aging.
304. If it is determined that the session record information does not need to be aged, the timestamp of the session record information may be updated, and the time of the timestamp may be recorded as the current time, indicating that the time has been audited. The next time the session record is audited, the time set in 301 needs to be waited for again.
According to the embodiment, the aging treatment can be accurately carried out on each single session record information, so that the junk data can be deleted, and the normal session data can not be influenced, thereby ensuring that the session is normally carried out. In addition, the method has better compatibility with the current communication protocol and lower implementation cost.
An embodiment of the present invention further provides a forwarding device, as shown in fig. 4, including:
an information obtaining unit 401, configured to obtain session record information, where the session record information includes a session identifier and a session management device identifier;
a message creating unit 402, configured to create an inquiry request message, where the inquiry request message includes the session identifier;
a message sending unit 403, configured to send the query request message to a session management device corresponding to the session management device identifier;
a result receiving unit 404, configured to receive a result message sent by the session management apparatus;
a data management unit 405, configured to delete the session record information if it is determined that the session corresponding to the session identifier does not exist in the session management device according to the result message.
In this embodiment, the forwarding device, the session record information, the query request message, the result message, and the like may all refer to the description in the foregoing method embodiment, and details are not described herein.
Further, the session record information further includes a timestamp;
the information obtaining unit 401 is configured to obtain the session record information if the time stamp is longer than a predetermined threshold from the current time.
In this embodiment, unnecessary message delivery may be reduced by using the timestamp as a filtering condition for the session record. Specifically, reference may be made to the description of the foregoing method embodiments, which are not repeated herein.
Further, according to the scheme of screening the session record information based on the timestamp, if it is determined that the session still exists, the timestamp may be updated, so as to avoid frequent sending of query requests for sessions with longer duration, which is specifically as follows: as shown in fig. 5, the forwarding device further includes:
an updating unit 501, configured to update the timestamp in the session record information to be the current time if it is determined that the session corresponding to the session identifier exists in the session management device according to the result message.
More specifically, the above-mentioned forwarding device includes a diameter protocol forwarding device; the session management device includes: the packet data network gateway PGW is,
further, as shown in fig. 6, the forwarding device further includes:
a data receiving unit 601, configured to receive session data from at least two sources;
a data forwarding unit 602, configured to, after the data receiving unit 601 receives the session data from the at least two sources, if the session data from the at least two sources both correspond to the session identifier, forward the session data from the at least two sources to a policy and charging rule function device according to the session record information.
In this embodiment, the existing message in the 3GPP protocol is compatible with the existing communication protocol of the current network system, and the change may be only the RAR message created by the DRA, and the RAR message is not forwarded after receiving the RAA message. Therefore, the modification to the network system is small, and the technical application is easy to realize.
Further, as shown in fig. 7, the query request message includes: a re-authentication request (RAR) message, wherein the RAR message also carries a packet data network gateway (PGW) identifier and a PCRF identifier which are the same as those in the session record information;
the result message includes: re-authentication response RAA message; the forwarding device further includes:
a forwarding control unit 701, configured to control the result receiving unit 404 not to forward the RAA message after receiving the RAA message.
An embodiment of the present invention further provides another forwarding device, as shown in fig. 8, including: an input-output device 801, a processor 802, and a storage device 803; the storage device 803 may be used to store the session record information and also may be used to provide a cache for the processor 802 to perform data processing; the memory 803 may store executable software codes, and the processor 802 may implement the method flows in the foregoing embodiments by executing the executable software codes, which may be referred to as the foregoing method embodiments together, specifically as follows:
acquiring session record information, wherein the session record information comprises a session identifier and a session management equipment identifier; creating a query request message, wherein the query request message comprises the session identifier; sending the query request message to the session management device corresponding to the session management device identifier; and receiving a result message sent by the session management device, and deleting the session record information if the session corresponding to the session identifier does not exist in the session management device according to the result message.
Further, the acquiring the session record information includes: the session record information also comprises a timestamp; and if the time stamp is determined to be longer than a preset threshold value from the current time, acquiring the session recording information.
Further, the processor 802 is further configured to update the timestamp in the session record information to be the current time if it is determined that the session corresponding to the session identifier exists in the session management device according to the result message.
Optionally, the forwarding device includes a diameter protocol forwarding device; the session management device includes: a packet data network gateway, PGW.
Further, the processor 802 is further configured to, after receiving session data from at least two sources, forward the session data from the at least two sources to a policy and charging rule function device according to the session record information if the session data from the at least two sources both correspond to the session identifier.
Optionally, the query request message includes: a re-authentication request (RAR) message, wherein the RAR message also carries a packet data network gateway (PGW) identifier and a PCRF identifier which are the same as those in the session record information;
the result message includes: re-authentication response RAA message;
further, the processor 802 is further configured to not forward the RAA message after receiving the RAA message.
As shown in fig. 9, an embodiment of the present invention further provides a forwarding device as shown in fig. 9, where the forwarding device 900 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 922 (e.g., one or more processors) and a memory 932, and one or more storage media 930 (e.g., one or more mass storage devices) storing an application program 942 or data 944. Memory 932 and storage media 930 can be, among other things, transient storage or persistent storage. The program stored on storage medium 930 may include one or more modules (not shown), each of which may include a series of instruction operations for a forwarding device. Still further, central processor 922 may be disposed in communication with storage medium 930 to execute a sequence of instruction operations in storage medium 930 on forwarding device 900.
The forwarding device 900 may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input-output interfaces 958, and/or one or more operating systems 941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The steps performed by the forwarding device in the above embodiments may be based on the forwarding device structure shown in fig. 9.
An embodiment of the present invention further provides a communication system, as shown in fig. 10, including: a forwarding device 1001 and a session management device 1002, wherein the forwarding device is the forwarding device provided in any one of the foregoing embodiments. Reference may be made to the system shown in figure 1.
It should be noted that, in the foregoing embodiment of the forwarding device, each included unit is only divided according to functional logic, but is not limited to the above division as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
In addition, it is understood by those skilled in the art that all or part of the steps in the above method embodiments may be implemented by related hardware, and the corresponding program may be stored in a computer readable storage medium, where the above mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the embodiment of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A method for managing data, comprising:
the forwarding equipment acquires session record information, wherein the session record information comprises a session identifier and a session management equipment identifier; the forwarding device comprises a diameter protocol forwarding device; the session management apparatus includes: a packet data network gateway, PGW;
the forwarding device creates a query request message, wherein the query request message comprises the session identifier;
the forwarding device sends the query request message to the session management device corresponding to the session management device identifier; the query request message includes: a re-authentication request (RAR) message, wherein the RAR message also carries a packet data network gateway (PGW) identifier and a PCRF identifier which are the same as those in the session record information;
the forwarding device receives a result message sent by the session management device, where the result message includes: re-authentication response RAA message; the forwarding device does not forward the RAA message after receiving the RAA message;
and if the session corresponding to the session identifier does not exist in the session management equipment according to the result message, deleting the session record information.
2. The method of claim 1, wherein the forwarding device obtaining session record information comprises:
the session recording information also comprises a timestamp;
and the forwarding equipment acquires the session recording information if the time stamp is longer than a preset threshold value from the current time.
3. The method of claim 2, further comprising:
and if the session corresponding to the session identifier exists in the session management equipment according to the result message, updating the timestamp in the session record information to be the current time.
4. The method of claim 1, further comprising:
after receiving session data from at least two source ends, if the session data from at least two source ends both correspond to the session identifier, the forwarding device forwards the session data from at least two source ends to a policy and charging rule function device according to the session record information.
5. A forwarding device, comprising:
the information acquisition unit is used for acquiring session record information which comprises a session identifier and a session management equipment identifier; the forwarding device comprises a diameter protocol forwarding device; the session management apparatus includes: a packet data network gateway, PGW;
a message creating unit, configured to create a query request message, where the query request message includes the session identifier; the query request message includes: a re-authentication request (RAR) message, wherein the RAR message also carries a packet data network gateway (PGW) identifier and a PCRF identifier which are the same as those in the session record information;
a message sending unit, configured to send the query request message to a session management device corresponding to the session management device identifier;
a result receiving unit, configured to receive a result message sent by the session management device; the result message includes: re-authentication response RAA message;
a data management unit, configured to delete the session record information if it is determined that the session corresponding to the session identifier does not exist in the session management device according to the result message
A forwarding control unit, configured to control the result receiving unit not to forward the RAA message after receiving the RAA message.
6. The forwarding device of claim 5 wherein the session record information further comprises a timestamp;
and the information acquisition unit is used for acquiring the session recording information if the time stamp is longer than a preset threshold value from the current time.
7. The forwarding device of claim 6, wherein the forwarding device further comprises:
and the updating unit is used for updating the timestamp in the session record information to be the current time if the session corresponding to the session identifier is determined to exist in the session management equipment according to the result message.
8. The forwarding device of claim 5, wherein the forwarding device further comprises:
a data receiving unit, configured to receive session data from at least two source ends;
and the data forwarding unit is configured to, after the data receiving unit receives the session data from the at least two source ends, forward the session data from the at least two source ends to a policy and charging rule function device according to the session record information if the session data from the at least two source ends both correspond to the session identifier.
9. A communication system, comprising: the forwarding device and the session management device, wherein the forwarding device is the forwarding device according to any one of claims 5 to 8.
CN201610601794.6A 2016-07-27 2016-07-27 Data management method, forwarding equipment and system Active CN106302638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610601794.6A CN106302638B (en) 2016-07-27 2016-07-27 Data management method, forwarding equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610601794.6A CN106302638B (en) 2016-07-27 2016-07-27 Data management method, forwarding equipment and system

Publications (2)

Publication Number Publication Date
CN106302638A CN106302638A (en) 2017-01-04
CN106302638B true CN106302638B (en) 2020-02-14

Family

ID=57662578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610601794.6A Active CN106302638B (en) 2016-07-27 2016-07-27 Data management method, forwarding equipment and system

Country Status (1)

Country Link
CN (1) CN106302638B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924893B (en) * 2017-04-26 2020-12-25 ***通信有限公司研究院 Bearer release method, bearer release device, MME and SAE-GW
EP3565371A4 (en) 2017-07-20 2020-03-25 Huawei International Pte. Ltd. Session processing method and device
CN108199870A (en) * 2017-12-25 2018-06-22 新华三技术有限公司 Conversation processing method, device and electronic equipment
CN108564250A (en) * 2018-03-07 2018-09-21 中国平安人寿保险股份有限公司 Forwarding record real time inspection system, method, computer equipment and storage medium
CN112491941A (en) * 2019-09-12 2021-03-12 华为技术有限公司 Data management method, related product and communication system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483584A (en) * 2008-01-07 2009-07-15 华为技术有限公司 Method and apparatus for policy and charging rule functional entity information maintenance
CN101646149A (en) * 2008-08-07 2010-02-10 中兴通讯股份有限公司 Method for deleting session messages in DRA
CN102694841A (en) * 2011-03-21 2012-09-26 中兴通讯股份有限公司 Method and system for deleting binding information in Diameter routing agent
CN102790959A (en) * 2012-07-02 2012-11-21 大唐移动通信设备有限公司 Method and device for sending Diameter messages

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101541100B (en) * 2008-03-17 2012-07-04 华为技术有限公司 Method and device for deleting strategy session
US9860390B2 (en) * 2011-08-10 2018-01-02 Tekelec, Inc. Methods, systems, and computer readable media for policy event record generation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483584A (en) * 2008-01-07 2009-07-15 华为技术有限公司 Method and apparatus for policy and charging rule functional entity information maintenance
CN101646149A (en) * 2008-08-07 2010-02-10 中兴通讯股份有限公司 Method for deleting session messages in DRA
CN102694841A (en) * 2011-03-21 2012-09-26 中兴通讯股份有限公司 Method and system for deleting binding information in Diameter routing agent
CN102790959A (en) * 2012-07-02 2012-11-21 大唐移动通信设备有限公司 Method and device for sending Diameter messages

Also Published As

Publication number Publication date
CN106302638A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
CN106302638B (en) Data management method, forwarding equipment and system
CN114145054B (en) System and method for supporting traffic steering through service function chains
CN110580256B (en) Method, device and system for identifying application identification
KR102276868B1 (en) Billing management method, user plane function, and control plane function
CN109361526B (en) Policy-controlled routing method, PCRF/PCF and DRA
CN109413640B (en) Session information query method, network element and computer storage medium
CN107113602B (en) Subscriber profile switching to support roaming within Diameter networks
WO2012118963A1 (en) Methods, systems and computer readable media for dynamically learning diameter binding information
US9954815B2 (en) Domain name collaboration service using domain name dependency server
JP7294578B2 (en) User plane rerouting method and apparatus
CN107547283B (en) Management method and device of distributed aggregation group
CN114095430B (en) Access message processing method, system and working node
US8787382B2 (en) Per-peer request delivery timeouts
EP3002916B1 (en) Packet forwarding system, device and method
CN103595808B (en) A kind of file update information method for pushing and device
CN112491941A (en) Data management method, related product and communication system
CN110035040B (en) Method and device for signaling addressing
CN103095587A (en) Method of registration service and network ethnic group central control node and system
WO2018177003A1 (en) Charging method, and related device and system
KR20200046315A (en) Method for Subscription Expiration Management and M2M System applying the same
CN116420363A (en) Methods, systems, and computer readable media for supporting migration of user profile and policy information
CN109391914B (en) Method and equipment for addressing session
CN113424577A (en) Method and device for service detection
CN108667879B (en) Data service session binding method, routing equipment and system
CN112153584A (en) Method and device for realizing policy and charging control

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