WO2023169052A1 - 级联方法、装置、电子设备和存储介质 - Google Patents
级联方法、装置、电子设备和存储介质 Download PDFInfo
- Publication number
- WO2023169052A1 WO2023169052A1 PCT/CN2022/141863 CN2022141863W WO2023169052A1 WO 2023169052 A1 WO2023169052 A1 WO 2023169052A1 CN 2022141863 W CN2022141863 W CN 2022141863W WO 2023169052 A1 WO2023169052 A1 WO 2023169052A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- cascade
- configuration information
- target
- version
- node
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/085—Retrieval of network configuration; Tracking network configuration history
- H04L41/0853—Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/085—Retrieval of network configuration; Tracking network configuration history
- H04L41/0859—Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions
Definitions
- the present application relates to the field of computer technology, and in particular to a cascading method, device, electronic equipment and storage medium.
- cascades between different nodes have been widely used in fields such as business processing and real-time conferencing.
- cascading between different nodes can realize data transmission of business data between different nodes.
- cascading between different nodes can realize calls between multiple nodes, etc. .
- the cascade method in the related art has problems such as low cascade reliability and low stability.
- the first aspect of this application proposes a cascade method, which is suitable for the first cascade node.
- the method includes: obtaining the target cascade configuration information after negotiation between the first cascade node and the second cascade node; based on the above
- the target cascade configuration information establishes the cascade between the first cascade node and the second cascade node.
- the target cascade configuration information after negotiation between the first cascade node and the second cascade node can be obtained, and based on the target cascade configuration information, the first cascade node and the second-level cascade node can be established.
- cascade between connection nodes can be established based on the negotiated target cascade configuration information, ensuring the reliability and stability of the cascade.
- obtaining the target cascade configuration information after negotiation between the first cascade node and the second cascade node includes: obtaining the first cascade configuration information of the first cascade node and second cascade configuration information of the second cascade node; based on the first cascade configuration information and the second cascade configuration information, negotiate the cascade configuration information with the second cascade node, to generate the target cascade configuration information.
- the target cascade configuration information includes target cascade capabilities; based on the first cascade configuration information and the second cascade configuration information, and the second cascade configuration information, The node negotiates cascade configuration information to generate the target cascade configuration information, including: obtaining a first cascade capability in the first cascade configuration information, and a third cascade configuration information in the second cascade configuration information.
- Secondary cascading capability obtain the overlapping cascading capability between the first cascading capability and the second cascading capability, and use the overlapping cascading capability as the target cascading capability.
- the target cascade configuration information also includes a target cascade version of the target cascade capability; the target cascade configuration information based on the first cascade configuration information and the second cascade configuration information , negotiating cascade configuration information with the second cascade node to generate the target cascade configuration information, further including: obtaining the first level of the target cascade capability in the first cascade configuration information. cascade version, and the second cascade version of the target cascade capability in the second cascade configuration information; based on the first cascade version and the second cascade version, obtain the target cascade capability The target cascade version.
- obtaining the target cascade version of the target cascade capability based on the first cascade version and the second cascade version includes: obtaining the first cascade The coincident cascade version between the version and the second cascade version; the coincident cascade version with the highest version is used as the target cascade version of the target cascade capability.
- obtaining the target cascade version of the target cascade capability based on the first cascade version and the second cascade version includes: converting the highest version of the The first cascade version is used as the first candidate cascade version, and the second cascade version with the highest version is used as the second candidate cascade version; if the first candidate cascade version is lower than or equal to the second candidate cascade version Cascade version, use the first candidate cascade version as the target cascade version of the target cascade capability; or, if the first candidate cascade version is higher than the second candidate cascade version, use the first candidate cascade version as the target cascade version of the target cascade capability.
- the second candidate cascade version is used as the target cascade version of the target cascade capability.
- the method further includes: registering the first cascade configuration information in a local cascade module.
- the method further includes: sending the generated target cascade configuration information to the second cascade node.
- obtaining the target cascade configuration information after negotiation between the first cascade node and the second cascade node includes: receiving the target cascade configuration sent by the second cascade node. information.
- the second aspect of this application proposes a cascade device, which is suitable for the first cascade node.
- the device includes: an acquisition module, used to acquire the target cascade configuration after negotiation between the first cascade node and the second cascade node. Information; an establishment module, configured to establish a cascade between the first cascade node and the second cascade node based on the target cascade configuration information.
- the target cascade configuration information negotiated by the first cascade node and the second cascade node can be obtained, and based on the target cascade configuration information, the first cascade node and the second-level cascade node can be established.
- cascade between connection nodes can be established based on the negotiated target cascade configuration information, ensuring the reliability and stability of the cascade.
- the acquisition module is further configured to: acquire the first cascade configuration information of the first cascade node and the second cascade configuration information of the second cascade node; based on the The first cascade configuration information and the second cascade configuration information are negotiated with the second cascade node on the cascade configuration information to generate the target cascade configuration information.
- the target cascade configuration information includes target cascade capabilities; the acquisition module is further configured to: acquire the first cascade capability in the first cascade configuration information, and the The second cascade capability in the second cascade configuration information; obtain the coincident cascade capability between the first cascade capability and the second cascade capability, and use the coincident cascade capability as the target Cascading capabilities.
- the target cascade configuration information also includes the target cascade version of the target cascade capability; the acquisition module is further configured to: acquire the target cascade configuration information described in the first cascade configuration information.
- the acquisition module is further configured to: obtain the coincident cascade version between the first cascade version and the second cascade version; and combine the coincident cascade version with the highest version into version serves as the target cascade version of the target cascade capability.
- the acquisition module is further configured to: use the first cascade version with the highest version as the first candidate cascade version, and use the second cascade version with the highest version as the third cascade version.
- Two candidate cascade versions if the first candidate cascade version is lower than or equal to the second candidate cascade version, use the first candidate cascade version as the target cascade version of the target cascade capability; Alternatively, if the first candidate cascade version is higher than the second candidate cascade version, the second candidate cascade version is used as the target cascade version of the target cascade capability.
- the device further includes: a registration module, the registration module is configured to: register the first cascade configuration information in a local cascade module.
- the device further includes: a sending module, the sending module being configured to send the generated target cascade configuration information to the second cascade node.
- the acquisition module is further configured to: receive the target cascade configuration information sent by the second cascade node.
- the third aspect of this application proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor.
- the processor executes the program, the first aspect of the application is implemented.
- the cascading method described in this aspect is described.
- the electronic device of the embodiment of the present application can obtain the target cascade configuration information after negotiation between the first cascade node and the second cascade node by executing the instructions stored in the memory, and establish the target cascade configuration information based on the target cascade configuration information. Cascade between the first cascade node and the second cascade node. Thus, a cascade between cascade nodes can be established based on the negotiated target cascade configuration information, ensuring the reliability and stability of the cascade.
- the fourth aspect of this application proposes a computer-readable storage medium on which a computer program is stored.
- the program is executed by a processor, the cascading method described in the first aspect of this application is implemented.
- the computer-readable storage medium of the embodiment of the present application can obtain the target cascade configuration information negotiated by the first cascade node and the second cascade node by storing the computer program and being executed by the processor, and based on the target cascade configuration information , establish a cascade between the first cascade node and the second cascade node.
- a cascade between cascade nodes can be established based on the negotiated target cascade configuration information, ensuring the reliability and stability of the cascade.
- Figure 1 is a schematic flowchart of a cascading method according to an embodiment of the present application
- Figure 2 is a schematic diagram of establishing a cascade in a cascade method according to an embodiment of the present application
- Figure 3 is a schematic flowchart of obtaining target cascade configuration information in a cascade method according to an embodiment of the present application
- Figure 4 is a schematic flowchart of obtaining target cascading capabilities in a cascading method according to an embodiment of the present application
- Figure 5 is a schematic flowchart of obtaining the target cascade version of the target cascade capability in the cascade method according to an embodiment of the present application
- Figure 6 is a block diagram of a cascade device according to an embodiment of the present application.
- FIG. 7 is a block diagram of an electronic device according to an embodiment of the present application.
- Figure 1 is a schematic flowchart of a cascading method according to an embodiment of the present application.
- the cascade method in this embodiment of the present application includes:
- S101 Obtain the target cascade configuration information after negotiation between the first cascade node and the second cascade node.
- the execution subject of the cascade method in the embodiment of the present application is the first cascade node or the cascade device of the embodiment of the present application.
- the above cascade device can be configured in the first cascade node to execute the present application.
- the first cascade node can be any device with computing capabilities, such as a personal computer (PC), mobile terminal, server, etc.
- the mobile terminal can be, for example, a mobile phone, a tablet computer, a personal digital assistant, Hardware devices such as wearables with various operating systems, touchscreens, and/or displays.
- the first cascade node can obtain the target cascade configuration information negotiated between the first cascade node and the second cascade node.
- the second cascade node refers to the node to be cascaded of the first cascade node.
- the superior-subordinate relationship between the first cascade node and the second cascade node is not limited.
- the first cascade node can be the superior cascade node of the second cascade node, or the first cascade node can be It is the subordinate cascade node of the second cascade node.
- the category of the target cascade configuration information is not limited.
- the target cascade configuration information includes the target cascade capability and/or the target cascade version of the target cascade capability. It can be understood that the target cascade configuration information may include at least one target cascade capability, and the target cascade capability corresponds to the target cascade version one-to-one. It should be noted that the category of target cascading capabilities is not limited.
- target cascading capabilities include but are not limited to data directories, data standards, data rules, etc. supported by cascading nodes.
- the data catalog is used to describe data from a business perspective.
- the data catalog can include describing the name of the data, usage scenarios, data opening forms, departments to which it belongs, field information in the data, the location of the data, etc.; data Standards are used to standardize data. For example, for the gender of people in the population database, some systems use “male/female” to distinguish, some systems use “male/female” to distinguish, and some systems use "1/0" to distinguish To distinguish, terminology can be unified through data standards; data rules are also data quality rules. For example, the range of describing the age field is 0 ⁇ age ⁇ 150.
- obtaining the target cascade configuration information after negotiation between the first cascade node and the second cascade node may include negotiating the cascade configuration information between the first cascade node and the second cascade node, so as to Generate the target cascade configuration information.
- obtaining the target cascade configuration information negotiated by the first cascade node and the second cascade node may include the first cascade node obtaining the target cascade configuration information from a local cascade module.
- each cascade node has a cascade module, and the cascade module can be used to store target cascade configuration information.
- the cascade module can be used to store the mapping relationship or mapping table between the identifier of the cascade node and the target cascade configuration information.
- the first cascade node can obtain the mapping relationship or mapping table based on the identifier of the second cascade node. Query the target cascade configuration information used to establish a cascade between the first cascade node and the second cascade node.
- obtaining the target cascade configuration information after negotiation between the first cascade node and the second cascade node may include the first cascade node receiving the target cascade configuration information sent by the second cascade node.
- a network connection based on the TCP/IP protocol is established between the two. Based on this connection, cascade-related negotiation parameters can be sent, for example, the second-level
- the cascade node synchronizes the target cascade configuration information to the first cascade node, or negotiates the cascade configuration information with the first cascade node.
- the target cascade configuration information includes target cascade capabilities and/or a target cascade version of the target cascade capabilities.
- the target cascade version refers to the negotiated cascade version, which is generally the highest cascade version supported by both negotiating parties.
- the cascading version indicates the version of the cascading capability supported by the node.
- establishing a cascade between the first cascade node and the second cascade node may include establishing a first-level cascade based on the target cascade capability and/or a target cascade version of the target cascade capability.
- a cascade between a link node and a second cascade node Through cascading between nodes, each business can avoid having to establish connections and channels between upper and lower nodes to complete access, authentication, authorization and other tasks, thus solving the problem of large redundancy.
- the target cascade capability includes data catalog and data standard
- the target cascade version corresponding to the data catalog is version A1
- the target cascade version corresponding to the data standard is version B2
- it can be based on the data catalog, data standard, and A1 of the data catalog.
- Version, the B2 version of the data standard establishes the cascade between the first cascade node and the second cascade node.
- both the first cascade node and the second cascade node have cascade modules. Based on the target cascade configuration information, the relationship between the first cascade node and the second cascade node is established.
- the cascade between cascades may include establishing a cascade between the cascade module of the first cascade node and the cascade module of the second cascade node based on the target cascade configuration information. For example, as shown in Figure 2, establishing the cascade module of the first cascade node. The cascade channel between the cascade module of the first cascade node and the cascade module of the second cascade node.
- the cascade module can be used as an independently running subsystem, and its core is to provide capabilities such as capability registration, channel resume between upper and lower nodes, cascade capability negotiation, cascade data synchronization, etc.
- the cascading module can be implemented through software, hardware, firmware, or any combination thereof.
- the cascade module when implemented using hardware, can be implemented by a computer chip or entity.
- some or all functions of the cascade module can be implemented by a computer, a microprocessor or a digital signal processor (DSP).
- DSP digital signal processor
- the cascading module when implemented using a software program, may be implemented in the form of a computer program product.
- the computer program product includes one or more computer instructions.
- the processes or functions according to the embodiments of the present application are generated in whole or in part.
- the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted over a wired connection from a website, computer, server, or data center (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website, computer, server or data center.
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
- the available media may be magnetic media (such as floppy disks, magnetic disks, tapes), optical media (such as digital video discs (DVD)), or semiconductor media (such as solid state drives (SSD)), etc. .
- data transmission between the first cascade node and the second cascade node is also included through the established cascade connection.
- data transmission includes but is not limited to data reading, storage, synchronization, etc.
- data transmission between the first cascade node and the second cascade node through the established cascade may include data transmission between the first cascade node and the second cascade node according to the target cascade capability. , and/or a target cascade version of the target cascade capability for data transfer.
- the target cascading capability is a data directory, that is to say, the cascading node sending the target cascading capability supports the cascading of data directories, that is, supports reporting the data directory to the superior node and/or delivering the data directory. to subordinate nodes. For example, when the target cascade version corresponding to the data directory is version A1, data transmission between the first cascade node and the second cascade node can be based on the A1 version of the data directory.
- the target cascade configuration information after negotiation between the first cascade node and the second cascade node can be obtained, and based on the target cascade configuration information, the first cascade node and the second cascade node can be established.
- Cascade between second cascade nodes can be established based on the negotiated target cascade configuration information, ensuring the reliability and stability of the cascade.
- obtaining the target cascade configuration information after negotiation between the first cascade node and the second cascade node in step S101 may include steps S301 and S302.
- S301 Obtain the first cascade configuration information of the first cascade node and the second cascade configuration information of the second cascade node.
- the first cascade configuration information includes a first cascade capability, and/or a first cascade version of the first cascade capability
- the second cascade configuration information includes a second cascade capability, and/or or a second cascade version of the second cascade capability
- obtaining the first cascade configuration information of the first cascade node may include the first cascade node obtaining the first cascade configuration information from a local cascade module. It can be understood that the cascade node can store its own cascade configuration information in the local cascade module, so that it can subsequently obtain its own cascade configuration information. For example, the first cascade node can register the first cascade configuration information in the local cascade module.
- obtaining the second cascade configuration information of the second cascade node may include the first cascade node receiving the second cascade configuration information sent by the second cascade node.
- the cascade module of the first cascade node can receive the second cascade configuration information sent by the cascade module of the second cascade node.
- obtaining the second cascade configuration information of the second cascade node may include the first cascade node obtaining the second cascade configuration information from a local cascade module.
- the cascade module of the first cascade node can be used to store the mapping relationship or mapping table between the identifier of the cascade node and the cascade configuration information, and can be based on the identifier of the second cascade node. From the above mapping relationship or mapping table Query the second cascade configuration information.
- S302 Based on the first cascade configuration information and the second cascade configuration information, negotiate the cascade configuration information with the second cascade node to generate target cascade configuration information.
- the first cascade node may negotiate the cascade configuration information with the second cascade node based on the first cascade configuration information and the second cascade configuration information to generate target cascade configuration information.
- the target cascade configuration information includes target cascade capabilities; based on the first cascade configuration information and the second cascade configuration information, the cascade configuration information is negotiated with the second cascade node to generate the target
- the cascade configuration information may include: the first cascade node negotiates the cascade capability with the second cascade node based on the first cascade configuration information and the second cascade configuration information to generate the target cascade capability.
- the target cascade configuration information includes a target cascade version of the target cascade capability; based on the first cascade configuration information and the second cascade configuration information, the cascade configuration information is exchanged with the second cascade node.
- Negotiation to generate target cascade configuration information may include: the first cascade node negotiating the cascade version of the cascade capability with the second cascade node based on the first cascade configuration information and the second cascade configuration information, to generate a target cascaded version of the target cascade capability.
- the first cascade node may also send the generated target cascade configuration information to the second cascade node, so as to promptly notify the second cascade node of the negotiated target cascade configuration information.
- target cascade configuration information can be used to establish a cascade between a first cascade node and a second cascade node.
- the first cascade configuration information of the first cascade node and the second cascade configuration information of the second cascade node can be comprehensively considered to realize the connection between the first cascade node and the second cascade node.
- the cascade configuration information is negotiated between the two parties to generate the target cascade configuration information, which improves the accuracy of the target cascade configuration information. This ensures the reliability and stability of the cascade.
- the target cascade configuration information includes the target cascade capability. As shown in Figure 4, in step S302, based on the first cascade configuration information and the second cascade configuration information, the target cascade configuration information is configured with the second cascade configuration information.
- the node negotiates cascade configuration information to generate target cascade configuration information, which may include steps S401 and S402.
- S402 Obtain the overlapping cascading capability between the first cascading capability and the second cascading capability, and use the overlapping cascading capability as the target cascading capability.
- cascade capabilities in the cascade configuration information of different cascade nodes may be different or the same.
- the same part of the cascade capabilities may be called coincident cascade capabilities.
- the overlapping cascading capability between the first cascading capability and the second cascading capability can be obtained, that is, the overlapping cascading capability is the first cascading capability and is also the second cascading capability, and the overlapping cascading capability is Coincident cascading abilities serve as target cascading abilities. It should be noted that the number of overlapping cascade capabilities is at least one.
- the first cascading capability includes data catalogs, data standards, and data rules
- the second cascading capability only includes data catalogs
- the overlapping cascading capabilities only include data catalogs, and the data catalog can be used as the target cascading capability
- the first cascading capability includes data catalog, data standards, and data rules
- the second cascading capability includes data catalog and data standards
- the overlapping cascading capabilities include data catalog and data standards
- the data catalog and data standards can be used as targets. Cascading capabilities.
- the first cascade capability in the first cascade configuration information of the first cascade node and the second cascade capability in the second cascade configuration information of the second cascade node can be comprehensively considered, To realize the negotiation of cascade capabilities between the first cascade node and the second cascade node to generate the target cascade capability, which improves the accuracy of the target cascade capability and thereby ensures the reliability and stability of the cascade. .
- the target cascade configuration information also includes the target cascade version of the target cascade capability.
- step S302 is based on the first cascade configuration information and the second cascade configuration information. , negotiate cascade configuration information with the second cascade node to generate target cascade configuration information, which may include:
- S501 Obtain the first cascade version of the target cascade capability in the first cascade configuration information, and the second cascade version of the target cascade capability in the second cascade configuration information.
- S502 Obtain the target cascade version of the target cascade capability based on the first cascade version and the second cascade version.
- cascade versions of the cascade capabilities in the cascade configuration information of different cascade nodes may be different or the same.
- the same cascade version may be called a coincident cascade version.
- the target cascade version of the target cascade capability can be obtained based on the first cascade version and the second cascade version, which may include the following possible implementations:
- Method 1 Obtain the overlapping cascade version between the first cascade version and the second cascade version, and use the overlapping cascade version with the highest version as the target cascade version of the target cascade capability.
- the overlapping cascade version is the first cascade version and the second cascade version, and the number of overlapping cascade versions is at least one.
- the target cascade capability includes a data directory
- the first cascade version of the data directory in the first cascade configuration information includes A1 and A2
- the second cascade version of the data directory in the second cascade configuration information includes A1, then they overlap.
- the cascading capability only includes A1, then A1 can be used as the target cascade version of the data directory; for example, the target cascade capability includes the data directory, and the first cascade version of the data directory in the first cascade configuration information includes A1 and A2.
- the overlapping cascade capability only includes A2, then A2 can be used as the target cascade version of the data directory; for example, if the target cascade capability includes the data directory, The first cascade version of the data directory in the first cascade configuration information includes A1 and A2, and the second cascade version of the data directory in the second cascade configuration information includes A1 and A2, then the overlapping cascade capability includes A1 and A2. If A1 is lower than A2, A2 can be used as the target cascade version of the data directory.
- Method 2 Use the first cascade version with the highest version as the first candidate cascade version, and use the second cascade version with the highest version as the second candidate cascade version. If the first candidate cascade version is lower than or equal to the For the second candidate cascade version, use the first candidate cascade version as the target cascade version of the target cascade capability, or, if the first candidate cascade version is higher than the second candidate cascade version, use the second candidate cascade version as Target cascading version of the target cascade capability.
- the target cascading capability includes a data directory.
- the first cascade version of the data directory in the first cascade configuration information includes A1 and A2.
- the second cascade version of the data directory in the second cascade configuration information includes A1. A1 lower in A2, then the first candidate cascade version is A2, the second candidate cascade version is A1, the first candidate cascade version is higher than the second candidate cascade version, and the second candidate cascade version is used as the target level of the data directory cascade version, that is, A1 is used as the target cascade version of the data directory;
- the target cascade capability includes the data directory, the first cascade version of the data directory in the first cascade configuration information includes A1 and A2, and the second cascade configuration information
- the second cascade version of the data directory includes A2, and A1 is lower than A2, then the first candidate cascade version is A2, the second candidate cascade version is A2, and the first candidate cascade version is equal to the second candidate cascade version.
- the target cascade capability includes the data directory, and the first level of the data directory in the first cascade configuration information
- the cascade versions include A1 and A2.
- the second cascade version of the data directory in the second cascade configuration information includes A1 and A2.
- the first candidate cascade version is A2
- the second candidate cascade version is A2
- the first candidate cascade version is A2.
- the cascade version is equal to the second candidate cascade version, and the first candidate cascade version is used as the target cascade version of the data directory, that is, A2 is used as the target cascade version of the data directory.
- Method 3 Select the target cascade version of the target cascade capability from the first cascade version and/or the second cascade version.
- a cascade version can be randomly selected from the first cascade version and/or the second cascade version as the target cascade version of the target cascade capability.
- the first cascade version of the target cascade capability in the first cascade configuration information of the first cascade node and the target in the second cascade configuration information of the second cascade node can be comprehensively considered.
- the second cascade version of the cascade capability is used to implement the negotiation between the first cascade node and the second cascade node on the cascade version of the cascade capability to generate the target cascade version of the target cascade capability, which improves The accuracy of the target cascade version of the target cascade capability ensures the reliability and stability of the cascade.
- this application also proposes a cascade device.
- Figure 6 is a block diagram of a cascade device according to an embodiment of the present application.
- the cascading device 100 in the embodiment of the present application includes: an acquisition module 110 and an establishment module 120 .
- the acquisition module 110 is configured to acquire the target cascade configuration information negotiated between the first cascade node and the second cascade node.
- the establishment module 120 is configured to establish a cascade between the first cascade node and the second cascade node based on the target cascade configuration information.
- the acquisition module 110 is further configured to: acquire the first cascade configuration information of the first cascade node and the second cascade configuration information of the second cascade node; based on The first cascade configuration information and the second cascade configuration information negotiate the cascade configuration information with the second cascade node to generate the target cascade configuration information.
- the target cascade configuration information includes target cascade capabilities; the acquisition module 110 is further configured to: acquire the first cascade capability in the first cascade configuration information, and the second cascade capability in the second cascade configuration information; obtain the coincident cascade capability between the first cascade capability and the second cascade capability, and use the coincident cascade capability as the Target cascading capabilities.
- the target cascade configuration information also includes a target cascade version of the target cascade capability; the acquisition module 110 is further configured to: acquire the first cascade configuration information.
- the acquisition module 110 is further configured to: obtain the coincident cascade version between the first cascade version and the second cascade version;
- the cascade version is used as the target cascade version of the target cascade capability.
- the acquisition module 110 is further configured to: use the first cascade version with the highest version as the first candidate cascade version, and use the second cascade version with the highest version as the first candidate cascade version. a second candidate cascade version; if the first candidate cascade version is lower than or equal to the second candidate cascade version, use the first candidate cascade version as the target cascade version of the target cascade capability ; Or, if the first candidate cascade version is higher than the second candidate cascade version, use the second candidate cascade version as the target cascade version of the target cascade capability.
- the cascade device 100 further includes: a registration module, the registration module is configured to register the first cascade configuration information in a local cascade module.
- the cascade device 100 further includes: a sending module, the sending module is configured to send the generated target cascade configuration information to the second cascade node.
- the acquisition module 110 is further configured to: receive the target cascade configuration information sent by the second cascade node.
- the target cascade configuration information negotiated by the first cascade node and the second cascade node can be obtained, and based on the target cascade configuration information, the first cascade node and the second cascade node can be established.
- Cascade between second cascade nodes can be established based on the negotiated target cascade configuration information, ensuring the reliability and stability of the cascade.
- an electronic device 200 including: a memory 210, a processor 220, and a computer program stored on the memory 210 and executable on the processor 220.
- the processor 220 executes the program, the above cascade method is implemented.
- the electronic device of the embodiment of the present application can obtain the target cascade configuration information after negotiation between the first cascade node and the second cascade node by executing the instructions stored in the memory, and establish the target cascade configuration information based on the target cascade configuration information. Cascade between the first cascade node and the second cascade node. Thus, a cascade between cascade nodes can be established based on the negotiated target cascade configuration information, ensuring the reliability and stability of the cascade.
- this application also proposes a computer-readable storage medium that stores a computer program, and when the program is executed by a processor, the above cascade method is implemented.
- the computer-readable storage medium of the embodiment of the present application can obtain the target cascade configuration information negotiated by the first cascade node and the second cascade node by storing the computer program and being executed by the processor, and based on the target cascade configuration information , establish a cascade between the first cascade node and the second cascade node.
- a cascade between cascade nodes can be established based on the negotiated target cascade configuration information, ensuring the reliability and stability of the cascade.
- B corresponding to A means that B is associated with A, and B can be determined based on A.
- determining B based on A does not mean determining B only based on A.
- B can also be determined based on A and/or other information.
- each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
- the above integrated units can be implemented in the form of hardware or software functional units.
- the integrated unit is implemented in the form of a software functional unit and is sold or used as an independent product, it can be stored in a computer-accessible memory.
- the technical solution of the present application is essentially, or the part that contributes to the existing technology, or all or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a memory , including several requests to cause a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to execute some or all of the steps of the above methods in various embodiments of the present application.
- a computer device which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device
- the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only storage medium.
- Read-Only Memory ROM
- RAM Random Access Memory
- PROM Programmable Read-only Memory
- PROM Programmable Read-only Memory
- EPROM Erasable Programmable Read Only Memory
- OTPROM One-time Programmable Read-Only Memory
- EEPROM Electronically Erasable Programmable Read-Only Memory
- CD-ROM Compact Disc Read-Only Memory
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请公开了一种级联方法、装置、电子设备和存储介质。其中,该级联方法包括:获取第一级联节点与第二级联节点协商后的目标级联配置信息;基于所述目标级联配置信息,建立所述第一级联节点与所述第二级联节点之间的级联。由此,可基于协商后的目标级联配置信息建立级联节点之间的级联,保障了级联的可靠性和稳定性。
Description
本申请涉及计算机技术领域,特别涉及一种级联方法、装置、电子设备和存储介质。
目前,随着互联网技术的不断发展,不同节点之间的级联在业务处理、实时会议等领域得到了广泛应用。比如,业务处理领域中,不同节点之间的级联可实现业务数据在不同节点之间的数据传输等,实时会议领域中,不同节点之间的级联可实现多个节点之间的呼叫等。然而,相关技术中的级联方法存在级联可靠性低、稳定性低等问题。
发明内容
本申请第一方面提出了一种级联方法,适用于第一级联节点,所述方法包括:获取第一级联节点与第二级联节点协商后的目标级联配置信息;基于所述目标级联配置信息,建立所述第一级联节点与所述第二级联节点之间的级联。
根据本申请实施例的级联方法,可获取第一级联节点与第二级联节点协商后的目标级联配置信息,并基于目标级联配置信息,建立第一级联节点与第二级联节点之间的级联。由此,可基于协商后的目标级联配置信息建立级联节点之间的级联,保障了级联的可靠性和稳定性。
在本申请的一个实施例中,所述获取第一级联节点与第二级联节点协商后的目标级联配置信息,包括:获取所述第一级联节点的第一级联配置信息和所述第二级联节点的第二级联配置信息;基于所述第一级联配置信息和所述第二级联配置信息,与所述第二级联节点进行级联配置信息的协商,以生成所述目标级联配置信息。
在本申请的一个实施例中,所述目标级联配置信息包括目标级联能力;所述基于所述第一级联配置信息和所述第二级联配置信息,与所述第二级联节点进行级联配置信息的协商,以生成所述目标级联配置信息,包括:获取所述第一级联配置信息中的第一级联能力,以及所述第二级联配置信息中的第二级联能力;获取所述第一级联能力和所述第二级联能力之间的重合级联能力,并将所述重合级联能力作为所述目标级联能力。
在本申请的一个实施例中,所述目标级联配置信息还包括所述目标级联能力的目标级联版本;所述基于所述第一级联配置信息和所述第二级联配置信息,与所述第二级联节点进行级联配置信息的协商,以生成所述目标级联配置信息,还包括:获取所述第一级联配置信息中所述目标级联能力的第一级联版本,以及所述第二级联配置信息中所述 目标级联能力的第二级联版本;基于所述第一级联版本和所述第二级联版本,获取所述目标级联能力的目标级联版本。
在本申请的一个实施例中,所述基于所述第一级联版本和所述第二级联版本,获取所述目标级联能力的目标级联版本,包括:获取所述第一级联版本和所述第二级联版本之间的重合级联版本;将版本最高的所述重合级联版本作为所述目标级联能力的目标级联版本。
在本申请的一个实施例中,所述基于所述第一级联版本和所述第二级联版本,获取所述目标级联能力的目标级联版本,包括:将版本最高的所述第一级联版本作为第一候选级联版本,以及将版本最高的所述第二级联版本作为第二候选级联版本;若所述第一候选级联版本低于或者等于所述第二候选级联版本,将所述第一候选级联版本作为所述目标级联能力的目标级联版本;或者,若所述第一候选级联版本高于所述第二候选级联版本,将所述第二候选级联版本作为所述目标级联能力的目标级联版本。
在本申请的一个实施例中,所述方法还包括:将所述第一级联配置信息注册在本地的级联模块。
在本申请的一个实施例中,所述方法还包括:将生成的所述目标级联配置信息发送至所述第二级联节点。
在本申请的一个实施例中,所述获取第一级联节点与第二级联节点协商后的目标级联配置信息,包括:接收所述第二级联节点发送的所述目标级联配置信息。
本申请第二方面提出了一种级联装置,适用于第一级联节点,所述装置包括:获取模块,用于获取第一级联节点与第二级联节点协商后的目标级联配置信息;建立模块,用于基于所述目标级联配置信息,建立所述第一级联节点与所述第二级联节点之间的级联。
根据本申请实施例的级联装置,可获取第一级联节点与第二级联节点协商后的目标级联配置信息,并基于目标级联配置信息,建立第一级联节点与第二级联节点之间的级联。由此,可基于协商后的目标级联配置信息建立级联节点之间的级联,保障了级联的可靠性和稳定性。
在本申请的一个实施例中,所述获取模块还用于:获取所述第一级联节点的第一级联配置信息和所述第二级联节点的第二级联配置信息;基于所述第一级联配置信息和所述第二级联配置信息,与所述第二级联节点进行级联配置信息的协商,以生成所述目标级联配置信息。
在本申请的一个实施例中,所述目标级联配置信息包括目标级联能力;所述获取模 块还用于:获取所述第一级联配置信息中的第一级联能力,以及所述第二级联配置信息中的第二级联能力;获取所述第一级联能力和所述第二级联能力之间的重合级联能力,并将所述重合级联能力作为所述目标级联能力。
在本申请的一个实施例中,所述目标级联配置信息还包括所述目标级联能力的目标级联版本;所述获取模块还用于:获取所述第一级联配置信息中所述目标级联能力的第一级联版本,以及所述第二级联配置信息中所述目标级联能力的第二级联版本;基于所述第一级联版本和所述第二级联版本,获取所述目标级联能力的目标级联版本。
在本申请的一个实施例中,所述获取模块还用于:获取所述第一级联版本和所述第二级联版本之间的重合级联版本;将版本最高的所述重合级联版本作为所述目标级联能力的目标级联版本。
在本申请的一个实施例中,所述获取模块还用于:将版本最高的所述第一级联版本作为第一候选级联版本,以及将版本最高的所述第二级联版本作为第二候选级联版本;若所述第一候选级联版本低于或者等于所述第二候选级联版本,将所述第一候选级联版本作为所述目标级联能力的目标级联版本;或者,若所述第一候选级联版本高于所述第二候选级联版本,将所述第二候选级联版本作为所述目标级联能力的目标级联版本。
在本申请的一个实施例中,所述装置还包括:注册模块,所述注册模块用于:将所述第一级联配置信息注册在本地的级联模块。
在本申请的一个实施例中,所述装置还包括:发送模块,所述发送模块用于:将生成的所述目标级联配置信息发送至所述第二级联节点。
在本申请的一个实施例中,所述获取模块还用于:接收所述第二级联节点发送的所述目标级联配置信息。
本申请第三方面提出了一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如本申请第一方面所述的级联方法。
本申请实施例的电子设备,通过处理器执行存储在存储器上的指令,可获取第一级联节点与第二级联节点协商后的目标级联配置信息,并基于目标级联配置信息,建立第一级联节点与第二级联节点之间的级联。由此,可基于协商后的目标级联配置信息建立级联节点之间的级联,保障了级联的可靠性和稳定性。
本申请第四方面提出了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请第一方面所述的级联方法。
本申请实施例的计算机可读存储介质,通过存储计算机程序并被处理器执行,可获 取第一级联节点与第二级联节点协商后的目标级联配置信息,并基于目标级联配置信息,建立第一级联节点与第二级联节点之间的级联。由此,可基于协商后的目标级联配置信息建立级联节点之间的级联,保障了级联的可靠性和稳定性。
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1为根据本申请一个实施例的级联方法的流程示意图;
图2为根据本申请一个实施例的级联方法中建立级联的示意图;
图3为根据本申请一个实施例的级联方法中获取目标级联配置信息的流程示意图;
图4为根据本申请一个实施例的级联方法中获取目标级联能力的流程示意图;
图5为根据本申请一个实施例的级联方法中获取目标级联能力的目标级联版本的流程示意图;
图6为根据本申请一个实施例的级联装置的框图;
图7为根据本申请一个实施例的电子设备的框图。
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。
下面结合附图来描述本申请实施例的级联方法、装置、电子设备和存储介质。
图1为根据本申请一个实施例的级联方法的流程示意图。
如图1所示,本申请实施例的级联方法,包括:
S101,获取第一级联节点与第二级联节点协商后的目标级联配置信息。
需要说明的是,本申请实施例的级联方法的执行主体为第一级联节点或者本申请实施例的级联装置,上述级联装置可以配置在第一级联节点中,以执行本申请实施例的级联方法。其中,第一级联节点可以为任一具有计算能力的设备,例如可以为个人电脑(Personal Computer,简称PC)、移动终端、服务器等,移动终端例如可以为手机、平板电脑、个人数字助理、穿戴式设备等具有各种操作系统、触摸屏和/或显示屏的硬件设备。
本申请的实施例中,第一级联节点可获取第一级联节点与第二级联节点协商后的目标级联配置信息。
需要说明的是,第二级联节点指的是第一级联节点的待级联节点。对第一级联节点、第二级联节点之间的上下级关系不做限定,比如,第一级联节点可为第二级联节点的上级级联节点,或者,第一级联节点可为第二级联节点的下级级联节点。
需要说明的是,对目标级联配置信息的类别不做限定,比如,目标级联配置信息包括目标级联能力,和/或目标级联能力的目标级联版本。可以理解的是,目标级联配置信息可包括至少一个目标级联能力,目标级联能力和目标级联版本一一对应。应说明的是,对目标级联能力的类别不做限定,比如,目标级联能力包括但不限于级联节点所支持的数据目录、数据标准、数据规则等。
其中,数据目录用来从业务的角度描述数据,比如针对人口数据,数据目录可包括描述该数据的名称、使用场景、数据开放形式、所属部门、数据中的字段信息、数据的位置等;数据标准用来规范数据,比如针对人口库中人的性别,有的系统利用“男/女”进行区分,有的系统利用“男性/女性”进行区分,还有的系统利用“1/0”进行区分,可以通过数据标准统一术语;数据规则也即数据质量规则,比如描述年龄字段的范围为0<年龄<150。
在一种实施方式中,获取第一级联节点与第二级联节点协商后的目标级联配置信息,可包括第一级联节点与第二级联节点进行级联配置信息的协商,以生成所述目标级联配置信息。
在一种实施方式中,获取第一级联节点与第二级联节点协商后的目标级联配置信息,可包括第一级联节点从本地的级联模块中获取所述目标级联配置信息。应说明的是,每个级联节点均具有级联模块,级联模块可用于存储目标级联配置信息。比如,级联模块可用于存储级联节点的标识和目标级联配置信息之间的映射关系或者映射表,第一级联节点可基于第二级联节点的标识,从上述映射关系或者映射表中查询用于在第一级联节点和第二级联节点之间建立级联的目标级联配置信息。
在一种实施方式中,获取第一级联节点与第二级联节点协商后的目标级联配置信息,可包括第一级联节点接收第二级联节点发送的所述目标级联配置信息。
在第一级联节点与第二级联节点建立级联之前,这二者之间建立有基于TCP/IP协议的网络连接,基于该连接可以发送级联相关的协商参数,例如,第二级联节点将所述目标级联配置信息同步给第一级联节点,或者与第一级联节点进行级联配置信息的协商。
S102,基于目标级联配置信息,建立第一级联节点与第二级联节点之间的级联。
在一种实施方式中,目标级联配置信息包括目标级联能力,和/或目标级联能力的目标级联版本。其中,目标级联版本指的是协商后的级联版本,一般为协商双方都支持的最高级联版本。级联版本指示节点支持的级联能力的版本。
基于目标级联配置信息,建立第一级联节点与第二级联节点之间的级联,可包括基于目标级联能力,和/或目标级联能力的目标级联版本,建立第一级联节点与第二级联节点之间的级联。通过节点之间的级联,可避免每个业务都要在上下级节点之间建立连接和通道以完成接入、认证、授权等工作,从而解决了较大冗余的问题。
比如,目标级联能力包括数据目录、数据标准,数据目录对应的目标级联版本为A1版本,数据标准对应的目标级联版本为B2版本,则可基于数据目录、数据标准、数据目录的A1版本、数据标准的B2版本,建立第一级联节点与第二级联节点之间的级联。
在一种实施方式中,如图2所示,第一级联节点、第二级联节点均具有级联模块,基于目标级联配置信息,建立第一级联节点与第二级联节点之间的级联,可包括基于目标级联配置信息,建立第一级联节点的级联模块与第二级联节点的级联模块之间的级联,比如,如图2所示,建立第一级联节点的级联模块与第二级联节点的级联模块之间的级联通道。
在一个实施例中,级联模块可作为一个独立运行的子系统,其核心是提供能力注册、上下级节点之间的通道简历、级联能力协商、级联数据同步等能力。
在一个实施例中,级联模块可以通过软件、硬件、固件或者其任意组合来实现。
例如,当使用硬件实现时,级联模块可以由计算机芯片或实体实现,例如,可通过计算机、微处理器或者数字信号处理器(DSP)来实现级联模块的一些或者全部功能。
例如,当使用软件程序实现时,级联模块可以以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机指令时,全部或部分地产生按照本申请实施例中的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))方式或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如,软盘、磁盘、磁带)、光介质(例如,数字视频光盘(digital video disc,DVD))、或者半导体介质(例如固 态硬盘(solid state drives,SSD))等。
在一种实施方式中,建立第一级联节点与第二级联节点之间的级联之后,还包括第一级联节点与第二级联节点之间通过建立的级联进行数据传输。应说明的是,对数据传输的类别不做过多限定,比如,数据传输包括但不限于数据读取、存储、同步等。
在一种实施方式中,第一级联节点与第二级联节点之间通过建立的级联进行数据传输,可包括第一级联节点与第二级联节点之间,按照目标级联能力,和/或目标级联能力的目标级联版本进行数据传输。在一个实施例中,目标级联能力为数据目录,也就是说,发送该目标级联能力的级联节点支持数据目录的级联,即支持上报数据目录给上级节点和/或下发数据目录给下级节点。比如,数据目录对应的目标级联版本为A1版本时,第一级联节点与第二级联节点之间,可按照数据目录的A1版本进行数据传输。
综上,根据本申请实施例的级联方法,可获取第一级联节点与第二级联节点协商后的目标级联配置信息,并基于目标级联配置信息,建立第一级联节点与第二级联节点之间的级联。由此,可基于协商后的目标级联配置信息建立级联节点之间的级联,保障了级联的可靠性和稳定性。
在上述任一实施例的基础上,如图3所示,步骤S101中获取第一级联节点与第二级联节点协商后的目标级联配置信息,可包括步骤S301和S302。
S301,获取第一级联节点的第一级联配置信息和第二级联节点的第二级联配置信息。
在一种实施方式中,第一级联配置信息包括第一级联能力,和/或第一级联能力的第一级联版本,第二级联配置信息包括第二级联能力,和/或第二级联能力的第二级联版本。
在一种实施方式中,获取第一级联节点的第一级联配置信息,可包括第一级联节点从本地的级联模块中获取第一级联配置信息。可以理解的是,级联节点可将自身的级联配置信息存储在本地的级联模块中,以便后续获取自身的级联配置信息。比如,第一级联节点可将第一级联配置信息注册在本地的级联模块。
在一种实施方式中,获取第二级联节点的第二级联配置信息,可包括第一级联节点接收第二级联节点发送的第二级联配置信息。比如,第一级联节点的级联模块可接收第二级联节点的级联模块发送的第二级联配置信息。
在一种实施方式中,获取第二级联节点的第二级联配置信息,可包括第一级联节点从本地的级联模块中获取第二级联配置信息。比如,第一级联节点的级联模块可用于存储级联节点的标识和级联配置信息之间的映射关系或者映射表,可基于第二级联节点的标识,从上述映射关系或者映射表中查询第二级联配置信息。
S302,基于第一级联配置信息和第二级联配置信息,与第二级联节点进行级联配置 信息的协商,以生成目标级联配置信息。
本申请的实施例中,第一级联节点可基于第一级联配置信息和第二级联配置信息,与第二级联节点进行级联配置信息的协商,以生成目标级联配置信息。
在一种实施方式中,目标级联配置信息包括目标级联能力;基于第一级联配置信息和第二级联配置信息,与第二级联节点进行级联配置信息的协商,以生成目标级联配置信息,可包括:第一级联节点基于第一级联配置信息和第二级联配置信息,与第二级联节点进行级联能力的协商,以生成目标级联能力。
在一种实施方式中,目标级联配置信息包括目标级联能力的目标级联版本;基于第一级联配置信息和第二级联配置信息,与第二级联节点进行级联配置信息的协商,以生成目标级联配置信息,可包括:第一级联节点基于第一级联配置信息和第二级联配置信息,与第二级联节点进行级联能力的级联版本的协商,以生成目标级联能力的目标级联版本。
在一种实施方式中,第一级联节点还可将生成的目标级联配置信息发送至第二级联节点,以便及时告知第二级联节点协商后的目标级联配置信息。比如,目标级联配置信息可用于建立第一级联节点与第二级联节点之间的级联。
由此,该方法中可综合考虑到第一级联节点的第一级联配置信息、第二级联节点的第二级联配置信息,来实现第一级联节点与第二级联节点之间对级联配置信息的协商,以生成目标级联配置信息,提高了目标级联配置信息的准确性。进而保障了级联的可靠性和稳定性。
在上述任一实施例的基础上,目标级联配置信息包括目标级联能力,如图4所示,步骤S302中基于第一级联配置信息和第二级联配置信息,与第二级联节点进行级联配置信息的协商,以生成目标级联配置信息,可包括步骤S401和S402。
S401,获取第一级联配置信息中的第一级联能力,以及第二级联配置信息中的第二级联能力。
S402,获取第一级联能力和第二级联能力之间的重合级联能力,并将重合级联能力作为目标级联能力。
可以理解的是,不同级联节点的级联配置信息中的级联能力可能不同,也可能相同,可将相同的那部分级联能力称为重合级联能力。
本申请的实施例中,可获取第一级联能力和第二级联能力之间的重合级联能力,即重合级联能力为第一级联能力,也为第二级联能力,并将重合级联能力作为目标级联能力。应说明的是,重合级联能力的数量为至少一个。
比如,第一级联能力包括数据目录、数据标准、数据规则,第二级联能力仅包括数据目录,则重合级联能力仅包括数据目录,可将数据目录作为目标级联能力;
比如,第一级联能力包括数据目录、数据标准、数据规则,第二级联能力包括数据目录、数据标准,则重合级联能力包括数据目录、数据标准,可将数据目录、数据标准作为目标级联能力。
由此,该方法中可综合考虑到第一级联节点的第一级联配置信息中的第一级联能力、第二级联节点的第二级联配置信息中的第二级联能力,来实现第一级联节点与第二级联节点之间对级联能力的协商,以生成目标级联能力,提高了目标级联能力的准确性,进而保障了级联的可靠性和稳定性。
在上述任一实施例的基础上,目标级联配置信息还包括目标级联能力的目标级联版本,如图5所示,步骤S302中基于第一级联配置信息和第二级联配置信息,与第二级联节点进行级联配置信息的协商,以生成目标级联配置信息,可包括:
S501,获取第一级联配置信息中目标级联能力的第一级联版本,以及第二级联配置信息中目标级联能力的第二级联版本。
S502,基于第一级联版本和第二级联版本,获取目标级联能力的目标级联版本。
可以理解的是,不同级联节点的级联配置信息中的级联能力的级联版本可能不同,也可能相同,可将相同的级联版本称为重合级联版本。
本申请的实施例中,可基于第一级联版本和第二级联版本,获取目标级联能力的目标级联版本,可包括如下几种可能的实施方式:
方式1、获取第一级联版本和第二级联版本之间的重合级联版本,将版本最高的重合级联版本作为目标级联能力的目标级联版本。
可以理解的是,重合级联版本为第一级联版本,也为第二级联版本,重合级联版本的数量为至少一个。
比如,目标级联能力包括数据目录,第一级联配置信息中数据目录的第一级联版本包括A1、A2,第二级联配置信息中数据目录的第二级联版本包括A1,则重合级联能力仅包括A1,则可将A1作为数据目录的目标级联版本;比如,目标级联能力包括数据目录,第一级联配置信息中数据目录的第一级联版本包括A1、A2,第二级联配置信息中数据目录的第二级联版本包括A2,则重合级联能力仅包括A2,则可将A2作为数据目录的目标级联版本;比如,目标级联能力包括数据目录,第一级联配置信息中数据目录的第一级联版本包括A1、A2,第二级联配置信息中数据目录的第二级联版本包括A1、A2,则重合级联能力包括A1、A2,A1低于A2,则可将A2作为数据目录的目标级联 版本。
方式2、将版本最高的第一级联版本作为第一候选级联版本,以及将版本最高的第二级联版本作为第二候选级联版本,若第一候选级联版本低于或者等于第二候选级联版本,将第一候选级联版本作目标级联能力的目标级联版本,或者,若第一候选级联版本高于第二候选级联版本,将第二候选级联版本作为目标级联能力的目标级联版本。
比如,目标级联能力包括数据目录,第一级联配置信息中数据目录的第一级联版本包括A1、A2,第二级联配置信息中数据目录的第二级联版本包括A1,A1低于A2,则第一候选级联版本为A2,第二候选级联版本为A1,第一候选级联版本高于第二候选级联版本,将第二候选级联版本作为数据目录的目标级联版本,即将A1作为数据目录的目标级联版本;比如,目标级联能力包括数据目录,第一级联配置信息中数据目录的第一级联版本包括A1、A2,第二级联配置信息中数据目录的第二级联版本包括A2,A1低于A2,则第一候选级联版本为A2,第二候选级联版本为A2,第一候选级联版本等于第二候选级联版本,将第一候选级联版本作为数据目录的目标级联版本,即将A2作为数据目录的目标级联版本;比如,目标级联能力包括数据目录,第一级联配置信息中数据目录的第一级联版本包括A1、A2,第二级联配置信息中数据目录的第二级联版本包括A1、A2,则第一候选级联版本为A2,第二候选级联版本为A2,第一候选级联版本等于第二候选级联版本,将第一候选级联版本作为数据目录的目标级联版本,即将A2作为数据目录的目标级联版本。
方式3、从第一级联版本和/或第二级联版本中选取目标级联能力的目标级联版本。
比如,可从第一级联版本和/或第二级联版本中随机选取一个级联版本,作为目标级联能力的目标级联版本。
由此,该方法中可综合考虑到第一级联节点的第一级联配置信息中的目标级联能力的第一级联版本、第二级联节点的第二级联配置信息中的目标级联能力的第二级联版本,来实现第一级联节点与第二级联节点之间对级联能力的级联版本的协商,以生成目标级联能力的目标级联版本,提高了目标级联能力的目标级联版本的准确性,进而保障了级联的可靠性和稳定性。
为了实现上述实施例,本申请还提出一种级联装置。
图6为根据本申请一个实施例的级联装置的框图。
如图6所示,本申请实施例的级联装置100包括:获取模块110和建立模块120。
获取模块110用于获取第一级联节点与第二级联节点协商后的目标级联配置信息。
建立模块120用于基于所述目标级联配置信息,建立所述第一级联节点与所述第二 级联节点之间的级联。
在本申请的一个实施例中,所述获取模块110还用于:获取所述第一级联节点的第一级联配置信息和所述第二级联节点的第二级联配置信息;基于所述第一级联配置信息和所述第二级联配置信息,与所述第二级联节点进行级联配置信息的协商,以生成所述目标级联配置信息。
在本申请的一个实施例中,所述目标级联配置信息包括目标级联能力;所述获取模块110还用于:获取所述第一级联配置信息中的第一级联能力,以及所述第二级联配置信息中的第二级联能力;获取所述第一级联能力和所述第二级联能力之间的重合级联能力,并将所述重合级联能力作为所述目标级联能力。
在本申请的一个实施例中,所述目标级联配置信息还包括所述目标级联能力的目标级联版本;所述获取模块110还用于:获取所述第一级联配置信息中所述目标级联能力的第一级联版本,以及所述第二级联配置信息中所述目标级联能力的第二级联版本;基于所述第一级联版本和所述第二级联版本,获取所述目标级联能力的目标级联版本。
在本申请的一个实施例中,所述获取模块110还用于:获取所述第一级联版本和所述第二级联版本之间的重合级联版本;将版本最高的所述重合级联版本作为所述目标级联能力的目标级联版本。
在本申请的一个实施例中,所述获取模块110还用于:将版本最高的所述第一级联版本作为第一候选级联版本,以及将版本最高的所述第二级联版本作为第二候选级联版本;若所述第一候选级联版本低于或者等于所述第二候选级联版本,将所述第一候选级联版本作为所述目标级联能力的目标级联版本;或者,若所述第一候选级联版本高于所述第二候选级联版本,将所述第二候选级联版本作为所述目标级联能力的目标级联版本。
在本申请的一个实施例中,所述级联装置100还包括:注册模块,所述注册模块用于:将所述第一级联配置信息注册在本地的级联模块。
在本申请的一个实施例中,所述级联装置100还包括:发送模块,所述发送模块用于:将生成的所述目标级联配置信息发送至所述第二级联节点。
在本申请的一个实施例中,所述获取模块110还用于:接收所述第二级联节点发送的所述目标级联配置信息。
需要说明的是,本申请实施例的级联装置中未披露的细节,请参照本申请上述实施例中的级联方法所披露的细节,这里不再赘述。
综上,利用本申请实施例的级联装置,可获取第一级联节点与第二级联节点协商后的目标级联配置信息,并基于目标级联配置信息,建立第一级联节点与第二级联节点之 间的级联。由此,可基于协商后的目标级联配置信息建立级联节点之间的级联,保障了级联的可靠性和稳定性。
为了实现上述实施例,如图7所示,本申请实施例提出了一种电子设备200,包括:存储器210、处理器220及存储在存储器210上并可在处理器220上运行的计算机程序,所述处理器220执行所述程序时,实现上述的级联方法。
本申请实施例的电子设备,通过处理器执行存储在存储器上的指令,可获取第一级联节点与第二级联节点协商后的目标级联配置信息,并基于目标级联配置信息,建立第一级联节点与第二级联节点之间的级联。由此,可基于协商后的目标级联配置信息建立级联节点之间的级联,保障了级联的可靠性和稳定性。
为了实现上述实施例,本申请还提出一种计算机可读存储介质,其存储有计算机程序,该程序被处理器执行时实现上述级联方法。
本申请实施例的计算机可读存储介质,通过存储计算机程序并被处理器执行,可获取第一级联节点与第二级联节点协商后的目标级联配置信息,并基于目标级联配置信息,建立第一级联节点与第二级联节点之间的级联。由此,可基于协商后的目标级联配置信息建立级联节点之间的级联,保障了级联的可靠性和稳定性。
在本申请的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的必然先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
在本申请所提供的实施例中,应理解,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其他信息确定B。
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元若以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可获取的存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或者部分,可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干请求用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请的各个实施例上述方法的部分或全部步骤。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以 通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。
以上对本申请实施例公开的一种级联方法、装置、设备及介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。
Claims (16)
- 一种级联方法,其特征在于,适用于第一级联节点,所述方法包括:获取第一级联节点与第二级联节点协商后的目标级联配置信息;基于所述目标级联配置信息,建立所述第一级联节点与所述第二级联节点之间的级联。
- 根据权利要求1所述的方法,其特征在于,所述获取第一级联节点与第二级联节点协商后的目标级联配置信息,包括:获取所述第一级联节点的第一级联配置信息和所述第二级联节点的第二级联配置信息;基于所述第一级联配置信息和所述第二级联配置信息,与所述第二级联节点进行级联配置信息的协商,以生成所述目标级联配置信息。
- 根据权利要求2所述的方法,其特征在于,所述目标级联配置信息包括目标级联能力;所述基于所述第一级联配置信息和所述第二级联配置信息,与所述第二级联节点进行级联配置信息的协商,以生成所述目标级联配置信息,包括:获取所述第一级联配置信息中的第一级联能力,以及所述第二级联配置信息中的第二级联能力;获取所述第一级联能力和所述第二级联能力之间的重合级联能力,并将所述重合级联能力作为所述目标级联能力。
- 根据权利要求3所述的方法,其特征在于,所述目标级联配置信息还包括所述目标级联能力的目标级联版本;所述基于所述第一级联配置信息和所述第二级联配置信息,与所述第二级联节点进行级联配置信息的协商,以生成所述目标级联配置信息,还包括:获取所述第一级联配置信息中所述目标级联能力的第一级联版本,以及所述第二级联配置信息中所述目标级联能力的第二级联版本;基于所述第一级联版本和所述第二级联版本,获取所述目标级联能力的目标级联版本。
- 根据权利要求4所述的方法,其特征在于,所述基于所述第一级联版本和所述 第二级联版本,获取所述目标级联能力的目标级联版本,包括:获取所述第一级联版本和所述第二级联版本之间的重合级联版本;将版本最高的所述重合级联版本作为所述目标级联能力的目标级联版本。
- 根据权利要求4所述的方法,其特征在于,所述基于所述第一级联版本和所述第二级联版本,获取所述目标级联能力的目标级联版本,包括:将版本最高的所述第一级联版本作为第一候选级联版本,以及将版本最高的所述第二级联版本作为第二候选级联版本;若所述第一候选级联版本低于或者等于所述第二候选级联版本,将所述第一候选级联版本作为所述目标级联能力的目标级联版本;或者,若所述第一候选级联版本高于所述第二候选级联版本,将所述第二候选级联版本作为所述目标级联能力的目标级联版本。
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:将所述第一级联配置信息注册在本地的级联模块。
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:将生成的所述目标级联配置信息发送至所述第二级联节点。
- 根据权利要求1所述的方法,其特征在于,所述获取第一级联节点与第二级联节点协商后的目标级联配置信息,包括:接收所述第二级联节点发送的所述目标级联配置信息。
- 一种级联装置,其特征在于,适用于第一级联节点,所述装置包括:获取模块,用于获取第一级联节点与第二级联节点协商后的目标级联配置信息;建立模块,用于基于所述目标级联配置信息,建立所述第一级联节点与所述第二级联节点之间的级联。
- 根据权利要求10所述的装置,其特征在于,所述获取模块还用于:获取所述第一级联节点的第一级联配置信息和所述第二级联节点的第二级联配置信息;基于所述第一级联配置信息和所述第二级联配置信息,与所述第二级联节点进行级 联配置信息的协商,以生成所述目标级联配置信息。
- 根据权利要求11所述的装置,其特征在于,所述装置还包括:注册模块,所述注册模块用于:将所述第一级联配置信息注册在本地的级联模块。
- 根据权利要求11所述的装置,其特征在于,所述装置还包括:发送模块,所述发送模块用于:将生成的所述目标级联配置信息发送至所述第二级联节点。
- 根据权利要求10所述的装置,其特征在于,所述获取模块还用于:接收所述第二级联节点发送的所述目标级联配置信息。
- 一种电子设备,其特征在于,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如权利要求1-9任一项所述的级联方法。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-9任一项所述的级联方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210236234.0 | 2022-03-11 | ||
CN202210236234.0A CN114640595B (zh) | 2022-03-11 | 2022-03-11 | 级联方法、装置、电子设备和存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023169052A1 true WO2023169052A1 (zh) | 2023-09-14 |
Family
ID=81947500
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/141863 WO2023169052A1 (zh) | 2022-03-11 | 2022-12-26 | 级联方法、装置、电子设备和存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114640595B (zh) |
WO (1) | WO2023169052A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114640595B (zh) * | 2022-03-11 | 2023-08-18 | 杭州数梦工场科技有限公司 | 级联方法、装置、电子设备和存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102739388A (zh) * | 2012-04-10 | 2012-10-17 | 瑞斯康达科技发展股份有限公司 | 同步主从设备的配置信息的方法和系统 |
CN110225293A (zh) * | 2019-06-19 | 2019-09-10 | 苏州市科远软件技术开发有限公司 | 会议级联方法及电子设备 |
CN110505166A (zh) * | 2018-05-16 | 2019-11-26 | 杭州海康威视数字技术股份有限公司 | 广播包转发方法、装置、电子设备及可读存储介质 |
US20210208902A1 (en) * | 2020-01-06 | 2021-07-08 | International Business Machines Corporation | Cascading Data Configuration |
CN113422818A (zh) * | 2021-06-18 | 2021-09-21 | 重庆紫光华山智安科技有限公司 | 一种数据级联传输方法、系统及节点设备 |
CN114640595A (zh) * | 2022-03-11 | 2022-06-17 | 杭州数梦工场科技有限公司 | 级联方法、装置、电子设备和存储介质 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7760746B2 (en) * | 2004-11-30 | 2010-07-20 | Computer Associates Think, Inc. | Cascading configuration using one or more configuration trees |
US20090215398A1 (en) * | 2008-02-25 | 2009-08-27 | Adler Mitchell D | Methods and Systems for Establishing Communications Between Devices |
US8838678B1 (en) * | 2010-08-06 | 2014-09-16 | Zappos Ip, Inc. | Dynamic cascading for network sites |
CN105490845A (zh) * | 2015-12-08 | 2016-04-13 | 中国航空工业集团公司西安航空计算技术研究所 | Fc交换机级联配置及路由实现方法 |
CN113157300A (zh) * | 2021-05-19 | 2021-07-23 | 深圳Tcl新技术有限公司 | 一种数据处理方法、装置和存储介质 |
CN113626519A (zh) * | 2021-07-07 | 2021-11-09 | 江苏云从曦和人工智能有限公司 | 数据级联系统 |
CN114019926A (zh) * | 2021-11-03 | 2022-02-08 | 深圳市汇川技术股份有限公司 | 多级联设备的通信方法、装置、设备及存储介质 |
CN113987089B (zh) * | 2021-12-28 | 2022-08-26 | 北京力控元通科技有限公司 | 一种系统级联方法、数据处理方法及装置 |
-
2022
- 2022-03-11 CN CN202210236234.0A patent/CN114640595B/zh active Active
- 2022-12-26 WO PCT/CN2022/141863 patent/WO2023169052A1/zh unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102739388A (zh) * | 2012-04-10 | 2012-10-17 | 瑞斯康达科技发展股份有限公司 | 同步主从设备的配置信息的方法和系统 |
CN110505166A (zh) * | 2018-05-16 | 2019-11-26 | 杭州海康威视数字技术股份有限公司 | 广播包转发方法、装置、电子设备及可读存储介质 |
CN110225293A (zh) * | 2019-06-19 | 2019-09-10 | 苏州市科远软件技术开发有限公司 | 会议级联方法及电子设备 |
US20210208902A1 (en) * | 2020-01-06 | 2021-07-08 | International Business Machines Corporation | Cascading Data Configuration |
CN113422818A (zh) * | 2021-06-18 | 2021-09-21 | 重庆紫光华山智安科技有限公司 | 一种数据级联传输方法、系统及节点设备 |
CN114640595A (zh) * | 2022-03-11 | 2022-06-17 | 杭州数梦工场科技有限公司 | 级联方法、装置、电子设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN114640595A (zh) | 2022-06-17 |
CN114640595B (zh) | 2023-08-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113364735B (zh) | 多链场景下数据跨链访问控制方法、系统、设备及终端 | |
US11477084B2 (en) | Method and system for node discovery and self-healing of blockchain networks | |
US8504699B2 (en) | Invitation to bind to a device | |
TWI458310B (zh) | 協同媒體推薦及共享技術 | |
WO2020038105A1 (zh) | 基于区块链的数据存证方法和装置 | |
WO2022121538A1 (zh) | 基于区块链的数据同步方法、系统及相关设备 | |
WO2018201887A1 (zh) | 数据响应方法、装置、终端设备及介质 | |
WO2023169052A1 (zh) | 级联方法、装置、电子设备和存储介质 | |
WO2021004058A1 (zh) | 基于区块链的数据处理方法和装置 | |
WO2023216532A1 (zh) | 一种数字资产的管理方法及相关装置 | |
US20130031232A1 (en) | System and Method For Sharing Electronic Information | |
US11797567B1 (en) | Rapid hyperledger onboarding platform | |
WO2023179509A1 (zh) | 数据访问装置、方法、可读介质和电子设备 | |
WO2017156934A1 (zh) | 智能互联方法和智能终端 | |
WO2021036583A1 (zh) | 基于区块链的清算方法、装置、设备及计算机存储介质 | |
US20210026931A1 (en) | Method and system for data license agreements and licensee auditability | |
US8898257B1 (en) | Multi-device complexity broker | |
WO2023246187A1 (zh) | 一种区块链网络的管理方法及相关设备 | |
JP2015501973A (ja) | コンテンツの近似性および関連性 | |
WO2023193572A1 (zh) | 一种数据管理方法、装置、服务器和存储介质 | |
JP5845973B2 (ja) | サービス利用管理方法、プログラム、および情報処理装置 | |
TW201727517A (zh) | 資料儲存與業務處理的方法及裝置 | |
EP3512175B1 (en) | System and protocol for integrating multiple service providers across various domains using a platform | |
TWI506452B (zh) | 雲端平台及其資料交換方法 | |
US20060200519A1 (en) | Networked meeting recording method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22930671 Country of ref document: EP Kind code of ref document: A1 |