CN114640595A - Cascading method, device, electronic equipment and storage medium - Google Patents

Cascading method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114640595A
CN114640595A CN202210236234.0A CN202210236234A CN114640595A CN 114640595 A CN114640595 A CN 114640595A CN 202210236234 A CN202210236234 A CN 202210236234A CN 114640595 A CN114640595 A CN 114640595A
Authority
CN
China
Prior art keywords
cascade
configuration information
target
version
node
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.)
Granted
Application number
CN202210236234.0A
Other languages
Chinese (zh)
Other versions
CN114640595B (en
Inventor
查金祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Dt Dream Technology Co Ltd
Original Assignee
Hangzhou Dt Dream Technology 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 Hangzhou Dt Dream Technology Co Ltd filed Critical Hangzhou Dt Dream Technology Co Ltd
Priority to CN202210236234.0A priority Critical patent/CN114640595B/en
Publication of CN114640595A publication Critical patent/CN114640595A/en
Priority to PCT/CN2022/141863 priority patent/WO2023169052A1/en
Application granted granted Critical
Publication of CN114640595B publication Critical patent/CN114640595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0859Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions

Abstract

The application discloses a cascading method, a cascading device, electronic equipment and a storage medium. The cascade method comprises the following steps: acquiring target cascade configuration information after negotiation between the first cascade node and the second cascade node; establishing a cascade between the first cascade node and the second cascade node based on the target cascade configuration information. Therefore, the cascade connection between the cascade nodes can be established based on the negotiated target cascade connection configuration information, and the reliability and the stability of the cascade connection are guaranteed.

Description

Cascading method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a cascading method, an apparatus, an electronic device, and a storage medium.
Background
At present, with the continuous development of internet technology, the cascade connection between different nodes is widely applied in the fields of service processing, real-time conferences and the like. For example, in the field of service processing, the cascade connection between different nodes can implement data transmission of service data between different nodes, and in the field of real-time conference, the cascade connection between different nodes can implement calls between multiple nodes. However, the cascading method in the related art has the problems of low cascading reliability, low stability and the like.
Disclosure of Invention
The present application is directed to solving, at least in part, one of the technical problems in the art described above.
Therefore, an object of the present application is to provide a cascading method, which can establish cascading between cascading nodes based on negotiated target cascading configuration information, and ensure reliability and stability of the cascading.
A second object of the present application is to propose a cascade arrangement.
A third object of the present application is to provide an electronic device.
A fourth object of the present application is to propose a computer readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present application provides a method for cascading, where the method is applied to a first cascading node, and the method includes: acquiring target cascade configuration information after negotiation between the first cascade node and the second cascade node; establishing a cascade between the first cascade node and the second cascade node based on the target cascade configuration information.
According to the cascading method, the target cascading configuration information after the first cascading node and the second cascading node negotiate can be obtained, and cascading between the first cascading node and the second cascading node is established based on the target cascading configuration information. Therefore, the cascade connection between the cascade nodes can be established based on the negotiated target cascade connection configuration information, and the reliability and the stability of the cascade connection are guaranteed.
In addition, the cascading method proposed according to the above embodiment of the present application may also have the following additional technical features:
in an embodiment of the present application, the obtaining target cascade configuration information after negotiation between the first cascade node and the second cascade node includes: acquiring first cascade configuration information of the first cascade node and second cascade configuration information of the second cascade node; and carrying out negotiation of cascade configuration information with the second cascade node based on the first cascade configuration information and the second cascade configuration information to generate the target cascade configuration information.
In one embodiment of the present application, the target cascade configuration information includes a target cascade capability; the negotiating, with the second tandem node, of the tandem configuration information based on the first tandem configuration information and the second tandem configuration information to generate the target tandem configuration information includes: acquiring a first cascade capacity in the first cascade configuration information and a second cascade capacity in the second cascade configuration information; and acquiring the coincidence cascade capacity between the first cascade capacity and the second cascade capacity, and taking the coincidence cascade capacity as the target cascade capacity.
In an embodiment of the present application, the target cascade configuration information further includes a target cascade version of the target cascade capability; the negotiating, with the second cascaded node, of the cascaded configuration information based on the first cascaded configuration information and the second cascaded configuration information to generate the target cascaded configuration information further includes: acquiring a first cascade version of the target cascade capacity in the first cascade configuration information and a second cascade version of the target cascade capacity in the second cascade configuration information; and acquiring a target cascade version of the target cascade capacity based on the first cascade version and the second cascade version.
In an embodiment of the application, the obtaining a target cascade version of the target cascade capability based on the first cascade version and the second cascade version includes: acquiring a superposition cascade version between the first cascade version and the second cascade version; and taking the coincident cascading version with the highest version as a target cascading version of the target cascading capacity.
In an embodiment of the application, the obtaining a target cascade version of the target cascade capability based on the first cascade version and the second cascade version includes: taking the first cascaded version with the highest version as a first candidate cascaded version, and taking the second cascaded version with the highest version as a second candidate cascaded version; if the first candidate concatenation version is lower than or equal to the second candidate concatenation version, taking the first candidate concatenation version as a target concatenation version of the target concatenation capability; or, if the first candidate concatenation version is higher than the second candidate concatenation version, the second candidate concatenation version is used as a target concatenation version of the target concatenation capability.
In one embodiment of the present application, the method further comprises: and registering the first cascading configuration information in a local cascading module.
In one embodiment of the present application, the method further comprises: and sending the generated target cascade configuration information to the second cascade node.
In an embodiment of the present application, the obtaining target cascade configuration information after negotiation between the first cascade node and the second cascade node includes: and receiving the target cascade configuration information sent by the second cascade node.
In order to achieve the above object, a second aspect of the present application provides a tandem connection apparatus, which is applicable to a first tandem node, and includes: the acquisition module is used for acquiring target cascade configuration information after the first cascade node and the second cascade node negotiate; and the establishing module is used for establishing the cascade between the first cascade node and the second cascade node based on the target cascade configuration information.
The cascade device of the embodiment of the application can acquire the target cascade configuration information after the first cascade node and the second cascade node negotiate, and establish the cascade between the first cascade node and the second cascade node based on the target cascade configuration information. Therefore, the cascade connection between the cascade nodes can be established based on the negotiated target cascade connection configuration information, and the reliability and the stability of the cascade connection are guaranteed.
In addition, the cascade device proposed according to the above embodiment of the present application may also have the following additional technical features:
in an embodiment of the application, the obtaining module is further configured to: acquiring first cascade configuration information of the first cascade node and second cascade configuration information of the second cascade node; and carrying out negotiation of cascade configuration information with the second cascade node based on the first cascade configuration information and the second cascade configuration information to generate the target cascade configuration information.
In one embodiment of the present application, the target cascade configuration information includes a target cascade capability; the obtaining module is further configured to: acquiring a first cascade capacity in the first cascade configuration information and a second cascade capacity in the second cascade configuration information; acquiring the superposition cascade capacity between the first cascade capacity and the second cascade capacity, and taking the superposition cascade capacity as the target cascade capacity.
In an embodiment of the present application, the target cascade configuration information further includes a target cascade version of the target cascade capability; the obtaining module is further configured to: acquiring a first cascade version of the target cascade capacity in the first cascade configuration information and a second cascade version of the target cascade capacity in the second cascade configuration information; and acquiring a target cascade version of the target cascade capacity based on the first cascade version and the second cascade version.
In an embodiment of the application, the obtaining module is further configured to: acquiring a superposition cascade version between the first cascade version and the second cascade version; and taking the coincident cascade version with the highest version as a target cascade version of the target cascade capability.
In an embodiment of the application, the obtaining module is further configured to: taking the first cascading version with the highest version as a first candidate cascading version, and taking the second cascading version with the highest version as a second candidate cascading version; if the first candidate concatenation version is lower than or equal to the second candidate concatenation version, taking the first candidate concatenation version as a target concatenation version of the target concatenation capability; or, if the first candidate concatenation version is higher than the second candidate concatenation version, the second candidate concatenation version is used as a target concatenation version of the target concatenation capability.
In one embodiment of the present application, the apparatus further comprises: a registration module to: and registering the first cascading configuration information in a local cascading module.
In one embodiment of the present application, the apparatus further comprises: a sending module, configured to: and sending the generated target cascade configuration information to the second cascade node.
In an embodiment of the application, the obtaining module is further configured to: and receiving the target cascade configuration information sent by the second cascade node.
To achieve the above object, a third aspect of the present application provides an electronic device, including: the cascade connection method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the cascade connection method according to the embodiment of the first aspect of the application.
The electronic device of the embodiment of the application can acquire the target cascade configuration information after the first cascade node and the second cascade node negotiate by executing the instruction stored in the memory through the processor, and establish the cascade between the first cascade node and the second cascade node based on the target cascade configuration information. Therefore, the cascade connection between the cascade nodes can be established based on the negotiated target cascade connection configuration information, and the reliability and the stability of the cascade connection are guaranteed.
To achieve the above object, a fourth aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a cascading method as described in the first aspect of the present application.
The computer-readable storage medium of the embodiment of the application stores a computer program and is executed by a processor, so that target cascade configuration information after negotiation between a first cascade node and a second cascade node can be acquired, and cascade between the first cascade node and the second cascade node is established based on the target cascade configuration information. Therefore, the cascade connection between the cascade nodes can be established based on the negotiated target cascade connection configuration information, and the reliability and the stability of the cascade connection are guaranteed.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a schematic flow diagram of a cascading method according to one embodiment of the present application;
FIG. 2 is a schematic diagram illustrating the establishment of a cascade in a cascading method according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating a process of acquiring target cascade configuration information in a cascade method according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a process of obtaining a target cascade capability in a cascade method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of obtaining a target concatenation version of a target concatenation capability in a concatenation method according to an embodiment of the present application;
FIG. 6 is a block diagram of a cascade device according to one embodiment of the present application;
FIG. 7 is a block diagram of an electronic device according to one embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The cascading method, the cascading apparatus, the electronic device and the storage medium according to the embodiments of the present application are described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a cascading method according to one embodiment of the present application.
As shown in fig. 1, a cascading method according to an embodiment of the present application includes:
s101, acquiring target cascade configuration information after the first cascade node and the second cascade node negotiate.
It should be noted that an execution subject of the cascading method in the embodiment of the present application is the first cascading node or the cascading device in the embodiment of the present application, and the cascading device may be configured in the first cascading node to execute the cascading method in the embodiment of the present application. The first cascade node may be any device having a computing capability, for example, a Personal Computer (PC), a mobile terminal, a server, and the like, and the mobile terminal may be a hardware device having various operating systems, touch screens, and/or display screens, such as a mobile phone, a tablet Computer, a Personal digital assistant, and a wearable device.
In an embodiment of the present application, a first cascade node may obtain target cascade configuration information after a negotiation between the first cascade node and a second cascade node.
It should be noted that the second cascade node refers to a node to be cascaded of the first cascade node. The upper-lower level relationship between the first cascade node and the second cascade node is not limited too much, for example, the first cascade node may be an upper level cascade node of the second cascade node, or the first cascade node may be a lower level cascade node of the second cascade node.
It should be noted that the category of the target cascade configuration information is not limited too much, for example, the target cascade configuration information includes the target cascade capability and/or the target cascade version of the target cascade capability. It is to be understood that the target concatenation configuration information may include at least one target concatenation capability, the target concatenation capability and the target concatenation version having a one-to-one correspondence. It should be noted that the category of the target concatenation capability is not limited too much, for example, the target concatenation capability includes, but is not limited to, a data directory, a data standard, a data rule, and the like.
In an embodiment, obtaining the target cascade configuration information after the first cascade node and the second cascade node negotiate may include performing the negotiation of the cascade configuration information between the first cascade node and the second cascade node to generate the target cascade configuration information.
In an embodiment, the obtaining of the target cascade configuration information after the first cascade node and the second cascade node negotiate may include the first cascade node obtaining the target cascade configuration information from a local cascade module. It should be noted that each tandem node has a tandem module, and the tandem module can be used to store the target tandem configuration information. For example, the cascade module may be configured to store a mapping relationship or a mapping table between the identifier of the second cascade node and the target cascade configuration information, and may query the target cascade configuration information from the mapping relationship or the mapping table based on the identifier of the second cascade node.
In an embodiment, the obtaining of the target cascade configuration information after the first cascade node and the second cascade node negotiate may include that the first cascade node receives the target cascade configuration information sent by the second cascade node.
S102, establishing cascade connection between the first cascade connection node and the second cascade connection node based on the target cascade connection configuration information.
In one embodiment, the target cascade configuration information includes a target cascade capability, and/or a target cascade version of the target cascade capability. Establishing a cascade between the first and second cascaded nodes based on the target cascade configuration information may include establishing a cascade between the first and second cascaded nodes based on the target cascade capability and/or a target cascade version of the target cascade capability.
For example, the target cascade capability includes a data directory and a data standard, where a target cascade version corresponding to the data directory is an a1 version, and a target cascade version corresponding to the data standard is a B2 version, then the cascade between the first cascade node and the second cascade node may be established based on the data directory, the data standard, an a1 version of the data directory, and a B2 version of the data standard.
In an embodiment, as shown in fig. 2, the first cascade node and the second cascade node each have a cascade module, and establishing the cascade between the first cascade node and the second cascade node based on the target cascade configuration information may include establishing the 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, establishing a cascade channel between the cascade module of the first cascade node and the cascade module of the second cascade node as shown in fig. 2.
In an embodiment, after establishing the cascade connection between the first cascade node and the second cascade node, the method further includes performing data transmission between the first cascade node and the second cascade node through the established cascade connection. It should be noted that the category of data transmission is not limited too much, for example, data transmission includes, but is not limited to, data reading, storing, synchronizing, and the like.
In one embodiment, the 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 the target cascade version of the target cascade capability. For example, when the target concatenation capability is a data directory and a target concatenation version corresponding to the data directory is an a1 version, data transmission may be performed between the first and second cascade nodes according to the a1 version of the data directory.
In summary, according to the cascading method of the embodiment of the present application, the target cascading configuration information after negotiation between the first cascading node and the second cascading node can be obtained, and the cascade between the first cascading node and the second cascading node is established based on the target cascading configuration information. Therefore, the cascade connection between the cascade nodes can be established based on the negotiated target cascade connection configuration information, and the reliability and the stability of the cascade connection are guaranteed.
On the basis of any of the foregoing embodiments, as shown in fig. 3, the obtaining, in step S101, target cascade configuration information after negotiation between the first cascade node and the second cascade node may include:
s301, acquiring first cascade configuration information of a first cascade node and second cascade configuration information of a second cascade node.
In one embodiment, the first concatenation configuration information comprises a first concatenation capability, and/or a first concatenation version of the first concatenation capability, and the second concatenation configuration information comprises a second concatenation capability, and/or a second concatenation version of the second concatenation capability.
In one embodiment, the 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 is understood that the tandem node may store its own tandem configuration information in a local tandem module, so as to obtain its own tandem configuration information in a subsequent step. For example, the first tandem node may register the first tandem configuration information with a local tandem module.
In an embodiment, the obtaining the second concatenation configuration information of the second concatenation node may include the first concatenation node receiving the second concatenation configuration information sent by the second concatenation node. For example, the cascade module of the first cascade node may receive the second cascade configuration information sent by the cascade module of the second cascade node.
In one embodiment, obtaining the second concatenation configuration information of the second concatenation node may include the first concatenation node obtaining the second concatenation configuration information from a local concatenation module. For example, the cascade module of the first cascade node may be configured to store a mapping relation or a mapping table between the identifier of the second cascade node and the second cascade configuration information, and the second cascade configuration information may be queried from the mapping relation or the mapping table based on the identifier of the second cascade node.
S302, based on the first cascade configuration information and the second cascade configuration information, the second cascade node negotiates the cascade configuration information to generate target cascade configuration information.
In an embodiment of the application, the first cascade node may perform negotiation of the cascade configuration information with the second cascade node based on the first cascade configuration information and the second cascade configuration information to generate the target cascade configuration information.
In one embodiment, the target cascade configuration information includes a target cascade capability, and the negotiating of the cascade configuration information with the second cascade node is performed based on the first cascade configuration information and the second cascade configuration information to generate the target cascade configuration information may include the first cascade node performing a negotiation of 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.
In one embodiment, the target cascade configuration information includes a target cascade version of the target cascade capability, and the negotiating of the cascade configuration information with the second cascade node is performed based on the first cascade configuration information and the second cascade configuration information to generate the target cascade configuration information may include the first cascade node performing the negotiating of 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 the target cascade version of the target cascade capability.
In an embodiment, the first cascade node may further send the generated target cascade configuration information to the second cascade node, so as to inform the second cascade node of the negotiated target cascade configuration information in time. For example, the target cascade configuration information may be used to establish a cascade between a first cascade node and a second cascade node.
Therefore, the method can comprehensively consider the first cascade configuration information of the first cascade node and the second cascade configuration information of the second cascade node to realize the negotiation of the cascade configuration information between the first cascade node and the second cascade node so as to generate the target cascade configuration information, and the accuracy of the target cascade configuration information is improved. And further, the reliability and stability of the cascade are guaranteed.
On the basis of any of the foregoing embodiments, the target cascade information includes a target cascade capability, and as shown in fig. 4, in step S302, based on the first cascade configuration information and the second cascade configuration information, the negotiating of the cascade configuration information with the second cascade node is performed to generate the target cascade configuration information, which may include:
s401, acquiring a first cascade capacity in the first cascade configuration information and a second cascade capacity in the second cascade configuration information.
S402, acquiring the coincidence cascade capacity between the first cascade capacity and the second cascade capacity, and taking the coincidence cascade capacity as the target cascade capacity.
It is understood that the concatenation capabilities in the concatenation configuration information of different concatenation nodes may be different or the same.
In the embodiment of the application, the reclosing capability between the first cascading capability and the second cascading capability can be obtained, namely the reclosing capability is the first cascading capability and is also the second cascading capability, and the reclosing capability is used as the target cascading capability. It should be noted that the number of reclosing capabilities is at least one.
For example, the first cascade capacity includes a data directory, a data standard and a data rule, and the second cascade capacity only includes the data directory, so that the reclosing cascade capacity only includes the data directory, and the data directory can be used as a target cascade capacity;
for example, the first concatenation capability includes a data directory, a data standard, and a data rule, and the second concatenation capability includes a data directory and a data standard, and the reclosing concatenation capability includes a data directory and a data standard, and the data directory and the data standard can be used as a target concatenation capability.
Therefore, the method can comprehensively consider the first cascade capacity in the first cascade configuration information of the first cascade node and the second cascade capacity in the second cascade configuration information of the second cascade node to realize the negotiation of the cascade capacity between the first cascade node and the second cascade node so as to generate the target cascade capacity, improve the accuracy of the target cascade capacity and further ensure the reliability and the stability of the cascade.
On the basis of any of the foregoing embodiments, the target cascade information further includes a target cascade version of the target cascade capability, as shown in fig. 5, in step S302, based on the first cascade configuration information and the second cascade configuration information, performing a negotiation of cascade configuration information with the second cascade node to generate the target cascade configuration information, which may include:
s501, a first cascade version of the target cascade capacity in the first cascade configuration information and a second cascade version of the target cascade capacity in the second cascade configuration information are obtained.
S502, acquiring a target cascade version of the target cascade capacity based on the first cascade version and the second cascade version.
It is to be understood that the concatenation versions of the concatenation capability in the concatenation configuration information of different concatenation nodes may be different or the same.
In the embodiment of the present application, the target cascade version of the target cascade capability may be obtained based on the first cascade version and the second cascade version, and the following possible implementation manners may be included:
mode 1, acquiring a superposition cascade version between a first cascade version and a second cascade version, and taking the superposition cascade version with the highest version as a target cascade version with target cascade capability.
It is to be understood that the overlapping concatenated versions are the first concatenated version, as well as the second concatenated version, and the number of overlapping concatenated versions is at least one.
For example, the target concatenation capability includes a data directory, the first concatenation version of the data directory in the first concatenation configuration information includes a1 and a2, and the first concatenation version of the data directory in the second concatenation configuration information includes a1, so that the superposition concatenation capability only includes a1, and then a1 may be used as the target concatenation version of the data directory;
for example, the target concatenation capability includes a data directory, the first concatenation version of the data directory in the first concatenation configuration information includes a1 and a2, and the first concatenation version of the data directory in the second concatenation configuration information includes a2, so that the superposition concatenation capability only includes a2, and then a2 may be used as the target concatenation version of the data directory;
for example, the target concatenation capability includes a data directory, the first concatenation version of the data directory in the first concatenation configuration information includes a1 and a2, the first concatenation version of the data directory in the second concatenation configuration information includes a1 and a2, the overlapping concatenation capability includes a1 and a2, and the a1 is lower than the a2, so that the a2 can be used as the target concatenation version of the data directory.
And 2, taking the first cascade version with the highest version as a first candidate cascade version, taking the second cascade version with the highest version as a second candidate cascade version, and if the first candidate cascade version is lower than or equal to the second candidate cascade version, taking the first candidate cascade version as a target cascade version with target cascade capacity, or if the first candidate cascade version is higher than the second candidate cascade version, taking the second candidate cascade version as a target cascade version with target cascade capacity.
For example, the target concatenation capability includes a data directory, the first concatenation version of the data directory in the first concatenation configuration information includes a1 and a2, the first concatenation version of the data directory in the second concatenation configuration information includes a1, a1 is lower than a2, the first candidate concatenation version is a2, the second candidate concatenation version is a1, the first candidate concatenation version is higher than the second candidate concatenation version, and the second candidate concatenation version is used as the target concatenation version of the data directory, that is, a1 is used as the target concatenation version of the data directory;
for example, the target concatenation capability includes a data directory, the first concatenation version of the data directory in the first concatenation configuration information includes a1 and a2, the first concatenation version of the data directory in the second concatenation configuration information includes a2, a1 is lower than a2, the first candidate concatenation version is a2, the second candidate concatenation version is a2, the first candidate concatenation version is equal to the second candidate concatenation version, and the first candidate concatenation version is used as the target concatenation version of the data directory, that is, a2 is used as the target concatenation version of the data directory;
for example, the target concatenation capability includes a data directory, the first concatenation version of the data directory in the first concatenation configuration information includes a1 and a2, the first concatenation version of the data directory in the second concatenation configuration information includes a1 and a2, the first candidate concatenation version is a2, the second candidate concatenation version is a2, the first candidate concatenation version is equal to the second candidate concatenation version, and the first candidate concatenation version is used as the target concatenation version of the data directory, that is, the a2 is used as the target concatenation version of the data directory.
And 3, selecting a target cascade version with target cascade capacity from the first cascade version and/or the second cascade version.
For example, a cascade version may be randomly selected from the first cascade version and/or the second cascade version as a target cascade version of the target cascade capability.
Therefore, the method can comprehensively consider the first cascade version of the target cascade capacity in the first cascade configuration information of the first cascade node and the second cascade version of the target cascade capacity in the second cascade configuration information of the second cascade node to realize the negotiation between the first cascade node and the second cascade node on the cascade version of the cascade capacity so as to generate the target cascade version of the target cascade capacity, improve the accuracy of the target cascade version of the target cascade capacity and further ensure the reliability and stability of the cascade.
In order to implement the above embodiments, the present application further provides a cascade device.
FIG. 6 is a block diagram of a cascade device according to one embodiment of the present application.
As shown in fig. 6, the cascade apparatus 100 according to the embodiment of the present application includes: an acquisition module 110 and a setup module 120.
The obtaining module 110 is configured to obtain target cascade configuration information after negotiation between the first cascade node and the second cascade node;
the establishing module 120 is configured to establish a cascade between the first cascaded node and the second cascaded node based on the target cascade configuration information.
In an embodiment of the present application, the obtaining module 110 is further configured to: acquiring first cascade configuration information of the first cascade node and second cascade configuration information of the second cascade node; and carrying out negotiation of cascade configuration information with the second cascade node based on the first cascade configuration information and the second cascade configuration information to generate the target cascade configuration information.
In one embodiment of the present application, the target cascade configuration information includes a target cascade capability; the obtaining module 110 is further configured to: acquiring a first cascade capacity in the first cascade configuration information and a second cascade capacity in the second cascade configuration information; and acquiring the coincidence cascade capacity between the first cascade capacity and the second cascade capacity, and taking the coincidence cascade capacity as the target cascade capacity.
In an embodiment of the present application, the target cascade configuration information further includes a target cascade version of the target cascade capability; the obtaining module 110 is further configured to: acquiring a first cascade version of the target cascade capacity in the first cascade configuration information and a second cascade version of the target cascade capacity in the second cascade configuration information; and acquiring a target cascade version of the target cascade capacity based on the first cascade version and the second cascade version.
In an embodiment of the present application, the obtaining module 110 is further configured to: acquiring a superposition cascade version between the first cascade version and the second cascade version; and taking the coincident cascade version with the highest version as a target cascade version of the target cascade capability.
In an embodiment of the application, the obtaining module 110 is further configured to: taking the first cascading version with the highest version as a first candidate cascading version, and taking the second cascading version with the highest version as a second candidate cascading version; if the first candidate cascade version is lower than or equal to the second candidate cascade version, taking the first candidate cascade version as a target cascade version of the target cascade capability; or, if the first candidate concatenation version is higher than the second candidate concatenation version, the second candidate concatenation version is used as a target concatenation version of the target concatenation capability.
In one embodiment of the present application, the cascade apparatus 100 further includes: a registration module to: and registering the first cascading configuration information in a local cascading module.
In one embodiment of the present application, the cascade apparatus 100 further includes: a sending module, configured to: and sending the generated target cascade configuration information to the second cascade node.
In an embodiment of the present application, the obtaining module 110 is further configured to: and receiving the target cascade configuration information sent by the second cascade node.
It should be noted that details that are not disclosed in the cascade device in the embodiment of the present application refer to details that are disclosed in the cascade method in the foregoing embodiment of the present application, and are not described herein again.
In summary, the cascade device according to the embodiment of the present application may obtain the target cascade configuration information after the first cascade node and the second cascade node negotiate, and establish the cascade between the first cascade node and the second cascade node based on the target cascade configuration information. Therefore, the cascade connection between the cascade nodes can be established based on the negotiated target cascade connection configuration information, and the reliability and the stability of the cascade connection are guaranteed.
In order to implement the above embodiment, as shown in fig. 7, an embodiment of the present application provides 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 implementing the cascade method described above when executing the program.
The electronic device of the embodiment of the application can acquire the target cascade configuration information after the first cascade node and the second cascade node negotiate by executing the instruction stored in the memory through the processor, and establish the cascade between the first cascade node and the second cascade node based on the target cascade configuration information. Therefore, the cascade connection between the cascade nodes can be established based on the negotiated target cascade connection configuration information, and the reliability and the stability of the cascade connection are guaranteed.
In order to implement the above embodiments, the present application also proposes a computer-readable storage medium storing a computer program which, when executed by a processor, implements the above-described cascading method.
The computer-readable storage medium of the embodiment of the application stores a computer program and is executed by a processor, so that target cascade configuration information after negotiation between a first cascade node and a second cascade node can be acquired, and cascade between the first cascade node and the second cascade node is established based on the target cascade configuration information. Therefore, the cascade connection between the cascade nodes can be established based on the negotiated target cascade connection configuration information, and the reliability and the stability of the cascade connection are guaranteed.
In various embodiments of the present application, it should be understood that the size of the serial number of each process described above does not mean that the execution sequence is necessarily sequential, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may also be determined from a and/or other information.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated units, if implemented as software functional units and sold or used as a stand-alone product, may be stored in a computer accessible memory. Based on such understanding, the technical solution of the present application, which is a part of or contributes to the prior art in essence, or all or part of the technical solution, may be embodied in the form of a software product, stored in a memory, including several requests for causing a computer device (which may be a personal computer, a server, a network device, or the like, and may specifically be a processor in the computer device) to execute part or all of the steps of the above-described method of the embodiments of the present application.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes 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), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The cascade method, the training method, the device, the equipment and the medium disclosed in the embodiments of the present application are introduced in detail, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (16)

1. A method of cascading, adapted for use with a first cascading node, the method comprising:
acquiring target cascade configuration information after negotiation between the first cascade node and the second cascade node;
establishing a cascade between the first cascade node and the second cascade node based on the target cascade configuration information.
2. The method according to claim 1, wherein the obtaining target cascade configuration information after the first cascade node and the second cascade node negotiate comprises:
acquiring first cascade configuration information of the first cascade node and second cascade configuration information of the second cascade node;
and carrying out negotiation of cascade configuration information with the second cascade node based on the first cascade configuration information and the second cascade configuration information to generate the target cascade configuration information.
3. The method of claim 2, wherein the target cascade configuration information comprises a target cascade capability; the negotiating the cascade configuration information with the second cascade node based on the first cascade configuration information and the second cascade configuration information to generate the target cascade configuration information includes:
acquiring a first cascade capacity in the first cascade configuration information and a second cascade capacity in the second cascade configuration information;
and acquiring the coincidence cascade capacity between the first cascade capacity and the second cascade capacity, and taking the coincidence cascade capacity as the target cascade capacity.
4. The method of claim 3, wherein the target cascade configuration information further comprises a target cascade version of the target cascade capability; the negotiating, with the second cascaded node, of the cascaded configuration information based on the first cascaded configuration information and the second cascaded configuration information to generate the target cascaded configuration information further includes:
acquiring a first cascade version of the target cascade capacity in the first cascade configuration information and a second cascade version of the target cascade capacity in the second cascade configuration information;
and acquiring a target cascade version of the target cascade capacity based on the first cascade version and the second cascade version.
5. The method of claim 4, wherein obtaining the target cascade version of the target cascade capability based on the first cascade version and the second cascade version comprises:
acquiring a superposition cascade version between the first cascade version and the second cascade version;
and taking the coincident cascade version with the highest version as a target cascade version of the target cascade capability.
6. The method according to claim 4, wherein the obtaining a target cascade version of the target cascade capability based on the first cascade version and the second cascade version comprises:
taking the first cascaded version with the highest version as a first candidate cascaded version, and taking the second cascaded version with the highest version as a second candidate cascaded version;
if the first candidate cascade version is lower than or equal to the second candidate cascade version, taking the first candidate cascade version as a target cascade version of the target cascade capability; alternatively, the first and second electrodes may be,
and if the first candidate cascade version is higher than the second candidate cascade version, taking the second candidate cascade version as a target cascade version of the target cascade capability.
7. The method of claim 2, further comprising:
and registering the first cascading configuration information in a local cascading module.
8. The method of claim 2, further comprising:
and sending the generated target cascade configuration information to the second cascade node.
9. The method according to claim 1, wherein the obtaining target cascade configuration information after the first cascade node and the second cascade node negotiate comprises:
and receiving the target cascade configuration information sent by the second cascade node.
10. A tandem connection apparatus, adapted for use in a first tandem node, comprising:
the acquisition module is used for acquiring target cascade configuration information after the first cascade node and the second cascade node negotiate;
and the establishing module is used for establishing the cascade between the first cascade node and the second cascade node based on the target cascade configuration information.
11. The apparatus of claim 10, wherein the obtaining module is further configured to:
acquiring first cascade configuration information of the first cascade node and second cascade configuration information of the second cascade node;
and negotiating the cascade configuration information with the second cascade node based on the first cascade configuration information and the second cascade configuration information to generate the target cascade configuration information.
12. The apparatus of claim 11, further comprising: a registration module to:
and registering the first cascading configuration information in a local cascading module.
13. The apparatus of claim 11, further comprising: a sending module, configured to:
and sending the generated target cascade configuration information to the second cascade node.
14. The apparatus of claim 10, wherein the obtaining module is further configured to:
and receiving the target cascade configuration information sent by the second cascade node.
15. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements the cascading method as claimed in any one of claims 1-9.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the cascade method according to any one of claims 1-9.
CN202210236234.0A 2022-03-11 2022-03-11 Cascading method, device, electronic equipment and storage medium Active CN114640595B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210236234.0A CN114640595B (en) 2022-03-11 2022-03-11 Cascading method, device, electronic equipment and storage medium
PCT/CN2022/141863 WO2023169052A1 (en) 2022-03-11 2022-12-26 Cascading method and apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210236234.0A CN114640595B (en) 2022-03-11 2022-03-11 Cascading method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114640595A true CN114640595A (en) 2022-06-17
CN114640595B CN114640595B (en) 2023-08-18

Family

ID=81947500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210236234.0A Active CN114640595B (en) 2022-03-11 2022-03-11 Cascading method, device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114640595B (en)
WO (1) WO2023169052A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023169052A1 (en) * 2022-03-11 2023-09-14 杭州数梦工场科技有限公司 Cascading method and apparatus, electronic device, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060130050A1 (en) * 2004-11-30 2006-06-15 Christopher Betts 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 (en) * 2015-12-08 2016-04-13 中国航空工业集团公司西安航空计算技术研究所 FC switcher cascading configuration and routing realizing method
CN113157300A (en) * 2021-05-19 2021-07-23 深圳Tcl新技术有限公司 Data processing method, device and storage medium
CN113626519A (en) * 2021-07-07 2021-11-09 江苏云从曦和人工智能有限公司 Data cascade system
CN113987089A (en) * 2021-12-28 2022-01-28 北京力控元通科技有限公司 System cascading method, data processing method and device
CN114019926A (en) * 2021-11-03 2022-02-08 深圳市汇川技术股份有限公司 Communication method, device, equipment and storage medium of multi-cascade equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102739388B (en) * 2012-04-10 2015-08-26 瑞斯康达科技发展股份有限公司 The method and system of the configuration information of synchronous master-slave equipment
CN110505166B (en) * 2018-05-16 2021-09-21 杭州海康威视数字技术股份有限公司 Broadcast packet forwarding method and device, electronic equipment and readable storage medium
CN110225293B (en) * 2019-06-19 2021-11-26 苏州市科远软件技术开发有限公司 Conference cascading method and electronic equipment
US11385909B2 (en) * 2020-01-06 2022-07-12 International Business Machines Corporation Cascading data configuration and data migration
CN113422818B (en) * 2021-06-18 2022-10-25 重庆紫光华山智安科技有限公司 Data cascade transmission method, system and node equipment
CN114640595B (en) * 2022-03-11 2023-08-18 杭州数梦工场科技有限公司 Cascading method, device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060130050A1 (en) * 2004-11-30 2006-06-15 Christopher Betts 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 (en) * 2015-12-08 2016-04-13 中国航空工业集团公司西安航空计算技术研究所 FC switcher cascading configuration and routing realizing method
CN113157300A (en) * 2021-05-19 2021-07-23 深圳Tcl新技术有限公司 Data processing method, device and storage medium
CN113626519A (en) * 2021-07-07 2021-11-09 江苏云从曦和人工智能有限公司 Data cascade system
CN114019926A (en) * 2021-11-03 2022-02-08 深圳市汇川技术股份有限公司 Communication method, device, equipment and storage medium of multi-cascade equipment
CN113987089A (en) * 2021-12-28 2022-01-28 北京力控元通科技有限公司 System cascading method, data processing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
郇洪江;黎刚;陈媛;沈红军;: "基于XML技术与上层控制的农村地表水质数据交换模型研究", 安徽农业科学, no. 11 *
马峰;: "一种异构数据转换系统的实现", 科学技术创新, no. 33 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023169052A1 (en) * 2022-03-11 2023-09-14 杭州数梦工场科技有限公司 Cascading method and apparatus, electronic device, and storage medium

Also Published As

Publication number Publication date
CN114640595B (en) 2023-08-18
WO2023169052A1 (en) 2023-09-14

Similar Documents

Publication Publication Date Title
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
US10165058B2 (en) Dynamic local function binding apparatus and method
US11276037B2 (en) Search prioritization interfaces for communication platform users
CN111163130A (en) Network service system and data transmission method thereof
CN111459364B (en) Icon updating method and device and electronic equipment
CN112261094A (en) Message processing method and proxy server
CN108965359B (en) Communication method, communication device, readable medium, and electronic apparatus
CN114640595A (en) Cascading method, device, electronic equipment and storage medium
EP3016013A1 (en) Information processing device, terminal device, information processing program, and information processing method
CN112988311A (en) On-line experimental method based on WEB server
CN112073215B (en) Method for realizing application and service controller
CN106156048B (en) Method and apparatus for providing short uniform resource locator service and communication system
CN115390939B (en) Service processing method and system
CN110401709A (en) Processing method, device and the storage medium of session in a kind of instant messaging application
CN114124883B (en) Data access method and device based on cloud storage address, computer equipment and medium
CN112434064B (en) Data processing method, device, medium and electronic equipment
CN110545296A (en) Log data acquisition method, device and equipment
CN114566173A (en) Audio mixing method, device, equipment and storage medium
CN113986995A (en) Request distribution method and device, storage medium and electronic equipment
CN114490718A (en) Data output method, data output device, electronic equipment and computer readable medium
CN113392350A (en) Page routing processing method, device, equipment, storage medium and program product
CN113656286A (en) Software testing method and device, electronic equipment and readable storage medium
CN111552715A (en) User query method and device
CN115529375B (en) Interface display method and device and electronic equipment
CN110858201A (en) Data processing method and system, processor and storage medium

Legal Events

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