CN118055114A - Cross-distributed network element data synchronization method, device and readable storage medium - Google Patents

Cross-distributed network element data synchronization method, device and readable storage medium Download PDF

Info

Publication number
CN118055114A
CN118055114A CN202211438081.4A CN202211438081A CN118055114A CN 118055114 A CN118055114 A CN 118055114A CN 202211438081 A CN202211438081 A CN 202211438081A CN 118055114 A CN118055114 A CN 118055114A
Authority
CN
China
Prior art keywords
distributed network
message
target
data
network element
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.)
Pending
Application number
CN202211438081.4A
Other languages
Chinese (zh)
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.)
Shanghai Datang Mobile Communications Equipment Co ltd
Original Assignee
Shanghai Datang Mobile Communications Equipment 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 Shanghai Datang Mobile Communications Equipment Co ltd filed Critical Shanghai Datang Mobile Communications Equipment Co ltd
Priority to CN202211438081.4A priority Critical patent/CN118055114A/en
Publication of CN118055114A publication Critical patent/CN118055114A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application provides a data synchronization method and device across a distributed network unit and a readable storage medium, wherein the method comprises the following steps: receiving a first message sent by a first network function of a source distributed network unit in the distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of the source distributed network unit, a requested object and the requested target data; authenticating the source distributed network unit according to the identifier of the source distributed network unit to obtain an authentication result; and if the authentication result is that the authentication is successful, sending a second message to the first network function of the source distributed network unit, wherein the second message comprises part or all of the requested target data. The cross-domain data synchronization can be effectively realized, and further the service can be effectively provided for the terminal.

Description

Cross-distributed network element data synchronization method, device and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for synchronizing data across distributed network elements, and a readable storage medium.
Background
The 6G architecture will be a new network architecture where a centralized control mobile communication network and the open internet are mutually fused together. The method is characterized in that the method is required to surpass centralized control, gradually evolves towards a distributed architecture, expands more networks to the network edge, and establishes distributed isomorphic micro cloud units with different functional grades. Each micro cloud unit is self-contained and has all functions of complete control and data forwarding. The distributed network element is a micro cloud element deployed at the edge of the network or is an edge network.
However, if the related data (subscription data, policy information, etc.) of the terminal is stored in only one distributed network element, the terminal cannot be provided with service after the distributed network element fails; or when the terminal moves to other distributed network units, the other distributed network units cannot provide service for the terminal if the related data of the terminal is not available.
Therefore, in the prior art, aiming at the 6G distributed architecture, cross-domain data synchronization cannot be effectively realized, and further services cannot be effectively provided for the terminal.
Disclosure of Invention
The application provides a data synchronization method, a device and a readable storage medium of a cross-distributed network unit, which solve the technical problems that the cross-domain data synchronization cannot be effectively realized aiming at a 6G distributed architecture in the prior art, and further the service cannot be effectively provided for a terminal.
In a first aspect, the present application provides a method for synchronizing data across distributed network elements, the method being applied to a first network function of a target distributed network element in a distributed network, the method comprising:
Receiving a first message sent by a first network function of a source distributed network unit in the distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of the source distributed network unit, a requested object and the requested target data;
Authenticating the source distributed network unit according to the identifier of the source distributed network unit to obtain an authentication result;
and if the authentication result is that the authentication is successful, sending a second message to the first network function of the source distributed network unit, wherein the second message comprises part or all of the requested target data.
Optionally, authenticating the source distributed network element according to the identifier of the source distributed network element to obtain an authentication result, including:
Determining whether the source distributed network element is any one node of a centralized node of the distributed network, a neighbor node of the target distributed network element and a node with an association relation with the target distributed network element according to the identifier of the source distributed network element;
And if the source distributed network unit is any node, determining that the authentication result is authentication success.
Optionally, the method further comprises:
And if the authentication result is that the authentication fails, a twenty-second message is sent to the first network function of the source distributed network unit, wherein the twenty-second message is used for indicating the request for rejecting the first network function of the source distributed network unit, and the twenty-second message carries the reason for rejecting the request.
In the embodiment of the application, the source distributed network unit is authenticated according to the identification of the source distributed network unit in the request by receiving the target data synchronization request sent by the first network function of the source distributed network unit, if the source distributed network unit is any one node of the centralized node of the distributed network, the neighbor node of the target distributed network unit and the node with the association relation with the target distributed network unit, the authentication is successful, otherwise, the authentication is failed. If the authentication fails, a reason for rejecting the request is sent to a first network function of the source distributed network unit; if the authentication is successful, part or all of the requested target data is sent to the first network function of the source distributed network element. The cross-domain data synchronization is effectively realized, and further, the service can be effectively provided for the terminal.
Optionally, the method further comprises:
receiving a third message sent by the first network function of the source distributed network element, wherein the third message is used for subscribing to a target data change notification, and the change of the target data comprises at least one of the following: changes in historical data records, increases in new data records, creation of data sets, updating of data sets, and deletion of data sets;
and if the target data changes, sending the changed data in the target data to the first network function of the source distributed network unit through a fourth message.
Optionally, the method further comprises:
Receiving a fifth message sent by the first network function of the source distributed network element, where the fifth message is used to subscribe to a service operation notification corresponding to a target data change, and the service operation corresponding to the target data change includes at least one of the following: a service operation of creation of the data record in the target data, a service operation of update of the data record in the target data, a service operation of deletion of the data record in the target data, a service operation of creation of the data set, a service operation of update of the data set, and a service operation of deletion of the data set;
If a sixth message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the service operation of the sixth message, and sending the service operation in the sixth message and the identifier of the target distributed network unit to the first network function of the source distributed network unit through a seventh message; the sixth message is for indicating at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a delete service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a delete service operation of a data set.
In the embodiment of the application, the network function of the source distributed network unit subscribes to the data change notification to the network function of the target distributed network unit, and when the data of the target distributed network unit changes, the changed data is notified to the network function of the source distributed network unit; the method further comprises the step of subscribing the created service operation of the data record in the target data, the updated service operation of the data record in the target data, the deleted service operation of the data record in the target data, the created service operation of the data set, the updated service operation of the data set and the deleted service operation of the data set, so that the target data synchronization is realized.
Optionally, the method further comprises:
Receiving an eighth message sent by the first network function of the source distributed network element, where the eighth message is used to subscribe to a target operation notification corresponding to a target data change, and the target operation corresponding to the target data change includes at least one of the following: the method comprises the steps of creating a data record in target data, updating the data record in the target data, deleting the data record in the target data, creating a data set, updating the data set and deleting the data set;
and if a ninth message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the ninth message, and sending the target operation in the ninth message and the identification of the target distributed network unit to the first network function of the source distributed network unit through the tenth message.
In the embodiment of the application, the network function of the source distributed network unit subscribes a target operation change notice to the network function of the target distributed network unit, and when the data of the target distributed network unit changes due to the operation of the network function, the network function operation is synchronized to the source distributed network unit, so that the source distributed network unit executes the same data operation; the network function operation is sent to the source distributed network element carried in a notification. Corresponding data are synchronized through subscription notification, and target data synchronization is further achieved.
Optionally, the method further comprises:
If an eleventh message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the eleventh message, and determining an affected source distributed network unit and corresponding change data according to a local data synchronization record; the eleventh message is configured to indicate at least one of a service operation of creation of a data record in the target data, a service operation of update of a data record in the target data, a service operation of deletion of a data record in the target data, a service operation of creation of a data set, a service operation of update of a data set, and a service operation of deletion of a data set;
The affected source distributed network unit is a source distributed network unit with an influence based on the change of the data of the target distributed network unit;
Sending a service operation of the eleventh message and an identification of the target distributed network element to the affected source distributed network element.
In the embodiment of the application, after the data of the target distributed network unit changes due to the network function operation, the network function of the target distributed network unit synchronously records according to the local data, and triggers the network function operation to be sent to the source distributed network unit. The method and the device realize no subscription notification, synchronize corresponding service operation in a conditional triggering mode, and further realize target data synchronization.
Optionally, the centralized node may be configured to perform authority management on data of each distributed network element according to a relationship between distributed network elements in the distributed network, and synchronize corresponding data to any one of the distributed network elements according to a twelfth message sent by the any one of the distributed network elements and a corresponding authority;
Wherein the twelfth message is used to request synchronization of data of other distributed network elements in the distributed network.
In the embodiment of the application, all the distributed network units can request the data of other distributed network units from the centralized node, and the centralized node synchronizes the target data, thereby realizing the target data synchronization.
Optionally, the method further comprises:
and carrying out data synchronization through the neighbor distributed network units of the target distributed network unit.
Optionally, performing data synchronization by the neighbor distributed network element of the target distributed network element includes:
If the neighbor distributed network element contains the data of the target distributed network element, directly synchronizing the data to the source distributed network element through the neighbor distributed network element; or alternatively
And if the neighbor distributed network unit does not contain the data of the target distributed network unit, receiving the first message through the neighbor distributed network unit, and carrying out data synchronization according to the first message.
In the embodiment of the application, the neighbor distributed network unit of the target distributed network unit can perform data synchronization to the source distributed network unit which has no connection relationship with the target distributed network unit, thereby realizing target data synchronization.
Optionally, receiving the first message sent by the first network function of the source distributed network element in the distributed network element includes:
receiving, by the third network function of the target distributed network element, a thirteenth message sent by the third network function of the source distributed network element;
Wherein the thirteenth message is sent by a third network function of the target distributed network element after authentication of the thirteenth message; the thirteenth message is the first message; the thirteenth message is determined by a fourteenth message sent by the first network function of the source distributed network element to the third network function of the source distributed network element and the identifier of the source distributed network element, and the fourteenth message includes the identifier of the target distributed network element, the object requested in the first message and the requested target data; the third network function is created by each distributed network element;
correspondingly, the sending the second message to the first network function of the source distributed network element includes:
A fifteenth message is sent to the first network function of the source distributed network unit through the third network function of the target distributed network unit and the third network function of the source distributed network unit in sequence; the fifteenth message carries part or all of the target data requested in the first message.
Optionally, receiving the first message sent by the first network function of the source distributed network element in the distributed network element includes:
receiving, by a third network function of the target distributed network element, a sixteenth message sent by the first network function of the source distributed network element;
Wherein the sixteenth message is authenticated by a third network function of the target distributed network element and then sent, and the sixteenth message is used as the first message; the sixteenth message is sent by the first network function of the source distributed network element to the third network function of the target distributed network element, the sixteenth message for requesting target data synchronization from the target distributed network element; the third network function is created by each distributed network element;
the address information of the third network function of the target distributed network unit is determined by the third network function of the source distributed network unit according to a seventeenth message sent by the first network function of the source distributed network unit, wherein the seventeenth message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the seventeenth message carries the identifier of the target distributed network unit;
correspondingly, the sending the second message to the first network function of the source distributed network element includes:
Transmitting, by a third network function of the target distributed network element, an eighteenth message to the first network function of the source distributed network element; the eighteenth message carries part or all of the target data requested in the first message.
Optionally, the first message is sent by the first network function of the source distributed network element according to the received information of the nineteenth message, the nineteenth message is sent by the third network function of the target distributed network element according to the received twentieth message, the twentieth message is sent by the first network function of the source distributed network element to the third network function of the target distributed network element, the twentieth message is used for requesting the address information of the first network function of the target distributed network element, and the twentieth message carries the identifier of the source distributed network element;
The address information of the third network function of the target distributed network unit is determined by the third network function of the source distributed network unit according to a twenty-first message sent by the first network function of the source distributed network unit, wherein the twenty-first message is used for requesting the third network function of the source distributed network unit to inquire the address information of the third network function of the target distributed network unit; the twenty-first message carries an identification of the target distributed network element.
In the embodiment of the application, if the network functions in the distributed network units cannot directly interact, the data synchronization request of the source distributed network units can be transferred through the third-party network function, so that the target data synchronization is realized.
In a second aspect, the present application provides a method for synchronizing data across distributed network elements, applied to a first network function of a source distributed network element in a distributed network, the method comprising:
Sending a first message to a first network function of a target distributed network element in the distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of a source distributed network element, a requested object and the requested target data;
and receiving a second message sent by the first network function of the target distributed network unit, wherein the second message is determined by the first network function of the target distributed network unit according to an authentication result of authentication according to the identification of the source distributed network unit, and the second message comprises part or all of data or reject reasons in the requested target data.
In the embodiment of the application, the target distributed network unit authenticates the source distributed network unit according to the identification of the source distributed network unit in the request through a target data synchronization request sent to the first network function of the target distributed network unit, and in the authentication process, if the source distributed network unit is any one node of a centralized node of the distributed network, a neighbor node of the target distributed network unit and a node with an association relation with the target distributed network unit, the authentication is determined to be successful, otherwise, the authentication is failed. If the authentication fails, the first network function of the source distributed network element receives the reason of the rejection request sent by the target distributed network element; if the authentication is successful, the first network function of the source distributed network element receives part or all of the target data requested by the source distributed network element sent by the target distributed network element. The cross-domain data synchronization is effectively realized, and further, the service can be effectively provided for the terminal.
In a third aspect, the present application provides a data synchronization apparatus across a distributed network element, for use in a first network function of a target distributed network element in a distributed network, the apparatus comprising a memory, a transceiver, and a processor:
A memory for storing a computer program; a transceiver for transceiving data under control of the processor; a processor for reading the computer program in the memory and performing the following operations:
Receiving a first message sent by a first network function of a source distributed network unit in the distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of the source distributed network unit, a requested object and the requested target data;
Authenticating the source distributed network unit according to the identifier of the source distributed network unit to obtain an authentication result;
and if the authentication result is that the authentication is successful, sending a second message to the first network function of the source distributed network unit, wherein the second message comprises part or all of the requested target data.
In a fourth aspect, the present application provides a data synchronization device across a distributed network element, for use in a first network function of a source distributed network element in a distributed network, the device comprising a memory, a transceiver, and a processor:
A memory for storing a computer program; a transceiver for transceiving data under control of the processor; a processor for reading the computer program in the memory and performing the following operations:
Sending a first message to a first network function of a target distributed network unit in the distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of a source distributed network unit, a requested object and the requested target data;
and receiving a second message sent by the first network function of the target distributed network unit, wherein the second message is determined by the first network function of the target distributed network unit according to an authentication result of authentication according to the identification of the source distributed network unit, and the second message comprises part or all of data or reject reasons in the requested target data.
In a fifth aspect, the present application provides a data synchronization device across a distributed network element, for application to a first network function of a target distributed network element in a distributed network, the device comprising:
a receiving unit, configured to receive a first message sent by a first network function of a source distributed network unit in the distributed network, where the first message is used to request target data synchronization, and the first message includes an identifier of the source distributed network unit, a requested object, and the requested target data;
the processing unit is used for authenticating the source distributed network unit according to the identification of the source distributed network unit to obtain an authentication result;
And the sending unit is used for sending a second message to the first network function of the source distributed network unit when the authentication result is that the authentication is successful, wherein the second message comprises part or all of the requested target data.
In a sixth aspect, the present application provides a data synchronization device across a distributed network element, for application to a first network function of a source distributed network element in a distributed network, the device comprising:
A sending unit, configured to send a first message to a first network function of a target distributed network unit in the distributed network, where the first message is used to request target data synchronization, and the first message includes an identifier of a source distributed network unit, a requested object, and the requested target data;
A receiving unit, configured to receive a second message sent by a first network function of the target distributed network unit, where the second message is determined by an authentication result of the first network function of the target distributed network unit according to the identifier of the source distributed network unit, and the second message includes part or all of data or reject reasons in the requested target data.
In a seventh aspect, the present application provides a processor-readable storage medium storing a computer program for causing the processor to perform the method of any one of the first or second aspects.
The application provides a data synchronization method, a device and a readable storage medium of a cross-distributed network unit, which are used for receiving a first message sent by a first network function of a source distributed network unit in a distributed network, wherein the first message is used for requesting target data synchronization and comprises an identifier of the source distributed network unit, a requested object and the requested target data; authenticating the source distributed network unit according to the identifier of the source distributed network unit to obtain an authentication result; and if the authentication result is that the authentication is successful, sending a second message to the first network function of the source distributed network unit, wherein the second message comprises part or all of the requested target data. The service operation among the network functions of the cross-distributed network units is used for carrying out data synchronization operation among the distributed network units, and meanwhile, the source distributed network units can synchronize the changed data to the target distributed network units, so that the real-time synchronization and consistency of the data are ensured.
It should be understood that the description of the invention above is not intended to limit key or critical features of embodiments of the invention, nor to limit the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the application or the technical solutions of the prior art, the following description of the embodiments or the drawings used in the description of the prior art will be given in brief, it being obvious that the drawings in the description below are some embodiments of the application and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a data synchronization method across distributed network elements according to an embodiment of the present application;
fig. 2 is a schematic signaling flow diagram of a data synchronization method across a distributed network element according to an embodiment of the present application;
fig. 3 is a schematic signaling flow diagram of a data synchronization method across distributed network elements according to another embodiment of the present application;
fig. 4 is a schematic signaling flow diagram of a data synchronization method across a distributed network element according to another embodiment of the present application;
fig. 5 is a schematic signaling flow diagram of a data synchronization method across distributed network elements according to still another embodiment of the present application;
fig. 6 is a schematic signaling flow diagram of a data synchronization method across a distributed network element according to another embodiment of the present application;
fig. 7 is a schematic signaling flow diagram of a data synchronization method across distributed network elements according to still another embodiment of the present application;
Fig. 8 is a schematic signaling flow diagram of a data synchronization method across distributed network elements according to another embodiment of the present application;
fig. 9 is a schematic signaling flow diagram of a data synchronization method across distributed network elements according to another embodiment of the present application;
Fig. 10 is a flowchart of a data synchronization method across distributed network elements according to still another embodiment of the present application;
fig. 11 is a schematic structural diagram of a data synchronization device across a distributed network unit according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a data synchronization device across a distributed network unit according to another embodiment of the present application;
FIG. 13 is a schematic diagram illustrating a data synchronization device across a distributed network unit according to another embodiment of the present application;
Fig. 14 is a schematic structural diagram of a data synchronization device across distributed network elements according to another embodiment of the present application.
Detailed Description
The term "and/or" in the present application describes an association relationship of association objects, which means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
For a clear understanding of the technical solutions of the present application, the prior art solutions will be described in detail first. In the prior art, a 5G Core Network (english: 5G Core Network, abbreviated as 5 GC) includes a plurality of functions. For example, user plane functions (User Plane Function, abbreviated as UPF), session management functions (Session Management Function, abbreviated as SMF), access and mobility management functions (ACCESS AND Mobility Management Function, abbreviated as AMF), unified databases (Unified Data Repository, abbreviated as UDR), unified data management functions (Unified DATA MANAGEMENT, abbreviated as UDM), network capability open functions (Network Exposure Function, abbreviated as NEF), application functions (Application Function, abbreviated as AF), policy control functions (Policy Control Function, abbreviated as PCF), and Online charging system (Online CHARGING SYSTEM, abbreviated as OCS). These functions may be collectively referred to as Network functions (hereinafter referred to as NF).
The UDM, PCF and NEF in the 5G system architecture can store data in the UDR, including subscription data and policy data of the UDM and PCF, and the NEF is used for disclosing structured data and application data (including packet flow description of application detection (english: packet Flow Description, abbreviated: PFD), and AF request information of multiple UEs.
With the development of communication and networks, the 6G architecture will be a new network architecture of centralized control type, where a mobile communication network and an open internet are mutually integrated, and where a distributed and coexistent network exists. The method is characterized in that the method is required to surpass centralized control, gradually evolves towards a distributed architecture, expands more networks to the network edge, and establishes distributed isomorphic micro cloud units with different functional grades.
However, for the 6G distributed architecture, if the related data (subscription data, policy information, etc.) of the terminal is stored in only one distributed network element, the terminal cannot be provided with service after the distributed network element fails; in addition, when a terminal moves to another distributed network element, the other distributed network element cannot provide service for the terminal if there is no related data of the terminal.
Therefore, for the 6G distributed architecture, cross-domain data synchronization cannot be effectively realized, and thus, services cannot be effectively provided for the terminal.
The inventor further researches and discovers that to realize the target data synchronization, service operation among NFs crossing the distributed network units can be newly added to perform the data synchronization operation among the distributed network units. Meanwhile, the source distributed network unit can synchronize the changed data to the target distributed network unit, and real-time synchronization and consistency of the data are guaranteed.
Therefore, based on the creative research of the inventor, the application provides a data synchronization method of a cross-distributed network unit, in the application, the source distributed network unit is authenticated according to the identification of the source distributed network unit in the request by receiving a target data synchronization request sent by a first network function of the source distributed network unit, if the source distributed network unit is any node of a centralized node of a distributed network, a neighbor node of the target distributed network unit and a node with an association relation with the target distributed network unit, the authentication is successful, otherwise, the authentication is failed. If the authentication fails, a reason for rejecting the request is sent to a first network function of the source distributed network unit; if the authentication is successful, part or all of the requested target data is sent to the first network function of the source distributed network element. The cross-domain data synchronization is effectively realized, and further, the service can be effectively provided for the terminal.
Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a data synchronization method across distributed network elements provided in an embodiment of the present application, as shown in fig. 1, an execution body of the data synchronization method across distributed network elements provided in the embodiment is a first network function of a target distributed network element in a distributed network, where the first network function may be a network function (such as Data RepositOry Function, DRF) for performing unified storage management on data or other network functions in a 5G system, and is not limited herein specifically; the DRF may include data such as UE context, session context, and the like, in addition to data such as subscription data and policy information in the UDR in 5G. The data synchronization method for the cross-distributed network unit provided by the embodiment of the application comprises the following steps:
Step 101, a first message sent by a first network function of a source distributed network element in the distributed network is received.
The first message is used for requesting target data synchronization, and the first message comprises an identifier of a source distributed network unit, a requested object and the requested target data.
In this embodiment, the network functions of the distributed network units in the distributed network may directly interact to achieve data synchronization or interact through a third party network function (hereinafter referred to as a third network function) that is created to achieve data synchronization.
Taking the example that the network functions can directly interact, the first network function of the source distributed network element sends a target data synchronization request as a first message to the first network function of the target distributed network element, and the first network function of the target distributed network element receives the request sent by the first network function of the source distributed network element, where the request may include an identifier of the source distributed network element, an identifier of a requested object (UE (s)) and requested target data.
Step 102, authenticating the source distributed network unit according to the identifier of the source distributed network unit to obtain an authentication result.
In this embodiment, the first network function of the target distributed network unit performs authentication judgment on the source distributed network unit according to the identifier of the source distributed network unit in the first message, so as to judge whether the distributed network unit where the first network function of the source distributed network unit is located has a corresponding authority; such as the right to synchronize the data. If the source distributed network unit is judged to have the corresponding authority, the authentication is successful, namely the authentication result is authentication success; otherwise, the authentication result is authentication failure.
Optionally, authenticating the source distributed network unit according to the identifier of the source distributed network unit to obtain an authentication result, which can be achieved by the following steps:
Step a1, determining whether the source distributed network unit is any node of a centralized node of the distributed network, a neighbor node of the target distributed network unit and a node with an association relation with the target distributed network unit according to the identification of the source distributed network unit;
And a2, if the source distributed network unit is any node, determining that the authentication result is authentication success.
In this embodiment, according to the identifier of the source distributed network element, it is determined whether the source distributed network element is a centralized node of the distributed network, a neighbor node of the target distributed network element, or a node having an association relationship with the target distributed network element. If the source distributed network unit is any node of the nodes, the source distributed network unit is indicated to have corresponding authority, namely authentication is successful; otherwise, authentication fails.
Step 103, if the authentication result is that the authentication is successful, a second message is sent to the first network function of the source distributed network unit, where the second message includes part or all of the requested target data.
In this embodiment, if authentication is successful, the first network function of the target distributed network element sends a second message carrying part or all of the requested target data to the first network function of the source distributed network element, so as to realize data synchronization between the distributed network elements.
Optionally, the method may be further implemented by:
And if the authentication result is that the authentication fails, a twenty-second message is sent to the first network function of the source distributed network unit, wherein the twenty-second message is used for indicating the request for rejecting the first network function of the source distributed network unit, and the twenty-second message carries the reason for rejecting the request.
In this embodiment, if authentication fails, the first network function of the target distributed network element sends a twenty-second message carrying a reason for rejecting the request to the first network function of the source distributed network element, which indicates that the source distributed network element does not have permission to request data synchronization with the target distributed network element.
Taking a first network function as a DRF as an example, a first network function of a source distributed network unit, such as S-DRF, namely a data storage function of the source distributed network unit for initiating a data synchronization request; a first network function of the target distributed network element, such as T-DRF, i.e. a data storage function of the target distributed network element in response to a data synchronization request; assume that a service operation for data synchronization across NF between distributed network elements is: nnf _dm_sync, a method for synchronizing data across a distributed network element is described by taking Ndrf _dm_sync as an example, and referring to fig. 2, fig. 2 is a signaling flow diagram of a method for synchronizing data across a distributed network element according to an embodiment of the present application, where the method for synchronizing data across a distributed network element may be implemented by the following steps:
Step 201, the S-DRF sends Ndrf _dm_sync Request message (i.e. data synchronization Request message, here the first message) to the T-DRF. I.e. the S-DRF requests data of the target terminal of the distributed network element where it is located from the T-DRF, the request message comprising the identity of the source distributed network element, the object to be requested (UE (S) identity) and the target data to be requested.
Step 202, the T-DRF performs authentication judgment according to the identifier of the source distributed network element received in step 201. And judging whether the distributed network unit described by the S-DRF has corresponding authority, namely whether the source distributed network unit is a centralized node or a neighbor node or a node with an association relation.
Step 203, according to the authentication result in step 202, the T-DRF returns a result, that is, ndrf _dm_ Sync Reponse (i.e., a data synchronization response, here, a second message or a twenty-second message) to the S-DRF. Specifically, if the authentication result is authentication failure, the T-DRF rejects the request of the S-DRF and carries a corresponding reject cause in Ndrf _dm_ Sync Reponse. Otherwise, the T-DRF transmits the corresponding data, i.e., some or all of the requested target data.
Specifically, the newly added service operation is used for data synchronization operation among the distributed network units: nnf _DM_Sync: the NF (requesting party) of the source distributed network element sends a data synchronization request message to the NF (requested party) of the target distributed network element, the request message including the identity of the source distributed network element, the object to be requested and the target data to be requested. The NF of the target distributed network unit authenticates the data synchronization request and returns the result to the source distributed network unit.
It should be noted that the names of the network functions (e.g., data storage functions) and the names of the service operations are not limited. The following uses a DRF as an example, and Ndrf _dm_sync is suitable for data synchronization operation between similar network functions of different distributed network elements, and a method for synchronizing data across distributed network elements is described.
In this embodiment, by receiving a target data synchronization request sent by a first network function of a source distributed network unit, authenticating the source distributed network unit according to an identifier of the source distributed network unit in the request, if the source distributed network unit is any one of a centralized node of a distributed network, a neighbor node of the target distributed network unit, and a node having an association relationship with the target distributed network unit, authentication is successful, otherwise authentication fails. If the authentication fails, a reason for rejecting the request is sent to a first network function of the source distributed network unit; if the authentication is successful, part or all of the requested target data is sent to the first network function of the source distributed network element. The cross-domain data synchronization is effectively realized, and further, the service can be effectively provided for the terminal.
Optionally, the data synchronization method across the distributed network element may further be implemented by the following steps:
Step b1, receiving a third message sent by the first network function of the source distributed network unit, wherein the third message is used for subscribing to a target data change notification, and the target data change comprises at least one of the following: changes in historical data records, additions to new data records, creation of data sets, updating of data sets, and deletion of data sets.
And b2, if the target data are changed, sending the changed data in the target data to the first network function of the source distributed network unit through a fourth message.
In this embodiment, the NF of the source distributed network element subscribes to the NF of the target distributed network element for data change notification, and after the data of the target distributed network element changes, the NF of the source distributed network element is notified of the changed data. Wherein, the Nnf _DM_Subscribe service operation is extended, and the subscriptions of create, update and delete to Data Set are added.
Exemplary, embodiment one (S-DRF subscribing to data changes by T-DRF.)
Referring to fig. 3, fig. 3 is a signaling flow diagram of a data synchronization method across distributed network elements according to another embodiment of the present application, and fig. 3 is a signaling interaction diagram between S-DRF and T-DRF in the data synchronization method across distributed network elements. On the basis of the above steps 201 to 203, steps 301 to 304 are executed, that is, the data synchronization method across distributed network elements provided in this embodiment includes the following steps:
Step 301, the S-DRF sends Ndrf _dm_ Subscribe Request message (i.e. a data subscription request message, here, a third message) to the T-DRF, so as to notify the T-DRF of the change of the subscription target data, and if the data of the T-DRF changes, step 303 is executed.
The object Data subscribed to Ndrf _dm_ Subscribe Request includes subscriptions to creation of Data Set, update of Data Set, and deletion of Data Set, in addition to changes of existing Data (e.g., history Data record) and addition of additional Data (e.g., addition of new Data record).
It should be noted that: ndrf _DM_ Subscribe Request can be analogized to Nudr _DM_subscore, expanding on Nudr _DM_ Subscrib service operations, adding additional subscription notifications for creation of Data Set, update of Data Set, and deletion of Data Set.
Step 302, the T-DRF sends Ndrf _dm_ Subscribe Response (i.e., a data subscription response) to the S-DRF.
Step 303, the T-DRF sends the changed data to the S-DRF through Nudr _dm_notify Request (i.e., a data notification Request, here, a fourth message) service operation.
Step 304, the S-DRF sends Nudr _DM_notify Response (namely data notification Response) to the T-DRF to realize data synchronization.
Optionally, the data synchronization method across the distributed network element may further be implemented by the following steps:
Step c1, receiving a fifth message sent by the first network function of the source distributed network unit, where the fifth message is used to subscribe to a service operation notification corresponding to a target data change, and the service operation corresponding to the target data change includes at least one of the following: a service operation of creation of the data record in the target data, a service operation of update of the data record in the target data, a service operation of deletion of the data record in the target data, a service operation of creation of the data set, a service operation of update of the data set, and a service operation of deletion of the data set;
Step c2, if a sixth message sent by the second network function of the target distributed network unit is received, executing a corresponding operation according to the service operation of the sixth message, and sending the service operation in the sixth message and the identifier of the target distributed network unit to the first network function of the source distributed network unit through a seventh message; the sixth message is for indicating at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a delete service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a delete service operation of a data set.
In this embodiment, the NF of the source distributed network unit notifies the NF subscription change of the target distributed network unit, and when the data of the target distributed network unit changes due to NF operation, the NF operation is sent to the source distributed network unit, so that the source distributed network unit executes the same data operation, thereby realizing data synchronization.
Exemplary, embodiment two (S-DRF subscribes to service operation notification corresponding to data change to T-DRF.)
Referring to fig. 4, fig. 4 is a schematic signaling flow diagram of a data synchronization method across a distributed network element according to another embodiment of the present application, and fig. 4 is a signaling interaction diagram among NF, T-DRF and S-DRF in the data synchronization method across a distributed network element. The data synchronization method for the cross-distributed network unit provided by the embodiment comprises the following steps:
Step 401, the S-DRF sends Ndrf _dm_ Subscribe Request message (here, a fifth message) to the T-DRF, where the subscription message is the same as the data change subscribed in the first embodiment, and is different in that when the data of the T-DRF changes, the T-DRF does not notify the S-DRF of the changed data, but sends the service operation received by the T-DRF to the S-DRF.
Step 402, the T-DRF sends Ndrf _DM_ Subscribe Response to the S-DRF in response to the subscription request of the S-DRF.
Step 403, when NF (here, the second network function) in the target distributed network element initiates Ndrf _dm_create/Delete/Update Request (i.e. Create/Update/Delete of data record and Create/Update/Delete service operation Request of data set in the target data, here, the sixth message) to the T-DRF, the data change is caused.
Step 404, the T-DRF receives the request message of the NF, performs the local data operation, and returns a Response to the NF, i.e. sends Ndrf _dm_create/Delete/Update Response to the NF.
Step 405, after receiving the Request message of the NF, the T-DRF sends a Request of the NF (i.e. Ndrf _dm_create/Delete/Update Request) to the S-DRF according to the subscription content while performing the local data operation, and carries the identifier of the distributed network element where the T-DRF is located (herein, the identifier of the target distributed network element).
The request message of the NF and the identifier of the distributed network element where the T-DRF is located are used as a seventh message, and the T-DRF sends the service operation and the identifier of the target distributed network element described in the sixth message to the S-DRF through the seventh message.
Step 406, after the S-DRF receives the request, executing corresponding Create/Delete/Update operation on the corresponding data, and returning a Response to the T-DRF, namely sending Ndrf _DM_Create/Delete/Update Response to the T-DRF.
It should be noted that: the order of steps 404 and 405 is not limited.
The difference between the second embodiment and the first embodiment is that the second embodiment synchronizes the corresponding operation, and the T-DRF and the S-DRF perform the same operation to achieve the purpose of data synchronization. Such as: deleting Data of a certain dataset or sub dataset, the Nudr _dm_notify service operation in the first embodiment needs to carry the Data to be deleted, and in the second embodiment, the same purpose is achieved through Ndrf _dm_delete Request (Data Set, data key (s)), so that Data transmission between service operations can be reduced.
Optionally, the data synchronization method across the distributed network element may further be implemented by the following steps:
Step d1, receiving an eighth message sent by the first network function of the source distributed network unit, where the eighth message is used to subscribe to a target operation notification corresponding to a target data change, and the target operation corresponding to the target data change includes at least one of the following: the method comprises the steps of creating a data record in target data, updating the data record in the target data, deleting the data record in the target data, creating a data set, updating the data set and deleting the data set;
And d2, if a ninth message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the ninth message, and sending the target operation in the ninth message and the identifier of the target distributed network unit to the first network function of the source distributed network unit through the tenth message.
In this embodiment, the NF of the source distributed network element notifies the NF subscription change of the target distributed network element, and when the data of the target distributed network element changes due to NF operation, the NF operation is carried in the Notify and sent to the source distributed network element.
Exemplary, third embodiment (S-DRF subscribes to target operation notifications corresponding to changes in data to T-DRF.)
Referring to fig. 5, fig. 5 is a schematic signaling flow diagram of a data synchronization method across distributed network elements according to still another embodiment of the present application, and fig. 5 is a signaling interaction diagram among NF, S-DRF and T-DRF in the data synchronization method across distributed network elements. The data synchronization method for the cross-distributed network unit provided by the embodiment comprises the following steps:
step 501, the S-DRF sends Ndrf _dm_ Subscribe Request message (here, a seventh message) to the T-DRF, where the subscription message is a target operation notification corresponding to the subscription target data change.
Step 502, the T-DRF sends Ndrf _DM_ Subscribe Response to the S-DRF in response to the subscription request of the S-DRF.
Step 503, when NF (here referred to as a second network function) in the target distributed network element initiates Ndrf _dm_create/Delete/Update Request (i.e. Create/Update/Delete of data record and Create/Update/Delete service operation Request of data set in the target data, here referred to as a ninth message) to the T-DRF, the data change is caused.
Step 504, the T-DRF receives the request message of the NF, performs the local data operation, and returns a Response to the NF, i.e. sends Ndrf _dm_create/Delete/Update Response to the NF.
Step 505, after receiving the NF request message, the T-DRF sends the Create/Delete/Update operation in the ninth message to the S-DRF in a notification manner, that is, through Ndrf _ DM Notify Request (DUI, create/Delete/Update, xx) (here, tenth message) according to the subscription content while carrying the identifier of the distributed network element where the T-DRF is located (here, identifier of the target distributed network element).
Step 506, after the S-DRF receives the request, a corresponding Create/Delete/Update operation is performed on the corresponding data, and a Response is returned to the T-DRF, i.e. Ndrf _dm_notify Response is sent to the T-DRF.
It should be noted that: the order of steps 504 and 505 is not limited.
The difference between the embodiment two is that after the data of the T-DRF changes, the T-DRF does not notify the S-DRF of the service operation that causes the data change, but tells the S-DRF that a specific operation (Create/Delete/Update) needs to be executed by a Notification manner, and the S-DRF executes the corresponding operation locally, thereby realizing data synchronization.
Optionally, the data synchronization method across the distributed network element may further be implemented by the following steps:
Step e1, if an eleventh message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the eleventh message, and determining an affected source distributed network unit and corresponding change data according to a local data synchronization record;
Wherein the eleventh message is configured to indicate at least one of a service operation created by a data record in the target data, an updated service operation of a data record in the target data, a deleted service operation of a data record in the target data, a created service operation of a data set, an updated service operation of a data set, and a deleted service operation of a data set; the affected source distributed network unit is a source distributed network unit with an influence based on the change of the data of the target distributed network unit;
Step e2, sending the service operation of the eleventh message and the identification of the target distributed network element to the affected source distributed network element.
In this embodiment, after the data of the target distributed network element changes due to NF operation, the NF of the target distributed network element synchronously records according to the local data, and triggers the step of sending the NF operation to the source distributed network element.
Exemplary, fourth embodiment (T-DRF sending corresponding service operations to S-DRF by conditional triggering.)
Referring to fig. 6, fig. 6 is a schematic signaling flow diagram of a data synchronization method across distributed network elements according to another embodiment of the present application, and fig. 6 is a signaling interaction diagram among NF, T-DRF and S-DRF in the data synchronization method across distributed network elements. The data synchronization method for the cross-distributed network unit provided by the embodiment comprises the following steps:
Step 601, when NF (here, the second network function) in the target distributed network element initiates Ndrf _dm_create/Delete/Update Request (here, eleventh message) to the T-DRF, and causes the data change in the T-DRF, the T-DRF determines the affected S-DRF (here, the first network function of the source distributed network element that has an effect based on the data change of the target distributed network element) and its data according to the local data synchronization record, and triggers the same Request to the corresponding S-DRF;
step 602, the T-DRF receives the request message of the NF, performs the local data operation, and returns a Response to the NF, i.e. sends Ndrf _dm_create/Delete/Update Response to the NF.
Step 603, after receiving the Request message of the NF, the T-DRF sends a Request of the NF (i.e. Ndrf _dm_create/Delete/Update Request) to the S-DRF while carrying the identifier of the distributed network element where the T-DRF is located (herein, the identifier of the target distributed network element) while performing the local data operation.
Step 604, after the S-DRF receives the request, the S-DRF executes the corresponding Create/Delete/Update operation on the corresponding data, and returns a Response to the T-DRF, i.e. sends Ndrf _dm_create/Delete/Update Response to the T-DRF.
It should be noted that: the order of steps 602 and 603 is not limited. In the second embodiment, the third embodiment and the fourth embodiment, the step 603 may be triggered to multiple S-DRFs at the same time.
Specifically, the fourth embodiment has no subscription step, and synchronizes corresponding service operations (such as creating triggers) by means of conditional triggering. The T-DRF locally stores the data synchronization requester and the requested data content. When the data changes, the T-DRF triggers corresponding operation to the corresponding S-DRF according to the local configuration, and further data synchronization is achieved.
Optionally, the centralized node is configured to perform authority management on data of each distributed network element according to a relationship between distributed network elements in the distributed network, and synchronize corresponding data to any one of the distributed network elements according to a twelfth message sent by the any one of the distributed network elements and corresponding authorities;
Wherein the twelfth message is used to request synchronization of data of other distributed network elements in the distributed network.
In this embodiment, all the distributed network elements may request the data of other distributed network elements from the centralized node, and the centralized node synchronizes the target data.
Exemplary, embodiment five (synchronization of target data by a centralized node.)
Specifically, the distributed network units can request the data of other distributed network units from the centralized node, the centralized node can perform authority management on the data of each distributed network unit according to the relation of the distributed network units, and the centralized node selectively synchronizes the data to the distributed network units.
Optionally, the data synchronization method across the distributed network element may further be implemented by the following steps:
and carrying out data synchronization through the neighbor distributed network units of the target distributed network unit.
Optionally, the data synchronization by the neighbor distributed network element of the target distributed network element may be implemented by the following steps:
step f1, if the neighbor distributed network unit contains the data of the target distributed network unit, directly synchronizing the data to the source distributed network unit through the neighbor distributed network unit; or alternatively
And f2, if the neighbor distributed network unit does not contain the data of the target distributed network unit, receiving the first message through the neighbor distributed network unit, and performing data synchronization according to the first message.
In this embodiment, the neighbor distributed network element of the target distributed network element may perform data synchronization to the source distributed network element that has no connection relationship with the target distributed network element.
Exemplary, embodiment six (synchronization of target data by neighbor distributed network elements.)
Specifically, when the source distributed network element wants to acquire the data of a certain target distributed network element and the source distributed network element has a connection relationship with the target distributed network element, the neighbor distributed network element of the target distributed network element may perform data synchronization in addition to the methods of the first to fifth embodiments. If the neighbor distributed network unit has the data of the target distributed network unit, directly synchronizing; if not, the neighbor distributed network element requests the target distributed network element. Thereby realizing data synchronization.
Alternatively, if the network functions in the distributed network elements cannot interact directly, the data synchronization request of the source distributed network element may be relayed through a third party network function (referred to herein as a third network function). Taking a data synchronization request of a transfer source distributed network unit through a third party network function as an example, the data synchronization method of the cross-distributed network unit can be realized by at least three modes:
Mode one: the data synchronization request of the source distributed network element is transferred to the target distributed network element by the third network function transfer, which can be realized by the following steps:
Step g1, receiving a thirteenth message sent by the third network function of the source distributed network unit through the third network function of the target distributed network unit;
Wherein the thirteenth message is sent by a third network function of the target distributed network element after authentication of the thirteenth message; the thirteenth message is the first message; the thirteenth message is determined by a fourteenth message sent by the first network function of the source distributed network element to the third network function of the source distributed network element and the identifier of the source distributed network element, and the fourteenth message includes the identifier of the target distributed network element, the object requested in the first message and the requested target data; the third network function is created by each distributed network element;
step g2, authenticating the source distributed network unit according to the identification of the source distributed network unit to obtain an authentication result;
step g3, a fifteenth message is sent to the first network function of the source distributed network unit through the third network function of the target distributed network unit and the third network function of the source distributed network unit in sequence; the fifteenth message carries part or all of the target data requested in the first message.
In this embodiment, if the network functions in the distributed network element cannot interact directly, the request may be relayed through a third party network function. If each of the distributed network elements creates a network function (referred to herein as a third network function) that mediates interactions between the distributed network elements (assuming the network function is referred to as NIF, the name is not limited).
Exemplary, embodiment seven (data synchronization request of S-DRF is transferred to T-DRF by NIF transfer)
Referring to fig. 7, fig. 7 is a signaling flow diagram of a data synchronization method across distributed network elements according to still another embodiment of the present application, and fig. 7 is a signaling interaction diagram among S-DRF, S-NIF, T-NIF and T-DRF in the data synchronization method across distributed network elements. The data synchronization method for the cross-distributed network unit provided by the embodiment comprises the following steps:
Step 701, S-DRF triggers a synchronization Request, and sends Ndrf _dm_sync Request (i.e. a data synchronization Request message, here referred to as fourteenth message) to S-NIF, where the message carries the requested distributed network element identifier (here referred to as the identifier of the target source distributed network element), the target data, and the object to be requested (UE (S)) identifier.
Step 702, S-NIF (here, the third network function of the source distributed network element) receives the message, adds the identifier of the current distributed network element (here, the identifier of the source distributed network element) to the message parameter, removes the identifier of the target source distributed network element, and sends the Ndrf _dm_sync Request message (here, the thirteenth message) to the corresponding T-NIF (here, the third network function of the target distributed network element) according to the requested identifier of the distributed network element.
After receiving the message, the T-NIF determines whether to receive the request (primary authentication) of the distributed network element according to the identifier of the source distributed network element (step 703). If not, the T-NIF returns Ndrf _DM_ Sync Reponse carrying the reject cause to the S-NIF. If so, the Ndrf _DM_Sync Request (referred to herein as the thirteenth message) is sent to the T-DRF.
Step 704, the T-DRF determines whether to send part or all of the data requested by the S-DRF to the S-DRF, if so, the T-DRF returns Ndrf _dm_ Sync Reponse (i.e., a corresponding response message, here, a fifteenth message) to the T-NIF, and carries the requested data in the response message.
Step 705, T-NIF transparently passes the response message (here the fifteenth message).
Step 706, S-NIF transparently passes the response message (here the fifteenth message).
It should be noted that the subscription and the notification message trigger are the same, and are not described in detail herein.
Mode two: returning, by the third-party network function, the address of the target network function of the target distributed network unit, and performing data synchronization operation on the target distributed network function by the network function in the source distributed network unit through the third-party network function, by the following steps:
Step h1, receiving a sixteenth message sent by the first network function of the source distributed network unit through the third network function of the target distributed network unit;
Wherein the sixteenth message is authenticated by a third network function of the target distributed network element and then sent, and the sixteenth message is used as the first message; the sixteenth message is sent by the first network function of the source distributed network element to the third network function of the target distributed network element, the sixteenth message for requesting target data synchronization from the target distributed network element; the third network function is created by each distributed network element;
the address information of the third network function of the target distributed network unit is determined by the third network function of the source distributed network unit according to a seventeenth message sent by the first network function of the source distributed network unit, wherein the seventeenth message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the seventeenth message carries the identifier of the target distributed network unit;
Step h2, authenticating the source distributed network unit according to the identification of the source distributed network unit to obtain an authentication result;
Step h3, transmitting an eighteenth message to the first network function of the source distributed network unit through the third network function of the target distributed network unit; the eighteenth message carries part or all of the target data requested in the first message.
In this embodiment, if the network functions in the distributed network units cannot interact directly, the request may be forwarded through the third network function. If each of the distributed network elements creates a network function as an intermediary for interactions between the distributed network elements, the network function stores information of the network function of the same type of each of the distributed network elements (assuming that the network function is called NIF, the name is not limited).
Exemplary, embodiment eight (return of the address of the T-NIF by the S-NIF to the S-DRF, transfer of the data synchronization request of the S-DRF to the T-DRF by the S-DRF through the T-NIF.)
Referring to fig. 8, fig. 8 is a signaling flow diagram of a data synchronization method across distributed network elements according to another embodiment of the present application, and fig. 8 is a signaling interaction diagram among S-DRF, S-NIF, T-NIF and T-DRF in the data synchronization method across distributed network elements. The data synchronization method for the cross-distributed network unit provided by the embodiment comprises the following steps:
Step 801, the S-DRF sends Nnif _ NFDiscovery Request (i.e., an address information request, here a seventeenth message) to the S-NIF. Namely, the S-DRF requests the S-NIF of the distributed network unit for the address information of the target distributed network unit T-NIF, and the message carries the identification of the target distributed network unit.
Step 802, after the S-NIF receives the message, inquiring the information of the T-NIF according to the identification of the target distributed network unit, and returning the address of the T-NIF to the S-DRF.
Step 803, the S-DRF sends Ndrf _dm_sync Request (data synchronization Request, here sixteenth message) to the T-NIF according to the address of the T-NIF, where the message carries the target data and the object to be requested (UE (S) identity) and the identity of the current distributed network element (here the identity of the source distributed network element).
Step 804, the T-NIF receives the message and then determines whether to receive the request (primary authentication) from the distributed network element. If not, the T-NIF returns Ndrf _DM_ Sync Reponse carrying the reject cause to the S-NIF. If so, the Ndrf _DM_Sync Request (referred to herein as the sixteenth message) is sent to the T-DRF.
Step 805, the T-DRF determines whether to send part or all of the data requested by the S-DRF to the S-DRF, if so, the T-DRF returns Ndrf _dm_ Sync Reponse (i.e., a corresponding response message, here, an eighteenth message) to the T-NIF, and carries the requested data in the response message.
Step 806, T-NIF transparently passes the response message (here the eighteenth message).
It should be noted that the subscription and the notification message trigger are the same, and are not described in detail herein.
The third mode is that the third party network function returns the address of the target network function of the target distributed network unit, and the network function in the source distributed network unit directly synchronizes the data of the target distributed network function, which can be realized by the following steps:
The first message is sent by the first network function of the source distributed network unit according to the received nineteenth message, the nineteenth message is sent by the third network function of the target distributed network unit according to the received twentieth message, the twentieth message is sent by the first network function of the source distributed network unit to the third network function of the target distributed network unit, the twentieth message is used for requesting the address information of the first network function of the target distributed network unit, and the twentieth message carries the identifier of the active distributed network unit;
The address information of the third network function of the target distributed network unit is determined by the third network function of the source distributed network unit according to a twenty-first message sent by the first network function of the source distributed network unit, wherein the twenty-first message is used for requesting the third network function of the source distributed network unit to inquire the address information of the third network function of the target distributed network unit; the twenty-first message carries an identification of the target distributed network element.
In this embodiment, if the network functions in the distributed network units cannot interact directly, the request may be forwarded through the third network function. If each of the distributed network elements creates a network function as an intermediary for interactions between the distributed network elements, the network function stores information of the network function of the same type of each of the distributed network elements (assuming that the network function is called NIF, the name is not limited).
Exemplary, embodiment nine (return of the address of the T-DRF by the T-NIF to the S-DRF, direct transmission of the data synchronization request by the S-DRF to the T-DRF.)
Referring to fig. 9, fig. 9 is a signaling flow diagram of a data synchronization method across distributed network elements according to another embodiment of the present application, and fig. 9 is a signaling interaction diagram among S-DRF, S-NIF, T-NIF and T-DRF in the data synchronization method across distributed network elements. The data synchronization method for the cross-distributed network unit provided by the embodiment comprises the following steps:
Step 901, S-DRF sends Nnif _ NFDiscovery Request (i.e., an address information request, here a twenty-first message) to S-NIF. Namely, the S-DRF requests the S-NIF of the distributed network unit for the address information of the target distributed network unit T-NIF, and the message carries the identification of the target distributed network unit.
After receiving the message, the S-NIF queries the information of the T-NIF according to the identification of the target distributed network element, and returns Nnif _ NFDiscovery Reponse carrying the address of the T-NIF to the S-DRF.
Step 903, the S-DRF sends Nnif _ NFDiscovery Request (i.e., an address information request, here a twentieth message) to the T-NIF based on the address of the T-NIF. I.e. the S-DRF requests the T-NIF for the address information of the target distributed network element T-DRF, which message carries the identity of the current distributed network element (here the identity of the source distributed network element).
Step 904, the T-NIF, upon receipt of the message, determines whether to receive a request (primary authentication) from the distributed network element. If not, the T-NIF returns Nnif _ NFDiscovery Reponse carrying the reject reason to the S-NIF. If so, then Nnif _ NFDiscovery Reponse (here, the nineteenth message) carrying the address information of the T-DRF is sent to the T-DRF.
Step 905, the S-DRF sends Ndrf _dm_sync Request (data synchronization Request, here, a first message) to the T-DRF according to the address information of the T-DRF, where the message carries the identifier of the source distributed network element, the target data, and the identifier of the object to be requested (UE (S)).
Step 906, the T-DRF determines whether to send part or all of the data requested by the S-DRF to the S-DRF, if yes, the T-DRF returns Ndrf _dm_ Sync Reponse (i.e. a corresponding response message, here, a second message) to the S-DRF, and carries the requested data in the response message.
It should be noted that the subscription and the notification message trigger are the same, and are not described in detail herein.
Optionally, the first network function is a data storage function or a data plane function.
In this embodiment, if the data storage management in the distributed network element adopts a separate data plane, the DRF in the above method may be replaced by a data plane function.
According to the application, through newly adding the service operation for data synchronization among the distributed network units, the problem of data synchronization across the distributed network units under the distributed network architecture is solved, and the synchronization of subscription data, policy data, context and other data in different distributed network units is realized, so that better service and user experience are provided for terminal users.
Fig. 10 is a flow chart of a data synchronization method across distributed network elements according to still another embodiment of the present application, as shown in fig. 10, an execution body of the data synchronization method across distributed network elements according to this embodiment is a first network function of a source distributed network element in a distributed network, where the first network function may be a DRF or other network functions, and is not limited herein specifically; the data synchronization method for the cross-distributed network unit provided by the embodiment of the application comprises the following steps:
Step 1001, a first message is sent to a first network function of a target distributed network element in the distributed network, where the first message is used to request target data synchronization, and the first message includes an identifier of a source distributed network element, a requested object, and the requested target data;
Step 1002, receiving a second message sent by the first network function of the target distributed network element, where the second message is determined by the first network function of the target distributed network element according to an authentication result of the authentication performed by the identifier of the source distributed network element, and the second message includes part or all of the data or reject reasons in the requested target data.
In this embodiment, in conjunction with the description of fig. 2, through a target data synchronization request sent to a first network function of a target distributed network element, the target distributed network element authenticates the source distributed network element according to an identifier of the source distributed network element in the request, and in the authentication process, if the source distributed network element is any node of a centralized node of the distributed network, a neighboring node of the target distributed network element, and a node having an association relationship with the target distributed network element, the authentication is determined to be successful, otherwise, the authentication is failed. If the authentication fails, the first network function of the source distributed network element receives the reason of the rejection request sent by the target distributed network element; if the authentication is successful, the first network function of the source distributed network element receives part or all of the target data requested by the source distributed network element sent by the target distributed network element. The cross-domain data synchronization is effectively realized, and further, the service can be effectively provided for the terminal.
Optionally, the authentication result is determined by a first network function of the target distributed network unit according to the identifier of the source distributed network unit, whether the source distributed network unit is any node of a centralized node of the distributed network, a neighbor node of the target distributed network unit, and a node having an association relationship with the target distributed network unit, and if the source distributed network unit is any node, the authentication result is that authentication is successful; if the source distributed network unit is not any node, the authentication result is authentication failure.
Optionally, the method of data synchronization across a distributed network element may further comprise the steps of (as shown in connection with fig. 3):
sending a third message to the first network function of the target distributed network element, the third message being for subscribing to a target data change notification, the change in target data comprising at least one of: changes in historical data records, increases in new data records, creation of data sets, updating of data sets, and deletion of data sets;
And receiving changed data in the target data notified by the first network function of the source distributed network element through a fourth message.
Optionally, the method of data synchronization across a distributed network element may further comprise the steps of (as shown in connection with fig. 4):
Sending a fifth message to the first network function of the target distributed network element, where the fifth message is used to subscribe to a service operation notification corresponding to the target data change, and the service operation corresponding to the target data change includes at least one of the following: a service operation of creating the data record in the target data, an update service operation of the data record in the target data, a deletion service operation of the data record in the target data, a creation service operation of the data set, an update service operation of the data set and a deletion service operation of the data set;
receiving, through the seventh message, the service operation and the identifier of the target distributed network element in a sixth message sent by the first network function of the target distributed network element;
Wherein the sixth message is sent by the second network function of the target distributed network element to the first network function of the target distributed network element; the sixth message is used to indicate at least one service operation of creation of a data record in the target data, update of a data record in the target data, deletion of a data record in the target data, creation of a data set, update of a data set, and deletion of a data set. And the target distributed network unit executes corresponding operation according to the service operation of the sixth message.
Optionally, the method of data synchronization across a distributed network element may further comprise the steps of (as shown in connection with fig. 5):
An eighth message sent to the first network function of the target distributed network element, where the eighth message is used to subscribe to a target operation notification corresponding to a target data change, and the target operation corresponding to the target data change includes at least one of the following: the method comprises the steps of creating a data record in target data, updating the data record in the target data, deleting the data record in the target data, creating a data set, updating the data set and deleting the data set;
receiving, by the tenth message, a target operation in the ninth message notified by the first network function of the source distributed network element and an identification of the target distributed network element;
Wherein the ninth message is sent by the second network function of the target distributed network element to the first network function of the target distributed network element. And the target distributed network unit executes corresponding operation according to the ninth message.
Optionally, if the source distributed network element is an affected source distributed network element, the source distributed network element is affected based on the change of the data of the target distributed network element; the method of data synchronization across a distributed network element may further comprise the steps of (as shown in connection with fig. 6):
Receiving service operation of an eleventh message sent by a first network function of a target distributed network unit and an identifier of the target distributed network unit; the eleventh message is configured to indicate at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a deletion service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a deletion service operation of a data set;
Wherein the eleventh message is sent by the second network function of the target distributed network element to the first network function of the target distributed network element. And the target distributed network unit executes corresponding operation according to the eleventh message and determines the affected source distributed network unit and corresponding change data according to the local data synchronous record.
Optionally, the centralized node is configured to perform authority management on data of each distributed network element according to a relationship between distributed network elements in the distributed network, and synchronize corresponding data to any one of the distributed network elements according to a twelfth message sent by the any one of the distributed network elements and corresponding authorities;
Wherein the twelfth message is used to request synchronization of data of other distributed network elements in the distributed network.
Optionally, the method for synchronizing data across distributed network elements may further comprise the steps of:
and carrying out data synchronization through the neighbor distributed network units of the target distributed network unit.
Optionally, performing data synchronization by the neighbor distributed network element of the target distributed network element includes:
if the neighbor distributed network unit contains the data of the target distributed network unit, directly synchronizing the data through the neighbor distributed network unit;
and if the neighbor distributed network unit does not contain the data of the target distributed network unit, receiving the first message through the neighbor distributed network unit, and carrying out data synchronization according to the first message.
Optionally, the sending the first message to the first network function of the target distributed network element in the distributed network may include the following steps (shown in connection with fig. 7):
Transmitting a thirteenth message to the third network function of the target distributed network element through the third network function of the target distributed network element;
Wherein the thirteenth message is sent by a third network function of the target distributed network element after authentication of the thirteenth message; the thirteenth message is the first message; the thirteenth message is determined by the first network function of the target distributed network element according to the fourteenth message sent by the third network function of the source distributed network element and the identity of the source distributed network element; the fourteenth message comprises the identification of the target distributed network unit, the object requested in the first message and the requested target data; the third network function is created by each distributed network element;
correspondingly, the receiving the second message sent by the first network function of the target distributed network element includes:
A fifteenth message sent by the first network function of the target distributed network unit is received through the third network function of the target distributed network unit and the third network function of the source distributed network unit in sequence; the fifteenth message is taken as the second message; the fifteenth message carries part or all of the target data requested in the first message.
Optionally, the sending the first message to the first network function of the target distributed network element in the distributed network may include the following steps (shown in connection with fig. 8):
Transmitting a seventeenth message to a third network function of the source distributed network element; the seventeenth message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the seventeenth message carries the identifier of the target distributed network unit;
receiving address information of a third network function of the target distributed network unit, which is sent by the third network function of the source distributed network unit; the address information of the third network function of the target distributed network element is determined by the third network function of the source distributed network element according to the seventeenth message;
According to the address information of the third network function of the target distributed network unit, a sixteenth message is sent to the first network function of the target distributed network unit through the third network function of the target distributed network unit;
wherein the sixteenth message is authenticated by a third network function of the target distributed network element and then sent, and the sixteenth message is used as the first message; the sixteenth message is for requesting a target data synchronization from the target distributed network element; the third network function is created by each distributed network element;
correspondingly, the receiving the second message sent by the first network function of the target distributed network element includes:
Receiving, by a third network function of the target distributed network element, an eighteenth message sent by a first network function of the target distributed network element; the eighteenth message carries part or all of the target data requested in the first message;
wherein the eighteenth message is the second message.
Optionally, the sending the first message to the first network function of the target distributed network element in the distributed network may include the following steps (shown in connection with fig. 9):
Sending a twenty-first message to a third network function of the source distributed network element; the twenty-first message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the twenty-first message carries the identification of the target distributed network unit;
Receiving address information of a third network function of a target distributed network unit, which is sent by the third network function of the source distributed network unit; the address information of the third network function of the target distributed network element is determined by the third network function of the source distributed network element according to the twenty-first message;
According to the address information of the third network function of the target distributed network unit, a twentieth message is sent to the third network function of the target distributed network unit; the twentieth message is used for requesting address information of a first network function of the target distributed network unit, and the twentieth message carries an identifier of the active distributed network unit;
Receiving a nineteenth message sent by a third network function of the target distributed network element; address information of a first network function of the target distributed network unit carried in the nineteenth message;
And sending a first message to the first network function of the target distributed network unit according to the address information of the first network function of the target distributed network unit.
Optionally, the first network function is a data storage function or a data plane function.
Optionally, the method for synchronizing data across distributed network elements may further comprise the steps of:
And receiving a twenty-second message sent by the first network function of the target distributed network unit, wherein the twenty-second message is used for indicating a request for rejecting the first network function of the source distributed network unit, and the twenty-second message carries a reason for rejecting the request.
Fig. 11 is a schematic structural diagram of a data synchronization device across distributed network elements according to an embodiment of the present application, as shown in fig. 11, where the data synchronization device across distributed network elements provided in this embodiment is applied to a first network function of a target distributed network element in a distributed network. The data synchronization device across distributed network units provided in this embodiment includes: a transceiver 1100 for receiving and transmitting data under the control of a processor 1110.
Wherein in fig. 11, a bus architecture may comprise any number of interconnected buses and bridges, and in particular one or more processors represented by processor 1110 and various circuits of memory represented by memory 1120, linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. Transceiver 1100 may be a number of elements, including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium, including wireless channels, wired channels, optical cables, etc. The processor 1110 is responsible for managing the bus architecture and general processing, and the memory 1120 may store data used by the processor 1110 in performing operations.
The processor 1110 may be a Central Processing Unit (CPU), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), or complex Programmable logic device (Comple, programmable Logic Device, CPLD), which may also employ a multi-core architecture.
In the present embodiment, a memory 1120 for storing a computer program; a transceiver 1100 for transceiving data under the control of the processor 1110; a processor 1110 for reading the computer program in the memory and performing the following operations:
Receiving a first message sent by a first network function of a source distributed network unit in the distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of the source distributed network unit, a requested object and the requested target data;
Authenticating the source distributed network unit according to the identifier of the source distributed network unit to obtain an authentication result;
and if the authentication result is that the authentication is successful, sending a second message to the first network function of the source distributed network unit, wherein the second message comprises part or all of the requested target data.
Optionally, the processor 1110 is configured to authenticate the source distributed network element according to the identifier of the source distributed network element, and when obtaining an authentication result, further specifically includes:
Determining whether the source distributed network element is any one node of a centralized node of the distributed network, a neighbor node of the target distributed network element and a node with an association relation with the target distributed network element according to the identifier of the source distributed network element;
And if the source distributed network unit is any node, determining that the authentication result is authentication success.
Optionally, the processor 1110 further includes:
receiving a third message sent by the first network function of the source distributed network element, wherein the third message is used for subscribing to a target data change notification, and the change of the target data comprises at least one of the following: changes in historical data records, increases in new data records, creation of data sets, updating of data sets, and deletion of data sets;
and if the target data changes, sending the changed data in the target data to the first network function of the source distributed network unit through a fourth message.
Optionally, the processor 1110 further includes:
Receiving a fifth message sent by the first network function of the source distributed network element, where the fifth message is used to subscribe to a service operation notification corresponding to a target data change, and the service operation corresponding to the target data change includes at least one of the following: a service operation of creation of the data record in the target data, an update service operation of the data record in the target data, a deletion service operation of the data record in the target data, a creation service operation of the data set, an update service operation of the data set, and a deletion service operation of the data set;
If a sixth message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the service operation of the sixth message, and sending the service operation in the sixth message and the identifier of the target distributed network unit to the first network function of the source distributed network unit through a seventh message; the sixth message is for indicating at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a delete service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a delete service operation of a data set.
Optionally, the processor 1110 further includes:
Receiving an eighth message sent by the first network function of the source distributed network element, where the eighth message is used to subscribe to a target operation notification corresponding to a target data change, and the target operation corresponding to the target data change includes at least one of the following: the method comprises the steps of creating a data record in target data, updating the data record in the target data, deleting the data record in the target data, creating a data set, updating the data set and deleting the data set;
and if a ninth message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the ninth message, and sending the target operation in the ninth message and the identification of the target distributed network unit to the first network function of the source distributed network unit through the tenth message.
Optionally, the processor 1110 further includes:
If an eleventh message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the eleventh message, and determining an affected source distributed network unit and corresponding change data according to a local data synchronization record; the eleventh message is configured to indicate at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a deletion service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a deletion service operation of a data set; the affected source distributed network unit is a source distributed network unit with an influence based on the change of the data of the target distributed network unit;
Sending a service operation of the eleventh message and an identification of the target distributed network element to the affected source distributed network element.
Optionally, the centralized node is configured to perform authority management on data of each distributed network element according to a relationship between distributed network elements in the distributed network, and synchronize corresponding data to any one of the distributed network elements according to a twelfth message sent by the any one of the distributed network elements and corresponding authorities;
Wherein the twelfth message is used to request synchronization of data of other distributed network elements in the distributed network.
Optionally, the processor 1110 further includes:
and carrying out data synchronization through the neighbor distributed network units of the target distributed network unit.
Optionally, the processor 1110 is configured to, when performing data synchronization by using a neighbor distributed network element of the target distributed network element, further specifically include:
If the neighbor distributed network element contains the data of the target distributed network element, directly synchronizing the data to the source distributed network element through the neighbor distributed network element; or alternatively
And if the neighbor distributed network unit does not contain the data of the target distributed network unit, receiving the first message through the neighbor distributed network unit, and carrying out data synchronization according to the first message.
Optionally, the processor 1110 is configured to, when receiving a first message sent by a first network function of a source distributed network element in the distributed network element, further specifically include:
receiving, by the third network function of the target distributed network element, a thirteenth message sent by the third network function of the source distributed network element;
Wherein the thirteenth message is sent by a third network function of the target distributed network element after authentication of the thirteenth message; the thirteenth message is the first message; the thirteenth message is determined by a fourteenth message sent by the first network function of the source distributed network element to the third network function of the source distributed network element and the identifier of the source distributed network element, and the fourteenth message includes the identifier of the target distributed network element, the object requested in the first message and the requested target data; the third network function is created by each distributed network element;
correspondingly, the processor 1110 is configured to, when sending the second message to the first network function of the source distributed network element, further specifically include:
A fifteenth message is sent to the first network function of the source distributed network unit through the third network function of the target distributed network unit and the third network function of the source distributed network unit in sequence; the fifteenth message carries part or all of the target data requested in the first message.
Optionally, the processor 1110 is configured to, when receiving a first message sent by a first network function of a source distributed network element in the distributed network element, further specifically include:
receiving, by a third network function of the target distributed network element, a sixteenth message sent by the first network function of the source distributed network element;
Wherein the sixteenth message is authenticated by a third network function of the target distributed network element and then sent, and the sixteenth message is used as the first message; the sixteenth message is sent by the first network function of the source distributed network element to the third network function of the target distributed network element, the sixteenth message for requesting target data synchronization from the target distributed network element; the third network function is created by each distributed network element;
the address information of the third network function of the target distributed network unit is determined by the third network function of the source distributed network unit according to a seventeenth message sent by the first network function of the source distributed network unit, wherein the seventeenth message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the seventeenth message carries the identifier of the target distributed network unit;
correspondingly, the processor 1110 is configured to, when sending the second message to the first network function of the source distributed network element, further specifically include:
Transmitting, by a third network function of the target distributed network element, an eighteenth message to the first network function of the source distributed network element; the eighteenth message carries part or all of the target data requested in the first message.
Optionally, the first message is sent by the first network function of the source distributed network element according to the received information of the nineteenth message, the nineteenth message is sent by the third network function of the target distributed network element according to the received twentieth message, the twentieth message is sent by the first network function of the source distributed network element to the third network function of the target distributed network element, the twentieth message is used for requesting the address information of the first network function of the target distributed network element, and the twentieth message carries the identifier of the source distributed network element;
The address information of the third network function of the target distributed network unit is determined by the third network function of the source distributed network unit according to a twenty-first message sent by the first network function of the source distributed network unit, wherein the twenty-first message is used for requesting the third network function of the source distributed network unit to inquire the address information of the third network function of the target distributed network unit; the twenty-first message carries an identification of the target distributed network element.
Optionally, the first network function is a data storage function or a data plane function.
Optionally, the processor 1110 further includes:
And if the authentication result is that the authentication fails, a twenty-second message is sent to the first network function of the source distributed network unit, wherein the twenty-second message is used for indicating the request for rejecting the first network function of the source distributed network unit, and the twenty-second message carries the reason for rejecting the request.
It should be noted that, the cross-distributed network element data synchronization device provided by the present application can implement all the method steps implemented by the method embodiments shown in fig. 1 to fig. 9, and can achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as those of the method embodiments in this embodiment are omitted.
Fig. 12 is a schematic structural diagram of a data synchronization device across distributed network elements according to another embodiment of the present application, as shown in fig. 12, where the data synchronization device across distributed network elements provided in this embodiment is applied to a first network function of a target distributed network element in a distributed network, then the data synchronization device across distributed network elements 1200 provided in this embodiment includes:
a receiving unit 1201, configured to receive a first message sent by a first network function of a source distributed network element in the distributed network, where the first message is used to request target data synchronization, and the first message includes an identifier of the source distributed network element, a requested object, and the requested target data;
A processing unit 1202, configured to authenticate the source distributed network unit according to the identifier of the source distributed network unit, to obtain an authentication result;
and the sending unit 1203 is configured to send a second message to the first network function of the source distributed network unit when the authentication result is that the authentication is successful, where the second message includes part or all of the requested target data.
Optionally, the processing unit is specifically configured to:
Determining whether the source distributed network element is any one node of a centralized node of the distributed network, a neighbor node of the target distributed network element and a node with an association relation with the target distributed network element according to the identifier of the source distributed network element;
And when the source distributed network unit is any node, determining that the authentication result is authentication success.
Optionally, the processing unit is further configured to:
receiving a third message sent by the first network function of the source distributed network element, wherein the third message is used for subscribing to a target data change notification, and the change of the target data comprises at least one of the following: changes in historical data records, increases in new data records, creation of data sets, updating of data sets, and deletion of data sets;
And when the target data changes, sending the changed data in the target data to the first network function of the source distributed network unit through a fourth message.
Optionally, the processing unit is further configured to:
Receiving a fifth message sent by the first network function of the source distributed network element, where the fifth message is used to subscribe to a service operation notification corresponding to a target data change, and the service operation corresponding to the target data change includes at least one of the following: a service operation of creating the data record in the target data, an update service operation of the data record in the target data, a deletion service operation of the data record in the target data, a creation service operation of the data set, an update service operation of the data set and a deletion service operation of the data set;
When a sixth message sent by the second network function of the target distributed network unit is received, corresponding operation is executed according to the service operation of the sixth message, and the service operation in the sixth message and the identification of the target distributed network unit are sent to the first network function of the source distributed network unit through a seventh message; the sixth message is for indicating at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a delete service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a delete service operation of a data set.
Optionally, the processing unit is further configured to:
Receiving an eighth message sent by the first network function of the source distributed network element, where the eighth message is used to subscribe to a target operation notification corresponding to a target data change, and the target operation corresponding to the target data change includes at least one of the following: the method comprises the steps of creating a data record in target data, updating the data record in the target data, deleting the data record in the target data, creating a data set, updating the data set and deleting the data set;
And when a ninth message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the ninth message, and sending the target operation in the ninth message and the identification of the target distributed network unit to the first network function of the source distributed network unit through the tenth message.
Optionally, the processing unit is further configured to:
When an eleventh message sent by a second network function of the target distributed network unit is received, executing corresponding operation according to the eleventh message, and determining an affected source distributed network unit and corresponding change data according to a local data synchronous record; the eleventh message is configured to indicate at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a deletion service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a deletion service operation of a data set; the affected source distributed network unit is a source distributed network unit with an influence based on the change of the data of the target distributed network unit;
Sending a service operation of the eleventh message and an identification of the target distributed network element to the affected source distributed network element.
Optionally, the centralized node is configured to perform authority management on data of each distributed network element according to a relationship between distributed network elements in the distributed network, and synchronize corresponding data to any one of the distributed network elements according to a twelfth message sent by the any one of the distributed network elements and corresponding authorities;
Wherein the twelfth message is used to request synchronization of data of other distributed network elements in the distributed network.
Optionally, the processing unit is further configured to:
and carrying out data synchronization through the neighbor distributed network units of the target distributed network unit.
Optionally, the processing unit is further specifically configured to:
when the neighbor distributed network unit contains the data of the target distributed network unit, the neighbor distributed network unit directly synchronizes the data with the source distributed network unit; or alternatively
And when the neighbor distributed network unit does not contain the data of the target distributed network unit, the first message is received through the neighbor distributed network unit, and the data synchronization is performed according to the first message.
Optionally, the receiving unit is specifically configured to:
receiving, by the third network function of the target distributed network element, a thirteenth message sent by the third network function of the source distributed network element;
Wherein the thirteenth message is sent by a third network function of the target distributed network element after authentication of the thirteenth message; the thirteenth message is the first message; the thirteenth message is determined by a fourteenth message sent by the first network function of the source distributed network element to the third network function of the source distributed network element and the identifier of the source distributed network element, and the fourteenth message includes the identifier of the target distributed network element, the object requested in the first message and the requested target data; the third network function is created by each distributed network element;
correspondingly, the sending unit is specifically configured to:
A fifteenth message is sent to the first network function of the source distributed network unit through the third network function of the target distributed network unit and the third network function of the source distributed network unit in sequence; the fifteenth message carries part or all of the target data requested in the first message.
Optionally, the receiving unit is specifically configured to:
receiving, by a third network function of the target distributed network element, a sixteenth message sent by the first network function of the source distributed network element;
Wherein the sixteenth message is authenticated by a third network function of the target distributed network element and then sent, and the sixteenth message is used as the first message; the sixteenth message is sent by the first network function of the source distributed network element to the third network function of the target distributed network element, the sixteenth message for requesting target data synchronization from the target distributed network element; the third network function is created by each distributed network element;
the address information of the third network function of the target distributed network unit is determined by the third network function of the source distributed network unit according to a seventeenth message sent by the first network function of the source distributed network unit, wherein the seventeenth message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the seventeenth message carries the identifier of the target distributed network unit;
correspondingly, the sending unit is specifically configured to:
Transmitting, by a third network function of the target distributed network element, an eighteenth message to the first network function of the source distributed network element; the eighteenth message carries part or all of the target data requested in the first message.
Optionally, the first message is sent by the first network function of the source distributed network element according to the received information of the nineteenth message, the nineteenth message is sent by the third network function of the target distributed network element according to the received twentieth message, the twentieth message is sent by the first network function of the source distributed network element to the third network function of the target distributed network element, the twentieth message is used for requesting the address information of the first network function of the target distributed network element, and the twentieth message carries the identifier of the source distributed network element;
The address information of the third network function of the target distributed network unit is determined by the third network function of the source distributed network unit according to a twenty-first message sent by the first network function of the source distributed network unit, wherein the twenty-first message is used for requesting the third network function of the source distributed network unit to inquire the address information of the third network function of the target distributed network unit; the twenty-first message carries an identification of the target distributed network element.
Optionally, the first network function is a data storage function or a data plane function.
Optionally, the processing unit is further configured to:
And when the authentication result is that the authentication fails, a twenty-second message is sent to the first network function of the source distributed network unit, wherein the twenty-second message is used for indicating the request for rejecting the first network function of the source distributed network unit, and the twenty-second message carries the reason for rejecting the request.
It should be noted that, the cross-distributed network element data synchronization device provided by the present application can implement all the method steps implemented by the method embodiments of fig. 1 to fig. 9, and can achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as those of the method embodiments in this embodiment are omitted.
Fig. 13 is a schematic structural diagram of a data synchronization device across distributed network elements according to another embodiment of the present application, as shown in fig. 13, where the data synchronization device across distributed network elements provided in this embodiment is applied to a first network function of a source distributed network element in a distributed network, and then the data synchronization device across distributed network elements provided in this embodiment includes: transceiver 1300 for receiving and transmitting data under the control of processor 1310.
Where in FIG. 13, a bus architecture may comprise any number of interconnected buses and bridges, with various circuits of the one or more processors, specifically represented by processor 1310, and the memory, represented by memory 1320, being linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. The bus interface provides an interface. Transceiver 1300 may be a number of elements, including a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium, including wireless channels, wired channels, optical cables, etc. The processor 1310 is responsible for managing the bus architecture and general processing, and the memory 1320 may store data used by the processor 1310 in performing operations.
The processor 1310 may be a Central Processing Unit (CPU), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA), or complex Programmable logic device (Comple, 8, programmable Logic Device, CPLD), which may also employ a multi-core architecture.
In the present embodiment, a memory 1320 for storing a computer program; a transceiver 1300 for transceiving data under the control of the processor; a processor 1310 for reading a computer program in a memory and performing the following operations:
Sending a first message to a first network function of a target distributed network element in the distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of a source distributed network element, a requested object and the requested target data;
And receiving a second message sent by the first network function of the target distributed network unit, wherein the second message is determined by the first network function of the target distributed network unit according to an authentication result of authentication according to the identification of the source distributed network unit, and the second message comprises part or all of the requested target data.
Optionally, the authentication result is determined by a first network function of the target distributed network unit according to the identifier of the source distributed network unit, whether the source distributed network unit is any node of a centralized node of the distributed network, a neighbor node of the target distributed network unit, and a node having an association relationship with the target distributed network unit, and if the source distributed network unit is any node, the authentication result is that authentication is successful; if the source distributed network unit is not any node, the authentication result is authentication failure.
Optionally, the processor 1310 further includes:
sending a third message to the first network function of the target distributed network element, the third message being for subscribing to a target data change notification, the change in target data comprising at least one of: changes in historical data records, increases in new data records, creation of data sets, updating of data sets, and deletion of data sets;
And receiving changed data in the target data notified by the first network function of the source distributed network element through a fourth message.
Optionally, the processor 1310 further includes:
Sending a fifth message to the first network function of the target distributed network element, where the fifth message is used to subscribe to a service operation notification corresponding to the target data change, and the service operation corresponding to the target data change includes at least one of the following: a service operation of creating the data record in the target data, an update service operation of the data record in the target data, a deletion service operation of the data record in the target data, a creation service operation of the data set, an update service operation of the data set and a deletion service operation of the data set;
receiving, through the seventh message, the service operation and the identifier of the target distributed network element in a sixth message sent by the first network function of the target distributed network element;
Wherein the sixth message is sent by the second network function of the target distributed network element to the first network function of the target distributed network element; the sixth message is for indicating at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a delete service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a delete service operation of a data set. And the target distributed network unit executes corresponding operation according to the service operation of the sixth message.
Optionally, the processor 1310 further includes:
An eighth message sent to the first network function of the target distributed network element, where the eighth message is used to subscribe to a target operation notification corresponding to a target data change, and the target operation corresponding to the target data change includes at least one of the following: the method comprises the steps of creating a data record in target data, updating the data record in the target data, deleting the data record in the target data, creating a data set, updating the data set and deleting the data set;
receiving, by the tenth message, a target operation in the ninth message notified by the first network function of the source distributed network element and an identification of the target distributed network element;
Wherein the ninth message is sent by the second network function of the target distributed network element to the first network function of the target distributed network element. And the target distributed network unit executes corresponding operation according to the ninth message.
Optionally, if the source distributed network element is an affected source distributed network element, the source distributed network element is affected based on the change of the data of the target distributed network element; the processor 1310, further includes:
Receiving service operation of an eleventh message sent by a first network function of a target distributed network unit and an identifier of the target distributed network unit; the eleventh message is configured to indicate at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a deletion service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a deletion service operation of a data set;
Wherein the eleventh message is sent by the second network function of the target distributed network element to the first network function of the target distributed network element. And the target distributed network unit executes corresponding operation according to the eleventh message and determines the affected source distributed network unit and corresponding change data according to the local data synchronous record.
Optionally, the centralized node is configured to perform authority management on data of each distributed network element according to a relationship between distributed network elements in the distributed network, and synchronize corresponding data to any one of the distributed network elements according to a twelfth message sent by the any one of the distributed network elements and corresponding authorities;
Wherein the twelfth message is used to request synchronization of data of other distributed network elements in the distributed network.
Optionally, the processor 1310 further includes:
and carrying out data synchronization through the neighbor distributed network units of the target distributed network unit.
Optionally, the processor 1310 is configured to, when performing data synchronization by using a neighbor distributed network element of the target distributed network element, specifically include:
if the neighbor distributed network unit contains the data of the target distributed network unit, directly synchronizing the data through the neighbor distributed network unit;
and if the neighbor distributed network unit does not contain the data of the target distributed network unit, receiving the first message through the neighbor distributed network unit, and carrying out data synchronization according to the first message.
Optionally, the processor 1310 is configured to, when sending the first message to the first network function of the target distributed network element in the distributed network, specifically include:
Transmitting a thirteenth message to the third network function of the target distributed network element through the third network function of the target distributed network element;
Wherein the thirteenth message is sent by a third network function of the target distributed network element after authentication of the thirteenth message; the thirteenth message is the first message; the thirteenth message is determined by the first network function of the target distributed network element according to the fourteenth message sent by the third network function of the source distributed network element and the identity of the source distributed network element; the fourteenth message comprises the identification of the target distributed network unit, the object requested in the first message and the requested target data; the third network function is created by each distributed network element;
Correspondingly, the processor 1310, when receiving the second message sent by the first network function of the target distributed network element, specifically includes:
A fifteenth message sent by the first network function of the target distributed network unit is received through the third network function of the target distributed network unit and the third network function of the source distributed network unit in sequence; the fifteenth message is taken as the second message; the fifteenth message carries part or all of the target data requested in the first message.
Optionally, the processor 1310 is configured to, when sending the first message to the first network function of the target distributed network element in the distributed network, specifically include:
Transmitting a seventeenth message to a third network function of the source distributed network element; the seventeenth message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the seventeenth message carries the identifier of the target distributed network unit;
receiving address information of a third network function of the target distributed network unit, which is sent by the third network function of the source distributed network unit; the address information of the third network function of the target distributed network element is determined by the third network function of the source distributed network element according to the seventeenth message;
According to the address information of the third network function of the target distributed network unit, a sixteenth message is sent to the first network function of the target distributed network unit through the third network function of the target distributed network unit;
wherein the sixteenth message is authenticated by a third network function of the target distributed network element and then sent, and the sixteenth message is used as the first message; the sixteenth message is for requesting a target data synchronization from the target distributed network element; the third network function is created by each distributed network element;
Correspondingly, the processor 1310, when receiving the second message sent by the first network function of the target distributed network element, specifically includes:
Receiving, by a third network function of the target distributed network element, an eighteenth message sent by a first network function of the target distributed network element; the eighteenth message carries part or all of the target data requested in the first message;
wherein the eighteenth message is the second message.
Optionally, the processor 1 310 is configured to, when sending the first message to the first network function of the target distributed network element in the distributed network, specifically include:
Sending a twenty-first message to a third network function of the source distributed network element; the twenty-first message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the twenty-first message carries the identification of the target distributed network unit;
Receiving address information of a third network function of a target distributed network unit, which is sent by the third network function of the source distributed network unit; the address information of the third network function of the target distributed network element is determined by the third network function of the source distributed network element according to the twenty-first message;
According to the address information of the third network function of the target distributed network unit, a twentieth message is sent to the third network function of the target distributed network unit; the twentieth message is used for requesting address information of a first network function of the target distributed network unit, and the twentieth message carries an identifier of the active distributed network unit;
Receiving a nineteenth message sent by a third network function of the target distributed network element; address information of a first network function of the target distributed network unit carried in the nineteenth message;
And sending a first message to the first network function of the target distributed network unit according to the address information of the first network function of the target distributed network unit.
Optionally, the first network function is a data storage function or a data plane function.
Optionally, the processor 1310 further includes:
And receiving a twenty-second message sent by the first network function of the target distributed network unit, wherein the twenty-second message is used for indicating a request for rejecting the first network function of the source distributed network unit, and the twenty-second message carries a reason for rejecting the request.
It should be noted that, the cross-distributed network element data synchronization device provided by the present application can implement all the method steps implemented by the method embodiments shown in fig. 2 to 10, and can achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as those of the method embodiments in the present embodiment are omitted.
Fig. 14 is a schematic structural diagram of a data synchronization device across distributed network elements according to another embodiment of the present application, as shown in fig. 14, where the data synchronization device across distributed network elements provided by the embodiment of the present application is applied to a first network function of a source distributed network element in a distributed network, then the data synchronization device across distributed network elements 1400 provided by the embodiment includes:
A sending unit 1401, configured to send a first message to a first network function of a target distributed network unit in the distributed network, where the first message is used to request target data synchronization, and the first message includes an identifier of a source distributed network unit, a requested object, and the requested target data;
A receiving unit 1402, configured to receive a second message sent by the first network function of the target distributed network unit, where the second message is determined by the first network function of the target distributed network unit according to an authentication result of the authentication performed by the identifier of the source distributed network unit, and the second message includes part or all of the requested target data.
Optionally, the authentication result is determined by a first network function of the target distributed network unit according to the identifier of the source distributed network unit, whether the source distributed network unit is any node of a centralized node of the distributed network, a neighbor node of the target distributed network unit, and a node having an association relationship with the target distributed network unit, and if the source distributed network unit is any node, the authentication result is that authentication is successful; if the source distributed network unit is not any node, the authentication result is authentication failure.
Optionally, the data synchronization device across the distributed network element further comprises a processing unit; a processing unit for:
sending a third message to the first network function of the target distributed network element, the third message being for subscribing to a target data change notification, the change in target data comprising at least one of: changes in historical data records, increases in new data records, creation of data sets, updating of data sets, and deletion of data sets;
And receiving changed data in the target data notified by the first network function of the source distributed network element through a fourth message.
Optionally, the processing unit is further configured to:
Sending a fifth message to the first network function of the target distributed network element, where the fifth message is used to subscribe to a service operation notification corresponding to the target data change, and the service operation corresponding to the target data change includes at least one of the following: a service operation of creating the data record in the target data, an update service operation of the data record in the target data, a deletion service operation of the data record in the target data, a creation service operation of the data set, an update service operation of the data set and a deletion service operation of the data set;
receiving, through the seventh message, the service operation and the identifier of the target distributed network element in a sixth message sent by the first network function of the target distributed network element;
Wherein the sixth message is sent by the second network function of the target distributed network element to the first network function of the target distributed network element; the sixth message is for indicating at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a delete service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a delete service operation of a data set. And the target distributed network unit executes corresponding operation according to the service operation of the sixth message.
Optionally, the processing unit is further configured to:
An eighth message sent to the first network function of the target distributed network element, where the eighth message is used to subscribe to a target operation notification corresponding to a target data change, and the target operation corresponding to the target data change includes at least one of the following: the method comprises the steps of creating a data record in target data, updating the data record in the target data, deleting the data record in the target data, creating a data set, updating the data set and deleting the data set;
receiving, by the tenth message, a target operation in the ninth message notified by the first network function of the source distributed network element and an identification of the target distributed network element;
Wherein the ninth message is sent by the second network function of the target distributed network element to the first network function of the target distributed network element. And the target distributed network unit executes corresponding operation according to the ninth message.
Optionally, if the source distributed network element is an affected source distributed network element, the source distributed network element is affected based on the change of the data of the target distributed network element; the processing unit is further used for:
Receiving service operation of an eleventh message sent by a first network function of a target distributed network unit and an identifier of the target distributed network unit; the eleventh message is configured to indicate at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a deletion service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a deletion service operation of a data set;
Wherein the eleventh message is sent by the second network function of the target distributed network element to the first network function of the target distributed network element. And the target distributed network unit executes corresponding operation according to the eleventh message and determines the affected source distributed network unit and corresponding change data according to the local data synchronous record.
Optionally, the centralized node is configured to perform authority management on data of each distributed network element according to a relationship between distributed network elements in the distributed network, and synchronize corresponding data to any one of the distributed network elements according to a twelfth message sent by the any one of the distributed network elements and corresponding authorities;
Wherein the twelfth message is used to request synchronization of data of other distributed network elements in the distributed network.
Optionally, the processing unit is further configured to:
and carrying out data synchronization through the neighbor distributed network units of the target distributed network unit.
Optionally, the processing unit is further specifically configured to:
When the neighbor distributed network unit contains the data of the target distributed network unit, directly synchronizing the data through the neighbor distributed network unit;
and when the neighbor distributed network unit does not contain the data of the target distributed network unit, the first message is received through the neighbor distributed network unit, and the data synchronization is performed according to the first message.
Optionally, the sending unit is specifically configured to:
Transmitting a thirteenth message to the third network function of the target distributed network element through the third network function of the target distributed network element;
Wherein the thirteenth message is sent by a third network function of the target distributed network element after authentication of the thirteenth message; the thirteenth message is the first message; the thirteenth message is determined by the first network function of the target distributed network element according to the fourteenth message sent by the third network function of the source distributed network element and the identity of the source distributed network element; the fourteenth message comprises the identification of the target distributed network unit, the object requested in the first message and the requested target data; the third network function is created by each distributed network element;
Correspondingly, the receiving unit is specifically configured to:
A fifteenth message sent by the first network function of the target distributed network unit is received through the third network function of the target distributed network unit and the third network function of the source distributed network unit in sequence; the fifteenth message is taken as the second message; the fifteenth message carries part or all of the target data requested in the first message.
Optionally, the sending unit is specifically configured to:
Transmitting a seventeenth message to a third network function of the source distributed network element; the seventeenth message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the seventeenth message carries the identifier of the target distributed network unit;
receiving address information of a third network function of the target distributed network unit, which is sent by the third network function of the source distributed network unit; the address information of the third network function of the target distributed network element is determined by the third network function of the source distributed network element according to the seventeenth message;
According to the address information of the third network function of the target distributed network unit, a sixteenth message is sent to the first network function of the target distributed network unit through the third network function of the target distributed network unit;
wherein the sixteenth message is authenticated by a third network function of the target distributed network element and then sent, and the sixteenth message is used as the first message; the sixteenth message is for requesting a target data synchronization from the target distributed network element; the third network function is created by each distributed network element;
Correspondingly, the receiving unit is specifically configured to:
Receiving, by a third network function of the target distributed network element, an eighteenth message sent by a first network function of the target distributed network element; the eighteenth message carries part or all of the target data requested in the first message;
wherein the eighteenth message is the second message.
Optionally, the sending unit is specifically configured to:
Sending a twenty-first message to a third network function of the source distributed network element; the twenty-first message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the twenty-first message carries the identification of the target distributed network unit;
Receiving address information of a third network function of a target distributed network unit, which is sent by the third network function of the source distributed network unit; the address information of the third network function of the target distributed network element is determined by the third network function of the source distributed network element according to the twenty-first message;
According to the address information of the third network function of the target distributed network unit, a twentieth message is sent to the third network function of the target distributed network unit; the twentieth message is used for requesting address information of a first network function of the target distributed network unit, and the twentieth message carries an identifier of the active distributed network unit;
Receiving a nineteenth message sent by a third network function of the target distributed network element; address information of a first network function of the target distributed network unit carried in the nineteenth message;
And sending a first message to the first network function of the target distributed network unit according to the address information of the first network function of the target distributed network unit.
Optionally, the first network function is a data storage function or a data plane function.
Optionally, the processing unit is further configured to:
And receiving a twenty-second message sent by the first network function of the target distributed network unit, wherein the twenty-second message is used for indicating a request for rejecting the first network function of the source distributed network unit, and the twenty-second message carries a reason for rejecting the request.
It should be noted that, the cross-distributed network element data synchronization device provided by the present application can implement all the method steps implemented by the method embodiments of fig. 2 to 10, and can achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as those of the method embodiments in the present embodiment are omitted herein.
It should be noted that, the division of the units in the embodiment of the present application is schematic, only one logic function is divided, and another division manner may be implemented in practice. In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The embodiment of the application also provides a processor readable storage medium. The processor-readable storage medium stores a computer program for causing a processor to perform any one of the method embodiments described above.
Among other things, processor-readable storage media can be any available medium or data storage device that can be accessed by a processor, including but not limited to magnetic storage (e.g., floppy disks, hard disks, tapes, magneto-optical disks (MOs), etc.), optical storage (e.g., CD, DVD, BD, HVD, etc.), and semiconductor storage (e.g., ROM, EPROM, EEPROM, nonvolatile storage (NAND FLASH), solid State Disk (SSD)), etc.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-executable instructions. These computer-executable instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These processor-executable instructions may also be stored in a processor-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the processor-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These processor-executable instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (19)

1. A method for synchronizing data across a distributed network element, the method being applied to a first network function of a target distributed network element in a distributed network, the method comprising:
receiving a first message sent by a first network function of a source distributed network unit in a distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of the source distributed network unit, a requested object and the requested target data;
Authenticating the source distributed network unit according to the identifier of the source distributed network unit to obtain an authentication result;
and if the authentication result is that the authentication is successful, sending a second message to the first network function of the source distributed network unit, wherein the second message comprises part or all of the requested target data.
2. The method according to claim 1, wherein authenticating the source distributed network element according to the identifier of the source distributed network element, to obtain an authentication result, comprises:
Determining whether the source distributed network element is any one node of a centralized node of the distributed network, a neighbor node of the target distributed network element and a node with an association relation with the target distributed network element according to the identifier of the source distributed network element;
And if the source distributed network unit is any node, determining that the authentication result is authentication success.
3. The method according to claim 1, wherein the method further comprises:
receiving a third message sent by the first network function of the source distributed network element, wherein the third message is used for subscribing to a target data change notification, and the change of the target data comprises at least one of the following: changes in historical data records, increases in new data records, creation of data sets, updating of data sets, and deletion of data sets;
and if the target data changes, sending the changed data in the target data to the first network function of the source distributed network unit through a fourth message.
4. The method according to claim 1, wherein the method further comprises:
Receiving a fifth message sent by the first network function of the source distributed network element, where the fifth message is used to subscribe to a service operation notification corresponding to a target data change, and the service operation corresponding to the target data change includes at least one of the following: the method comprises the steps of creating service operation of data records in target data, updating service operation of data records in the target data, deleting service operation of data records in the target data, creating service operation of data sets, updating service operation of data sets and deleting service operation of data sets;
If a sixth message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the service operation of the sixth message, and sending the service operation in the sixth message and the identifier of the target distributed network unit to the first network function of the source distributed network unit through a seventh message; the sixth message is for indicating at least one of a service operation of creation of a data record in the target data, an update service operation of a data record in the target data, a delete service operation of a data record in the target data, a service operation of creation of a data set, an update service operation of a data set, and a delete service operation of a data set.
5. The method according to claim 1, wherein the method further comprises:
Receiving an eighth message sent by the first network function of the source distributed network element, where the eighth message is used to subscribe to a target operation notification corresponding to a target data change, and the target operation corresponding to the target data change includes at least one of the following: the method comprises the steps of creating a data record in target data, updating the data record in the target data, deleting the data record in the target data, creating a data set, updating the data set and deleting the data set;
and if a ninth message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the ninth message, and sending the target operation in the ninth message and the identification of the target distributed network unit to the first network function of the source distributed network unit through the tenth message.
6. The method according to claim 1, wherein the method further comprises:
If an eleventh message sent by the second network function of the target distributed network unit is received, executing corresponding operation according to the eleventh message, and determining an affected source distributed network unit and corresponding change data according to a local data synchronization record; the eleventh message is configured to indicate at least one of a service operation of creation of a data record in the target data, a service operation of update of a data record in the target data, a service operation of deletion of a data record in the target data, a service operation of creation of a data set, a service operation of update of a data set, and a service operation of deletion of a data set; the affected source distributed network unit is a source distributed network unit with an influence based on the change of the data of the target distributed network unit;
Sending a service operation of the eleventh message and an identification of the target distributed network element to the affected source distributed network element.
7. The method according to claim 2, wherein the centralized node is configured to perform rights management on data of each distributed network element according to a relationship between distributed network elements in the distributed network, and synchronize corresponding data to any one of the distributed network elements according to a twelfth message sent by the any one of the received distributed network elements and corresponding rights;
Wherein the twelfth message is used to request synchronization of data of other distributed network elements in the distributed network.
8. The method according to claim 1, wherein the method further comprises:
and carrying out data synchronization through the neighbor distributed network units of the target distributed network unit.
9. The method of claim 8, wherein synchronizing data by a neighbor distributed network element of the target distributed network element comprises:
If the neighbor distributed network element contains the data of the target distributed network element, directly synchronizing the data to the source distributed network element through the neighbor distributed network element; or alternatively
And if the neighbor distributed network unit does not contain the data of the target distributed network unit, receiving the first message through the neighbor distributed network unit, and carrying out data synchronization according to the first message.
10. The method of claim 1, wherein receiving a first message sent by a first network function of a source one of the distributed network elements comprises:
receiving, by the third network function of the target distributed network element, a thirteenth message sent by the third network function of the source distributed network element;
Wherein the thirteenth message is sent by a third network function of the target distributed network element after authentication of the thirteenth message; the thirteenth message is the first message; the thirteenth message is determined by a fourteenth message sent by the first network function of the source distributed network element to the third network function of the source distributed network element and the identifier of the source distributed network element, and the fourteenth message includes the identifier of the target distributed network element, the object requested in the first message and the thirteenth message of the requested target data; the third network function is created by each distributed network element;
correspondingly, the sending the second message to the first network function of the source distributed network element includes:
A fifteenth message is sent to the first network function of the source distributed network unit through the third network function of the target distributed network unit and the third network function of the source distributed network unit in sequence; the fifteenth message carries part or all of the target data requested in the first message.
11. The method of claim 1, wherein receiving a first message sent by a first network function of a source one of the distributed network elements comprises:
receiving, by a third network function of the target distributed network element, a sixteenth message sent by the first network function of the source distributed network element;
Wherein the sixteenth message is authenticated by a third network function of the target distributed network element and then sent, and the sixteenth message is used as the first message; the sixteenth message is sent by the first network function of the source distributed network element to the third network function of the target distributed network element, the sixteenth message for requesting target data synchronization from the target distributed network element; the third network function is created by each distributed network element;
the address information of the third network function of the target distributed network unit is determined by the third network function of the source distributed network unit according to a seventeenth message sent by the first network function of the source distributed network unit, wherein the seventeenth message is used for requesting the third network function of the source distributed network unit to query the address information of the third network function of the target distributed network unit; the seventeenth message carries the identifier of the target distributed network unit;
correspondingly, the sending the second message to the first network function of the source distributed network element includes:
Transmitting, by a third network function of the target distributed network element, an eighteenth message to the first network function of the source distributed network element; the eighteenth message carries part or all of the target data requested in the first message.
12. The method according to claim 1, wherein the first message is sent by the first network function of the source distributed network element according to information of a received nineteenth message, the nineteenth message is sent by a third network function of the target distributed network element according to received twentieth message, the twentieth message is sent by the first network function of the source distributed network element to the third network function of the target distributed network element, the twentieth message is used for requesting address information of the first network function of the target distributed network element, and the twentieth message carries an identifier of the source distributed network element;
The address information of the third network function of the target distributed network unit is determined by the third network function of the source distributed network unit according to a twenty-first message sent by the first network function of the source distributed network unit, wherein the twenty-first message is used for requesting the third network function of the source distributed network unit to inquire the address information of the third network function of the target distributed network unit; the twenty-first message carries an identification of the target distributed network element.
13. The method according to any one of claims 1-12, further comprising:
And if the authentication result is that the authentication fails, a twenty-second message is sent to the first network function of the source distributed network unit, wherein the twenty-second message is used for indicating the request for rejecting the first network function of the source distributed network unit, and the twenty-second message carries the reason for rejecting the request.
14. A method for synchronizing data across a distributed network element, the method being applied to a first network function of a source distributed network element in a distributed network, the method comprising:
Sending a first message to a first network function of a target distributed network element in the distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of a source distributed network element, a requested object and the requested target data;
and receiving a second message sent by the first network function of the target distributed network unit, wherein the second message is determined by the first network function of the target distributed network unit according to an authentication result of authentication according to the identification of the source distributed network unit, and the second message comprises part or all of data or reject reasons in the requested target data.
15. A data synchronization device across a distributed network element, for a first network function of a target distributed network element in a distributed network, the device comprising a memory, a transceiver, and a processor:
A memory for storing a computer program; a transceiver for transceiving data under control of the processor; a processor for reading the computer program in the memory and performing the following operations:
Receiving a first message sent by a first network function of a source distributed network unit in the distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of the source distributed network unit, a requested object and the requested target data;
Authenticating the source distributed network unit according to the identifier of the source distributed network unit to obtain an authentication result;
and if the authentication result is that the authentication is successful, sending a second message to the first network function of the source distributed network unit, wherein the second message comprises part or all of the requested target data.
16. A data synchronization device across a distributed network element, for a first network function of a source distributed network element in a distributed network, the device comprising a memory, a transceiver, and a processor:
A memory for storing a computer program; a transceiver for transceiving data under control of the processor; a processor for reading the computer program in the memory and performing the following operations:
Sending a first message to a first network function of a target distributed network unit in the distributed network, wherein the first message is used for requesting target data synchronization, and the first message comprises an identifier of a source distributed network unit, a requested object and the requested target data;
and receiving a second message sent by the first network function of the target distributed network unit, wherein the second message is determined by the first network function of the target distributed network unit according to an authentication result of authentication according to the identification of the source distributed network unit, and the second message comprises part or all of data or reject reasons in the requested target data.
17. A data synchronization apparatus across a distributed network element, for use with a first network function of a target distributed network element in a distributed network, the apparatus comprising:
a receiving unit, configured to receive a first message sent by a first network function of a source distributed network unit in the distributed network, where the first message is used to request target data synchronization, and the first message includes an identifier of the source distributed network unit, a requested object, and the requested target data;
the processing unit is used for authenticating the source distributed network unit according to the identification of the source distributed network unit to obtain an authentication result;
And the sending unit is used for sending a second message to the first network function of the source distributed network unit when the authentication result is that the authentication is successful, wherein the second message comprises part or all of the requested target data.
18. A data synchronization apparatus across a distributed network element, for use with a first network function of a source distributed network element in a distributed network, the apparatus comprising:
A sending unit, configured to send a first message to a first network function of a target distributed network unit in the distributed network, where the first message is used to request target data synchronization, and the first message includes an identifier of a source distributed network unit, a requested object, and the requested target data;
A receiving unit, configured to receive a second message sent by a first network function of the target distributed network unit, where the second message is determined by an authentication result of the first network function of the target distributed network unit according to the identifier of the source distributed network unit, and the second message includes part or all of data or reject reasons in the requested target data.
19. A processor-readable storage medium, characterized in that the processor-readable storage medium stores a computer program for causing the processor to perform the method of any one of claims 1 to 14.
CN202211438081.4A 2022-11-16 2022-11-16 Cross-distributed network element data synchronization method, device and readable storage medium Pending CN118055114A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211438081.4A CN118055114A (en) 2022-11-16 2022-11-16 Cross-distributed network element data synchronization method, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211438081.4A CN118055114A (en) 2022-11-16 2022-11-16 Cross-distributed network element data synchronization method, device and readable storage medium

Publications (1)

Publication Number Publication Date
CN118055114A true CN118055114A (en) 2024-05-17

Family

ID=91043683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211438081.4A Pending CN118055114A (en) 2022-11-16 2022-11-16 Cross-distributed network element data synchronization method, device and readable storage medium

Country Status (1)

Country Link
CN (1) CN118055114A (en)

Similar Documents

Publication Publication Date Title
US11425225B2 (en) Method, apparatus, and equipment for exposing edge network capability, and storage medium
WO2017133535A1 (en) Network slice selection method, policy generation method, and network node
US10638306B2 (en) Methods and apparatus for use in reducing signal latency in a mobile network with use of localized unified data management (UDM) entities
CN111565404B (en) Data distribution method and device
CN111615217B (en) Session establishment method and device
EP3493472B1 (en) Network function (nf) management method and nf management device
CN116057924A (en) Methods, systems, and computer readable media for providing network function discovery service enhancements
CN113453213A (en) Authentication data synchronization method and device
WO2018112745A1 (en) Method, entity and system for obtaining network slice instance information
CN110913437B (en) Communication method and network element
CN112492592A (en) Authorization method under multiple NRF scenes
CN108738027B (en) Network processing method, resource management system and network equipment
CN112752352B (en) Method and equipment for determining I-SMF (intermediate session management function)
CN109962834B (en) Information processing method, system, terminal and computer storage medium
EP3808132A1 (en) Cellular telecommunications network comprising a plurality of network slices
CN118055114A (en) Cross-distributed network element data synchronization method, device and readable storage medium
CN113873493B (en) Method and system for session binding
GB2574815A (en) Cellular telecommunications network
CN112994913B (en) Network slice selection method and related device
US11366827B2 (en) Data replication
CN114598741A (en) Switching processing method, device and communication equipment
CN113950121A (en) Context recovery method and device
CN115699918A (en) Clock synchronization mode indicating method and communication device
Sid-Otmane et al. Data Consistency in the 5G Specification
WO2024099244A1 (en) Communication method and apparatus, related device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination