CN108737198B - Method, system and related device for rapidly deploying switch - Google Patents

Method, system and related device for rapidly deploying switch Download PDF

Info

Publication number
CN108737198B
CN108737198B CN201810654740.5A CN201810654740A CN108737198B CN 108737198 B CN108737198 B CN 108737198B CN 201810654740 A CN201810654740 A CN 201810654740A CN 108737198 B CN108737198 B CN 108737198B
Authority
CN
China
Prior art keywords
switch
switches
configuration information
whole network
deployment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810654740.5A
Other languages
Chinese (zh)
Other versions
CN108737198A (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.)
Shenzhen Sundray Technologies Co ltd
Original Assignee
Shenzhen Sundray Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Sundray Technologies Co ltd filed Critical Shenzhen Sundray Technologies Co ltd
Priority to CN201810654740.5A priority Critical patent/CN108737198B/en
Publication of CN108737198A publication Critical patent/CN108737198A/en
Application granted granted Critical
Publication of CN108737198B publication Critical patent/CN108737198B/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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • H04L41/0661Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
    • 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/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method for rapidly deploying switches, which is characterized in that a whole network topological graph containing position structure information of all switches and corresponding configuration information is issued to one switch, after deployment is completed by utilizing the information contained in the whole network topological graph, the whole network topological graph is issued to all connected other switches as a root switch, and when one other switch completes deployment, the whole network topological graph is continuously and repeatedly issued as a new root switch until all switches in a network are completely deployed. Because the topology map of the whole network carries the switch information corresponding to all layers and positions, the switch information can be obtained only from the recently connected switches, and as the number of layers increases, the number of switches which become a new root switch to execute the issuing operation increases, and the deployment of the whole network switches can be completed quickly in a virus mode. The application also discloses a system and a device for rapidly deploying the switch and a computer readable storage medium, which have the beneficial effects.

Description

Method, system and related device for rapidly deploying switch
Technical Field
The present application relates to the field of switch technologies, and in particular, to a method, a system, an apparatus, and a computer-readable storage medium for quickly deploying a switch.
Background
With the development of network technology, people can easily access to the internet through any intelligent device at any place covering network signals, and the network signal transmitting device cannot be realized only by a single network signal transmitting device, so that the signal transmitting device such as a router and a switch is greatly utilized in practice. The network constructed in a certain range, except the most basic server, is the most important one is the switch.
A switch is a network device for electrical (optical) signal forwarding that provides an exclusive electrical signal path for any two network nodes accessing the switch. The traditional switch has complete and relatively independent functions, namely the traditional switch can complete the configuration of parameters and carry out subsequent work by the traditional switch, but the efficiency is seriously reduced due to the one-to-one configuration along with the increase of the number of the switches, so that a novel thin switch appears. The thin switches do not work and configure independently, but are managed and configured uniformly by an upper network Controller (Net Access Controller, abbreviated as AC), so the thin switches must be used together with the AC.
In the prior art, when a switch is newly added, the position and configuration information of the newly added switch need to be marked on a topological graph in advance, then activation is completed on an AC at first, the newly added switch is actually accessed to a corresponding position in a network, and finally the configuration information configured at first can be obtained to complete the deployment of the newly added switch. Similar steps are needed to modify the configuration information of one switch, because all the switches at all the layers need to acquire the configuration information from the AC to complete the deployment in the network, the switches at the second layer, the third layer and even deeper layers need to be forwarded layer by layer, the steps are very complex, the consumed time is more, and the use effect in the network with more layers and complex connection relationship is not good.
Therefore, how to overcome various technical defects of the existing switch deployment scheme and provide a switch deployment method with fewer steps, more time consumption, better use effect in a network with more layers and complex connection relationship is a problem to be solved urgently by technical personnel in the field.
Disclosure of Invention
The method comprises the steps of issuing a whole network topological graph containing position structure information and corresponding configuration information of all switches to one switch, serving as a root switch to issue the whole network topological graph to all connected other switches after the deployment is completed by utilizing the information contained in the whole network topological graph, and continuing to repeat issuing operation as a new root switch every time one other switch completes the deployment until all the switches in a network are completely deployed. Because the topology map of the whole network carries the switch information corresponding to all layers and positions, the switch information can be obtained only from the recently connected switches, and as the number of layers increases, the number of switches which become a new root switch to execute the issuing operation increases, and the deployment of the whole network switches can be completed quickly in a virus mode.
It is another object of the present application to provide a system, apparatus, and computer-readable storage medium for rapid deployment of switches.
In order to achieve the above object, the present application provides a method for rapidly deploying a switch, including:
acquiring a whole network topological graph which is obtained based on the drawn and acquired technology and contains the deployment relation of all switches in the network and the configuration information required by all the switches on line, and storing the topological graph on an AC;
issuing the whole network topological graph to a root switch, and finishing the deployment of the root switch by using the contained configuration information; the root switch is a switch with the first station accessed to the AC;
when the root switch is deployed, issuing the whole network topology map to all other switches connected with the root switch so as to enable all the other switches to complete deployment according to the configuration information;
and when any other switch is deployed, the other switch becomes a new root switch, and the whole network topology map is sent to all switches connected with the new root switch until all switches in the network are deployed.
Optionally, issuing the topology map of the whole network to all other switches connected to the root switch, so that each of the other switches completes deployment according to the configuration information, including:
determining all other switches connected with the root switch according to the whole network topological graph, and determining corresponding communication ports;
and sending the whole network topological graph to other corresponding switches by using the communication ports so that the other switches complete deployment according to the configuration information.
Optionally, issuing the entire network topology map to the corresponding other switches by using the communication port, so that the other switches complete deployment according to the configuration information, including:
broadcasting SSPDU notification messages to other corresponding switches through the communication ports by utilizing an SSPDU communication protocol;
when the other switches receive the SSPDU notification message, the STP is opened, and an ACK signal is returned to the root switch;
the root switch sends the whole network topology map to other switches sending the ACK signals through the communication ports;
and the other switches complete deployment according to the received configuration information contained in the topology map of the whole network.
Optionally, the method further includes:
when a first switch is offline in a network due to configuration abnormity and a second switch is online, modifying the configuration information of the first switch in a whole network topological graph stored on the AC to obtain modified configuration information; the first switch and the second switch are two same-layer switches which are both accessed to the root switch, and the second switch is still connected with the first switch;
and issuing the modified configuration information to the root switch, issuing the modified configuration information to the second switch by the root switch, and finally forwarding the modified configuration information to the first switch in an off-line state by the second switch so that the first switch is on-line again after the modified configuration information is configured.
Optionally, before issuing the topology map to all other switches connected to the root switch, the method further includes:
initializing configuration information of all switches at the same layer and lower layers to be connected with the root switch.
To achieve the above object, the present application further provides a system for rapidly deploying a switch, including:
the system comprises a whole network topological graph obtaining and storing unit, a topology graph obtaining and storing unit and a topology graph storing unit, wherein the whole network topological graph obtaining and storing unit is used for obtaining a whole network topological graph which is obtained based on a drawn technology and contains the deployment relation of all switches in a network and configuration information required by all the switches on line and storing the whole network topological graph on an AC;
the first issuing and deploying unit is used for issuing the whole network topological graph to a root switch and completing the deployment of the root switch by using the contained configuration information; the root switch is a switch with the first station accessed to the AC;
the second issuing and deploying unit is used for issuing the whole network topology map to all other switches connected with the root switch after the root switch is deployed so as to enable all the other switches to complete deployment according to the configuration information;
and the third issuing and deploying unit is used for becoming a new root switch after any one of the other switches completes deployment, and issuing the whole network topological graph to all switches connected with the new root switch until all switches in the network complete deployment.
Optionally, the first issuing and deploying unit includes:
the other switches and the corresponding communication port determining subunit are used for determining all other switches connected with the root switch according to the whole network topological graph and determining corresponding communication ports;
and the first issuing and deploying subunit is used for issuing the whole network topology map to other corresponding switches by using the communication port so as to enable the other switches to complete deployment according to the configuration information.
Optionally, the first issuing and deploying subunit includes:
the SSPDU notification message broadcasting module is used for broadcasting an SSPDU notification message to other corresponding switches through the communication port by utilizing an SSPDU communication protocol;
an STP opening and ACK signal returning module, configured to open an STP and return an ACK signal to the root switch when the other switches receive the SSPDU notification message;
a topology map sending module, configured to send the topology map to other switches that send the ACK signal through the communication port by the root switch;
and the other switch deployment module is used for completing deployment of the other switches according to the received configuration information contained in the whole network topological graph.
Optionally, the system further comprises:
the configuration information modification unit is used for modifying the configuration information of the first switch in the whole network topological graph stored on the AC when the first switch is off-line in the network due to abnormal configuration and the second switch is on-line so as to obtain modified configuration information; the first switch and the second switch are two same-layer switches which are both accessed to the root switch, and the second switch is still connected with the first switch;
and the re-online unit is used for issuing the modified configuration information to the root switch, issuing the modified configuration information to the second switch by the root switch, and finally forwarding the modified configuration information to the first switch in an offline state by the second switch so that the first switch is re-online after the modified configuration information is configured.
Optionally, the system further comprises:
a configuration information initializing unit, configured to initialize configuration information of all switches in the same layer and the switches in the lower layer to be connected to the root switch.
In order to achieve the above object, the present application further provides an apparatus for rapidly deploying a switch, the apparatus including:
a memory for storing a computer program;
a processor for implementing the steps of the method for rapid deployment of switches as described above when executing the computer program.
To achieve the above object, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for rapid deployment of switches as described above.
Obviously, the method for rapidly deploying the switches provided by the application issues the entire network topology map including the position structure information of all the switches and the corresponding configuration information to one switch, and after the deployment is completed by using the information included in the entire network topology map, the entire network topology map is issued to all the connected other switches as the root switch, and when one other switch completes the deployment, the entire network topology map is continuously issued again as a new root switch until all the switches in the network are completely deployed. Because the topology map of the whole network carries the switch information corresponding to all layers and positions, the switch information can be obtained only from the recently connected switches, and as the number of layers increases, the number of switches which become a new root switch to execute the issuing operation increases, and the deployment of the whole network switches can be completed quickly in a virus mode. The application also provides a system and a device for rapidly deploying the switch and a computer readable storage medium, which have the beneficial effects and are not repeated herein.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for rapidly deploying a switch according to an embodiment of the present application;
fig. 2 is a flowchart of a method for issuing a topology of an entire network and deploying a root switch in the method for rapidly deploying a switch according to the embodiment of the present application;
fig. 3 is a flowchart of a method for processing an offline switch due to a configuration exception in a method for rapidly deploying a switch according to an embodiment of the present application;
fig. 4 is a schematic diagram of a connection manner of a switch according to an embodiment of the present application;
fig. 5 is a block diagram of a system for rapidly deploying a switch according to an embodiment of the present application;
fig. 6 is a timing diagram illustrating an actual operation procedure of the system for rapidly deploying switches according to the embodiment of the present application.
Detailed Description
The core of the application is to provide a method, a system, a device and a computer readable storage medium for rapidly deploying switches, wherein a whole network topological graph containing position structure information of all switches and corresponding configuration information is issued to one switch, after deployment is completed by using the information contained in the whole network topological graph, the whole network topological graph is issued to all connected other switches as a root switch, and when one other switch completes deployment, the whole network topological graph is continuously and repeatedly issued as a new root switch until all switches in a network are completely deployed. Because the topology map of the whole network carries the switch information corresponding to all layers and positions, the switch information can be obtained only from the recently connected switches, and as the number of layers increases, the number of switches which become a new root switch to execute the issuing operation increases, and the deployment of the whole network switches can be completed quickly in a virus mode.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a method for rapidly deploying a switch according to an embodiment of the present application.
The method specifically comprises the following steps:
s101: acquiring a whole network topological graph which is obtained based on the drawn and acquired technology and contains the deployment relation of all switches in the network and the configuration information required by all the switches on line, and storing the topological graph on an AC;
the method is characterized in that the whole network topological graph containing configuration information required by the online of each switch is obtained, and the method is different from the traditional mode of collecting network construction information and drawing to obtain the whole network topological graph. In brief, the switch configuration mode of the original table format is changed into an intuitive topology, and each point in the topology can be intuitively and directly changed into the configuration.
In general, before the whole network is constructed, the topology map of the whole network can be obtained according to the design requirements of customers, and only the configuration information required by the switches corresponding to the preset positions of the online line needs to be added.
S102: issuing a topology graph of the whole network to a root switch, and finishing the deployment of the root switch by using the contained configuration information; wherein, the root switch is a switch with the first switch accessing the AC;
on the basis of S101, this step is intended to issue the generated entire network topology map to the first switch accessing the AC, and since the switch is the first switch accessing the AC, and the other switches on the same layer and lower layers will also implement issuing the entire network topology map by means of the switch, the switch may be referred to as a root switch, that is, the first switch accessing the AC is referred to as a root switch.
After the topology map of the whole network is sent to the root switch, the root switch can acquire the configuration information corresponding to the position of the root switch from the topology map of the whole network, and complete the deployment of the root switch according to the configuration information.
S103: after the root switch is deployed, issuing a topology graph of the whole network to all other switches connected with the root switch so as to enable all other switches to complete deployment according to the configuration information;
the step is established on the basis that the root switch completes deployment according to the whole network topological graph issued by the AC, and aims to issue the whole network topological graph to all other switches establishing connection relations with the root switch by the root switch, so that all other switches establishing connection relations with the root switch can also realize self deployment according to the received whole network topological graph. The other switches specifically include a same-layer switch in the same layer as the root switch and a lower-layer switch located below the root switch.
Specifically, how to implement how to issue the entire network topology map to the other switches by the root switch is various, and in general, a data transmission channel may be determined from the connection relationship and the corresponding communication port included in the topology map, so as to transmit data through the data transmission channel, and finally, the other switches complete deployment according to the received data (the entire network topology map).
Further, before the entire network topology is sent to all other switches connected to the root switch, in order to prevent the switches from storing the configuration information of the previous shutdown port to cause a subsequent error, an initialization operation may be performed on the switches to clear unnecessary configuration information.
S104: and when any other switch is deployed, the switch becomes a new root switch, and a whole network topology map is issued to all switches connected with the new root switch until all switches in the network are deployed.
The step is established on the basis that the deployment of other switches is completed according to the whole network topological graph issued by the root switch, when the other switches which are connected with the root switch complete the self deployment according to the whole network topological graph issued by the root switch, the other switches become new root switches as the root switch which is connected with the AC at the beginning, and continue to issue the whole network topological graph to all the switches which are connected with the new root switch according to the same mode until all the switches in the network complete the deployment.
Further, according to the switch deployment method provided by the application, even when a certain switch is offline on the network due to configuration abnormality (IP, routing, Vlan, etc.), forwarding of the updated configuration information can be completed by other switches of the same layer connected to the certain switch, so that the offline switch is finally brought online again according to the received updated configuration information. The reason is that each switch stores the whole network topological graph, so that the switch connected with the switch can be determined according to the whole network topological graph, and all configuration information of other switches is also included, so that the off-line switch caused by configuration abnormality can be remotely repaired in such a way, and the switch is not required to be repaired by being connected with a corresponding serial port on site.
The switch deployment mode provided by the application is similar to chain reaction and cell division in principle, and the similar point is that the switch deployment mode can be propagated and 'propagated' in a virus mode.
Based on the above technical solution, the method for rapidly deploying switches provided in the embodiments of the present application issues a whole network topology map including position structure information of all switches and corresponding configuration information to one switch, and after deployment is completed by using information included in the whole network topology map, the whole network topology map is issued to all connected other switches as a root switch, and when one other switch completes deployment, the whole network topology map is continuously issued as a new root switch repeatedly until all switches in a network are completely deployed. Because the topology map of the whole network carries the switch information corresponding to all layers and positions, the switch information can be obtained only from the recently connected switches, and as the number of layers increases, the number of switches which become a new root switch to execute the issuing operation increases, and the deployment of the whole network switches can be completed quickly in a virus mode.
With reference to fig. 2, fig. 2 is a flowchart of a method for issuing an entire network topology and deploying a root switch in a method for deploying switches quickly according to an embodiment of the present application.
The method specifically comprises the following steps:
s201: determining all other switches connected with the root switch according to the topology map of the whole network, and determining corresponding communication ports;
s202: and issuing the whole network topological graph to other corresponding switches by using the communication port so that the other switches complete the deployment according to the configuration information.
For the step S202, a more practical specific operation step is given:
step 1: broadcasting SSPDU notification messages to other corresponding switches through a communication port by utilizing an SSPDU communication protocol;
step 2: when other switches receive the SSPDU notification message, the STP is opened, and an ACK signal is returned to the root switch;
and step 3: the root switch sends the topology map of the whole network to other switches which send ACK signals through communication ports;
and 4, step 4: and other switches complete deployment according to the received configuration information contained in the topology map of the whole network.
The SSPDU communication Protocol used herein is a private two-layer communication Protocol, which is called a sun Switch Protocol Data Unit, and is used for communication between two switches, and has the characteristics of cross-Vlan propagation and capability of penetrating a blocking port, and the Switch does not forward the packet, and the Switch that needs to be used in a supporting manner can support the private communication Protocol; STP is called as Spanning Tree Protocol in Chinese, the Protocol can be applied to establishing Tree topology in network, eliminating loop in network, and realizing path redundancy by certain method, but not necessarily realizing path redundancy; the ACK signal is a reception feedback signal, and the feedback is different according to the actual situation, and the purpose used herein is to feed back a signal that the transmission information is actually received to the transmission side from the reception side.
Of course, other disclosed two-layer communication protocols may be used, and implementing communication between two switches by the disclosed two-layer communication protocols requires that the two switches be under the same Vlan and that the communication port cannot be in a blocking state. Therefore, an appropriate manner can be flexibly selected according to actual conditions, and is not particularly limited herein.
With reference to fig. 3, fig. 3 is a flowchart of a method for processing an offline switch due to a configuration exception in a method for rapidly deploying a switch according to an embodiment of the present application.
S301: when the first switch is off-line in the network due to configuration abnormity and the second switch is on-line, modifying the configuration information of the first switch in the whole network topological graph stored on the AC to obtain modified configuration information;
it should be noted that the first switch and the second switch are two switches in the same layer, which are both connected to the same root switch, and the second switch remains connected to the first switch.
S302: and sending the modified configuration information to the root switch, sending the modified configuration information to the second switch by the root switch, and finally forwarding the modified configuration information to the first switch in the off-line state by the second switch so that the first switch is on-line again after the modified configuration information is configured.
Referring to fig. 4, fig. 4 is a schematic diagram of a switch connection manner provided in the embodiment of the present application, where the first switch and the second switch are both connected to a root switch, that is, the first switch and the second switch are both used as lower layers of the root switch and exist in the same layer, and meanwhile, a connection relationship exists between the second switch and the first switch.
Based on the above technical solution, the method for rapidly deploying switches provided in the embodiments of the present application issues a whole network topology map including position structure information of all switches and corresponding configuration information to one switch, and after deployment is completed by using information included in the whole network topology map, the whole network topology map is issued to all connected other switches as a root switch, and when one other switch completes deployment, the whole network topology map is continuously issued as a new root switch repeatedly until all switches in a network are completely deployed. Because the topology map of the whole network carries the switch information corresponding to all layers and positions, the switch information can be obtained only from the recently connected switches, and as the number of layers increases, the number of switches which become a new root switch to execute the issuing operation increases, and the deployment of the whole network switches can be completed quickly in a virus mode.
Because the situation is complicated and cannot be illustrated by a list, a person skilled in the art can realize that many examples exist according to the basic method principle provided by the application and the practical situation, and the protection scope of the application should be protected without enough inventive work.
Referring to fig. 5, fig. 5 is a block diagram of a system for rapidly deploying a switch according to an embodiment of the present application, where the system may include:
a whole network topology map obtaining and storing unit 100, configured to obtain a whole network topology map that includes a deployment relationship of each switch in a network and configuration information required by each switch online and is obtained based on a drawn-as-you-go technology, and store the whole network topology map on an AC;
the first issuing and deploying unit 200 is configured to issue the entire network topology map to the root switch, and complete deployment of the root switch by using the included configuration information; wherein, the root switch is a switch with the first switch accessing the AC;
the second issuing and deploying unit 300 is configured to issue the topology map of the entire network to all other switches connected to the root switch after the root switch is deployed, so that each other switch completes deployment according to the configuration information;
and a third issuing and deploying unit 400, configured to, after any one of the other switches completes deployment, become a new root switch, and issue the entire network topology to all switches connected to the new root switch until all switches in the network complete deployment.
The first issuing and deploying unit 200 includes:
the other switches and the corresponding communication ports determine the subunit, which is used for determining all other switches connected with the root switch according to the topology map of the whole network and determining the corresponding communication ports;
and the first issuing and deploying subunit is used for issuing the whole network topology map to the corresponding other switches by using the communication ports so as to enable the other switches to complete deployment according to the configuration information.
Wherein, the first issuing and deploying subunit comprises:
the SSPDU notification message broadcasting module is used for broadcasting the SSPDU notification message to other corresponding switches through the communication port by utilizing an SSPDU communication protocol;
the STP opening and ACK signal returning module is used for opening the STP and returning an ACK signal to the root switch when other switches receive the SSPDU notification message;
the whole network topology map sending module is used for sending the whole network topology map to other switches which send ACK signals through the communication ports by the root switch;
and the other switch deployment module is used for completing deployment of other switches according to the received configuration information contained in the whole network topological graph.
Further, the system may further include:
the configuration information modification unit is used for modifying the configuration information of the first switch in the whole network topological graph stored on the AC when the first switch is off-line in the network due to abnormal configuration and the second switch is on-line so as to obtain modified configuration information; the first switch and the second switch are two same-layer switches which are both connected with the root switch, and the second switch is still connected with the first switch;
the re-online unit is used for issuing the modified configuration information to the root switch, issuing the modified configuration information to the second switch by the root switch, and finally forwarding the modified configuration information to the first switch in an offline state by the second switch so as to enable the first switch to be online again after the modified configuration information is configured;
and the configuration information initialization unit is used for initializing the configuration information of all the same-layer switches and lower-layer switches which are connected with the root switch.
With reference to fig. 6, with reference to the foregoing embodiment, fig. 6 is a timing diagram of an actual operation step of the system for rapidly deploying a switch provided in the embodiment of the present application, and fig. 6 shows an operation step of specifically implementing the rapid deployment switch described in the present application, where the private communication protocol of SSPDU is used:
1. the first root switch is activated and deployed in the AC, and then an SSPDU notification message is broadcasted to the connected sub-switch A at regular time;
2. when the sub-switch A receives the SSPDU notification message, opening the STP of the sub-switch A;
3. after the STP of the sub-switch A is opened, an ACK signal is returned to the root switch to inform the root switch that the sub-switch A can receive the data and send the data;
4. after receiving the ACK signal sent by the sub-switch A, the root switch unicasts an SSPDU configuration message to the sub-switch A;
5. the sub-switch A configures the received configuration information on the sub-switch A to complete the deployment of the sub-switch A;
6. after the sub-switch A completes the self deployment, an ACK signal is returned to the root switch to inform the root switch that the SSPDU configuration message does not need to be unicast to the sub-switch A;
7.1, after receiving the second ACK signal of the sub-switch A, the root switch stops unicasting an SSPDU configuration message to the sub-switch A;
7.2, the sub-switch A which finishes the deployment becomes a new root switch and broadcasts SSPDU notification message to the sub-switch B at regular time, and the subsequent steps from 8 to 13.1 are repeated to the sub-switch B as the same role as the root switch in the steps from 1 to 7.1, and after the deployment of the sub-switch B is finished, the sub-switch B repeats the steps with the same role until all switches in the network finish the deployment.
Furthermore, on the principle of only sending necessary information, when the whole network topological graph is issued to other exchangers, only the target exchanger and the same-layer exchanger and the lower-layer exchanger which have connection relation with the target exchanger are selected, and the upper-layer exchanger part accessed by the target exchanger is removed, because the information is issued only by the same-layer transmission and the upper layer to the lower layer, the clock is not required to contain all the whole network topological graphs; however, in consideration of other principles, such as a unified principle and a redundancy principle, the entire network topology may also be issued all the time, which is not specifically limited herein, and may be implemented by selecting a suitable manner according to different actual situations.
Based on the above content, the method and the system realize virus-type configuration diffusion to the connected and adjacent switches by means of a mode of storing the whole network topological graph and the whole network switch key configuration in the switch and by means of the appointed root switch after completing online according to the whole network topological graph and the whole network switch key configuration, so as to realize rapid deployment of the whole network switch, and the switch is free of activation and manual configuration after replacement, so that plug and play are realized, and when a certain switch is offline due to configuration abnormality, the diffusion of configuration information can be realized by means of the switch as long as one switch connected with the switch is online, so that the offline switch is online again.
Based on the foregoing embodiments, the present application further provides an apparatus for rapidly deploying a switch, where the apparatus may include a memory and a processor, where the memory stores a computer program, and when the processor calls the computer program in the memory, the steps provided in the foregoing embodiments may be implemented. Of course, the device may also include various necessary network interfaces, power supplies, and other components.
The present application also provides a computer-readable storage medium, on which a computer program is stored, which, when executed by an execution terminal or processor, can implement the steps provided by the above-mentioned embodiments. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
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 components and steps have been described above generally in terms of their functionality in order to clearly illustrate this 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 implementation. 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 principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It will be apparent to those skilled in the art that various changes and modifications can be made in the present invention without departing from the principles of the invention, and these changes and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (12)

1. A method for rapid deployment of switches, comprising:
acquiring a whole network topological graph which is obtained based on a drawn and obtained technology and contains the deployment relation of all switches in a network and the configuration information required by all the switches on line, and storing the topological graph on an AC, wherein the drawn and obtained technology is a technology for building the whole network topological graph by dragging the switches and connecting lines under an exclusive operation page, and automatically popping up configuration interfaces of all parameters when building the access relation of an upper layer and a lower layer so as to realize the deployment relation among the switches;
issuing the whole network topological graph to a root switch, and finishing the deployment of the root switch by using the contained configuration information; the root switch is a switch with the first station accessed to the AC;
when the root switch is deployed, issuing the whole network topology map to all other switches connected with the root switch so as to enable all the other switches to complete deployment according to the configuration information;
and when any other switch is deployed, the other switch becomes a new root switch, and the whole network topology map is sent to all switches connected with the new root switch until all switches in the network are deployed.
2. The method of claim 1, wherein issuing the entire network topology map to all other switches connected to the root switch to enable each of the other switches to complete deployment according to the configuration information comprises:
determining all other switches connected with the root switch according to the whole network topological graph, and determining corresponding communication ports;
and sending the whole network topological graph to other corresponding switches by using the communication ports so that the other switches complete deployment according to the configuration information.
3. The method according to claim 2, wherein issuing the entire network topology map to the other corresponding switches by using the communication ports so that the other switches complete deployment according to the configuration information comprises:
broadcasting SSPDU notification messages to other corresponding switches through the communication ports by utilizing an SSPDU communication protocol;
when the other switches receive the SSPDU notification message, the STP is opened, and an ACK signal is returned to the root switch;
the root switch sends the whole network topology map to other switches sending the ACK signals through the communication ports;
and the other switches complete deployment according to the received configuration information contained in the topology map of the whole network.
4. The method of claim 3, further comprising:
when a first switch is offline in a network due to configuration abnormity and a second switch is online, modifying the configuration information of the first switch in a whole network topological graph stored on the AC to obtain modified configuration information; the first switch and the second switch are two same-layer switches which are both accessed to the root switch, and the second switch is still connected with the first switch;
and issuing the modified configuration information to the root switch, issuing the modified configuration information to the second switch by the root switch, and finally forwarding the modified configuration information to the first switch in an off-line state by the second switch so that the first switch is on-line again after the modified configuration information is configured.
5. The method of claim 3, further comprising, before forwarding the entire network topology map to all other switches connected to the root switch:
initializing configuration information of all switches at the same layer and lower layers to be connected with the root switch.
6. A system for rapid deployment of switches, comprising:
the system comprises a whole network topological graph obtaining and storing unit, a whole network topological graph obtaining and storing unit and an AC (alternating Current) unit, wherein the whole network topological graph obtaining and storing unit is used for obtaining a whole network topological graph which is obtained based on a drawn and obtained technology and contains the deployment relation of all switches in a network and configuration information required by all switches on the line, and the drawn and obtained technology is a technology for building the whole network topological graph in a mode of dragging the switches and connecting lines under a special operation page, and when the upper layer access relation and the lower layer access relation are built, configuration interfaces of all parameters can be automatically popped up so as to realize the deployment relation among the switches;
the first issuing and deploying unit is used for issuing the whole network topological graph to a root switch and completing the deployment of the root switch by using the contained configuration information; the root switch is a switch with the first station accessed to the AC;
the second issuing and deploying unit is used for issuing the whole network topology map to all other switches connected with the root switch after the root switch is deployed so as to enable all the other switches to complete deployment according to the configuration information;
and the third issuing and deploying unit is used for becoming a new root switch after any one of the other switches completes deployment, and issuing the whole network topological graph to all switches connected with the new root switch until all switches in the network complete deployment.
7. The system of claim 6, wherein the first delivery and deployment unit comprises:
the other switches and the corresponding communication port determining subunit are used for determining all other switches connected with the root switch according to the whole network topological graph and determining corresponding communication ports;
and the first issuing and deploying subunit is used for issuing the whole network topology map to other corresponding switches by using the communication port so as to enable the other switches to complete deployment according to the configuration information.
8. The system of claim 7, wherein the first delivery and deployment subunit comprises:
the SSPDU notification message broadcasting module is used for broadcasting an SSPDU notification message to other corresponding switches through the communication port by utilizing an SSPDU communication protocol;
an STP opening and ACK signal returning module, configured to open an STP and return an ACK signal to the root switch when the other switches receive the SSPDU notification message;
a topology map sending module, configured to send the topology map to other switches that send the ACK signal through the communication port by the root switch;
and the other switch deployment module is used for completing deployment of the other switches according to the received configuration information contained in the whole network topological graph.
9. The system of claim 8, further comprising:
the configuration information modification unit is used for modifying the configuration information of the first switch in the whole network topological graph stored on the AC when the first switch is off-line in the network due to abnormal configuration and the second switch is on-line so as to obtain modified configuration information; the first switch and the second switch are two same-layer switches which are both accessed to the root switch, and the second switch is still connected with the first switch;
and the re-online unit is used for issuing the modified configuration information to the root switch, issuing the modified configuration information to the second switch by the root switch, and finally forwarding the modified configuration information to the first switch in an offline state by the second switch so that the first switch is re-online after the modified configuration information is configured.
10. The system of claim 9, further comprising:
a configuration information initializing unit, configured to initialize configuration information of all switches in the same layer and the switches in the lower layer to be connected to the root switch.
11. An apparatus for rapid deployment of switches, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method of rapidly deploying a switch as claimed in any of claims 1 to 5 when executing said computer program.
12. A computer-readable storage medium, characterized in that it has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for rapid deployment of switches according to any one of claims 1 to 5.
CN201810654740.5A 2018-06-22 2018-06-22 Method, system and related device for rapidly deploying switch Active CN108737198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810654740.5A CN108737198B (en) 2018-06-22 2018-06-22 Method, system and related device for rapidly deploying switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810654740.5A CN108737198B (en) 2018-06-22 2018-06-22 Method, system and related device for rapidly deploying switch

Publications (2)

Publication Number Publication Date
CN108737198A CN108737198A (en) 2018-11-02
CN108737198B true CN108737198B (en) 2021-08-13

Family

ID=63930660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810654740.5A Active CN108737198B (en) 2018-06-22 2018-06-22 Method, system and related device for rapidly deploying switch

Country Status (1)

Country Link
CN (1) CN108737198B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768746B (en) * 2018-06-19 2021-10-01 上海市共进通信技术有限公司 Self-adaptive sharing configuration method of ONT (optical network terminal) in 10G (gigabit) optical network system
CN109474508B (en) * 2018-12-28 2022-04-29 深信服科技股份有限公司 VPN networking method, VPN networking system, VPN master node equipment and VPN master node medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483529A (en) * 2009-02-13 2009-07-15 北京星网锐捷网络技术有限公司 Modularized switch and operating method thereof
CN102594689A (en) * 2012-02-22 2012-07-18 中兴通讯股份有限公司 Distributed network control method and device
CN104104572A (en) * 2014-07-15 2014-10-15 杭州华三通信技术有限公司 Automatic deploying method and device for switch in SDN network
CN104767676A (en) * 2014-01-03 2015-07-08 华为技术有限公司 Data message forwarding method and data message forwarding system in software defined network (SDN)
CN105933253A (en) * 2016-04-13 2016-09-07 浪潮集团有限公司 Switch configuration recovery method in SDN (Software Defined Networking)
CN106302182A (en) * 2015-06-08 2017-01-04 上海宽带技术及应用工程研究中心 Detecting host method and system based on SDN
TW201817199A (en) * 2016-10-27 2018-05-01 鴻海精密工業股份有限公司 Transmission path optimization method and software-defined networking controller using the method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483529A (en) * 2009-02-13 2009-07-15 北京星网锐捷网络技术有限公司 Modularized switch and operating method thereof
CN102594689A (en) * 2012-02-22 2012-07-18 中兴通讯股份有限公司 Distributed network control method and device
CN104767676A (en) * 2014-01-03 2015-07-08 华为技术有限公司 Data message forwarding method and data message forwarding system in software defined network (SDN)
CN104104572A (en) * 2014-07-15 2014-10-15 杭州华三通信技术有限公司 Automatic deploying method and device for switch in SDN network
CN106302182A (en) * 2015-06-08 2017-01-04 上海宽带技术及应用工程研究中心 Detecting host method and system based on SDN
CN105933253A (en) * 2016-04-13 2016-09-07 浪潮集团有限公司 Switch configuration recovery method in SDN (Software Defined Networking)
TW201817199A (en) * 2016-10-27 2018-05-01 鴻海精密工業股份有限公司 Transmission path optimization method and software-defined networking controller using the method

Also Published As

Publication number Publication date
CN108737198A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
US8954763B2 (en) Automated infrastructure management systems and methods for enabling real time energy management
US20200267069A1 (en) Link switching method, link switching device, network communication system, and computer-readable storage medium
EP2281366B1 (en) Method and apparatus for providing full logical connectivity in mpls networks
US9231826B2 (en) Zero configuration of a virtual distributed device
CN109474508B (en) VPN networking method, VPN networking system, VPN master node equipment and VPN master node medium
CN105162704B (en) The method and device of multicast replication in Overlay network
US20070226325A1 (en) Virtual private network service status management
CN106357542B (en) The method and software defined network controller of multicast service are provided
US20140351419A1 (en) Automatic data ring discovery and configuration
CN108737198B (en) Method, system and related device for rapidly deploying switch
JP2011041251A (en) Architecture using inexpensively managed radio switching point for distribution of large scale wireless lan
CN106341468A (en) Remote wakeup method, device and system of intelligent equipment
CN108055140A (en) Cross-device communication method, device, storage medium and its computer equipment in networking
CN103248543A (en) Code verification method, code verification control equipment and code verification equipment
JP5974911B2 (en) Communication system and network relay device
CN104125079B (en) A kind of method and device for determining two-node cluster hot backup configuration information
US8331972B2 (en) Resolving potential conflicts in interoperability communications
CN100559792C (en) Spanning-Tree Protocol address renewing method and switch
CN112217680B (en) Controller capability benchmark test method and device based on software-defined wide area network
CN112333014B (en) Device management method and communication apparatus
CN111245660B (en) Network-based equipment upgrading self-adaptive transmission method
CN107786441B (en) Communication method, OpenFlow switch and communication system
CN106533775A (en) Virtual member equipment and neighbor discovery method
CN103107942A (en) Tracking method and device of static route
EP3258654B1 (en) Method and system for reducing pim protocol dr change

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