Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The application discloses a networking method, the flow chart of which is shown in figure 1, comprising the following steps:
step S11, determining information of local node equipment to be networked;
Step S12, determining the level information of the domain where the local node equipment is located based on the information of the local node equipment;
Step S13, determining a first node device group formed by at least one target node device meeting networking conditions, wherein the meeting networking conditions at least comprises: the grade information of the domain of the target node equipment is the same as the grade information of the domain of the local node equipment, or the grade information of the domain of the target node equipment is higher than the grade information of the domain of the local node equipment;
And step S14, each node device in the first node device group is used as a peer node device and is respectively networked with the local node device.
The networking technology is a network construction technology, and the traditional networking mode adopts a Full-Mesh network, wherein the Full-Mesh is a network connection mode, namely all nodes are directly connected, which leads to a large amount of redundancy.
In order to solve the problem, the SD-WAN technology, namely the software-defined wide area network, is a service formed by applying SDN technology to a wide area network scene, and the service is used for connecting enterprise networks, data centers, internet applications and cloud services in a wide geographic range.
In the scheme, different domains are set, each domain corresponds to at least one node device, the node devices in the different domains are different, and the grade information corresponding to the different domains is different.
Different node devices correspond to different grades, node devices at the same grade are arranged in the same domain, node devices at different grades are arranged in different domains, and the grade of the domain is characterized by the grade of the node device at the domain.
As shown in fig. 2, includes: the system comprises a primary center, a secondary center, a tertiary center and a data center which are connected through the Internet, wherein the primary center, the secondary center and the tertiary center respectively correspond to different domains, and grade information corresponding to each domain is different, such as: the grade of the primary center is higher than that of the secondary center, and the grade of the secondary center is higher than that of the tertiary center; there are different devices in each domain, such as: 3 node devices in the primary center; that is, the level of the node devices of the primary center is higher than the level of the node devices of the secondary center, which is higher than the level of the node devices of the tertiary center. The data processing device in the data center is a processor on which the networking method disclosed in this embodiment is based.
Each node device has its corresponding information, which may be identification information, such as: an ID, or other identification code for uniquely identifying the node device. The location of each node device and other relevant information can be clarified through the identification information of each node device, for example: based on the identification information, it can be determined that the node device is in city a and is used for obtaining the railway information of city a, and then the domain in which the node device is located is the domain corresponding to the secondary center in fig. 2.
When node equipment needs to be networked, the node equipment is determined to be the local node equipment, and firstly, identification information of the local node equipment needs to be determined so as to determine the domain in which the node equipment is located, thereby determining the grade information of the domain in which the local node equipment is located.
When the local node equipment needs to be networked, opposite node equipment of the local node equipment is determined, wherein the number of the opposite node equipment can be 1 or more, and the opposite node equipment is related to the number of target node equipment meeting the networking condition. And determining all target node devices meeting networking conditions as opposite terminal node devices, and networking each opposite terminal node device with the local terminal node device respectively so as to realize networking of the local terminal node device and ensure management of data.
Further, determining a first node device group formed by at least one target node device meeting networking conditions includes: and determining all node devices capable of being connected with the local node device, and selecting at least one target node device meeting networking conditions from all node devices to form a first node device group.
All nodes capable of being connected with the local end node device not only comprise all node devices in the domain where the local end node device is located, but also comprise node devices in the domain with the level higher than the level information of the domain where the local end node device is located, such as: the node devices in the domain where the local node device is located in the high-level domain can also comprise node devices in other domains, and the node devices in other domains cannot meet the networking condition under the condition that the node devices are not shared in the domain where the local node device is located.
Wherein, accord with the networking condition and include at least: the level information of the domain where the target node device is located is the same as the level information of the domain where the home node device is located.
Since the level information of different domains is different, in order to make the level information of the domain where the target node device is located the same as the level information of the domain where the home node device is located, it is necessary to ensure that the target node device and the home node device are located in the same domain. As shown in fig. 2, if the home node device is a node device in the domain of the tertiary center, the target node device is also a node device in the domain of the tertiary center.
When the target node equipment and the local node equipment are in the same domain, realizing data sharing and business interview among the node equipment in the same domain; the service management domains of different levels have their own roles, and maintenance personnel can only operate and manage the devices and service policies related to the local jurisdiction in the network, so that the logic isolation of the services among the different domains is realized.
When the business between different domains has interaction, the data interaction between the different domains is needed, at this time, the local node equipment and the opposite node equipment of the networking are required to be ensured to be in different domains, and the networking condition is met, namely, the target node equipment is in a state of sharing the domain where the local node equipment is located.
When the target node equipment is in a state of sharing the domain of the local node equipment, the information of the target node equipment can be shared to the domain of the local node equipment, namely, as long as the node equipment of the domain of the local node equipment and the target node equipment are networked when the target node equipment is in the state of sharing the domain of the local node equipment, the node equipment networked with the target node equipment can obtain the information of the target node equipment, so that networking among different domains is realized, the relations of the two different domains are gathered together, one node equipment provides service for the two domains, and a bridge for sharing the service is realized.
The opposite end node equipment and the local end node equipment are networked, and the opposite end node equipment and the local end node equipment are: and storing a networking relation between the opposite node equipment and the local node equipment, namely a topological relation in the whole networking network, generating networking information, and establishing a tunnel. The tunnel is an IPsec tunnel, the IPsec is a set of security communication protocol clusters based on a network layer and applying cryptography, and in the process of negotiating the IPsec tunnel, one party is a link initiator, i.e. a home node device, and the other party is a link receiver, i.e. a peer node device.
To facilitate networking orchestration between devices, networking can only be initiated by devices in a low-level domain to devices in a peer-level or high-level domain. Such as: the third-level central node equipment can be networked with the first-level central node equipment, the second-level central node equipment and the third-level central node equipment, and networking is initiated by the third-level central node equipment; the secondary central node equipment can be networked with the primary central node equipment and the secondary central node equipment, and networking is initiated by the secondary central node equipment; the primary central node equipment can only be networked with the primary central node equipment.
In addition, it should be noted that, the networking method in this embodiment includes not only a primary center, a secondary center, and a tertiary center node device, but also: independent node equipment and branch node equipment.
The branch node equipment, namely a control device in each domain, can be used for controlling one or more node equipment in the domain, and can be networked with primary central node equipment, secondary central node equipment and tertiary central node equipment; the independent node equipment does not carry out networking with other equipment, and can be used as primary central node equipment, secondary central node equipment or tertiary central node equipment according to requirements.
The primary central node equipment, the secondary central node equipment, the tertiary central node equipment and the branch node equipment can be used as isolated node equipment and do not participate in networking; and the complete authority node devices shared to other domains can participate in networking with only networking authorities.
When the networking method disclosed by the embodiment needs to carry out networking on the local node equipment, the equipment meeting networking conditions is selected and is networking with the local node equipment instead of networking all the node equipment with the local node equipment, so that the problem that a large number of service strategies are used for limiting the service among certain node equipment or limiting the mutual access of a certain service among the equipment in different domains is avoided; in addition, the scheme realizes the sharing and management of data among the node devices in the same domain by selecting the node devices with the same grade information as the domain in which the local node device is located and networking the node devices with the local node device; and the node equipment with the higher grade information than the domain where the local node equipment is located can be selected as the opposite node equipment, and the opposite node equipment and the local node equipment are networked, so that the sharing of data among different domains is realized, and the problem of isolation of data or business among different domains is avoided.
The embodiment discloses a networking method, a flow chart of which is shown in fig. 3, comprising the following steps:
Step S31, determining information of local node equipment to be networked;
step S32, determining the level information of the domain where the local node equipment is located based on the information of the local node equipment;
step S33, determining information of node equipment to be shared;
step S34, determining the information of the domain where the local node equipment is located;
Step S35, sharing the node equipment to be shared to the domain of the local node equipment under the condition that the information of the node equipment to be shared and the information of the domain of the local node equipment accord with the sharing condition;
step S36, determining a first node device group formed by at least one target node device meeting networking conditions, where the meeting networking conditions at least includes: the target node equipment is in a state of sharing to the domain where the local node equipment is located;
Step S37, each node device in the first node device group is used as a peer node device, and is respectively networked with the local node device.
When the node equipment to be shared is shared to the domain where the local node equipment is located, it is determined whether the sharing condition is satisfied between the node equipment to be shared and the domain where the local node equipment is located.
Firstly, determining the identification information of the node equipment to be shared, and meanwhile, determining the domain to which the node equipment to be shared needs to be shared, namely determining the identification information of the domain where the local node equipment is located, determining whether the identification information of the node equipment to be shared and the identification information of the domain where the local node equipment is located meet the sharing condition, and sharing the node equipment to be shared to the domain where the local node equipment is located when the sharing condition is met;
Or firstly determining the domain in which the local node equipment is located, namely the domain in which the node equipment information in other domains is wanted to be obtained, then determining the node equipment to be shared, determining whether the node equipment to be shared and the domain in which the local node equipment is located meet the sharing condition, sharing the node equipment to be shared to the domain in which the local node equipment is located when the sharing condition is met, and stopping the subsequent flow without sharing if the sharing condition is not met.
It should be noted that, the node devices to be shared may be shared not only to the domain where the local node device is located, but also to other domains meeting the conditions, where the domain where the local node device is located is only used for convenience of description.
Specifically, the level information of the domain where the local node equipment is located is determined based on the identification information of the domain where the local node equipment is located, the level information of the domain where the node equipment is located is determined based on the identification information of the node equipment to be shared, the level information of the domain where the local node equipment is located is compared with the level information of the domain where the node equipment is located, and if the level information of the domain where the local node equipment is located is lower than the level information of the domain where the node equipment is located, the sharing condition is met.
Because the domains are isolated from each other and the devices in different domains are not associated with each other, the node devices to be shared can be shared to the domain where the local node device is located only when the level of the domain where the local node device is located is lower than the level information of the domain where the node device to be shared is located, i.e. only the node devices in the high-level domain can be shared to the low-level domain, and the node devices in the peer domain do not need to be shared to the peer domain.
In the sharing process, whether the sharing condition is met between the plurality of node devices and the domain where the local node device is located can be determined at the same time, and if one or more node devices in the plurality of node devices meet the sharing condition, the one or more node devices meeting the sharing condition can be shared to the domain where the local node device is located at the same time.
The sharing of the node device to be shared to the domain where the local node device is located may be: the sharing relation between the node equipment to be shared and the domain where the local node equipment is located is stored, so that the system can carry out subsequent business based on the stored sharing relation, and therefore all the node equipment in the domain where the local node equipment is located can be ensured to be networked with the node equipment shared to the domain where the local node equipment is located, and business interaction or data sharing is achieved.
When the networking method disclosed by the embodiment needs to carry out networking on the local node equipment, the equipment meeting networking conditions is selected and is networking with the local node equipment instead of networking all the node equipment with the local node equipment, so that the problem that a large number of service strategies are used for limiting the service among certain node equipment or limiting the mutual access of a certain service among the equipment in different domains is avoided; in addition, the scheme realizes the sharing and management of data among the node devices in the same domain by selecting the node devices with the same grade information as the domain in which the local node device is located and networking the node devices with the local node device; and the node equipment with the higher grade information than the domain where the local node equipment is located can be selected as the opposite node equipment, and the opposite node equipment and the local node equipment are networked, so that the sharing of data among different domains is realized, and the problem of isolation of data or business among different domains is avoided.
The embodiment discloses a networking method, a flow chart of which is shown in fig. 4, comprising the following steps:
step S41, determining information of local node equipment to be networked;
Step S42, determining the level information of the domain where the local node equipment is located based on the information of the local node equipment;
Step S43, determining a first node device group formed by at least one target node device meeting networking conditions, where the meeting networking conditions at least includes: the grade information of the domain of the target node equipment is the same as the grade information of the domain of the local node equipment, or the grade information of the domain of the target node equipment is higher than the grade information of the domain of the local node equipment, and the target node equipment is in a state of sharing to the domain of the local node equipment;
Step S44, each node device in the first node device group is used as a peer node device and is respectively networked with the local node device;
step S45, obtaining sharing state adjustment information for indicating the sharing state of the ending node equipment;
Step S46, determining whether node equipment in a sharing state to be ended meets an ending condition or not based on the sharing state adjustment information;
Step S47, if the node device in the to-be-ended sharing state meets the ending condition, stopping sharing the node device in the to-be-ended sharing state to the domain where the local node device is located, so as to end the sharing state of the node device in the to-be-ended sharing state.
If the sharing state in the network needs to be adjusted, the sharing state adjustment information is obtained, and the sharing state adjustment information can be used for indicating the sharing state of the end node device.
After determining the node equipment in the sharing state to be ended, determining whether the node equipment in the sharing state to be ended meets the ending condition or not, ending the sharing state of the node equipment only when the ending condition is met, and if the ending condition is not met, continuing to keep the sharing state of the node equipment.
And ending the sharing state, namely stopping sharing the node equipment in the sharing state to be ended to the domain where the local node equipment is located, wherein any node equipment in the domain where the local node equipment is located can not perform data interaction or service interaction with the node equipment in the sharing state to be ended.
The determining whether the node device to be in the sharing state to be ended meets the ending condition comprises the following steps:
and determining whether the node equipment in the sharing state to be ended is not networked with other node equipment, and if the node equipment in the sharing state to be ended is determined not to be networked with other node equipment, enabling the node equipment in the sharing state to be ended to meet the ending condition.
And only when the node equipment in the sharing state to be ended is in a state of not networking with any other node equipment, the sharing can be ended, if the node equipment in the sharing state to be ended is in a state of networking with other node equipment, the subsequent flow is stopped, or the subsequent flow is stopped, and the sharing state of the node equipment is ended after the networking of the node equipment in the sharing state to be ended is ended.
Or only when the node equipment in the to-be-ended sharing state is in a state of not networking with the node equipment in the domain where the local end node equipment is located, the sharing can be ended, namely if the node equipment in the to-be-ended sharing state is networking with the node equipment in the domain where the local end node equipment is located, the networking is realized due to the sharing state of the node equipment in the to-be-ended sharing state, so that the sharing state of the node equipment in the to-be-ended sharing state cannot be ended in the networking process, and only when the networking with the node equipment in the domain where the local end node equipment is located is ended, the sharing state can be ended; if the node device in the to-be-ended sharing state is in a state of networking with the node device in the domain where the node device is located, the sharing with the domain where the local node device is located is not affected, so that the sharing between the node device in the to-be-ended sharing state and the domain where the local node device is located can be ended at the moment.
And finishing the sharing, namely deleting the stored sharing relationship to avoid the interaction of the data or the service with the node equipment which finishes the sharing based on the undeleted sharing relationship in the subsequent data processing or service processing process.
When the networking method disclosed by the embodiment needs to carry out networking on the local node equipment, the equipment meeting networking conditions is selected and is networking with the local node equipment instead of networking all the node equipment with the local node equipment, so that the problem that a large number of service strategies are used for limiting the service among certain node equipment or limiting the mutual access of a certain service among the equipment in different domains is avoided; in addition, the scheme realizes the sharing and management of data among the node devices in the same domain by selecting the node devices with the same grade information as the domain in which the local node device is located and networking the node devices with the local node device; and the node equipment with the higher grade information than the domain where the local node equipment is located can be selected as the opposite node equipment, and the opposite node equipment and the local node equipment are networked, so that the sharing of data among different domains is realized, and the problem of isolation of data or business among different domains is avoided.
The embodiment discloses a networking device, the structure schematic diagram of which is shown in fig. 5, comprising:
A first determining unit 51, a grade determining unit 52, a second determining unit 53 and a networking unit 54.
The first determining unit 51 is configured to determine identification information of a home node device to be networked;
the level determining unit 52 is configured to determine level information of a domain in which the home node device is located based on the identification information of the home node device;
the second determining unit 53 is configured to determine a first node device group configured by at least one target node device that meets a networking condition, where the networking condition includes at least: the grade information of the domain of the target node equipment is the same as the grade information of the domain of the local node equipment, or the grade information of the domain of the target node equipment is higher than the grade information of the domain of the local node equipment;
The networking unit 54 is configured to use each node device in the first node device group as a peer node device, and separately network with the home node device.
The networking technology is a network construction technology, and the traditional networking mode adopts a Full-Mesh network, wherein the Full-Mesh is a network connection mode, namely all nodes are directly connected, which leads to a large amount of redundancy.
In order to solve the problem, the SD-WAN technology, namely the software-defined wide area network, is a service formed by applying SDN technology to a wide area network scene, and the service is used for connecting enterprise networks, data centers, internet applications and cloud services in a wide geographic range.
In the scheme, different domains are set, each domain corresponds to at least one node device, the node devices in the different domains are different, and the grade information corresponding to the different domains is different.
Different node devices correspond to different grades, node devices at the same grade are arranged in the same domain, node devices at different grades are arranged in different domains, and the grade of the domain is characterized by the grade of the node device at the domain.
As shown in fig. 2, includes: the system comprises a primary center, a secondary center, a tertiary center and a data center which are connected through the Internet, wherein the primary center, the secondary center and the tertiary center respectively correspond to different domains, and grade information corresponding to each domain is different, such as: the grade of the primary center is higher than that of the secondary center, and the grade of the secondary center is higher than that of the tertiary center; there are different devices in each domain, such as: 3 node devices in the primary center; that is, the level of the node devices of the primary center is higher than the level of the node devices of the secondary center, which is higher than the level of the node devices of the tertiary center. The data processing device in the data center is a processor on which the networking method disclosed in this embodiment is based.
Each node device has its corresponding information, which may be identification information, such as: an ID, or other identification code for uniquely identifying the node device. The location of each node device and other relevant information can be clarified through the identification information of each node device, for example: based on the identification information, it can be determined that the node device is in city a and is used for obtaining the railway information of city a, and then the domain in which the node device is located is the domain corresponding to the secondary center in fig. 2.
When node equipment needs to be networked, the node equipment is determined to be the local node equipment, and firstly, identification information of the local node equipment needs to be determined so as to determine the domain in which the node equipment is located, thereby determining the grade information of the domain in which the local node equipment is located.
When the local node equipment needs to be networked, opposite node equipment of the local node equipment is determined, wherein the number of the opposite node equipment can be 1 or more, and the opposite node equipment is related to the number of target node equipment meeting the networking condition. And determining all target node devices meeting networking conditions as opposite terminal node devices, and networking each opposite terminal node device with the local terminal node device respectively so as to realize networking of the local terminal node device and ensure management of data.
Further, determining a first node device group formed by at least one target node device meeting networking conditions includes: and determining all node devices capable of being connected with the local node device, and selecting at least one target node device meeting networking conditions from all node devices to form a first node device group.
All nodes capable of being connected with the local end node device not only comprise all node devices in the domain where the local end node device is located, but also comprise node devices in the domain with the level higher than the level information of the domain where the local end node device is located, such as: the node devices in the domain where the local node device is located in the high-level domain can also comprise node devices in other domains, and the node devices in other domains cannot meet the networking condition under the condition that the node devices are not shared in the domain where the local node device is located.
Wherein, accord with the networking condition and include at least: the level information of the domain where the target node device is located is the same as the level information of the domain where the home node device is located.
Since the level information of different domains is different, in order to make the level information of the domain where the target node device is located the same as the level information of the domain where the home node device is located, it is necessary to ensure that the target node device and the home node device are located in the same domain. As shown in fig. 2, if the home node device is a node device in the domain of the tertiary center, the target node device is also a node device in the domain of the tertiary center.
When the target node equipment and the local node equipment are in the same domain, realizing data sharing and business interview among the node equipment in the same domain; the service management domains of different levels have their own roles, and maintenance personnel can only operate and manage the devices and service policies related to the local jurisdiction in the network, so that the logic isolation of the services among the different domains is realized.
When the business between different domains has interaction, the data interaction between the different domains is needed, at this time, the local node equipment and the opposite node equipment of the networking are required to be ensured to be in different domains, and the networking condition is met, namely, the target node equipment is in a state of sharing the domain where the local node equipment is located.
When the target node equipment is in a state of sharing the domain of the local node equipment, the information of the target node equipment can be shared to the domain of the local node equipment, namely, as long as the node equipment of the domain of the local node equipment and the target node equipment are networked when the target node equipment is in the state of sharing the domain of the local node equipment, the node equipment networked with the target node equipment can obtain the information of the target node equipment, so that networking among different domains is realized, the relations of the two different domains are gathered together, one node equipment provides service for the two domains, and a bridge for sharing the service is realized.
The opposite end node equipment and the local end node equipment are networked, and the opposite end node equipment and the local end node equipment are: and storing a networking relation between the opposite node equipment and the local node equipment, namely a topological relation in the whole networking network, generating networking information, and establishing a tunnel. The tunnel is an IPsec tunnel, the IPsec is a set of security communication protocol clusters based on a network layer and applying cryptography, and in the process of negotiating the IPsec tunnel, one party is a link initiator, i.e. a home node device, and the other party is a link receiver, i.e. a peer node device.
To facilitate networking orchestration between devices, networking can only be initiated by devices in a low-level domain to devices in a peer-level or high-level domain. Such as: the third-level central node equipment can be networked with the first-level central node equipment, the second-level central node equipment and the third-level central node equipment, and networking is initiated by the third-level central node equipment; the secondary central node equipment can be networked with the primary central node equipment and the secondary central node equipment, and networking is initiated by the secondary central node equipment; the primary central node equipment can only be networked with the primary central node equipment.
In addition, it should be noted that, the networking method in this embodiment includes not only a primary center, a secondary center, and a tertiary center node device, but also: independent node equipment and branch node equipment.
The branch node equipment, namely a control device in each domain, can be used for controlling one or more node equipment in the domain, and can be networked with primary central node equipment, secondary central node equipment and tertiary central node equipment; the independent node equipment does not carry out networking with other equipment, and can be used as primary central node equipment, secondary central node equipment or tertiary central node equipment according to requirements.
The primary central node equipment, the secondary central node equipment, the tertiary central node equipment and the branch node equipment can be used as isolated node equipment and do not participate in networking; and the complete authority node devices shared to other domains can participate in networking with only networking authorities.
Further, the networking device disclosed in this embodiment may further include: and a sharing unit.
Wherein, sharing unit is used for: and determining information of the node equipment to be shared, determining information of a domain where the local node equipment is located, and sharing the node equipment to be shared to the domain where the local node equipment is located under the condition that the information of the node equipment to be shared and the information of the domain where the local node equipment is located accord with sharing conditions.
When the node equipment to be shared is shared to the domain where the local node equipment is located, it is determined whether the sharing condition is satisfied between the node equipment to be shared and the domain where the local node equipment is located.
Firstly, determining the identification information of the node equipment to be shared, and meanwhile, determining the domain to which the node equipment to be shared needs to be shared, namely determining the identification information of the domain where the local node equipment is located, determining whether the identification information of the node equipment to be shared and the identification information of the domain where the local node equipment is located meet the sharing condition, and sharing the node equipment to be shared to the domain where the local node equipment is located when the sharing condition is met;
Or firstly determining the domain in which the local node equipment is located, namely the domain in which the node equipment information in other domains is wanted to be obtained, then determining the node equipment to be shared, determining whether the node equipment to be shared and the domain in which the local node equipment is located meet the sharing condition, sharing the node equipment to be shared to the domain in which the local node equipment is located when the sharing condition is met, and stopping the subsequent flow without sharing if the sharing condition is not met.
Specifically, the level information of the domain where the local node equipment is located is determined based on the identification information of the domain where the local node equipment is located, the level information of the domain where the node equipment is located is determined based on the identification information of the node equipment to be shared, the level information of the domain where the local node equipment is located is compared with the level information of the domain where the node equipment is located, and if the level information of the domain where the local node equipment is located is lower than the level information of the domain where the node equipment is located, the sharing condition is met.
Because the domains are isolated from each other and the devices in different domains are not associated with each other, the node devices to be shared can be shared to the domain where the local node device is located only when the level of the domain where the local node device is located is lower than the level information of the domain where the node device to be shared is located, i.e. only the node devices in the high-level domain can be shared to the low-level domain, and the node devices in the peer domain do not need to be shared to the peer domain.
In the sharing process, whether the sharing condition is met between the plurality of node devices and the domain where the local node device is located can be determined at the same time, and if one or more node devices in the plurality of node devices meet the sharing condition, the one or more node devices meeting the sharing condition can be shared to the domain where the local node device is located at the same time.
The sharing of the node device to be shared to the target domain may be: the sharing relation between the node equipment to be shared and the domain where the local node equipment is located is stored, so that the system can carry out subsequent business based on the stored sharing relation, and therefore all the node equipment in the domain where the local node equipment is located can be ensured to be networked with the node equipment shared to the domain where the local node equipment is located, and business interaction or data sharing is achieved.
Further, the networking device disclosed in this embodiment may further include: an adjusting unit.
The adjusting unit is used for obtaining sharing state adjusting information for indicating the sharing state of the ending node equipment; determining whether node equipment of a sharing state to be ended meets an ending condition or not based on the sharing state adjustment information; and if the node equipment in the to-be-ended sharing state meets the ending condition, stopping sharing the node equipment in the to-be-ended sharing state to the domain of the local node equipment so as to end the sharing state of the node equipment in the to-be-ended sharing state.
If the sharing state in the network needs to be adjusted, the sharing state adjustment information is obtained, and the sharing state adjustment information can be used for indicating the sharing state of the end node device.
After determining the node equipment in the sharing state to be ended, determining whether the node equipment in the sharing state to be ended meets the ending condition or not, ending the sharing state of the node equipment only when the ending condition is met, and if the ending condition is not met, continuing to keep the sharing state of the node equipment.
And ending the sharing state, namely stopping sharing the node equipment in the sharing state to be ended to the domain where the local node equipment is located, wherein any node equipment in the domain where the local node equipment is located can not perform data interaction or service interaction with the node equipment in the sharing state to be ended.
The determining whether the node device to be in the sharing state to be ended meets the ending condition comprises the following steps:
and determining whether the node equipment in the sharing state to be ended is not networked with other node equipment, and if the node equipment in the sharing state to be ended is determined not to be networked with other node equipment, enabling the node equipment in the sharing state to be ended to meet the ending condition.
And only when the node equipment in the sharing state to be ended is in a state of not networking with any other node equipment, the sharing can be ended, if the node equipment in the sharing state to be ended is in a state of networking with other node equipment, the subsequent flow is stopped, or the subsequent flow is stopped, and the sharing state of the node equipment is ended after the networking of the node equipment in the sharing state to be ended is ended.
Or only when the node equipment in the to-be-ended sharing state is in a state of not networking with the node equipment in the domain where the local end node equipment is located, the sharing can be ended, namely if the node equipment in the to-be-ended sharing state is networking with the node equipment in the domain where the local end node equipment is located, the networking is realized due to the sharing state of the node equipment in the to-be-ended sharing state, so that the sharing state of the node equipment in the to-be-ended sharing state cannot be ended in the networking process, and only when the networking with the node equipment in the domain where the local end node equipment is located is ended, the sharing state can be ended; if the node device in the to-be-ended sharing state is in a state of networking with the node device in the domain where the node device is located, the sharing with the domain where the local node device is located is not affected, so that the sharing between the node device in the to-be-ended sharing state and the domain where the local node device is located can be ended at the moment.
And finishing the sharing, namely deleting the stored sharing relationship to avoid the interaction of the data or the service with the node equipment which finishes the sharing based on the undeleted sharing relationship in the subsequent data processing or service processing process.
When the networking device disclosed by the embodiment needs to network the local node equipment, the equipment meeting the networking conditions needs to be selected and is networking with the local node equipment instead of networking all the node equipment with the local node equipment, so that the problem that a large number of service strategies are used for limiting the service among certain node equipment or limiting the mutual visit of a certain service among the equipment in different domains is avoided; in addition, the scheme realizes the sharing and management of data among the node devices in the same domain by selecting the node devices with the same grade information as the domain in which the local node device is located and networking the node devices with the local node device; and the node equipment with the higher grade information than the domain where the local node equipment is located can be selected as the opposite node equipment, and the opposite node equipment and the local node equipment are networked, so that the sharing of data among different domains is realized, and the problem of isolation of data or business among different domains is avoided.
The embodiment discloses a networking system, the structural schematic diagram of which is shown in fig. 6, comprising:
a processor 61 and a memory 62.
Wherein the processor 61 is configured to determine information of a home node device to be networked; determining the grade information of the domain where the local node equipment is located based on the information of the local node equipment; determining a first node device group formed by at least one target node device meeting networking conditions, wherein the networking conditions at least comprise: the grade information of the domain of the target node equipment is the same as the grade information of the domain of the local node equipment, or the grade information of the domain of the target node equipment is higher than the grade information of the domain of the local node equipment; each node device in the first node device group is used as opposite node device and is respectively networked with the local node device;
The memory 62 is used to store programs that the processor performs the steps described above.
The level information of the domain where the target node device is located is higher than the level information of the domain where the home node device is located, including:
The grade of the target node equipment is higher than that of the local node equipment, and the target node equipment is in a state of sharing to the domain where the local node equipment is located;
Wherein the node devices at the same level are arranged in the same domain, and the level of the domain is characterized by the level of the node devices at the domain.
Further, the processor is further configured to:
Determining information of node equipment to be shared; determining information of a domain where the local node equipment is located; and under the condition that the information of the node equipment to be shared and the information of the domain where the local node equipment is located accord with the sharing condition, sharing the node equipment to be shared to the domain where the local node equipment is located, wherein the information of the target node equipment and the information of the domain where the local node equipment is located accord with the sharing condition.
Further, the processor shares the node device to be shared to the domain of the local node device under the condition that the information of the node device to be shared and the information of the domain of the local node device conform to the sharing condition, including:
The processor determines the grade information of the target domain based on the information of the domain where the local node equipment is located; determining the grade information of the domain where the node equipment to be shared is located based on the information of the node equipment to be shared; comparing the grade information of the domain of the local node equipment with the grade information of the domain of the node equipment to be shared; and if the level information of the domain where the local node equipment is located is lower than the level information of the domain where the node equipment to be shared is located, sharing the node equipment to be shared to the domain where the local node equipment is located.
Further, the processor is further configured to:
Obtaining sharing state adjustment information for indicating the sharing state of the end node device; determining whether node equipment of a sharing state to be ended meets an ending condition or not based on the sharing state adjustment information; and if the node equipment in the to-be-ended sharing state meets the ending condition, stopping sharing the node equipment in the to-be-ended sharing state to the domain of the local node equipment so as to end the sharing state of the node equipment in the to-be-ended sharing state.
Further, the processor determines whether the node device to end the sharing state meets an end condition, including:
The processor determines whether the node equipment in the sharing state to be ended is not networked with other node equipment; if the node equipment in the sharing state to be ended is not networked with other node equipment, the node equipment in the sharing state to be ended meets the ending condition.
Further, the processor determines a first node device group formed by at least one target node device meeting the networking condition, including:
Determining all node devices capable of being connected with the local node device; and selecting at least one target node device meeting networking conditions from all the node devices to form a first node device group.
The networking system on which the embodiment is based is implemented based on the networking method disclosed in the foregoing embodiment, and will not be described herein.
When the networking system disclosed by the embodiment needs to perform networking on the local node equipment, the equipment meeting the networking conditions needs to be selected and is networking with the local node equipment instead of networking all the node equipment with the local node equipment, so that the problem that a large number of service strategies are used for limiting the service among certain node equipment or limiting the mutual access of a certain service among the equipment in different domains is avoided; in addition, the scheme realizes the sharing and management of data among the node devices in the same domain by selecting the node devices with the same grade information as the domain in which the local node device is located and networking the node devices with the local node device; and the node equipment with the higher grade information than the domain where the local node equipment is located can be selected as the opposite node equipment, and the opposite node equipment and the local node equipment are networked, so that the sharing of data among different domains is realized, and the problem of isolation of data or business among different domains is avoided.
The present application also provides a computer readable storage medium having stored thereon a computer program having stored thereon at least a set of instructions which when executed implement a networking method as provided by the above embodiments.
In the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, and identical and similar parts between the embodiments are all enough to refer to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.