CN117499278A - Large-scale equipment heartbeat management method and device suitable for fiber matrix KVM - Google Patents

Large-scale equipment heartbeat management method and device suitable for fiber matrix KVM Download PDF

Info

Publication number
CN117499278A
CN117499278A CN202311580385.9A CN202311580385A CN117499278A CN 117499278 A CN117499278 A CN 117499278A CN 202311580385 A CN202311580385 A CN 202311580385A CN 117499278 A CN117499278 A CN 117499278A
Authority
CN
China
Prior art keywords
heartbeat
kvm
equipment
board card
heartbeat signal
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.)
Pending
Application number
CN202311580385.9A
Other languages
Chinese (zh)
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.)
Guangdong Baolun Electronics Co ltd
Original Assignee
Guangdong Baolun Electronics 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 Guangdong Baolun Electronics Co ltd filed Critical Guangdong Baolun Electronics Co ltd
Priority to CN202311580385.9A priority Critical patent/CN117499278A/en
Publication of CN117499278A publication Critical patent/CN117499278A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9063Intermediate storage in different physical parts of a node or terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a large-scale equipment heartbeat management method and device suitable for an optical fiber matrix KVM, comprising the following steps: and controlling a switching board card preset in the optical fiber matrix KVM to receive a first heartbeat signal sent by each device in a plurality of devices connected with the switching board card, integrating the first heartbeat signal and the heartbeat signal of the switching board card to obtain an integrated heartbeat signal, sending the integrated heartbeat signal to a KVM control host in the optical fiber matrix KVM, controlling the KVM control host to update the device state information of each device to a preset database through a preset data caching strategy according to the integrated heartbeat signal, simultaneously carrying out functional configuration on each device through the KVM control host, and asynchronously notifying each end of the optical fiber matrix KVM to change the device state of each device according to the functional configuration through a preset interface and a transmission bus, thereby improving the on-line speed of the device and the response speed of the optical fiber matrix KVM.

Description

Large-scale equipment heartbeat management method and device suitable for fiber matrix KVM
Technical Field
The invention relates to the technical field of communication transmission, in particular to a heartbeat management method and device for large-scale equipment suitable for an optical fiber matrix KVM.
Background
In the prior art, the optical fiber matrix KVM is used as a high-performance KVM solution, which is composed of a matrix KVM control host, a plurality of switch cards, a plurality of RX and TX boxes and optical fiber wires, and uses the optical fiber wires as connection media to connect the plurality of switch cards with the RX and TX boxes and transmit keyboard, video and mouse signals through the optical fiber wires, so as to realize long-distance signal transmission and distribution.
The device scale of the fiber matrix KVM has 32 ports, 64 ports, 80 ports, 160 ports and the like, along with the increase of the scale of the use requirement, the device scale of the fiber matrix KVM also increases, so the number of devices (switch cards/RX/TX boxes) connected into the fiber matrix KVM is gradually huge, meanwhile, along with the increase of the number of devices connected in the fiber matrix KVM, the number of batch heartbeat wire-feeding received by the original matrix KVM also increases, when the heartbeat of the large-scale device appears in batch wire-feeding, the problem that the device wire-feeding is slower occurs, for example, when the light moment 160 port is fully loaded, the device wire-feeding time is about 1 minute, and the device wire-feeding time is prolonged along with the increase of the devices, so that the fiber matrix KVM reaction time is too long when a user starts or replaces part of devices in addition or deletion, and the user cannot meet the requirement of quick response expected by the user.
Disclosure of Invention
In order to solve the technical problems, the invention discloses a large-scale equipment heartbeat management method and device suitable for an optical fiber matrix KVM, which can improve the on-line speed of equipment and the response speed of the optical fiber matrix KVM.
To achieve the above object, in a first aspect, the present invention discloses a large-scale device heartbeat management method applicable to a fiber matrix KVM, including:
the method comprises the steps that a switching board card preset in an optical fiber matrix KVM is controlled to receive a first heartbeat signal sent by each device in a plurality of devices connected with the switching board card;
integrating the first heartbeat signal sent by each device and the heartbeat signal of the switching board card to obtain an integrated heartbeat signal, and sending the integrated heartbeat signal to a KVM control host in the optical fiber matrix KVM through the switching board card;
according to the integrated heartbeat signal, the KVM control host is controlled to update the equipment state information of each piece of equipment to a preset database through a preset data caching strategy, meanwhile, the KVM control host is used for carrying out function configuration on each piece of equipment, and each end of the optical fiber matrix KVM is notified asynchronously with a transmission bus through a preset interface to change the equipment state of each piece of equipment according to the function configuration.
The invention discloses a large-scale equipment heartbeat management method suitable for an optical fiber matrix KVM, which comprises the steps of firstly taking an exchange board card as a heartbeat signal uploading unit, receiving heartbeat signals respectively transmitted by each of a plurality of equipment connected with the exchange board card through the exchange board card preset in the optical fiber matrix KVM, integrating the heartbeat signals of the equipment and the heartbeat signals of the board card into a single integrated heartbeat signal, transmitting the integrated heartbeat signals obtained after integration to a KVM control host in the optical fiber matrix KVM, integrating the heartbeat signals through the exchange board card, avoiding the frequent uploading of the heartbeat signals by the equipment, reducing the occupation of the exchange board card on transmission bus resources, reducing the frequency of processing the heartbeat signals by the KVM control host, improving the on-line speed of the equipment, then after the integrated heartbeat signal is obtained, the equipment state information of the equipment is updated to a preset database through the KVM control host and a preset data caching strategy, the frequent operation of the database is reduced through the data caching strategy, the occupation of resources and operation time of the KVM control host is reduced, the response speed of the heartbeat signal is improved, meanwhile, according to the integrated heartbeat signal, each equipment is subjected to functional configuration through the KVM control host, each end is asynchronously notified of equipment state change through a preset interface and a transmission bus, the total heartbeat signal is processed, the processing times of the heartbeat signal are reduced, the notification times of business are reduced, the time consumption caused by notification is optimized, and meanwhile, the processing of next data of a queue can be accelerated by adopting an asynchronous notification mode, thereby improving the response speed of the fiber matrix KVM.
As a preferred example, the switch board card for controlling the fiber matrix KVM receives a first heartbeat signal sent by each of a plurality of devices connected to the switch board card, including:
and controlling the exchange board card to receive and store a first heartbeat signal sent by each device connected with the exchange board card according to the time interval of two adjacent heartbeat times of the exchange board card.
In the time interval of two adjacent heartbeat times of the exchange board card, the first heartbeat signal is received by the exchange board card, so that the heartbeat signal of the equipment and the heartbeat signal of the exchange board card are jointly transmitted to the KVM control host in the follow-up process, the occupation of the transmission resource and the processing times of the KVM control host caused by the independent uploading of the equipment and the board card are avoided, and the occupation of the transmission resource and the processing times of the KVM control host are reduced.
As a preferred example, the integrating the first heartbeat signal sent by each device and the heartbeat signal of the switch board card to obtain an integrated heartbeat signal includes:
integrating a plurality of first heartbeat signals stored in the exchange board card and the heartbeat signals of the exchange board card into a json signal, and adding a non-form field array in a json command corresponding to the json signal;
and recording the equipment ID of each equipment transmitting the first heartbeat signal to the exchange board card through the non-identity field array.
According to the invention, through integrating the heartbeat signals, the transmission times are reduced, the occupation of transmission resources and the processing times of the KVM host are reduced, and meanwhile, when the signals are integrated, the signals are integrated into a single json signal, so that a not ify field array is added in json commands corresponding to the json signals, and the method is used for recording the equipment ID of each corresponding equipment in the current integrated heartbeat signals, thereby being convenient for subsequent management.
As a preferred example, the updating the device status information of each device to a preset database through the KVM control host and a preset data caching policy includes:
according to the database field modified in advance, the KVM control host is controlled to read preset cache data, and whether first equipment state information to be updated exists in the cache data is judged according to the equipment ID recorded in the integrated heartbeat signal;
if the first equipment state information to be updated exists in the cache data, updating the first equipment state information through the KVM control host according to the integrated heartbeat signal, and caching second equipment state information obtained after updating to the cache data;
if the first equipment state information to be updated does not exist in the cache data, the first equipment state information to be updated is read from the database according to the equipment ID, the first equipment state information is updated through the KVM control host according to the integrated heartbeat signal, and the second equipment state information obtained after updating is cached to the cache data;
and updating the equipment state information of each piece of equipment to the database according to a preset updating time point and the cache data.
In order to reduce frequent operation of a database, a database caching strategy is added, the existing database fields are optimized, the consumption caused by frequent database operation is reduced by utilizing preset caching data, meanwhile, the operation of a direct database is reduced by the caching strategy, the data acquisition efficiency is improved, and the response speed is improved.
As a preferred example, performing, by the KVM control host, a function configuration on each device, and asynchronously notifying, by a preset interface and a transmission bus, each end of the KVM to change a device status of each device according to the function configuration, includes:
analyzing the integrated heartbeat signal through the KVM control host to obtain first heartbeat signals respectively sent by each device, and respectively carrying out functional configuration on each device according to the first heartbeat signals;
according to the functional configuration, asynchronously notifying each end of the optical fiber matrix KVM through a preset rpc interface and a cmd-RS-485 transmission bus to change the equipment state of each piece of equipment; each end comprises a client, a web end and a server.
The invention carries out the function configuration of a plurality of devices based on one integrated heartbeat signal, can reduce the notification times of the service, optimize the time consumption caused by the notification, and simultaneously use an asynchronous notification mode to notify the service, thereby accelerating the processing of the next data of the queue and further improving the response speed of the optical fiber matrix KVM.
The invention discloses a large-scale equipment heartbeat management device suitable for an optical fiber matrix KVM, which comprises a heartbeat receiving module, a heartbeat integrating module and a heartbeat management module;
the heartbeat receiving module is used for controlling a switching board card preset in the optical fiber matrix KVM to receive a first heartbeat signal sent by each of a plurality of devices connected with the switching board card;
the heartbeat integration module is used for integrating the first heartbeat signal sent by each device and the heartbeat signal of the exchange board card to obtain an integrated heartbeat signal, and sending the integrated heartbeat signal to a KVM control host in the optical fiber matrix KVM through the exchange board card;
the heartbeat management module is used for controlling the KVM control host to update the equipment state information of each equipment to a preset database through a preset data caching strategy according to the integrated heartbeat signal, and meanwhile, carrying out functional configuration on each equipment through the KVM control host, and asynchronously notifying each end of the optical fiber matrix KVM through a preset interface and a transmission bus to change the equipment state of each equipment according to the functional configuration.
The invention discloses a large-scale equipment heartbeat management device suitable for an optical fiber matrix KVM, which is characterized in that an exchange board card is firstly used as a heartbeat signal uploading unit, the exchange board card in the optical fiber matrix KVM is used for receiving heartbeat signals respectively transmitted by each of a plurality of equipment connected with the exchange board card, then the heartbeat signals of the equipment and the heartbeat signals of the board card are integrated into a single integrated heartbeat signal, the integrated heartbeat signals obtained after the integration are transmitted to a KVM control host in the optical fiber matrix KVM, the integrated heartbeat signals of the exchange board card are used for avoiding the equipment to frequently upload the heartbeat signals, thereby reducing the occupation of the exchange board card to transmission bus resources, and simultaneously reducing the frequency of processing the heartbeat signals by the KVM control host, improving the equipment on-line speed, then after the integrated heartbeat signals are obtained, the equipment state information of the equipment is updated to a preset database through the KVM control host and a preset data caching strategy, the frequent operation of the database is reduced, the integrated heartbeat signals obtained after the integration are transmitted to the KVM control host, the time is reduced, the time consumption of the equipment is improved through the integrated operation of the KVM control host is reduced, and the time is changed through the time-consuming and the system is simultaneously, the time is changed through the asynchronized and the system is notified through the system of the integrated operation control signal, and the system is simultaneously, and the time is changed through the time-consuming and the system is notified and the system is simultaneously, and the time is changed through the interface is used for processing and the time-consuming and is notified, and the time is simultaneously. Thereby improving the response speed of the fiber matrix KVM.
As a preferable example, the heartbeat integration module includes a signal integration unit and a device recording unit;
the signal integration unit is used for integrating a plurality of first heartbeat signals stored in the exchange board card and the heartbeat signals of the exchange board card into a json signal, and adding a notify field array in a json command corresponding to the json signal;
the device recording unit is used for recording the device ID of each device which sends the first heartbeat signal to the switch board card through the non-identity field array.
According to the invention, through integrating the heartbeat signals, the transmission times are reduced, the occupation of transmission resources and the processing times of the KVM host are reduced, and meanwhile, when the signals are integrated, the signals are integrated into a single json signal, so that a not ify field array is added in json commands corresponding to the json signals, and the method is used for recording the equipment ID of each corresponding equipment in the current integrated heartbeat signals, thereby being convenient for subsequent management.
As a preferable example, the heartbeat management module includes a database updating unit and an asynchronous notification unit;
the database updating unit is used for controlling the KVM control host to read preset cache data according to a database field modified in advance, and judging whether first equipment state information to be updated exists in the cache data according to the equipment ID recorded in the integrated heartbeat signal; if the first equipment state information to be updated exists in the cache data, updating the first equipment state information through the KVM control host according to the integrated heartbeat signal, and caching second equipment state information obtained after updating to the cache data; if the first equipment state information to be updated does not exist in the cache data, the first equipment state information to be updated is read from the database according to the equipment ID, the first equipment state information is updated through the KVM control host according to the integrated heartbeat signal, and the second equipment state information obtained after updating is cached to the cache data; updating the equipment state information of each piece of equipment to the database according to a preset updating time point and the cache data;
the asynchronous notification unit is used for analyzing the integrated heartbeat signal through the KVM control host to obtain first heartbeat signals respectively sent by each device, and respectively carrying out functional configuration on each device according to the first heartbeat signals; according to the functional configuration, asynchronously notifying each end of the optical fiber matrix KVM through a preset rpc interface and a cmd-RS-485 transmission bus to change the equipment state of each piece of equipment; each end comprises a client, a web end and a server.
In order to reduce frequent operation of a database, a database caching strategy is added, the existing database fields are optimized, the consumption caused by frequent database operation is reduced by utilizing preset caching data, meanwhile, the operation of a direct database is reduced by the caching strategy, the data acquisition efficiency is improved, the response speed is improved, meanwhile, the function configuration of a plurality of devices is carried out based on an integrated heartbeat signal, the notification times of services can be reduced, the time consumption caused by notification is optimized, and meanwhile, the service is notified in an asynchronous notification mode, so that the processing of the next data in a queue can be accelerated, and the response speed of the fiber matrix KVM is further improved.
In a third aspect, the invention discloses an electronic device comprising a processor, a communication interface, a memory, and a communication bus;
the processor, the communication interface, the memory is through the communication bus to finish the mutual communication;
a memory for storing a computer program;
a processor for implementing a large-scale device heartbeat management method for a fiber matrix KVM as described in the first aspect when executing a program stored in a memory.
In a fourth aspect, the present invention discloses a computer readable storage medium, in which a computer program is stored, which when executed by a processor implements a large-scale device heartbeat management method applicable to a fiber matrix KVM as described in the first aspect.
Drawings
Fig. 1: the embodiment of the invention discloses a flow diagram of a heartbeat management method of large-scale equipment suitable for an optical fiber matrix KVM;
fig. 2: the embodiment of the invention discloses a structural schematic diagram of a large-scale equipment heartbeat management device suitable for an optical fiber matrix KVM;
fig. 3: the embodiment of the invention discloses a heartbeat interaction improvement schematic diagram;
fig. 4: the embodiment of the invention discloses a notification service improvement schematic diagram;
fig. 5: the embodiment of the invention discloses a database updating improvement schematic diagram.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Examples
The embodiment of the invention discloses a large-scale equipment heartbeat management method suitable for an optical fiber matrix KVM, and the specific implementation flow of the management method is shown in FIG. 1, and mainly comprises steps 101 to 103, wherein the steps are as follows:
step 101: and controlling a switching board card preset in the optical fiber matrix KVM to receive a first heartbeat signal sent by each of a plurality of devices connected with the switching board card.
In this embodiment, this step is: and controlling the exchange board card to receive and store a first heartbeat signal sent by each device connected with the exchange board card according to the time interval of two adjacent heartbeat times of the exchange board card.
Specifically, in this embodiment, the device heartbeat signal report based on the optical moment KVM system is transmitted to the KVM control host through the switch board card, so that it is known that the switch board card is an intermediate transmission medium for uploading the heartbeat signal to the host by the device, so as to solve the problem that the KVM control host frequently receives responses of continuous running state changes caused by respective heartbeat signal reports of the TX/RX box and the switch card, and therefore, heartbeat notification is performed by taking the switch board card as a unit, that is, the switch board card uniformly receives heartbeat signals reported by the RX/TX box connected to the switch board card, and in particular, in order to avoid separate uploading of the heartbeat signals of the switch board card and the device, the heartbeat signals of the TX/RX box received between two heartbeat times of the switch board card can be received.
In this embodiment, in the time interval between two adjacent heartbeat times of the switch board card, the first heartbeat signal is received by the switch board card, so that the heartbeat signal of the device and the heartbeat signal of the switch board card are sent to the KVM control host together, occupation of the transmission resource and increase of the processing times of the KVM control host caused by separate uploading of the device and the board card are avoided, and occupation of the transmission resource and decrease of the processing times of the KVM control host are reduced.
Step 102: integrating the first heartbeat signal sent by each device and the heartbeat signal of the switching board card to obtain an integrated heartbeat signal, and sending the integrated heartbeat signal to a KVM control host in the optical fiber matrix KVM through the switching board card.
In this embodiment, the steps include: integrating a plurality of first heartbeat signals stored in the exchange board card and the heartbeat signals of the exchange board card into a json signal, and adding a non-form field array in a json command corresponding to the json signal; and recording the equipment ID of each equipment transmitting the first heartbeat signal to the exchange board card through the non-identity field array.
Specifically, in this embodiment, after the switch board card receives the heartbeat signals reported by the RX/TX box connected to the switch board card, the heartbeat signals are combined to form a heartbeat signal of the switch card device, and then the heartbeat signal is reported to the KVM control host, referring to fig. 3, when the heartbeat signals before being improved are uploaded, the heartbeat signals of the device and the switch board card are respectively and independently uploaded to the host control card, so that the host control card needs to respond once when each heartbeat signal is uploaded, and after being improved, the heartbeat signals of the TX box and the RX box are stored in the switch board card, and only the heartbeat signal of the device is uploaded once by the switch board card, so that occupation of the switch card to the cmd-rs485 transmission bus resource is reduced, and the number of times of processing cmd-rs485 serial port data by the KVM control master control is reduced.
Specifically, a plurality of heartbeat json signals stored by the switch board card, namely heartbeat signals of equipment, and the heartbeat signals of the switch board card are integrated into a heartbeat json signal, a notify field array is added in a json command, and equipment IDs of reported heartbeat signals of an RX/TX box received in the interval of two heartbeats of the switch board card are recorded in the array.
In this embodiment, the step reduces the number of transmissions by integrating the heartbeat signal, reduces the occupation of transmission resources and the number of processing times of the KVM host, and integrates the signals into a single json signal when integrating the signals, so that a notify field array is added in the json command corresponding to the json signal, and is used for recording the device ID of each device corresponding to the currently integrated heartbeat signal, so that the device ID is convenient to manage the devices subsequently.
Step 103: according to the integrated heartbeat signal, the KVM control host is controlled to update the equipment state information of each piece of equipment to a preset database through a preset data caching strategy, meanwhile, the KVM control host is used for carrying out function configuration on each piece of equipment, and each end of the optical fiber matrix KVM is notified asynchronously with a transmission bus through a preset interface to change the equipment state of each piece of equipment according to the function configuration.
In this embodiment, the steps include: according to the database field modified in advance, the KVM control host is controlled to read preset cache data, and whether first equipment state information to be updated exists in the cache data is judged according to the equipment ID recorded in the integrated heartbeat signal; if the first equipment state information to be updated exists in the cache data, updating the first equipment state information through the KVM control host according to the integrated heartbeat signal, and caching second equipment state information obtained after updating to the cache data; if the first equipment state information to be updated does not exist in the cache data, the first equipment state information to be updated is read from the database according to the equipment ID, the first equipment state information is updated through the KVM control host according to the integrated heartbeat signal, and the second equipment state information obtained after updating is cached to the cache data; and updating the equipment state information of each piece of equipment to the database according to a preset updating time point and the cache data.
Meanwhile, analyzing the integrated heartbeat signal through the KVM control host to obtain first heartbeat signals respectively sent by each device, and respectively carrying out functional configuration on each device according to the first heartbeat signals; according to the functional configuration, asynchronously notifying each end of the optical fiber matrix KVM through a preset rpc interface and a cmd-RS-485 transmission bus to change the equipment state of each piece of equipment; each end comprises a client, a web end and a server.
Specifically, in this embodiment, after the integrated device heartbeat signal is uniformly reported to the KVM control host by the switch board, the KVM control host updates the device status information to the database of the KVM control host after receiving the reported command signal, further, referring to fig. 4, after receiving the heartbeat command signal reported by the device, the KVM control host in the original optical matrix KVM system directly operates the database according to the information in the heartbeat command signal, and writes the heartbeat command signal into the database, however, frequent read-write operation on the database may cause that the resource occupation of the KVM control host is higher and the operation time is longer, resulting in the reduction of the efficiency of the control host.
In order to reduce frequent operation of the database, a database caching strategy is preset, and the existing database fields are optimized, namely, the fields of equipment up-down line and equipment heartbeat time in the database are removed, and the fields are modified to be recorded into a cache, and referring to fig. 4, the KVM control host can directly read preset cache data according to the optimized fields after receiving a heartbeat command signal, so that consumption caused by frequent database operation is reduced, direct database operation is reduced through the caching strategy, and data acquisition efficiency is improved.
When the KVM control host reads preset cache data, if the read data hits the cache, the data is directly returned, if the read data does not hit the cache, the data is read from the database, then the data is written into the cache and returned to a user, then the hit cache data is updated according to a heartbeat command signal, after a certain period of time, when the preset database updating time point is reached, the database is updated according to the data content in the cache data, and when the database is updated, the data in the database is updated first, and then the data in the cache is deleted.
Further, when the KVM control host updates the database, the KVM control host performs functional configuration on the device uploading the heartbeat signal according to the heartbeat command signal, and after performing functional configuration, the KVM control host notifies each end of the KVM control host that the device state is changed after each command operation response, including a client, a web, a server, etc., according to fig. 5, after performing functional configuration, the KVM control host frequently notifies each end of the operation occupation and efficiency reduction, and after improving the prior art, the embodiment provided in this embodiment asynchronously notifies each end of the device state change through rpc interface and cmd-RS-485 transmission bus according to fig. 5, thereby reducing the number of times of service notification and optimizing time consumption due to notification; and the notification service uses an asynchronous notification mode, so that the processing of the next data in the queue can be quickened.
In this embodiment, in order to reduce frequent operations on the database, add a database caching policy and optimize the existing database field, and utilize preset cache data to reduce consumption caused by frequent database operations, and simultaneously reduce operations of a direct database through the caching policy, improve data acquisition efficiency and response speed, and simultaneously perform functional configuration of multiple devices based on an integrated heartbeat signal, so that notification times of services can be reduced, time consumption caused by notification is optimized, and simultaneously notification of services in an asynchronous notification manner is used, so that processing of next data in a queue can be accelerated, and response speed of the fiber matrix KVM is further improved.
On the other hand, the present embodiment further provides a large-scale device heartbeat management apparatus suitable for the optical fiber matrix KVM, and the specific structural composition of the apparatus may refer to fig. 2, and the apparatus includes a heartbeat receiving module 201, a heartbeat integrating module 202, and a heartbeat management module 203.
The heartbeat receiving module 201 is configured to control a switch board card preset in the optical fiber matrix KVM to receive a first heartbeat signal sent by each of a plurality of devices connected to the switch board card.
The heartbeat integration module 202 is configured to integrate the first heartbeat signal sent by each device and the heartbeat signal of the switch board card to obtain an integrated heartbeat signal, and send the integrated heartbeat signal to a KVM control host in the KVM matrix through the switch board card.
The heartbeat management module 203 is configured to control the KVM control host to update the device status information of each device to a preset database according to the integrated heartbeat signal through a preset data caching policy, and simultaneously perform functional configuration on each device through the KVM control host, and asynchronously notify each end of the optical fiber matrix KVM through a preset interface and a transmission bus to change the device status of each device according to the functional configuration.
In this embodiment, the heartbeat integration module 202 includes a signal integration unit and an equipment recording unit.
The signal integration unit is used for integrating a plurality of first heartbeat signals stored in the exchange board card and the heartbeat signals of the exchange board card into a json signal, and adding a non-ify field array in a json command corresponding to the json signal.
The device recording unit is used for recording the device ID of each device which sends the first heartbeat signal to the switch board card through the non-identity field array.
In this embodiment, the heartbeat management module 203 includes a database update unit and an asynchronous notification unit.
The database updating unit is used for controlling the KVM control host to read preset cache data according to a database field modified in advance, and judging whether first equipment state information to be updated exists in the cache data according to the equipment ID recorded in the integrated heartbeat signal; if the first equipment state information to be updated exists in the cache data, updating the first equipment state information through the KVM control host according to the integrated heartbeat signal, and caching second equipment state information obtained after updating to the cache data; if the first equipment state information to be updated does not exist in the cache data, the first equipment state information to be updated is read from the database according to the equipment ID, the first equipment state information is updated through the KVM control host according to the integrated heartbeat signal, and the second equipment state information obtained after updating is cached to the cache data; and updating the equipment state information of each piece of equipment to the database according to a preset updating time point and the cache data.
The asynchronous notification unit is used for analyzing the integrated heartbeat signal through the KVM control host to obtain first heartbeat signals respectively sent by each device, and respectively carrying out functional configuration on each device according to the first heartbeat signals; according to the functional configuration, asynchronously notifying each end of the optical fiber matrix KVM through a preset rpc interface and a cmd-RS-485 transmission bus to change the equipment state of each piece of equipment; each end comprises a client, a web end and a server.
In addition to the above method and apparatus, this embodiment also provides an electronic device and a computer readable storage medium, where the electronic device includes a processor, a communication interface, a memory, and a communication bus; the processor, the communication interface, the memory is through the communication bus to finish the mutual communication; a memory for storing a computer program; the processor is used for realizing the large-scale equipment heartbeat management method applicable to the optical fiber matrix KVM according to the embodiment when executing the program stored in the memory; the computer readable storage medium stores a computer program, which when executed by a processor, implements a large-scale device heartbeat management method applicable to the optical fiber matrix KVM according to the embodiment.
The embodiment discloses a large-scale equipment heartbeat management method and device suitable for an optical fiber matrix KVM, which are used for uniformly managing a plurality of equipment, reducing the heartbeat reporting times of a single equipment and simplifying the repeated response times of a control host: the method comprises the steps that each device (RX/TX box) independently reports heartbeat signals to a control host, and is modified into a mode that each switching card is accessed by the device to perform unified management, and because each switching card can be accessed by 8 devices at most, the switching card uniformly receives and records heartbeat signals of all the accessed RX/TX boxes, and the switching card only sends the integrated heartbeat signals to the control host for processing according to own heartbeat intervals, the processing times of the control host can be simplified, the occupation of a transmission bus is reduced, frequent operation on a database is further lightened, and the high-efficiency operation of the control host is ensured: by reducing the respective heartbeat signal reporting of the single equipment, the performance occupation of the control host caused by the read-write modification operation of the database when each heartbeat signal is reported can be reduced, the high-efficiency operation of the control host is ensured, meanwhile, the transmission of a plurality of communication messages is reduced, the occupation of a transmission bus is reduced, and the transmission efficiency of each command signal is improved: in the case of large-scale devices, transmission of single type signals, such as heartbeat signals, state change signals and the like, is reduced as much as possible, and high occupation of a transmission bus by single command signals can be achieved, so that transmission efficiency of other various functional and business commands is improved.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.

Claims (10)

1. A large-scale device heartbeat management method for a fiber matrix KVM, comprising:
the method comprises the steps that a switching board card preset in an optical fiber matrix KVM is controlled to receive a first heartbeat signal sent by each device in a plurality of devices connected with the switching board card;
integrating the first heartbeat signal sent by each device and the heartbeat signal of the switching board card to obtain an integrated heartbeat signal, and sending the integrated heartbeat signal to a KVM control host in the optical fiber matrix KVM through the switching board card;
according to the integrated heartbeat signal, the KVM control host is controlled to update the equipment state information of each piece of equipment to a preset database through a preset data caching strategy, meanwhile, the KVM control host is used for carrying out function configuration on each piece of equipment, and each end of the optical fiber matrix KVM is notified asynchronously with a transmission bus through a preset interface to change the equipment state of each piece of equipment according to the function configuration.
2. The method for large-scale device heartbeat management for a KVM as claimed in claim 1, wherein said controlling a switch board preset in the KVM to receive a first heartbeat signal sent by each of a plurality of devices connected to the switch board comprises:
and controlling the exchange board card to receive and store a first heartbeat signal sent by each device connected with the exchange board card according to the time interval of two adjacent heartbeat times of the exchange board card.
3. The method for large-scale device heartbeat management for use in an optical fiber matrix KVM as claimed in claim 1, wherein said integrating the first heartbeat signal sent by each device with the heartbeat signal of the switch board card itself, to obtain an integrated heartbeat signal, comprises:
integrating a plurality of first heartbeat signals stored in the exchange board card and the heartbeat signals of the exchange board card into a json signal, and adding a notify field array in a json command corresponding to the json signal;
and recording the equipment ID of each equipment transmitting the first heartbeat signal to the exchange board card through the notify field array.
4. The method for large-scale device heartbeat management for a KVM as claimed in claim 1, wherein said controlling the KVM control host to update the device status information of each device to a predetermined database through a predetermined data caching policy comprises:
according to the database field modified in advance, the KVM control host is controlled to read preset cache data, and whether first equipment state information to be updated exists in the cache data is judged according to the equipment ID recorded in the integrated heartbeat signal;
if the first equipment state information to be updated exists in the cache data, updating the first equipment state information through the KVM control host according to the integrated heartbeat signal, and caching second equipment state information obtained after updating to the cache data;
if the first equipment state information to be updated does not exist in the cache data, the first equipment state information to be updated is read from the database according to the equipment ID, the first equipment state information is updated through the KVM control host according to the integrated heartbeat signal, and the second equipment state information obtained after updating is cached to the cache data;
and updating the equipment state information of each piece of equipment to the database according to a preset updating time point and the cache data.
5. The method for large-scale device heartbeat management for a KVM as claimed in claim 1, wherein said performing, by the KVM control host, a function configuration on each device, and asynchronously notifying each end of the KVM through a preset interface and a transmission bus to change a device status of each device according to the function configuration, comprises:
analyzing the integrated heartbeat signal through the KVM control host to obtain first heartbeat signals respectively sent by each device, and respectively carrying out functional configuration on each device according to the first heartbeat signals;
according to the functional configuration, asynchronously notifying each end of the optical fiber matrix KVM through a preset rpc interface and a cmd-RS-485 transmission bus to change the equipment state of each piece of equipment; each end comprises a client, a web end and a server.
6. The device is characterized by comprising a heartbeat receiving module, a heartbeat integrating module and a heartbeat management module;
the heartbeat receiving module is used for controlling a switching board card preset in the optical fiber matrix KVM to receive a first heartbeat signal sent by each of a plurality of devices connected with the switching board card;
the heartbeat integration module is used for integrating the first heartbeat signal sent by each device and the heartbeat signal of the exchange board card to obtain an integrated heartbeat signal, and sending the integrated heartbeat signal to a KVM control host in the optical fiber matrix KVM through the exchange board card;
the heartbeat management module is used for controlling the KVM control host to update the equipment state information of each equipment to a preset database through a preset data caching strategy according to the integrated heartbeat signal, and meanwhile, carrying out functional configuration on each equipment through the KVM control host, and asynchronously notifying each end of the optical fiber matrix KVM through a preset interface and a transmission bus to change the equipment state of each equipment according to the functional configuration.
7. The large-scale device heartbeat management apparatus for a fiber matrix KVM as claimed in claim 6, wherein the heartbeat integration module comprises a signal integration unit and a device recording unit;
the signal integration unit is used for integrating a plurality of first heartbeat signals stored in the exchange board card and the heartbeat signals of the exchange board card into a json signal, and adding a notify field array in a json command corresponding to the json signal;
the device recording unit is used for recording the device ID of each device which sends the first heartbeat signal to the switch board card through the notify field array.
8. The large-scale equipment heartbeat management device for the fiber matrix KVM of claim 6, wherein the heartbeat management module comprises a database updating unit and an asynchronous notification unit;
the database updating unit is used for controlling the KVM control host to read preset cache data according to a database field modified in advance, and judging whether first equipment state information to be updated exists in the cache data according to the equipment ID recorded in the integrated heartbeat signal; if the first equipment state information to be updated exists in the cache data, updating the first equipment state information through the KVM control host according to the integrated heartbeat signal, and caching second equipment state information obtained after updating to the cache data; if the first equipment state information to be updated does not exist in the cache data, the first equipment state information to be updated is read from the database according to the equipment ID, the first equipment state information is updated through the KVM control host according to the integrated heartbeat signal, and the second equipment state information obtained after updating is cached to the cache data; updating the equipment state information of each piece of equipment to the database according to a preset updating time point and the cache data;
the asynchronous notification unit is used for analyzing the integrated heartbeat signal through the KVM control host to obtain first heartbeat signals respectively sent by each device, and respectively carrying out functional configuration on each device according to the first heartbeat signals; according to the functional configuration, asynchronously notifying each end of the optical fiber matrix KVM through a preset rpc interface and a cmd-RS-485 transmission bus to change the equipment state of each piece of equipment; each end comprises a client, a web end and a server.
9. An electronic device comprising a processor, a communication interface, a memory, and a communication bus;
the processor, the communication interface, the memory is through the communication bus to finish the mutual communication;
a memory for storing a computer program;
a processor for implementing a large-scale device heartbeat management method for a fiber matrix KVM as claimed in any one of claims 1 to 5 when executing a program stored on a memory.
10. A computer readable storage medium, wherein a computer program is stored in the computer readable storage medium, and when the computer program is executed by a processor, the computer program implements a large-scale device heartbeat management method applicable to a fiber matrix KVM according to any one of claims 1 to 5.
CN202311580385.9A 2023-11-23 2023-11-23 Large-scale equipment heartbeat management method and device suitable for fiber matrix KVM Pending CN117499278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311580385.9A CN117499278A (en) 2023-11-23 2023-11-23 Large-scale equipment heartbeat management method and device suitable for fiber matrix KVM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311580385.9A CN117499278A (en) 2023-11-23 2023-11-23 Large-scale equipment heartbeat management method and device suitable for fiber matrix KVM

Publications (1)

Publication Number Publication Date
CN117499278A true CN117499278A (en) 2024-02-02

Family

ID=89670754

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311580385.9A Pending CN117499278A (en) 2023-11-23 2023-11-23 Large-scale equipment heartbeat management method and device suitable for fiber matrix KVM

Country Status (1)

Country Link
CN (1) CN117499278A (en)

Similar Documents

Publication Publication Date Title
CN100334564C (en) Memory hub and access method having internal row caching
US20060265558A1 (en) Information processing method and system
CN103218310A (en) Cache device, communication apparatus, and computer program product
CN113986791B (en) Method, system, equipment and terminal for designing intelligent network card fast DMA
CN107508869A (en) Trace back data acquisition method and client
CN110119304A (en) A kind of interruption processing method, device and server
US20110283063A1 (en) Disk array device, a disk array device control method and a disk array device control program
US8199648B2 (en) Flow control in a variable latency system
CN112506431B (en) I/O instruction scheduling method and device based on disk device attributes
CN117312229B (en) Data transmission device, data processing equipment, system, method and medium
CN100449550C (en) Vehicle running recording instrument data managing method
US20070083708A1 (en) Controller of redundant arrays of independent disks and operation method thereof
CN117499278A (en) Large-scale equipment heartbeat management method and device suitable for fiber matrix KVM
CN104133781A (en) Network storage equipment and method thereof for improving data access speed
CN113051244B (en) Data access method and device, and data acquisition method and device
CN213399571U (en) Data transmission platform based on SOC and FPGA
CN108337285B (en) Communication system and communication method
CN106897021A (en) A kind of method and apparatus for reading and writing data
CN101588389A (en) Method for selecting storage apparatus, application server and storage apparatus
CN112187842B (en) Local area network data processing system and local area network data processing method
CN116601616A (en) Data processing device, method and related equipment
CN113596506B (en) Performance optimization method and system for live cache, electronic device and storage medium
CN111241044A (en) Method, device and equipment for building heterogeneous database and readable storage medium
CN112732176B (en) SSD (solid State disk) access method and device based on FPGA (field programmable Gate array), storage system and storage medium
CN112578996B (en) Metadata sending method of storage system and storage system

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