[go: up one dir, main page]

CN113225204A - Gateway control method and system - Google Patents

Gateway control method and system Download PDF

Info

Publication number
CN113225204A
CN113225204A CN202110314180.0A CN202110314180A CN113225204A CN 113225204 A CN113225204 A CN 113225204A CN 202110314180 A CN202110314180 A CN 202110314180A CN 113225204 A CN113225204 A CN 113225204A
Authority
CN
China
Prior art keywords
working
target
equipment
router
data
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
CN202110314180.0A
Other languages
Chinese (zh)
Other versions
CN113225204B (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.)
Beijing Dynaflow Experiment Technology Co Ltd
Original Assignee
Beijing Dynaflow Experiment 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 Beijing Dynaflow Experiment Technology Co Ltd filed Critical Beijing Dynaflow Experiment Technology Co Ltd
Priority to CN202110314180.0A priority Critical patent/CN113225204B/en
Publication of CN113225204A publication Critical patent/CN113225204A/en
Application granted granted Critical
Publication of CN113225204B publication Critical patent/CN113225204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

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

Abstract

The invention discloses a gateway control method and a system, wherein the method comprises the following steps: connecting the NAS device with a server, realizing network connection between the NAS device and an installation router through a network cable, configuring the installation router as a common gateway of a plurality of working devices, and selecting a target working device from the common gateway by using the NAS device to transmit data and upload the data to the server. The installation router is configured to be the public gateway, so that the gateways of the plurality of working devices can be kept consistent, and the transmission data of the plurality of working devices can be transmitted simultaneously, the data transmission efficiency is further improved, and the accurate monitoring of each working device is ensured.

Description

Gateway control method and system
Technical Field
The present invention relates to the field of gateway technologies, and in particular, to a gateway control method and system.
Background
Currently, a large number of working devices are placed in a large-scale company or laboratory, a manager of the company or laboratory needs to monitor and debug the working devices at a large cost, and a conventional working device monitoring method determines whether a working device fails by connecting a server and each working device through a physical data line to receive data transmitted by each working device, but the method has the following problems: the entity data line is utilized to connect the server and the working equipment, so that the cost is wasted, the space is occupied, and the data transmission efficiency is not high-efficient, therefore, with the arrival of a big data era, the internet of things technology is gradually applied to various fields, in the environment of the internet of things, scientists realize data transmission of the working equipment by utilizing a mode that a plurality of gateways exist in a local area network, the data transmission method has high transmission efficiency and high stability, but the method has the following defects: the gateway of each working device is independently used as a manager, transmission data of a plurality of working devices cannot be received simultaneously when data transmission is carried out, data transmission efficiency is seriously influenced, the working devices cannot be monitored efficiently, and the risk of safety accidents of the working devices is improved.
Disclosure of Invention
In view of the above-mentioned problems, the present invention provides a gateway control method and system to solve the problems mentioned in the background art that a gateway of each working device is independently a government, and cannot receive transmission data of a plurality of working devices simultaneously during data transmission, which seriously affects data transmission efficiency, and further cannot efficiently monitor the working devices, thereby increasing the risk of safety accidents occurring to the working devices.
A gateway control method comprises the following steps:
connecting the NAS device with a server;
network connection between the NAS device and the installation router is achieved through the network cable;
configuring the installation router as a common gateway for a plurality of working devices;
and selecting target working equipment from the public gateway by using the NAS equipment for data transmission and uploading the target working equipment to the server.
Preferably, the connecting the NAS device to the server includes:
receiving connection request information sent by the NAS equipment;
confirming the working state of the server, converting the connection request information into priority indication information when the working state is busy, and connecting the NAS device with the server according to the connection request information when the working state is idle;
sending the priority indication information to a network node of the server to determine a priority of the priority knowledge information;
and preferentially connecting the NAS equipment with the server according to the priority.
Preferably, the configuring the installation router as a common gateway of a plurality of working devices includes:
determining a target ip address of the installation router, and confirming the target ip address as a public ip address;
generating equipment registration information according to the public ip address;
feeding back the equipment registration information to the plurality of working equipment so that the plurality of working equipment can be remotely connected with the installation router according to the equipment registration information;
and testing the remote connection condition of each working device, and confirming that the configuration of the public gateway is finished when the remote connection conditions of the working devices are correct.
Preferably, the selecting, by the NAS device, a target operating device from the public gateway for data transmission and uploading to the server includes:
starting a data transmission function of the target working equipment by using the public gateway;
confirming the target file type of the transmission file of the target working equipment;
determining a data transmission element and a data access element according to the type of the target file;
matching the data transmission elements and the data access elements in a preset data transmission channel table to obtain an exclusive transmission channel corresponding to the target file type;
and acquiring target transmission data of the target working equipment through the exclusive channel by using the NAS equipment, and uploading the target transmission data to the server.
Preferably, before the NAS device obtains target transmission data of the target working device through the dedicated channel and uploads the target transmission data to the server, the method further includes:
determining a memory of the target transmission data;
acquiring the current bandwidth of the installed router, and calculating the current transmission efficiency of the target transmission data according to the memory of the target transmission data and the current bandwidth;
and determining whether the current transmission efficiency is more than or equal to a preset transmission efficiency, if so, not needing to perform subsequent operation, and otherwise, increasing the current bandwidth of the installation router.
Preferably, the step of increasing the current bandwidth of the installation router comprises:
generating a bandwidth increase request;
determining a plurality of service channels of the installation router and the use bandwidth of each service channel;
determining a target service channel occupied by transmission target transmission data according to the bandwidth increasing request, and calculating the expected bandwidth of the target service channel;
and adaptively reducing the used bandwidths of other service channels except the target service channel according to the expected bandwidth, and scheduling the reduced bandwidth of each service channel to the target service channel.
Preferably, the method further comprises:
detecting the network stability of the installation router in real time, and generating a network fluctuation report of the installation router at regular time;
generating a network optimization schedule according to the network fluctuation report;
and carrying out network optimization on the installation router according to the network optimization plan table.
Preferably, after configuring the installation router as a common gateway of a plurality of working devices, before selecting, by the NAS device, a target working device from the common gateway for data transmission and uploading to the server, the method further includes:
grouping the connecting devices provided with the routers, independently dividing the NAS device into a group a, and dividing the rest connecting devices except the NAS device into a group b;
acquiring a data transceiving performance index of each connecting device in the group b;
determining a resource sharing factor of the connected devices in the group b;
setting corresponding preset resource calling degrees for the group a and the group b according to the data transceiving performance index and the resource sharing factor of each connecting device;
determining whether the target resource calling degree of target transmission data of the target working equipment is greater than or equal to the preset resource calling degree, if so, acquiring network coverage parameters of the installation router, and otherwise, selecting the target working equipment from the public gateway by using the NAS equipment to transmit the data and upload the data to the server;
analyzing the network coverage parameters to obtain a network signal-to-noise ratio and an interference signal-to-noise ratio of the installed router;
rejecting the signal-to-noise ratio of the interference signal by utilizing a particle swarm optimization method to realize optimization of the network coverage parameter;
and after the optimization is finished, testing the optimized network coverage parameters, if the optimized network coverage parameters pass the test, selecting target working equipment from the public gateway by using the NAS equipment to transmit data and upload the data to the server, and otherwise, continuously optimizing the optimized network coverage parameters again until the network coverage parameters pass the test.
Preferably, the step of testing the remote connection condition of each working device includes:
generating a detection data packet, and uploading the detection data packet to NAS equipment;
sending the detection data packet to each working device by the NAS device, counting whether each detection data packet returns a feedback data packet or not, confirming a first working device returning the feedback data packet as a connected turntable, and confirming a second working device not returning the feedback data packet as an unconnected state;
counting the target time length from the time when each first working device sends a feedback data packet to the time when the installation router receives the feedback data packet;
calculating the connection strength coefficient between each first working device and the installation router according to the target time length from the time when each first working device sends a feedback data packet to the time when the installation router receives the feedback data packet:
Figure BDA0002991081220000051
wherein k isiExpressed as the connection strength coefficient of the ith first working equipment and the installation router, S is expressed as the current network strength of the installation router, S1Expressed as the standard network strength, t, used for the testi1Expressed as the target time length, t, from the sending of a feedback data packet by the ith first working equipment to the receiving of the feedback data packet by the installation routeri2The target time length t is represented by the time length from the installation router sending the detection data packet to the ith first working equipment receiving the detection data packeti3Expressed as the time duration, t, required for generating a feedback data packet for the ith first working devicei4Expressed as the waiting time, beta, of the ith first working device after generating the feedback data packet before sending the feedback data packet to the installation routeriA degree of compatibility, g, with the device registration information expressed as the ith first working deviceiExpressed as the responsiveness of the ith first working device, p, to the installation of the routeriExpressing the network driving grade of the ith first working device, and expressing Q as the maximum grade of the preset network driving;
sending a control instruction to each first working device by using the NAS device, and acquiring the feedback condition of each first working device to the control instruction;
calculating a data transmission stability index between each first working device and the installation router according to the connection strength coefficient of each first working device and the installation router and the feedback condition of each first working device to the control instruction:
Figure BDA0002991081220000052
wherein, FiExpressed as an index of stability of data transmission between the ith first working device and the installation router, iN expressed as the number of target working components related to control instructions among the working components of the ith first working device, DijExpressed as the execution degree of the jth target working component in the ith first working device to the control command, AiExpressed as the sum of the degrees of execution of the control commands by the target working components of the ith first working device, HiThe network connection fluctuation frequency between the ith first industrial equipment and the installation router is represented;
and confirming whether the data transmission stability index between each first working device and the installation router is larger than or equal to a preset threshold value, if so, confirming that the network connection condition between the first working device and the installation router is stable, otherwise, confirming that the network connection condition between the first working device and the installation router is unstable, and sending an alarm prompt.
A gateway control system, the system comprising:
the connection module is used for connecting the NAS device with the server;
the connection module is used for realizing network connection between the NAS device and the installation router through a network cable;
the configuration module is used for configuring the installation router as a common gateway of a plurality of working devices;
and the transmission module is used for selecting target working equipment from the public gateway by using the NAS equipment to perform data transmission and uploading the target working equipment to the server.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart illustrating a method for controlling a gateway according to the present invention;
fig. 2 is another flowchart of a gateway control method according to the present invention;
fig. 3 is a flowchart illustrating a further operation of a gateway control method according to the present invention;
fig. 4 is a schematic structural diagram of a gateway control system provided in the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Currently, a large number of working devices are placed in a large-scale company or laboratory, a manager of the company or laboratory needs to monitor and debug the working devices at a large cost, and a conventional working device monitoring method determines whether a working device fails by connecting a server and each working device through a physical data line to receive data transmitted by each working device, but the method has the following problems: the entity data line is utilized to connect the server and the working equipment, so that the cost is wasted, the space is occupied, and the data transmission efficiency is not high-efficient, therefore, with the arrival of a big data era, the internet of things technology is gradually applied to various fields, in the environment of the internet of things, scientists realize data transmission of the working equipment by utilizing a mode that a plurality of gateways exist in a local area network, the data transmission method has high transmission efficiency and high stability, but the method has the following defects: the gateway of each working device is independently used as a manager, transmission data of a plurality of working devices cannot be received simultaneously when data transmission is carried out, data transmission efficiency is seriously influenced, the working devices cannot be monitored efficiently, and the risk of safety accidents of the working devices is improved. In order to solve the above problem, the present embodiment discloses a gateway control method.
A gateway control method, as shown in fig. 1, includes the following steps:
s101, connecting the NAS device with a server;
step S102, network connection between the NAS device and the installation router is achieved through a network cable;
step S103, configuring the installation router as a public gateway of a plurality of working devices;
and step S104, selecting target working equipment from the public gateway by using the NAS equipment to perform data transmission and uploading the target working equipment to the server.
The working principle of the technical scheme is as follows: connecting the NAS device with a server, realizing network connection between the NAS device and an installation router through a network cable, configuring the installation router as a common gateway of a plurality of working devices, and selecting a target working device from the common gateway by using the NAS device to transmit data and upload the data to the server.
The beneficial effects of the above technical scheme are: the NAS equipment is connected with the server to receive the transmission data of each working equipment, so that the transmission data of each working equipment can be received more quickly on the basis of the original data transmission efficiency, a monitoring person can know and maintain the working equipment at the first time when the working equipment is abnormal, the risk of safety accidents is reduced, furthermore, the installation router is configured into a public gateway, so that the gateways of a plurality of working equipment can be kept consistent, the transmission data of the plurality of working equipment can be transmitted simultaneously, the data transmission efficiency is further improved, the accurate monitoring of each working equipment is ensured, the risk of safety accidents is further reduced, the problem that the gateway of each working equipment is independently used and cannot receive the transmission data of the plurality of working equipment simultaneously when the data is transmitted in the prior art is solved, the data transmission efficiency is seriously influenced, and the working equipment cannot be efficiently monitored.
In one embodiment, the connecting the NAS device with the server includes:
receiving connection request information sent by the NAS equipment;
confirming the working state of the server, converting the connection request information into priority indication information when the working state is busy, and connecting the NAS device with the server according to the connection request information when the working state is idle;
sending the priority indication information to a network node of the server to determine a priority of the priority knowledge information;
and preferentially connecting the NAS equipment with the server according to the priority.
The beneficial effects of the above technical scheme are: whether the working state of the server is busy or not is confirmed, and then the server is connected in different modes, so that the NAS can be connected with the server in time to upload subsequent transmission data no matter whether the server is busy or not, and the stability is improved.
In one embodiment, as shown in fig. 2, the configuring the installation router as a common gateway of a plurality of working devices includes:
step S201, determining a target ip address of the installation router, and confirming the target ip address as a public ip address;
step S202, generating equipment registration information according to the public ip address;
step S203, feeding back the equipment registration information to the plurality of working equipment so that the plurality of working equipment can be remotely connected with the installation router according to the equipment registration information;
and S204, testing the remote connection condition of each working device, and confirming that the configuration of the public gateway is finished when the remote connection conditions of the working devices are correct.
The beneficial effects of the above technical scheme are: the device registration information common to the plurality of working devices is generated according to the target ip address of the installation route, and then the communication connection is realized between the NAS device and the plurality of working devices, so that the NAS device can debug or control the plurality of working devices through the installation router, remote debugging and monitoring are realized, and the labor cost is saved.
In an embodiment, the selecting, by the NAS device, a target working device from the public gateway for data transmission and uploading to the server includes:
starting a data transmission function of the target working equipment by using the public gateway;
confirming the target file type of the transmission file of the target working equipment;
determining a data transmission element and a data access element according to the type of the target file;
matching the data transmission elements and the data access elements in a preset data transmission channel table to obtain an exclusive transmission channel corresponding to the target file type;
and acquiring target transmission data of the target working equipment through the exclusive channel by using the NAS equipment, and uploading the target transmission data to the server.
The beneficial effects of the above technical scheme are: the data transmission is carried out through the exclusive transmission channel of each working device, so that the privacy and the safety of the transmitted data can be guaranteed, the situation that the data are confused due to the fact that the transmitted data of certain working device are mixed with the transmitted data of other working devices can be prevented, and the stability and the safety of the data are further improved.
In one embodiment, before obtaining target transmission data of the target working device through the dedicated channel by using the NAS device, and uploading the target transmission data to the server, the method further includes:
determining a memory of the target transmission data;
acquiring the current bandwidth of the installed router, and calculating the current transmission efficiency of the target transmission data according to the memory of the target transmission data and the current bandwidth;
and determining whether the current transmission efficiency is more than or equal to a preset transmission efficiency, if so, not needing to perform subsequent operation, and otherwise, increasing the current bandwidth of the installation router.
The beneficial effects of the above technical scheme are: the current transmission efficiency of the target transmission data is calculated to determine whether the bandwidth needs to be adjusted or not, so that the transmission efficiency of the data can be further ensured, meanwhile, the bandwidth is increased to obtain enough bandwidth to transmit the target transmission data, the condition that the data transmission is stopped due to the fact that the bandwidth is too small in the transmission process can be avoided, the stability is further improved, and meanwhile, the integrity of the target transmission data is ensured.
In one embodiment, as shown in fig. 3, the step of increasing the current bandwidth of the installation router comprises:
step S301, generating a bandwidth increasing request;
step S302, determining a plurality of service channels of the installation router and the use bandwidth of each service channel;
step S303, determining a target service channel occupied by transmission target transmission data according to the bandwidth increasing request, and calculating the expected bandwidth of the target service channel;
step S304, adaptively reducing the used bandwidths of other service channels except the target service channel according to the expected bandwidth, and scheduling the reduced bandwidth of each service channel to the target service channel.
The beneficial effects of the above technical scheme are: the bandwidth of all the service channels except the target service channel is reduced, and then the reduced part is dispatched to the target service channel, so that the transmission data of the target service channel can be ensured to have enough bandwidth, meanwhile, the working processes of other service channels can be prevented from stopping, and the efficiency of data transmission is further improved.
In one embodiment, the method further comprises:
detecting the network stability of the installation router in real time, and generating a network fluctuation report of the installation router at regular time;
generating a network optimization schedule according to the network fluctuation report;
and carrying out network optimization on the installation router according to the network optimization plan table.
The beneficial effects of the above technical scheme are: by generating the network optimization schedule, the network optimization of the installation router can be performed regularly by the staff, and the continuous stability monitoring and debugging of the NA 4S equipment to a plurality of working equipment are ensured. The overall stability is improved.
In one embodiment, after configuring the installation router as a common gateway of a plurality of working devices, before selecting, by the NAS device, a target working device from the common gateway for data transmission and uploading to the server, the method further includes:
grouping the connecting devices provided with the routers, independently dividing the NAS device into a group a, and dividing the rest connecting devices except the NAS device into a group b;
acquiring a data transceiving performance index of each connecting device in the group b;
determining a resource sharing factor of the connected devices in the group b;
setting corresponding preset resource calling degrees for the group a and the group b according to the data transceiving performance index and the resource sharing factor of each connecting device;
determining whether the target resource calling degree of target transmission data of the target working equipment is greater than or equal to the preset resource calling degree, if so, acquiring network coverage parameters of the installation router, and otherwise, selecting the target working equipment from the public gateway by using the NAS equipment to transmit the data and upload the data to the server;
analyzing the network coverage parameters to obtain a network signal-to-noise ratio and an interference signal-to-noise ratio of the installed router;
rejecting the signal-to-noise ratio of the interference signal by utilizing a particle swarm optimization method to realize optimization of the network coverage parameter;
and after the optimization is finished, testing the optimized network coverage parameters, if the optimized network coverage parameters pass the test, selecting target working equipment from the public gateway by using the NAS equipment to transmit data and upload the data to the server, and otherwise, continuously optimizing the optimized network coverage parameters again until the network coverage parameters pass the test.
The beneficial effects of the above technical scheme are: the resource calling degree of the NAS device during data transmission is determined and then optimized, so that the NAS device can be further ensured to receive transmission data from each working device at a sufficiently stable and rapid network speed, further, the NAS device can be prevented from being influenced by other connecting devices in the data transmission process by grouping the connecting devices provided with the routers, the stability of data transmission is further ensured, further, the influence of interference signals can be avoided by continuously optimizing the network coverage parameters of the routers, so that a stable connection relation is kept between the NAS device and the routers, and the stability is further improved.
In one embodiment, the step of testing the remote connection condition of each working device comprises:
generating a detection data packet, and uploading the detection data packet to NAS equipment;
sending the detection data packet to each working device by the NAS device, counting whether each detection data packet returns a feedback data packet or not, confirming a first working device returning the feedback data packet as a connected turntable, and confirming a second working device not returning the feedback data packet as an unconnected state;
counting the target time length from the time when each first working device sends a feedback data packet to the time when the installation router receives the feedback data packet;
calculating the connection strength coefficient between each first working device and the installation router according to the target time length from the time when each first working device sends a feedback data packet to the time when the installation router receives the feedback data packet:
Figure BDA0002991081220000121
wherein k isiExpressed as the connection strength coefficient of the ith first working equipment and the installation router, S is expressed as the current network strength of the installation router, S1Expressed as the standard network strength, t, used for the testi1Expressed as the target time length, t, from the sending of a feedback data packet by the ith first working equipment to the receiving of the feedback data packet by the installation routeri2The target time length t is represented by the time length from the installation router sending the detection data packet to the ith first working equipment receiving the detection data packeti3Expressed as the time duration, t, required for generating a feedback data packet for the ith first working devicei4Expressed as the waiting time, beta, of the ith first working device after generating the feedback data packet before sending the feedback data packet to the installation routeriA degree of compatibility, g, with the device registration information expressed as the ith first working deviceiExpressed as the responsiveness of the ith first working device, p, to the installation of the routeriExpressing the network driving grade of the ith first working device, and expressing Q as the maximum grade of the preset network driving;
sending a control instruction to each first working device by using the NAS device, and acquiring the feedback condition of each first working device to the control instruction;
calculating a data transmission stability index between each first working device and the installation router according to the connection strength coefficient of each first working device and the installation router and the feedback condition of each first working device to the control instruction:
Figure BDA0002991081220000131
wherein, FiExpressed as an index of stability of data transmission between the ith first working device and the installation router, iN expressed as the number of target working components related to control instructions among the working components of the ith first working device, DijExpressed as the execution degree of the jth target working component in the ith first working device to the control command, AiExpressed as the sum of the degrees of execution of the control commands by the target working components of the ith first working device, HiThe network connection fluctuation frequency between the ith first industrial equipment and the installation router is represented;
and confirming whether the data transmission stability index between each first working device and the installation router is larger than or equal to a preset threshold value, if so, confirming that the network connection condition between the first working device and the installation router is stable, otherwise, confirming that the network connection condition between the first working device and the installation router is unstable, and sending an alarm prompt.
The technical scheme has the beneficial effects that; by sending the detection data packet to each working device by using the NAS device and determining whether the feedback data packet is received, it is possible to determine whether the network connection between the NAS device and the installation router is normal and accurately evaluate the network connection between each working device and the installation router, and further, by calculating the connection strength between each first working device returning the feedback data packet and the installation router, whether data transmission is possible or not in the connection condition can be evaluated according to the connection strength, and further, whether data transmission can be carried out between each first working device and the installation router can be further determined by further calculating the data transmission stability index between each first working device and the installation router, so that the evaluation accuracy is ensured, meanwhile, the accuracy of the calculation result can be more intuitively and accurately ensured by calculating by using the actual detection result parameters.
This embodiment also discloses a gateway control system, as shown in fig. 4, the system includes:
a connection module 401, configured to connect the NAS device to a server;
a connection module 402, configured to implement network connection between the NAS device and the installation router through a network cable;
a configuration module 403, configured to configure the installation router as a common gateway of a plurality of working devices;
a transmission module 404, configured to select, by using the NAS device, a target working device from the public gateway for data transmission, and upload the target working device to the server.
The working principle and the advantageous effects of the above technical solution have been explained in the method claims, and are not described herein again.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A gateway control method is characterized by comprising the following steps:
connecting the NAS device with a server;
network connection between the NAS device and the installation router is achieved through the network cable;
configuring the installation router as a common gateway for a plurality of working devices;
and selecting target working equipment from the public gateway by using the NAS equipment for data transmission and uploading the target working equipment to the server.
2. The gateway control method according to claim 1, wherein the connecting the NAS device to the server comprises:
receiving connection request information sent by the NAS equipment;
confirming the working state of the server, converting the connection request information into priority indication information when the working state is busy, and connecting the NAS device with the server according to the connection request information when the working state is idle;
sending the priority indication information to a network node of the server to determine a priority of the priority knowledge information;
and preferentially connecting the NAS equipment with the server according to the priority.
3. The gateway control method according to claim 1, wherein the configuring the installation router as a common gateway for a plurality of working devices comprises:
determining a target ip address of the installation router, and confirming the target ip address as a public ip address;
generating equipment registration information according to the public ip address;
feeding back the equipment registration information to the plurality of working equipment so that the plurality of working equipment can be remotely connected with the installation router according to the equipment registration information;
and testing the remote connection condition of each working device, and confirming that the configuration of the public gateway is finished when the remote connection conditions of the working devices are correct.
4. The gateway control method according to claim 1, wherein the selecting, by the NAS device, a target working device from the public gateway for data transmission and uploading to the server includes:
starting a data transmission function of the target working equipment by using the public gateway;
confirming the target file type of the transmission file of the target working equipment;
determining a data transmission element and a data access element according to the type of the target file;
matching the data transmission elements and the data access elements in a preset data transmission channel table to obtain an exclusive transmission channel corresponding to the target file type;
and acquiring target transmission data of the target working equipment through the exclusive channel by using the NAS equipment, and uploading the target transmission data to the server.
5. The gateway control method according to claim 4, wherein before obtaining the target transmission data of the target working device through the dedicated channel by using the NAS device, and uploading the target transmission data to the server, the method further comprises:
determining a memory of the target transmission data;
acquiring the current bandwidth of the installed router, and calculating the current transmission efficiency of the target transmission data according to the memory of the target transmission data and the current bandwidth;
and determining whether the current transmission efficiency is more than or equal to a preset transmission efficiency, if so, not needing to perform subsequent operation, and otherwise, increasing the current bandwidth of the installation router.
6. The gateway control method according to claim 5, wherein the step of increasing the current bandwidth of the installed router comprises:
generating a bandwidth increase request;
determining a plurality of service channels of the installation router and the use bandwidth of each service channel;
determining a target service channel occupied by transmission target transmission data according to the bandwidth increasing request, and calculating the expected bandwidth of the target service channel;
and adaptively reducing the used bandwidths of other service channels except the target service channel according to the expected bandwidth, and scheduling the reduced bandwidth of each service channel to the target service channel.
7. The gateway control method according to claim 1, wherein the method further comprises:
detecting the network stability of the installation router in real time, and generating a network fluctuation report of the installation router at regular time;
generating a network optimization schedule according to the network fluctuation report;
and carrying out network optimization on the installation router according to the network optimization plan table.
8. The gateway control method according to claim 1, wherein after configuring the installation router as a common gateway of a plurality of working devices, before selecting a target working device from the common gateway for data transmission and uploading to the server by using the NAS device, the method further comprises:
grouping the connecting devices provided with the routers, independently dividing the NAS device into a group a, and dividing the rest connecting devices except the NAS device into a group b;
acquiring a data transceiving performance index of each connecting device in the group b;
determining a resource sharing factor of the connected devices in the group b;
setting corresponding preset resource calling degrees for the group a and the group b according to the data transceiving performance index and the resource sharing factor of each connecting device;
determining whether the target resource calling degree of target transmission data of the target working equipment is greater than or equal to the preset resource calling degree, if so, acquiring network coverage parameters of the installation router, and otherwise, selecting the target working equipment from the public gateway by using the NAS equipment to transmit the data and upload the data to the server;
analyzing the network coverage parameters to obtain a network signal-to-noise ratio and an interference signal-to-noise ratio of the installed router;
rejecting the signal-to-noise ratio of the interference signal by utilizing a particle swarm optimization method to realize optimization of the network coverage parameter;
and after the optimization is finished, testing the optimized network coverage parameters, if the optimized network coverage parameters pass the test, selecting target working equipment from the public gateway by using the NAS equipment to transmit data and upload the data to the server, and otherwise, continuously optimizing the optimized network coverage parameters again until the network coverage parameters pass the test.
9. The gateway control method according to claim 3, wherein the step of testing the remote connection condition of each operating device comprises:
generating a detection data packet, and uploading the detection data packet to NAS equipment;
sending the detection data packet to each working device by the NAS device, counting whether each detection data packet returns a feedback data packet or not, confirming a first working device returning the feedback data packet as a connected turntable, and confirming a second working device not returning the feedback data packet as an unconnected state;
counting the target time length from the time when each first working device sends a feedback data packet to the time when the installation router receives the feedback data packet;
calculating the connection strength coefficient between each first working device and the installation router according to the target time length from the time when each first working device sends a feedback data packet to the time when the installation router receives the feedback data packet:
Figure FDA0002991081210000041
wherein k isiExpressed as the connection strength coefficient of the ith first working equipment and the installation router, S is expressed as the current network strength of the installation router, S1Expressed as the standard network strength, t, used for the testi1Expressed as the target time length, t, from the sending of a feedback data packet by the ith first working equipment to the receiving of the feedback data packet by the installation routeri2The target time length t is represented by the time length from the installation router sending the detection data packet to the ith first working equipment receiving the detection data packeti3Expressed as the time duration, t, required for generating a feedback data packet for the ith first working devicei4Expressed as the waiting time, beta, of the ith first working device after generating the feedback data packet before sending the feedback data packet to the installation routeriA degree of compatibility, g, with the device registration information expressed as the ith first working deviceiExpressed as the responsiveness of the ith first working device, p, to the installation of the routeriExpressing the network driving grade of the ith first working device, and expressing Q as the maximum grade of the preset network driving;
sending a control instruction to each first working device by using the NAS device, and acquiring the feedback condition of each first working device to the control instruction;
calculating a data transmission stability index between each first working device and the installation router according to the connection strength coefficient of each first working device and the installation router and the feedback condition of each first working device to the control instruction:
Figure FDA0002991081210000051
wherein, FiIs expressed as data transmission stability index between the ith first working equipment and the installation router, and iN is expressed as control instruction related work assembly of the ith first working equipmentNumber of target work modules, DijExpressed as the execution degree of the jth target working component in the ith first working device to the control command, AiExpressed as the sum of the degrees of execution of the control commands by the target working components of the ith first working device, HiThe network connection fluctuation frequency between the ith first industrial equipment and the installation router is represented;
and confirming whether the data transmission stability index between each first working device and the installation router is larger than or equal to a preset threshold value, if so, confirming that the network connection condition between the first working device and the installation router is stable, otherwise, confirming that the network connection condition between the first working device and the installation router is unstable, and sending an alarm prompt.
10. A gateway control system, comprising:
the connection module is used for connecting the NAS device with the server;
the connection module is used for realizing network connection between the NAS device and the installation router through a network cable;
the configuration module is used for configuring the installation router as a common gateway of a plurality of working devices;
and the transmission module is used for selecting target working equipment from the public gateway by using the NAS equipment to perform data transmission and uploading the target working equipment to the server.
CN202110314180.0A 2021-03-24 2021-03-24 Gateway control method and system Active CN113225204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110314180.0A CN113225204B (en) 2021-03-24 2021-03-24 Gateway control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110314180.0A CN113225204B (en) 2021-03-24 2021-03-24 Gateway control method and system

Publications (2)

Publication Number Publication Date
CN113225204A true CN113225204A (en) 2021-08-06
CN113225204B CN113225204B (en) 2022-09-09

Family

ID=77083925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110314180.0A Active CN113225204B (en) 2021-03-24 2021-03-24 Gateway control method and system

Country Status (1)

Country Link
CN (1) CN113225204B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6868445B1 (en) * 1999-11-01 2005-03-15 Cisco Technology, Inc. Low-impact method and apparatus for maintaining network access servers
CN107015767A (en) * 2017-04-06 2017-08-04 南京三宝弘正视觉科技有限公司 A kind of NAS device, distributed processing system(DPS) and method
CN108600010A (en) * 2018-04-26 2018-09-28 昆明俊云科技有限公司 Data transmission method and device
CN110474825A (en) * 2019-09-02 2019-11-19 深圳市丰润达科技有限公司 Equipment access system, equipment access server method, application and device server
WO2020007648A1 (en) * 2018-07-04 2020-01-09 Graphcore Limited Data through gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6868445B1 (en) * 1999-11-01 2005-03-15 Cisco Technology, Inc. Low-impact method and apparatus for maintaining network access servers
CN107015767A (en) * 2017-04-06 2017-08-04 南京三宝弘正视觉科技有限公司 A kind of NAS device, distributed processing system(DPS) and method
CN108600010A (en) * 2018-04-26 2018-09-28 昆明俊云科技有限公司 Data transmission method and device
WO2020007648A1 (en) * 2018-07-04 2020-01-09 Graphcore Limited Data through gateway
CN110474825A (en) * 2019-09-02 2019-11-19 深圳市丰润达科技有限公司 Equipment access system, equipment access server method, application and device server

Also Published As

Publication number Publication date
CN113225204B (en) 2022-09-09

Similar Documents

Publication Publication Date Title
CN112764410A (en) Vehicle-mounted controller testing device, system and method
CN113261220B (en) Method and control node for handling failure of a TSN communication link
CN103220181A (en) Mobile data center inspection system, server and terminal equipment
CN103179599A (en) WLAN performance monitoring method, device and system
JP2016527786A (en) Network test method, data collection method thereof, network test apparatus and system
CN104067599A (en) Network state monitoring system
CN116980284B (en) Optical cable fiber distribution box operation and maintenance information transmission method and system based on Internet of things
CN104683182A (en) Method and device for detecting network service quality of IDC machine room
CN110501956B (en) Production test alarm system, server and alarm information acquisition equipment
CN113783749A (en) Method for detecting equipment fault based on network port
CN117175803A (en) Wireless communication method and system for distribution line
CN112671596A (en) Remote control automatic test system and test method
US20220291651A1 (en) Method, device and system for optimising data transmission between control devices and cloud systems
CN101645983A (en) Network management system and method using same for testing network equipment
CN113225204B (en) Gateway control method and system
US10334461B2 (en) System, device and method for testing app performance
KR102356228B1 (en) Autonomous Vehicle, Control System And Operating Method of Thereof
US12010469B2 (en) Method and device for remote monitoring and diagnosis of field equipment
WO2017197829A1 (en) Test information management method and apparatus, and test case execution system and device
CN101459987B (en) Wireless communication control method and apparatus
CN117749559A (en) Communication method, device and system based on EtherCAT and computing equipment
CN110995794A (en) A debugging workstation, gateway machine and remote acquisition method of power data
CN116844071A (en) Self-identification system and method in cable inspection
CN112055084A (en) Control method and system for security protection Internet of things
CN109688142B (en) Threat management method and system in an industrial control system network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 01-02, Floor 10, Room 101, Building 1 to 11, Block 3, No. 186, South 4th Ring West Road, Fengtai District, Beijing 100070

Patentee after: Beijing Dana Experimental Technology Co.,Ltd.

Country or region after: China

Address before: Room 01-02, 10th Floor, Room 101, Floors 1-11, Building 1, Zone 3, No. 186 South Fourth Ring West Road, Fengtai District, Beijing

Patentee before: BEIJING DYNAFLOW EXPERIMENT TECHNOLOGY Co.,Ltd.

Country or region before: China