CN116346597A - White box switch deployment system and configuration file method and device - Google Patents

White box switch deployment system and configuration file method and device Download PDF

Info

Publication number
CN116346597A
CN116346597A CN202310618158.4A CN202310618158A CN116346597A CN 116346597 A CN116346597 A CN 116346597A CN 202310618158 A CN202310618158 A CN 202310618158A CN 116346597 A CN116346597 A CN 116346597A
Authority
CN
China
Prior art keywords
rule
server
character string
nos
target switch
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310618158.4A
Other languages
Chinese (zh)
Other versions
CN116346597B (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.)
Mingyang Industrial Technology Research Institute Shenyang Co ltd
Original Assignee
Mingyang Industrial Technology Research Institute Shenyang Co ltd
Mingyang Shichuang Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mingyang Industrial Technology Research Institute Shenyang Co ltd, Mingyang Shichuang Beijing Technology Co ltd filed Critical Mingyang Industrial Technology Research Institute Shenyang Co ltd
Priority to CN202310618158.4A priority Critical patent/CN116346597B/en
Publication of CN116346597A publication Critical patent/CN116346597A/en
Application granted granted Critical
Publication of CN116346597B publication Critical patent/CN116346597B/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/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a white-box switch deployment system and a method and a device for configuration files, wherein the device comprises a DHCP server and a resource server, a target switch is respectively in communication connection with the DHCP server and the resource server, and the DHCP server is in communication connection with the resource server. The invention can realize the full-automatic deployment of the white-box switch system and the configuration file, reduce the expenditure of manpower and material resources and shorten the deployment time of the system.

Description

White box switch deployment system and configuration file method and device
Technical Field
The invention relates to the technical field of switches, in particular to a method and a device for deploying a system and configuration files of a white-box switch.
Background
The white box switch decouples the hardware and software of the switch, so that an enterprise or individual user can only purchase the hardware of the switch and then match the customized software according to the requirement, besides the software matching is more flexible, the biggest advantage of the white box switch is that the networking cost can be reduced, and the network automation, the programmability and the flexibility are increased
With the increasing perfection of the white-box switch ecosystem, the underlying chip, the hardware architecture, the network operating system, the protocol software and the like are gradually mature, the white-box switch is greatly developed, the market share weight is larger and larger, a plurality of research and development mechanisms at home and abroad are added into the research and development and use of the white-box switch, the white-box switch is customizable based on network characteristics, the network is independently controllable, and large and medium-sized network companies and data centers are all provided with the white-box switch and the customized system in a large number.
In a data center and a large enterprise network, a plurality of white box switches from different suppliers are provided, and because the adopted bottom layer switching chips are different, the white box switches with different purposes are different in compatible network systems, and in this case, a plurality of white box switches with different purposes are required to be deployed with network operating systems at the same time, if the white box switches are installed by the traditional methods such as an optical drive or a USB flash disk, the efficiency is low, and the maintenance is not facilitated.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to provide a method and a device for deploying a system and a configuration file of a white-box switch, which can realize the full-automatic deployment of the system and the configuration file of the white-box switch, reduce the expenditure of manpower and material resources and shorten the deployment time of the system.
In order to solve the technical problems, the invention provides the following technical scheme:
a white-box switch deployment system and a configuration file method comprise the following steps:
s1) a target switch sends a DHCP request to a DHCP server; the DHCP server is provided with a URL of an installation rule program file name and an IP address pool for distributing the IP address of the target switch, and the installation rule program file is pre-stored on the resource server; the target switch is a white box switch;
s2) the DHCP server returns an IP address and an installation rule program file according to a DHCP request sent by the target switch;
s3) the target switch executes a rule i defined by a rule program file, wherein the rule i is as follows: acquiring a hardware identifier of a target switch by a rule program, matching the read hardware identifier with a written character string A, and if the matching is successful, carrying out mirror image pulling by the rule program to pull a corresponding nos installation program mirror image from a resource server; the rule program file is pre-stored with the mapping between the hardware identifiers of different provider white-box switches and the character string A and the URL of the mirror image of the specific character string and the corresponding provider nos installation program;
s4) the target switch installs the nos system on the hard disk of the target switch by using the mirror image of the nos installation program pulled in the step S3) and starts to operate the nos system, meanwhile, the rule program detects the hard disk of the target switch and the operating state of the nos system, when the normal operation of the nos system is detected, a signal for completing the installation of the nos system is fed back to the rule program, when the rule program receives and identifies the signal for completing the installation of the nos system, the rule program executes rule ii, and rule ii is: acquiring a configuration file corresponding to the target switch from a resource server by a rule program;
s5) configuring the target switch by using the configuration file obtained in the step S4).
The method comprises the steps that the mapping between the character string A and the character string B and the mapping between the character string B and the URL of the configuration file are also pre-stored in the rule program file; in step S4), when the rule program executes rule ii and the rule program monitors that the nos system is installed, the rule program obtains a character string B corresponding to the character string a according to the mapping of the character string a and the character string B, obtains a profile URL corresponding to the character string B according to the mapping of the character string B and the profile URL, and obtains a corresponding profile from the resource server using the profile URL.
The resource server is a web server.
In the method, the target switches of the same type provided by the same provider have the same hardware identifier, and the target switches provided by different providers have different hardware identifiers.
According to the method, the target switch, the DHCP server and the resource server are interconnected through the L3 layer network.
The device for deploying the white-box switch system and the configuration file by using the method comprises the following steps:
the DHCP server is provided with a URL of an installation rule program file name and an IP address pool for distributing the IP address of the target switch;
the system comprises a resource server, a server and a server, wherein an installation rule program file, a nos installation program mirror image and a configuration file are pre-stored on the resource server; the nos installer images and configuration files required by the target switches provided by different suppliers are different;
the target switch is respectively in communication connection with the DHCP server and the resource server, and the DHCP server is in communication connection with the resource server.
The device, the resource server is a web server.
The device, the target switch, the DHCP server and the resource server are interconnected through the L3 layer network.
The technical scheme of the invention has the following beneficial technical effects:
1. the invention can realize automatic deployment for white box switches of different suppliers and switches of the same supplier without use.
2. The invention can realize the full-automatic deployment of the white-box switch system and the configuration file, reduce the expenditure of manpower and material resources and shorten the deployment time of the system.
3. The invention can realize automatic deployment of configuration files by deploying the system and the configuration files of the white-box switch, so that the networking architecture of the whole network can be planned at the beginning of deployment, the limited hardware platform resources are fully utilized, the flexibility, the controllability and the difficulty of operation and maintenance of networking are realized.
4. Network construction is not a one-time completed process, but a continuous process, and the network architecture design of a data center and a large enterprise network can adapt to the optimization replacement of a hardware platform and a software system in consideration of backward compatibility. The invention can easily realize the system upgrading and updating of the whole network by using the white-box switch to deploy the system and the configuration file, and can ensure the consistency of the deployed system version from the source.
5. The invention can eliminate unknown errors caused by human factors in the deployment process by deploying the system and the configuration file of the white-box switch, the automation can be independently controllable in the whole process, and the invention does not need to take a great deal of time to debug and debug, thereby effectively reducing the cost and the risk of errors.
Drawings
FIG. 1 is a schematic diagram of the operation of an apparatus for performing white-box switch system and profile deployment in accordance with the present invention;
fig. 2 is a flow chart of implementing a target switch system and profile deployment in accordance with the present invention.
Detailed Description
The invention is further described below with reference to examples.
As shown in fig. 1, the device for deploying the white-box switch system and the configuration file in the invention comprises a DHCP server and a resource server, wherein the target switch is respectively in communication connection with the DHCP server and the resource server through an L3 layer network, and meanwhile, the DHCP server and the resource server are also in communication connection through the L3 layer network. The DHCP server is provided with a URL of an installation rule program file name and an IP address pool for distributing the IP address of the target switch, the resource server is pre-stored with an installation rule program file, a nos installation program mirror image and a configuration file, and the nos installation program mirror image and the configuration file required by the target switch provided by different suppliers are different.
The L3 layer network is utilized to communicate the target exchanger, the DHCP server and the resource server, so that the resource server and the target exchanger can reside in different subnets, the target exchanger needs to send data packets to reach the resource server through a route, and two machines can be located in different subnets.
In practical applications, a web server may be selected to be used as a resource server, and data is transmitted through an http protocol.
As shown in fig. 2, the system and configuration file deployment of the white-box switch by using the device for performing white-box switch system and configuration file deployment comprises the following steps:
s1) a target switch sends a DHCP request to a DHCP server; the DHCP server is provided with a URL of an installation rule program file name and an IP address pool for distributing the IP address of the target switch, and the installation rule program file is pre-stored on the resource server; the target switch is a white box switch;
s2) the DHCP server returns an IP address and an installation rule program file according to a DHCP request sent by the target switch;
s3) the target switch executes a rule i defined by a rule program file, wherein the rule i is as follows: acquiring a hardware identifier of a target switch by a rule program, matching the read hardware identifier with a written character string A, and if the matching is successful, carrying out mirror image pulling by the rule program to pull a corresponding nos installation program mirror image from a resource server; the rule program file is pre-stored with the mapping between the hardware identifiers of different provider white-box switches and the character string A and the URL of the mirror image of the specific character string and the corresponding provider nos installation program;
s4) the target switch installs the nos system on the hard disk of the target switch by using the mirror image of the nos installation program pulled in the step S3) and starts to operate the nos system, meanwhile, the rule program detects the hard disk of the target switch and the operating state of the nos system, when the normal operation of the nos system is detected, a signal for completing the installation of the nos system is fed back to the rule program, when the rule program receives and identifies the signal for completing the installation of the nos system, the rule program executes rule ii, and rule ii is: acquiring a configuration file corresponding to the target switch from a resource server by a rule program;
s5) configuring the target switch by using the configuration file obtained in the step S4).
In order to facilitate accurate pulling of the applicable configuration file, mapping of the character string A and the character string B and mapping of the character string B and the URL of the configuration file are also pre-stored in the rule program file; in step S4), when the rule program executes rule ii and the rule program monitors that the nos system is installed, the rule program obtains a character string B corresponding to the character string a according to the mapping of the character string a and the character string B, obtains a profile URL corresponding to the character string B according to the mapping of the character string B and the profile URL, and obtains a corresponding profile from the resource server using the profile URL.
In order to facilitate the system deployment and configuration of different types of white-box switches and switches provided by different suppliers provided by the same supplier by using the device for deploying and configuring the white-box switch system in the invention, the same type of target switches provided by the same supplier should have the same hardware identifier, different types of target switches have different hardware identifiers, and different suppliers provide different target switches have different hardware identifiers.
When the device for performing white-box switch system deployment and configuration is used for performing system deployment and configuration on the white-box switch, the white-box switch is only required to be in communication connection with the device for performing white-box switch system deployment and configuration through an L3 layer network, and the white-box switch is started, so that the system deployment and configuration can be automatically realized.
It is apparent that the above examples are given by way of illustration only and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. While the obvious variations or modifications which are extended therefrom remain within the scope of the claims of this patent application.

Claims (8)

1. A white-box switch deployment system and method for configuration files, comprising the steps of:
s1) a target switch sends a DHCP request to a DHCP server; the DHCP server is provided with a URL of an installation rule program file name and an IP address pool for distributing the IP address of the target switch, and the installation rule program file is pre-stored on the resource server; the target switch is a white box switch;
s2) the DHCP server returns an IP address and an installation rule program file according to a DHCP request sent by the target switch;
s3) the target switch executes a rule i defined by a rule program file, wherein the rule i is as follows: acquiring a hardware identifier of a target switch by a rule program, matching the read hardware identifier with a written character string A, and if the matching is successful, carrying out mirror image pulling by the rule program to pull a corresponding nos installation program mirror image from a resource server; the rule program file is pre-stored with the mapping between the hardware identifiers of different provider white-box switches and the character string A and the URL of the mirror image of the specific character string and the corresponding provider nos installation program;
s4) the target switch installs the nos system on the hard disk of the target switch by using the mirror image of the nos installation program pulled in the step S3) and starts to operate the nos system, meanwhile, the rule program detects the hard disk of the target switch and the operating state of the nos system, when the normal operation of the nos system is detected, a signal for completing the installation of the nos system is fed back to the rule program, when the rule program receives and identifies the signal for completing the installation of the nos system, the rule program executes rule ii, and rule ii is: acquiring a configuration file corresponding to the target switch from a resource server by a rule program;
s5) configuring the target switch by using the configuration file obtained in the step S4).
2. The method of claim 1, wherein the rule program file further stores a mapping between the character string a and the character string B and a mapping between the character string B and the profile URL; in step S4), when the rule program executes rule ii and the rule program monitors that the nos system is installed, the rule program obtains a character string B corresponding to the character string a according to the mapping of the character string a and the character string B, obtains a profile URL corresponding to the character string B according to the mapping of the character string B and the profile URL, and obtains a corresponding profile from the resource server using the profile URL.
3. The method of claim 1, wherein the resource server is a web server.
4. The method of claim 1, wherein the same type of destination switch provided by the same vendor has the same hardware identifier and wherein destination switches provided by different vendors have different hardware identifiers.
5. The method according to any one of claims 1 to 4, wherein the target switch, the DHCP server and the resource server are interconnected via an L3 layer network.
6. The apparatus for white-box switch system and profile deployment using the method of claim 1, comprising:
the DHCP server is provided with a URL of an installation rule program file name and an IP address pool for distributing the IP address of the target switch;
the system comprises a resource server, a server and a server, wherein an installation rule program file, a nos installation program mirror image and a configuration file are pre-stored on the resource server; the nos installer images and configuration files required by the target switches provided by different suppliers are different;
the target switch is respectively in communication connection with the DHCP server and the resource server, and the DHCP server is in communication connection with the resource server.
7. The apparatus of claim 6, wherein the resource server is a web server.
8. The apparatus of claim 6, wherein the target switch, DHCP server, and resource server are interconnected through an L3 layer network.
CN202310618158.4A 2023-05-30 2023-05-30 White box switch deployment system and configuration file method and device Active CN116346597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310618158.4A CN116346597B (en) 2023-05-30 2023-05-30 White box switch deployment system and configuration file method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310618158.4A CN116346597B (en) 2023-05-30 2023-05-30 White box switch deployment system and configuration file method and device

Publications (2)

Publication Number Publication Date
CN116346597A true CN116346597A (en) 2023-06-27
CN116346597B CN116346597B (en) 2023-08-22

Family

ID=86880761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310618158.4A Active CN116346597B (en) 2023-05-30 2023-05-30 White box switch deployment system and configuration file method and device

Country Status (1)

Country Link
CN (1) CN116346597B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040081104A1 (en) * 2002-10-29 2004-04-29 Weimin Pan Method and system for network switch configuration
US9286047B1 (en) * 2013-02-13 2016-03-15 Cisco Technology, Inc. Deployment and upgrade of network devices in a network environment
CN106789370A (en) * 2017-02-24 2017-05-31 济南浪潮高新科技投资发展有限公司 A kind of method of electric application configuration on interchanger
CN111953518A (en) * 2020-07-10 2020-11-17 苏州浪潮智能科技有限公司 Method and device for automatic configuration of server and switch
CN112087314A (en) * 2020-07-27 2020-12-15 优刻得科技股份有限公司 Automatic switch deployment method, device and system
CN112328268A (en) * 2020-11-20 2021-02-05 苏州浪潮智能科技有限公司 Method, device and equipment for upgrading white box switch software and readable medium
CN112769602A (en) * 2020-12-30 2021-05-07 网络通信与安全紫金山实验室 System and method for unified configuration management of white box switch and network operating system
CN114448788A (en) * 2021-12-25 2022-05-06 苏州浪潮智能科技有限公司 Installation method, system, equipment and medium of switch system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040081104A1 (en) * 2002-10-29 2004-04-29 Weimin Pan Method and system for network switch configuration
US9286047B1 (en) * 2013-02-13 2016-03-15 Cisco Technology, Inc. Deployment and upgrade of network devices in a network environment
CN106789370A (en) * 2017-02-24 2017-05-31 济南浪潮高新科技投资发展有限公司 A kind of method of electric application configuration on interchanger
CN111953518A (en) * 2020-07-10 2020-11-17 苏州浪潮智能科技有限公司 Method and device for automatic configuration of server and switch
CN112087314A (en) * 2020-07-27 2020-12-15 优刻得科技股份有限公司 Automatic switch deployment method, device and system
CN112328268A (en) * 2020-11-20 2021-02-05 苏州浪潮智能科技有限公司 Method, device and equipment for upgrading white box switch software and readable medium
CN112769602A (en) * 2020-12-30 2021-05-07 网络通信与安全紫金山实验室 System and method for unified configuration management of white box switch and network operating system
CN114448788A (en) * 2021-12-25 2022-05-06 苏州浪潮智能科技有限公司 Installation method, system, equipment and medium of switch system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜靖: "以太网交换机软件智能安装技术研究与实现", 电子测试, no. 17 *

Also Published As

Publication number Publication date
CN116346597B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
US11611487B2 (en) Model driven process for automated deployment of domain 2.0 virtualized services and applications on cloud infrastructure
US10700932B2 (en) Automated standalone bootstrapping of hardware inventory
US20140101467A1 (en) Discovering, validating, and configuring hardware-inventory components
WO2016184045A1 (en) Method and apparatus for network service capacity expansion
US7363260B1 (en) Method and apparatus providing automatic provisioning for modular network devices
RU2438168C1 (en) Method and system for deploying software, software deployment server and user server
WO2016112825A1 (en) Remote control method, terminal device, management server, and remote control system
CN104580519A (en) Method for rapid deployment of openstack cloud computing platform
CN103200271B (en) The method of ARM server and automation installation system thereof
CN105071948B (en) The automatic deployment method and device of a kind of access switch
CN101170423A (en) A service-oriented service cluster deployment method
CN104219099A (en) Automatic server cluster deploying method and device
KR20140120895A (en) Automated build-out of a cloud-computing stamp
US20160036638A1 (en) Provisioning
JP2016528621A (en) Related plug-in management method, apparatus and system
CN108959097A (en) A kind of method of quick testing service device OS
CN106716926B (en) Automated stand-alone boot circuit for hardware inventory
CN102143229A (en) Method and system for upgrading terminals in batches
CN203278883U (en) Protocol conversion device
CN107547274A (en) Multi-netmouth polymerization and device
CN116346597B (en) White box switch deployment system and configuration file method and device
CN107113333B (en) Method for installing software on server computer and communication interface device
CN103313149B (en) The dual stack support of mechanism is automatically configured for the boundary in DPoE network
CN102053845B (en) Electronic device for automatically and continuously mounting operating system and related method and system thereof
US20170346963A1 (en) Managing system, intermediate apparatus, and managing method

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
TA01 Transfer of patent application right

Effective date of registration: 20230801

Address after: Room 701, No. 88 Quanyunsan Road, Hunnan District, Shenyang City, Liaoning Province, 110167

Applicant after: Mingyang Industrial Technology Research Institute (Shenyang) Co.,Ltd.

Address before: Room 903, 9th Floor, Building 2, No. 1 Lanxiangou, Haidian District, Beijing, 100089

Applicant before: Mingyang Shichuang (Beijing) Technology Co.,Ltd.

Applicant before: Mingyang Industrial Technology Research Institute (Shenyang) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant