CN113950165B - Intelligent networking platform networking equipment connection method and device - Google Patents

Intelligent networking platform networking equipment connection method and device Download PDF

Info

Publication number
CN113950165B
CN113950165B CN202111470817.1A CN202111470817A CN113950165B CN 113950165 B CN113950165 B CN 113950165B CN 202111470817 A CN202111470817 A CN 202111470817A CN 113950165 B CN113950165 B CN 113950165B
Authority
CN
China
Prior art keywords
management server
networking
networking equipment
standby
connection
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
CN202111470817.1A
Other languages
Chinese (zh)
Other versions
CN113950165A (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.)
China Telecom Digital Intelligence Technology Co Ltd
Original Assignee
China Telecom Digital Intelligence 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 China Telecom Digital Intelligence Technology Co Ltd filed Critical China Telecom Digital Intelligence Technology Co Ltd
Priority to CN202111470817.1A priority Critical patent/CN113950165B/en
Publication of CN113950165A publication Critical patent/CN113950165A/en
Application granted granted Critical
Publication of CN113950165B publication Critical patent/CN113950165B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a networking equipment connection method of an intelligent networking platform, which comprises the following steps: verifying the networking equipment; and if the standby management server is in a normal state, completing the connection, and if the standby management server cannot be connected, redistributing the main management server and the standby management server. The invention also provides a connecting device of the networking equipment of the intelligent networking platform. The invention can quickly reconnect the networking equipment after the networking equipment is offline, reduces the steps of requesting again and acquiring by the management server, and improves the reliability of the networking equipment in connection.

Description

Intelligent networking platform networking equipment connection method and device
Technical Field
The invention relates to the field of software. More specifically, the invention relates to a networking device connection method and device for an intelligent networking platform.
Background
The telecommunication group provides a set of enterprise intelligent networking platform (hereinafter referred to as "networking platform") facing small and medium-sized enterprises aiming at the networking problem of the small and medium-sized enterprises, aiming at solving the problems that heterogeneous manufacturer equipment is difficult to access the networking, the networking and management in different places, the operation and maintenance cost of a networking system is high and the like in the networking process of the small and medium-sized enterprises, shielding the heterogeneity of the manufacturer equipment by implanting plug-in components into common networking equipment (such as gateways, APs and ACs), and solving the networking and management problems in different places by accessing the equipment into a public network in a TCP long connection mode.
Fig. 1 shows a schematic diagram of a technical architecture of an intelligent enterprise networking platform, in order to obtain a state of networking equipment in real time and enable the networking equipment to respond to a control instruction in real time, the networking equipment is communicated with an equipment management cluster through long TCP connection at S001, and operations such as authentication access, equipment management, information state acquisition and control instruction response are completed, that is, access and management of the networking equipment are completely completed through long TCP connection. The process of accessing the networking device to the platform is shown in fig. 2, and the whole process of accessing the device is realized through the plug-in embedded in the networking device.
However, since one networking device can only be connected with the target management host through one long TCP connection, once a problem occurs in the network connection or the target management host goes down, the networking device is disconnected from the management. The core of the intelligent networking platform is to realize the management of millions to tens of millions of networking devices, one management server is connected with tens of thousands of networking devices, if one server fails, the operation of the networking devices managed under the server can be influenced, if the server fails, transient loss of connection of the devices is caused, and if the server fails, the devices are completely disconnected.
In summary, in the networking process of the enterprise platform, especially for the access and management of the device, the long link based on TCP is a "single point" link, which causes the unreliable problem, so a reliable connection method capable of avoiding the device being taken off line is needed.
Disclosure of Invention
The invention aims to provide a networking equipment connecting method and device of an intelligent networking platform, which can quickly reconnect networking equipment after the networking equipment is offline, reduce the steps of requesting again and acquiring by a management server and improve the reliability of the networking equipment in connection.
To achieve these objects and other advantages and in accordance with the purpose of the invention, as embodied and broadly described herein, there is provided a method for connecting a networking device of an intelligent networking platform, comprising: verifying the networking equipment; and if the standby management server is in a normal state, completing the connection, and if the standby management server cannot be connected, redistributing the main management server and the standby management server.
Further, still include: and periodically polling the networking equipment, and if the networking equipment is connected with the main management server before, trying to connect the standby server if the networking equipment cannot be connected with the main management server within the preset polling times.
Further, still include: and periodically polling the networking equipment, and if the standby management server is connected before the networking equipment and the networking equipment cannot be connected with the standby management server within the preset polling times, reallocating the main management server and the standby management server.
Further, the management server cluster is deployed on the cloud host, and the method for distributing the main management server and the standby management server from the management server cluster comprises the following steps: acquiring the connection number of each management server; selecting a main management server by using a weighted polling algorithm; and randomly selecting the management server which does not reach the maximum connection number as a standby management server.
Further, the connection capability of the management server is defined as: current number of connections/weight max number of connections; and selecting the management server with the minimum connection capacity value as the main management server.
Further, the weight of a management server with a high configuration and a low load is higher than that of a management server with a low configuration and a high load.
Further, a management server different from the primary management server host is selected as the standby server.
Further, online verification is carried out on the networking equipment through the ID and the PIN code.
According to another aspect of the present invention, there is provided an intelligent networking platform networking device connection apparatus, including: a processor; a memory storing executable instructions; wherein the processor is configured to execute the executable instructions to perform the intelligent networking platform networking device connection method.
The invention at least comprises the following beneficial effects:
the method and the system can avoid the networking equipment from needing to log in the platform again to perform complicated and time-consuming request, management server acquisition, verification, authentication and the like after the networking equipment fails in single-point long connection, can reduce the time for offline reconnection of the networking equipment, and improve the connection reliability of the networking equipment.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.
Drawings
FIG. 1 is a diagram of a technical architecture of an intelligent networking platform;
FIG. 2 is a process of hosting the networking device;
FIG. 3 is a flow chart of a networking device connection method;
fig. 4 is a schematic diagram of a distribution primary management server and a backup management server.
Detailed Description
The present invention is further described in detail below with reference to the attached drawings so that those skilled in the art can implement the invention by referring to the description text.
It will be understood that terms such as "having," "including," and "comprising," as used herein, do not preclude the presence or addition of one or more other elements or groups thereof.
As shown in fig. 3 to 4, an embodiment of the present application provides a method for connecting networking devices of an intelligent networking platform, including: the method comprises the steps that networking equipment is verified, the networking equipment comprises a gateway, an AP, an AC and the like, the networking equipment is firstly connected with an intelligent networking platform, and the intelligent networking platform verifies the networking equipment; the method comprises the steps that a main management server and a standby management server are allocated to networking equipment which passes verification, the networking equipment comprises IP addresses and ports of the main management server and the standby management server, the networking equipment tries to connect the main server at first, if the main management server is in a normal state, networking equipment connection and on-line are completed, if the main management server is in an abnormal state, the standby management server tries to connect, if the standby management server is in a normal state, connection is completed, and if the standby management server cannot be connected, the main management server and the standby management server are reallocated. Therefore, the method and the device can avoid the situation that after the single-point long connection of the networking equipment fails, the networking equipment needs to log in the platform again to perform complicated and time-consuming request, management server acquisition, verification, authentication and the like, can reduce the offline reconnection time of the networking equipment, and improve the connection reliability of the networking equipment.
In other embodiments, further comprising: the method comprises the steps of periodically polling networking equipment, checking whether the networking equipment is normally paid and online, if the networking equipment is connected with a main management server before, and if the networking equipment cannot be connected with the main management server within preset polling times, trying to connect a standby server, wherein the preset polling times are five times.
In other embodiments, further comprising: and periodically polling the networking equipment, checking whether the networking equipment is normal wage and whether the networking equipment is online, if the networking equipment is connected with a standby management server before, and if the networking equipment cannot be connected with the standby management server within preset polling times, redistributing the main management server and the standby management server, wherein the preset polling times are five times for example.
In other embodiments, a management server cluster is deployed on a cloud host, and a method for allocating a primary management server and a backup management server from the management server cluster includes: acquiring the connection number of each management server; selecting a main management server by using a weighted polling algorithm; and randomly selecting the management server which does not reach the maximum connection number as a standby management server. The networking equipment management server cluster is an elastic cloud host provided by a rented cloud provider, and dynamically joins the equipment management server according to the number of the accessed networking equipment, so that the dynamic expansion of the networking management cluster is realized. Therefore, the management server has the characteristics of different configurations, distribution on different hosts and the like. Aiming at the characteristics of the management server, a cloud server inverse affinity and weighted load balancing algorithm is provided to allocate a 'main + standby' management server for the networking equipment, as shown in fig. 4. The anti-affinity of the cloud host, namely the two selected 'main + standby' management servers do not run on the same host, so that the phenomenon that the main and standby servers fail simultaneously due to the failure of a physical host is avoided. Second, different device connection servers may not have the same machine configuration and current system load, and therefore may not have the same pressure resistance. Higher weights are assigned to machines configured high and low load to enable them to handle more requests, while low and high load machines are assigned lower weights to reduce their system load, weighted polling handles this problem well and assigns requests to the back-end in order and according to weight. By means of a weighted load balancing algorithm, the connection load of the networking equipment can be balanced, the capacity of the cloud server is exerted to the maximum extent, the cloud server is added only when the existing server connection situation is close to full-load operation, and the computing capacity of the networking equipment management cluster is exerted to the maximum extent when the cost consumed by renting the cloud server is saved.
One possible pseudocode for the cloud server inverse affinity + weighted load balancing algorithm to execute is as follows:
Figure BDA0003392050590000041
Figure BDA0003392050590000051
in other embodiments, the connection capabilities of the management server are defined as: current number of connections/weight max number of connections; and selecting the management server with the minimum connection capacity value as the main management server. For the selection of the main server, a weighted load balancing algorithm is required to be used, the current configuration of the cloud host is mainly divided into three types, namely 2-core 4G, 4-core 8G and 8-core 16G, and the weight values distributed according to the experimental test results are 1,2.3,4.5 respectively. The current connection number/(weight — maximum connection number) is used to indicate the connection capability of the current cloud service, and a smaller value indicates a smaller load on the current server, and the current server is more suitable to be the master server.
In other embodiments, a manner is provided by which to determine the weight that a management server configured high and low in load weighs more than a management server configured low and high in load.
In other embodiments, a management server different from the primary management server hosts is selected as the standby server. The selection of the standby server firstly eliminates the cloud host running on one host machine with the main server, namely, the anti-affinity is realized; then, the server which has not reached the maximum connection number is randomly selected as the standby server, because the probability that the main server is off-line due to failure is small, and when the server has not reached the maximum, the connection can be performed, so that the standby server is only used for standby. And after the main server fails, switching to the standby server, namely, after the connection number of the standby server is increased, the possibility of being selected as the main server again is reduced, so that the load of each cloud server is ensured to reach the optimal state.
In other embodiments, a specific way of online verification is provided, and online verification is performed on the networking device through an ID and a PIN code.
In another embodiment, a "master + backup + reconnect" networking device connection method is provided, as shown in fig. 3, that is, when a networking device is connected for the first time, after a device passes verification, a networking platform uses a load balancing algorithm, and simultaneously considers the inverse affinity of a cloud server, as shown in fig. 4, a connected master control server IP and port and a standby control server IP and port are allocated to the networking device for the first time, and a plug-in "implanted" in the networking device can record information of the master and backup servers, and then is connected to the master control device, so as to complete access and management of the networking device.
(1) Method for connecting main, standby and reconnection networking equipment
step1: the equipment firstly accesses a networking platform, and completes online verification of the equipment through an ID and a PIN code;
step2: according to a server selection algorithm used by a networking platform, ip addresses and ports of a master server and a standby server are respectively selected for networking equipment and returned to the networking equipment;
step3: after receiving the addresses of the main server and the standby server distributed by the platform, the 'plug-in' of the networking equipment is recorded in the networking equipment and starts to make connection preparation;
step4: connecting the main server and the port; if the main server is normal, completing the connection, otherwise, trying to connect the standby server (step 7);
step5: the main service is successfully connected, and the networking equipment is completed to be on-line;
step6: the equipment is periodically checked to judge whether the equipment works normally or not and whether the equipment is on line or not. If the system is on line, the system continues to work and performs inspection in the next period; if the equipment cannot be connected with the main server after the polling, namely the equipment is judged to be disconnected for 5 continuous periods, the standby server is tried to be connected (shown in step 7);
step7: connecting a standby server and a port; if the standby server is normal, the connection is finished, otherwise, the networking platform is reconnected, and the management host is waited for distribution again (step 1 step is entered again);
step8: the standby service is successfully connected, and the networking equipment is completed to be on line;
step9: the equipment is periodically checked to judge whether the equipment works normally or not and whether the equipment is on line or not. If the system is on line, the system continues to work and performs inspection in the next period; if the equipment can not be connected with the standby server after the polling, namely the equipment is judged to be disconnected in 5 continuous periods, otherwise, the networking platform is reconnected, and the management host is waited for distribution again (step 1 step is entered again).
The embodiment of the application provides intelligent networking platform networking device connecting device, includes: a processor; a memory storing executable instructions; wherein the processor is configured to execute the executable instructions to perform the intelligent networking platform networking device connection method. The processor and the memory in this embodiment both adopt the prior art, and operate by setting and executing a program for executing the connection method of the networking device of the intelligent networking platform in the memory.
The number of apparatuses and the scale of the process described herein are intended to simplify the description of the present invention. Applications, modifications and variations of the networking device connection method of the intelligent networking platform of the present invention will be apparent to those skilled in the art.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.

Claims (4)

1. The method for connecting networking equipment of the intelligent networking platform is characterized by comprising the following steps:
verifying the networking equipment;
the method comprises the steps that a main management server and a standby management server are allocated to networking equipment which passes verification, the networking equipment tries to connect the main server at first, if the main management server is in a normal state, connection is finished, if the main management server is in an abnormal state, connection is tried to connect the standby management server, if the standby management server is in a normal state, connection is finished, and if the standby management server cannot be connected, the main management server and the standby management server are reallocated;
periodically polling networking equipment, and trying to connect a standby management server if the networking equipment is connected with a main management server before and the networking equipment cannot be connected with the main management server within a preset polling frequency;
carrying out periodic inspection on networking equipment, and if the networking equipment is connected with a standby management server before, and the networking equipment cannot be connected with the standby management server within a preset inspection frequency, redistributing a main management server and the standby management server;
the method for distributing the main management server and the standby management server from the management server cluster comprises the following steps:
acquiring the connection number of each management server;
selecting a main management server by using a weighted polling algorithm;
randomly selecting a management server which does not reach the maximum connection number as a standby management server;
the connection capability of the management server is defined as: current number of connections/weight max number of connections; and selecting the management server with the minimum connection capacity value as the main management server.
2. The intelligent networking platform networking device connection method of claim 1, wherein the weight of the management server configured high and low in load is higher than that of the management server configured low and high in load.
3. The intelligent networking platform networking device connection method of claim 1, wherein a management server different from a primary management server hosting is selected as the standby management server.
4. The method for connecting networking equipment of an intelligent networking platform according to claim 1, wherein online verification is performed on the networking equipment through an ID and a PIN code.
CN202111470817.1A 2021-12-03 2021-12-03 Intelligent networking platform networking equipment connection method and device Active CN113950165B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111470817.1A CN113950165B (en) 2021-12-03 2021-12-03 Intelligent networking platform networking equipment connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111470817.1A CN113950165B (en) 2021-12-03 2021-12-03 Intelligent networking platform networking equipment connection method and device

Publications (2)

Publication Number Publication Date
CN113950165A CN113950165A (en) 2022-01-18
CN113950165B true CN113950165B (en) 2022-11-08

Family

ID=79338877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111470817.1A Active CN113950165B (en) 2021-12-03 2021-12-03 Intelligent networking platform networking equipment connection method and device

Country Status (1)

Country Link
CN (1) CN113950165B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283948A (en) * 2014-09-26 2015-01-14 东软集团股份有限公司 Server cluster system and load balancing implementation method thereof
CN104320487A (en) * 2014-11-11 2015-01-28 网宿科技股份有限公司 HTTP dispatching system and method for content delivery network
CN107819808A (en) * 2016-09-14 2018-03-20 北京百度网讯科技有限公司 Communicate to connect method for building up and device
CN109104500A (en) * 2018-09-29 2018-12-28 广东省信息工程有限公司 A kind of server load balancing method and device of dynamic adjustment
CN111131451A (en) * 2019-12-23 2020-05-08 武汉联影医疗科技有限公司 Service processing system and service processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283948A (en) * 2014-09-26 2015-01-14 东软集团股份有限公司 Server cluster system and load balancing implementation method thereof
CN104320487A (en) * 2014-11-11 2015-01-28 网宿科技股份有限公司 HTTP dispatching system and method for content delivery network
CN107819808A (en) * 2016-09-14 2018-03-20 北京百度网讯科技有限公司 Communicate to connect method for building up and device
CN109104500A (en) * 2018-09-29 2018-12-28 广东省信息工程有限公司 A kind of server load balancing method and device of dynamic adjustment
CN111131451A (en) * 2019-12-23 2020-05-08 武汉联影医疗科技有限公司 Service processing system and service processing method

Also Published As

Publication number Publication date
CN113950165A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
US11363097B2 (en) Method and system for dynamically rebalancing client sessions within a cluster of servers connected to a network
US7246174B2 (en) Method and system for accessing and managing virtual machines
CN102187315B (en) Methods and apparatus to get feedback information in virtual environment for server load balancing
CN105579965B (en) Via the client guard station resources control of provider's defining interface
US8341705B2 (en) Method, apparatus, and computer product for managing operation
US20050080891A1 (en) Maintenance unit architecture for a scalable internet engine
US7937481B1 (en) System and methods for enterprise path management
WO2006072546A1 (en) Verifying resource functionality before use by a grid job submitted to a grid environment
CN104618255A (en) Front acquiring service system and data processing method
CN113014611B (en) Load balancing method and related equipment
CN101908967B (en) Configuration method and system of Linux virtual server
CN107666401B (en) Configuration information acquisition method and terminal
CN114465895A (en) Request distribution method, device, equipment and storage medium based on micro service
JP4801169B2 (en) Distributed service site registration method and registration system
CN113950165B (en) Intelligent networking platform networking equipment connection method and device
CN107896187A (en) A kind of method and apparatus that LNS equipment is issued in VPDN networks
US20030005080A1 (en) Systems and methods for accessing data
CN105763569B (en) To the method for account authentication, client, service platform and management platform
CN116302534A (en) Method, device, equipment and medium for optimizing performance of server storage equipment
CN110191158A (en) A kind of cloud desktop services method and system
CN113098728B (en) Health check method of load balancing system and related equipment
KR20080009414A (en) System for remote management of computer and method of the same
CN114785813B (en) Engineering cost COS result file formatting storage system
WO2007071286A1 (en) Method of assigning a user session to one of a set of application servers
CN111385323B (en) EJB service processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 1308, 13th floor, East Tower, 33 Fuxing Road, Haidian District, Beijing 100036

Applicant after: China Telecom Digital Intelligence Technology Co.,Ltd.

Address before: Room 1308, 13th floor, East Tower, 33 Fuxing Road, Haidian District, Beijing 100036

Applicant before: CHINA TELECOM GROUP SYSTEM INTEGRATION Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant