CN110430276B - Communication control method and device based on docker, communication control equipment and storage medium - Google Patents

Communication control method and device based on docker, communication control equipment and storage medium Download PDF

Info

Publication number
CN110430276B
CN110430276B CN201910740323.7A CN201910740323A CN110430276B CN 110430276 B CN110430276 B CN 110430276B CN 201910740323 A CN201910740323 A CN 201910740323A CN 110430276 B CN110430276 B CN 110430276B
Authority
CN
China
Prior art keywords
docker container
transmission channel
docker
acquisition equipment
acquisition
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910740323.7A
Other languages
Chinese (zh)
Other versions
CN110430276A (en
Inventor
张文哲
谢尧
苏扬
陶文伟
易思瑶
高宏慧
王金贺
胡朝辉
伍思廉
彭伯庄
吴佩泽
陈鹏
郑伟文
梁志宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Digital Platform Technology Guangdong Co ltd
Original Assignee
China Southern Power Grid Co Ltd
Southern Power Grid Digital Grid Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Co Ltd, Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical China Southern Power Grid Co Ltd
Priority to CN201910740323.7A priority Critical patent/CN110430276B/en
Publication of CN110430276A publication Critical patent/CN110430276A/en
Application granted granted Critical
Publication of CN110430276B publication Critical patent/CN110430276B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Abstract

The method comprises the steps of receiving an access connection request of acquisition equipment, allocating a corresponding docker container to the acquisition equipment, acquiring network configuration information of the docker container, and establishing a communication connection relation between the docker container and the acquisition equipment according to the network configuration information of the docker container so that the acquisition equipment can communicate with a target master station through the corresponding docker container.

Description

Communication control method and device based on docker, communication control equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication control method and apparatus based on a docker (application container engine), a communication control device, and a storage medium.
Background
The front-end processor generally exists between a foreground client and a background server, and plays the role of an adapter, namely: to convert between different communication protocols, data formats, or languages. In addition, the front-end processor also plays a role in managing and scheduling the transaction initiated by the front-end client, and the burden of the background server can be reduced through the scheduling of the front-end processor. And the front-end processor also plays the role of a firewall between the client and the background server, thereby playing the function of hiding the background server and ensuring the safety of the background server to a certain extent.
However, at present, a front-end processor often corresponds to a plurality of communication devices, but the communication devices cannot work completely independently, and a failure of communication of one link or a failure of a front-end processor system causes that other communication devices cannot work normally, resulting in system breakdown.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a communication control method and apparatus, a communication control device, and a storage medium based on docker, for solving the technical problem of system failure caused by the single point link failure.
In order to achieve the above object, in one aspect, an embodiment of the present application provides a communication control method based on docker, where the method includes:
receiving an access connection request of acquisition equipment, wherein the access connection request comprises equipment information of a target master station and the acquisition equipment;
distributing a corresponding docker container for the acquisition equipment according to the equipment information of the acquisition equipment, and acquiring network configuration information of the docker container;
and establishing a communication connection relation between the docker container and the acquisition equipment according to the network configuration information of the docker container so that the acquisition equipment can communicate with the target master station through the corresponding docker container.
In one embodiment, the network configuration information of the docker container includes an IP address of the docker container; then, establishing a communication connection relationship between the docker container and the acquisition device according to the network configuration information of the docker container, including: and respectively establishing an information transmission channel and an encryption transmission channel according to the IP address of the docker container, wherein the information transmission channel is used for transmitting data and control instructions between the acquisition equipment and the target master station, and the encryption transmission channel is used for transmitting data between the acquisition equipment and the docker container in an encryption communication mode.
In one embodiment, the information transmission channel comprises a data transmission channel and a control instruction transmission channel, and the data transmission channel is used for the acquisition device to report data to the target master station; and the control instruction transmission channel is used for the target master station to send a control instruction to the acquisition equipment.
In one embodiment, the encrypted transmission channel comprises a first encrypted transmission channel and a second encrypted transmission channel, and the first encrypted transmission channel is used for the acquisition device to transmit data to the docker container in an encrypted communication mode; and the second encryption transmission channel is used for transmitting data to the acquisition equipment by the docker container in an encryption communication mode.
In one embodiment, after establishing the communication connection relationship between the docker container and the acquisition device according to the network configuration information of the docker container, the method further includes: monitoring the operating state of the docker container; when the fact that the docker container has a fault is monitored, generating a new docker container according to network configuration information of the docker container; and establishing a communication connection relation between the new docker container and the acquisition equipment so that the acquisition equipment can communicate with the target master station through the new docker container.
On the other hand, the embodiment of the present application further provides a communication control device based on docker, and the device includes:
the system comprises a request receiving module, a request receiving module and a processing module, wherein the request receiving module is used for receiving an access connection request of acquisition equipment, and the access connection request comprises equipment information of a target master station to be accessed and the acquisition equipment;
the docker container distribution module is used for distributing corresponding docker containers to the acquisition equipment according to the equipment information of the acquisition equipment to acquire network configuration information of the docker containers;
and the communication connection establishing module is used for establishing a communication connection relation between the docker container and the acquisition equipment according to the network configuration information of the docker container so as to enable the acquisition equipment to communicate with the target master station through the corresponding docker container.
In one embodiment, the network configuration information of the docker container includes an IP address of the docker container; the communication connection establishing module is specifically configured to establish an information transmission channel and an encryption transmission channel according to the IP address of the docker container, where the information transmission channel is used for transmitting data and control instructions between the acquisition device and the target master station, and the encryption transmission channel is used for transmitting data between the acquisition device and the docker container in an encryption communication manner.
In one embodiment, the apparatus further includes a monitoring module, configured to monitor an operating state of the docker container, and generate a new docker container according to network configuration information of the docker container when it is monitored that the docker container is in a fault; the communication connection establishing module is further configured to establish a communication connection relationship between the new docker container and the acquisition device, so that the acquisition device communicates with the target master station through the new docker container.
In yet another aspect, an embodiment of the present application further provides a communication control apparatus, including a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method when executing the computer program.
In yet another aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method described above.
According to the communication control method, the device, the communication control equipment and the storage medium based on the docker, the corresponding docker container is distributed for the acquisition equipment by receiving the access connection request of the acquisition equipment, the network configuration information of the docker container is acquired, and the communication connection relation between the docker container and the acquisition equipment is established according to the network configuration information of the docker container, so that the acquisition equipment is communicated with the target master station through the corresponding docker container.
Drawings
Fig. 1 is an application environment diagram of a communication control method based on docker in an embodiment;
FIG. 2 is a flow chart illustrating a communication control method based on docker in an embodiment;
fig. 3 is a schematic flow chart of a communication control method based on docker in another embodiment; (ii) a
FIG. 4 is a block diagram of a communication control device based on docker in one embodiment;
fig. 5 is a block diagram of a communication control apparatus based on docker in another embodiment;
fig. 6 is an internal configuration diagram of a communication control apparatus in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The communication control method based on docker provided by the application can be applied to the application environment shown in fig. 1. Each acquisition device 102 communicates with the master station 106 through the communication control device 104, the acquisition device 102 and the communication control device 104 establish connection through a network, and the communication control device 104 may be disposed inside the master station 106 or may be independently disposed and establish communication connection with the master station 106. Specifically, in this embodiment, when the communication control device 104 receives an access connection request from a certain acquisition device 102 to the master station 106, a corresponding docker container is allocated to the acquisition device 102 according to the device information of the acquisition device 102, network configuration information of the docker container is acquired, and a communication connection relationship between the docker container and the acquisition device 102 is established according to the network configuration information of the docker container, so that the acquisition device 102 communicates with the target master station 106 through the corresponding docker container.
The collection device 102 may be, but not limited to, various terminal devices for data collection, such as a distribution transformer terminal and a low-voltage centralized meter reading collection terminal distributed in a power grid. The master site 106 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers. The communication control device 104 may be a computer device with a docker (application container engine) deployed.
In one embodiment, as shown in fig. 2, a docker-based communication control method is provided, which is described by taking an example of the method applied to the communication control apparatus in fig. 1, and includes the following steps:
step 202, receiving an access connection request of the acquisition device.
Specifically, the front-end acquisition device communicates with the master station through the communication control device, so that before the front-end acquisition device communicates with the master station, connection needs to be established with the communication control device first, that is, an access connection request is sent to the communication control device, where the access connection request includes device information of the target master station and the acquisition device. Specifically, the device information of the acquisition device may be Address information of the acquisition device, such as an IP Address (Internet Protocol Address) and a Media Access Control (MAC) Address of the acquisition device.
And 204, distributing corresponding docker containers to the acquisition equipment according to the equipment information of the acquisition equipment, and acquiring network configuration information of the docker containers.
Since the communication control device is provided with the docker, i.e., the application container engine, after the communication control device receives the access connection request of the acquisition device, the communication control device allocates the corresponding docker container to the acquisition device according to the device information of the acquisition device in the access connection request. And obtaining network configuration information of the docker container, where the network configuration information may include, but is not limited to, an IP address of the docker container.
And step 206, establishing a communication connection relation between the docker container and the acquisition equipment according to the network configuration information of the docker container.
In this embodiment, the communication control device establishes a communication connection relationship between the docker container and the acquisition device according to network configuration information of the docker container, such as an IP address of the docker container, that is, the network configuration information of the docker container realizes one-to-one correspondence between the docker container and the acquisition device, so that the acquisition device communicates with the target master station through the corresponding docker container.
According to the communication control method based on the docker, the corresponding docker container is distributed for the acquisition equipment by receiving the access connection request of the acquisition equipment, the network configuration information of the docker container is obtained, and the communication connection relation between the docker container and the acquisition equipment is established according to the network configuration information of the docker container, so that the acquisition equipment is communicated with the target master station through the corresponding docker container.
In an embodiment, the network configuration information of the docker container includes an IP address of the docker container, and the establishing of the communication connection relationship between the docker container and the acquisition device according to the network configuration information of the docker container may specifically include: and generating a routing strategy according to the IP address of the docker container and the IP address or the MAC address of the acquisition equipment, thereby establishing a communication transmission channel. The communication transmission channel comprises an information transmission channel and an encryption transmission channel. Specifically, the information transmission channel is used for transmitting data and control instructions between the acquisition device and the target master station, and the encryption transmission channel is used for transmitting data between the acquisition device and the docker container in an encryption communication mode. According to the embodiment, on the basis that the docker containers correspond to the acquisition devices one to one, a plurality of communication transmission channels are established, so that data required by various service types can be transmitted, and the compatibility of the system is improved.
In an embodiment, the information transmission channel may further include a data transmission channel and a control instruction transmission channel, where the data transmission channel is used for the collection device to report data, such as data of logs or records, to the target master station. The control instruction transmission channel is used for the target master station to send control instructions to the acquisition equipment, such as control instructions for issuing configuration data, responding to data formats, monitoring running states and the like, so that the control function of the acquisition equipment is realized.
The encrypted transmission channel may include a first encrypted transmission channel and a second encrypted transmission channel, and specifically, when the network communication is not trusted, the acquisition device may transmit data to the docker container through the first encrypted transmission channel in an encrypted communication manner; the docker container can transmit data to the acquisition equipment through the second encryption transmission channel in an encryption communication mode, so that the safety of information transmission is guaranteed. In the embodiment, different communication transmission channels are established to transmit the required data, so that the concurrency of data transmission is realized, and the efficiency of data transmission is improved to a certain extent.
In an embodiment, as shown in fig. 3, after establishing a communication connection relationship between the docker container and the acquisition device according to the network configuration information of the docker container, the method may further include the following steps:
step 302, monitoring the operating state of the docker container.
The operating state of the docker container includes whether the docker container itself has a response or whether each corresponding communication transmission channel has a response. In this embodiment, after the communication control device establishes the communication connection relationship between the docker container and the acquisition device, the operating state of the docker container may be monitored.
And 304, when the fault of the docker container is monitored, generating a new docker container according to the network configuration information of the docker container.
In this embodiment, when the docker container itself does not respond, it indicates that the docker container has a fault, and therefore, a new docker container may be generated according to the network configuration information of the docker container having the fault, that is, the network configuration information of the faulty docker container is copied to reestablish a corresponding new docker container, so that the faulty docker container is replaced with the new docker container.
And step 306, establishing a communication connection relation between the new docker container and the acquisition equipment.
Specifically, a communication connection relation between the acquisition equipment and a new docker container is established for the acquisition equipment establishing the communication connection relation with the failed docker container, so that the acquisition equipment can communicate with the target master station through the new docker container. The above embodiments can be referred to in the process of establishing the communication connection relationship, and details are not described here.
It should be understood that although the various steps in the flow charts of fig. 1-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a docker-based communication control apparatus including: a request receiving module 401, a docker container allocating module 402, and a communication connection establishing module 403, wherein:
a request receiving module 401, configured to receive an access connection request of an acquisition device, where the access connection request includes device information of a target master station to be accessed and the acquisition device;
the docker container allocation module 402 is configured to allocate a corresponding docker container to the acquisition device according to the device information of the acquisition device, and obtain network configuration information of the docker container;
the communication connection establishing module 403 is configured to establish a communication connection relationship between the docker container and the acquisition device according to the network configuration information of the docker container, so that the acquisition device communicates with the target master station through the corresponding docker container.
In an embodiment, as shown in fig. 5, the apparatus further includes a monitoring module 404, configured to monitor an operating state of the docker container, and generate a new docker container according to network configuration information of the docker container when it is monitored that the docker container has a fault; the communication connection establishing module 403 is further configured to establish a communication connection relationship between the new docker container and the collection device, so that the collection device communicates with the target master station through the new docker container.
In one embodiment, the network configuration information of the docker container includes an IP address of the docker container; the communication connection establishing module 403 is specifically configured to respectively establish an information transmission channel and an encrypted transmission channel according to the IP address of the docker container, where the information transmission channel is used for transmitting data and control instructions between the acquisition device and the target master station, and the encrypted transmission channel is used for transmitting data between the acquisition device and the docker container in an encrypted communication manner.
In one embodiment, the information transmission channel comprises a data transmission channel and a control instruction transmission channel, wherein the data transmission channel is used for the acquisition device to report data to the target master station; and the control instruction transmission channel is used for the target master station to send a control instruction to the acquisition equipment. The encrypted transmission channel comprises a first encrypted transmission channel and a second encrypted transmission channel, wherein the first encrypted transmission channel is used for the acquisition equipment to transmit data to the docker container in an encrypted communication mode; and the second encryption transmission channel is used for transmitting data to the acquisition equipment by the docker container in an encryption communication mode.
For specific limitations of the docker-based communication control apparatus, reference may be made to the above limitations of the docker-based communication control method, which are not described herein again. The respective modules in the docker-based communication control apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a communication control device is provided, and the communication control device may be a computer device deployed with a docker application container engine, and the internal structure diagram of the communication control device may be as shown in fig. 6. The communication control device comprises a processor, a memory, a network interface and a docker application container engine which are connected through a system bus. Wherein the processor of the communication device is configured to provide computing and control capabilities. The memory of the communication control device includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a docker application container engine. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the communication control device is used for connecting and communicating with external acquisition devices and a master station through a network. The computer program is executed by a processor to implement a docker-based communication control method.
Those skilled in the art will appreciate that the structure shown in fig. 6 is a block diagram of only a part of the structure related to the present application, and does not constitute a limitation of the communication control apparatus to which the present application is applied, and a specific communication control apparatus may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving an access connection request of acquisition equipment, wherein the access connection request comprises equipment information of a target master station and the acquisition equipment;
distributing a corresponding docker container for the acquisition equipment according to the equipment information of the acquisition equipment, and acquiring network configuration information of the docker container;
and establishing a communication connection relation between the docker container and the acquisition equipment according to the network configuration information of the docker container so that the acquisition equipment can communicate with the target master station through the corresponding docker container.
In one embodiment, the network configuration information of the docker container includes an IP address of the docker container; then, establishing a communication connection relationship between the docker container and the acquisition device according to the network configuration information of the docker container, including: and respectively establishing an information transmission channel and an encryption transmission channel according to the IP address of the docker container, wherein the information transmission channel is used for transmitting data and control instructions between the acquisition equipment and the target master station, and the encryption transmission channel is used for transmitting data between the acquisition equipment and the docker container in an encryption communication mode.
In one embodiment, the information transmission channel comprises a data transmission channel and a control instruction transmission channel, and the data transmission channel is used for the acquisition device to report data to the target master station; and the control instruction transmission channel is used for the target master station to send a control instruction to the acquisition equipment.
In one embodiment, the encrypted transmission channel comprises a first encrypted transmission channel and a second encrypted transmission channel, and the first encrypted transmission channel is used for the acquisition device to transmit data to the docker container in an encrypted communication mode; and the second encryption transmission channel is used for transmitting data to the acquisition equipment by the docker container in an encryption communication mode.
In one embodiment, after establishing the communication connection relationship between the docker container and the acquisition device according to the network configuration information of the docker container, the method further includes: monitoring the operating state of the docker container; when the fact that the docker container has a fault is monitored, generating a new docker container according to network configuration information of the docker container; and establishing a communication connection relation between the new docker container and the acquisition equipment so that the acquisition equipment can communicate with the target master station through the new docker container.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving an access connection request of acquisition equipment, wherein the access connection request comprises equipment information of a target master station and the acquisition equipment;
distributing a corresponding docker container for the acquisition equipment according to the equipment information of the acquisition equipment, and acquiring network configuration information of the docker container;
and establishing a communication connection relation between the docker container and the acquisition equipment according to the network configuration information of the docker container so that the acquisition equipment can communicate with the target master station through the corresponding docker container.
In one embodiment, the network configuration information of the docker container includes an IP address of the docker container; then, establishing a communication connection relationship between the docker container and the acquisition device according to the network configuration information of the docker container, including: and respectively establishing an information transmission channel and an encryption transmission channel according to the IP address of the docker container, wherein the information transmission channel is used for transmitting data and control instructions between the acquisition equipment and the target master station, and the encryption transmission channel is used for transmitting data between the acquisition equipment and the docker container in an encryption communication mode.
In one embodiment, the information transmission channel comprises a data transmission channel and a control instruction transmission channel, and the data transmission channel is used for the acquisition device to report data to the target master station; and the control instruction transmission channel is used for the target master station to send a control instruction to the acquisition equipment.
In one embodiment, the encrypted transmission channel comprises a first encrypted transmission channel and a second encrypted transmission channel, and the first encrypted transmission channel is used for the acquisition device to transmit data to the docker container in an encrypted communication mode; and the second encryption transmission channel is used for transmitting data to the acquisition equipment by the docker container in an encryption communication mode.
In one embodiment, after establishing the communication connection relationship between the docker container and the acquisition device according to the network configuration information of the docker container, the method further includes: monitoring the operating state of the docker container; when the fact that the docker container has a fault is monitored, generating a new docker container according to network configuration information of the docker container; and establishing a communication connection relation between the new docker container and the acquisition equipment so that the acquisition equipment can communicate with the target master station through the new docker container.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A communication control method based on docker is characterized by comprising the following steps:
receiving an access connection request of acquisition equipment, wherein the access connection request comprises a target master station and equipment information of the acquisition equipment, and the equipment information of the acquisition equipment comprises an IP (Internet protocol) address or an MAC (media access control) address of the acquisition equipment;
distributing a corresponding docker container to the acquisition equipment according to the equipment information of the acquisition equipment, and acquiring network configuration information of the docker container, wherein the network configuration information of the docker container comprises an IP address of the docker container;
establishing a communication connection relation between the docker container and the acquisition equipment according to the network configuration information of the docker container so that the acquisition equipment is communicated with the target master station through the corresponding docker container;
the establishing of the communication connection relationship between the docker container and the acquisition device according to the network configuration information of the docker container includes: and generating a routing strategy according to the IP address of the docker container and the IP address or MAC address of the acquisition equipment, and establishing a communication transmission channel between the docker container and the acquisition equipment.
2. The docker-based communication control method of claim 1, wherein the communication transmission channel comprises an information transmission channel and an encryption transmission channel; the establishing of the communication transmission channel between the docker container and the acquisition device includes:
generating a routing strategy according to the IP address of the docker container and the IP address or MAC address of the acquisition device, and respectively establishing an information transmission channel and an encryption transmission channel between the docker container and the acquisition device, wherein the information transmission channel is used for transmitting data and control instructions between the acquisition device and the target master station, and the encryption transmission channel is used for transmitting data between the acquisition device and the docker container in an encryption communication mode.
3. The docker-based communication control method according to claim 2, wherein the information transmission channel comprises a data transmission channel and a control instruction transmission channel, and the data transmission channel is used for the acquisition device to report data to the target master station; and the control instruction transmission channel is used for the target master station to send a control instruction to the acquisition equipment.
4. The docker-based communication control method according to claim 2, wherein the encrypted transmission channel comprises a first encrypted transmission channel and a second encrypted transmission channel, and the first encrypted transmission channel is used for the acquisition device to transmit data to the docker container in an encrypted communication manner; and the second encryption transmission channel is used for transmitting data to the acquisition equipment by the docker container in an encryption communication mode.
5. A docker-based communication control method according to any one of claims 1 to 4, wherein after establishing the communication connection relationship between the docker container and the collecting device according to the network configuration information of the docker container, further comprising:
monitoring the operating state of the docker vessel;
when the fact that the docker container has a fault is monitored, generating a new docker container according to network configuration information of the docker container;
and establishing a communication connection relation between the new docker container and the acquisition equipment so that the acquisition equipment is communicated with the target master station through the new docker container.
6. A docker-based communication control apparatus, comprising:
the system comprises a request receiving module, a request receiving module and a processing module, wherein the request receiving module is used for receiving an access connection request of acquisition equipment, the access connection request comprises a target master station to be accessed and equipment information of the acquisition equipment, and the equipment information of the acquisition equipment comprises an IP address or an MAC address of the acquisition equipment;
the system comprises a docker container allocation module, a docker container allocation module and a docker container allocation module, wherein the docker container allocation module is used for allocating a corresponding docker container to the acquisition equipment according to the equipment information of the acquisition equipment and acquiring network configuration information of the docker container, and the network configuration information of the docker container comprises an IP address of the docker container;
the communication connection establishing module is used for establishing a communication connection relation between the docker container and the acquisition equipment according to the network configuration information of the docker container so as to enable the acquisition equipment to communicate with the target master station through the corresponding docker container;
the communication connection establishing module is specifically configured to: and generating a routing strategy according to the IP address of the docker container and the IP address or MAC address of the acquisition equipment, and establishing a communication transmission channel between the docker container and the acquisition equipment.
7. The docker-based communication control device of claim 6, wherein the communication transmission channel comprises an information transmission channel and an encryption transmission channel; the communication connection establishing module is specifically used for generating a routing strategy according to the IP address of the docker container and the IP address or MAC address of the acquisition device, and respectively establishing an information transmission channel and an encryption transmission channel between the docker container and the acquisition device, wherein the information transmission channel is used for transmitting data and control instructions between the acquisition device and the target master station, and the encryption transmission channel is used for transmitting data between the acquisition device and the docker container in an encryption communication mode.
8. The docker-based communication control device according to claim 6, further comprising a monitoring module configured to monitor an operating state of the docker container, and generate a new docker container according to network configuration information of the docker container when it is monitored that the docker container is in a fault; the communication connection establishing module is further configured to establish a communication connection relationship between the new docker container and the acquisition device, so that the acquisition device communicates with the target master station through the new docker container.
9. A communication control apparatus comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 5 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201910740323.7A 2019-08-12 2019-08-12 Communication control method and device based on docker, communication control equipment and storage medium Active CN110430276B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910740323.7A CN110430276B (en) 2019-08-12 2019-08-12 Communication control method and device based on docker, communication control equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910740323.7A CN110430276B (en) 2019-08-12 2019-08-12 Communication control method and device based on docker, communication control equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110430276A CN110430276A (en) 2019-11-08
CN110430276B true CN110430276B (en) 2020-06-23

Family

ID=68414170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910740323.7A Active CN110430276B (en) 2019-08-12 2019-08-12 Communication control method and device based on docker, communication control equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110430276B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110943914B (en) * 2019-11-28 2022-01-21 中国南方电网有限责任公司 Intelligent gateway of power distribution room and control method
CN113489770B (en) * 2021-06-30 2022-08-19 深圳壹账通智能科技有限公司 Inter-container communication method, electronic device, and computer-readable storage medium
CN114257611A (en) * 2021-11-19 2022-03-29 南方电网数字电网研究院有限公司 Data interaction method, device, equipment and medium based on front-end processor containerization

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302046A (en) * 2016-08-15 2017-01-04 中国联合网络通信集团有限公司 Control method for remote controller and device
JP2017111761A (en) * 2015-12-18 2017-06-22 エヌ・ティ・ティ・コミュニケーションズ株式会社 Container storage device, container creation method and program
CN107734037A (en) * 2017-10-19 2018-02-23 郑州云海信息技术有限公司 A kind of NAS clusters and data access method
CN109922106A (en) * 2017-12-13 2019-06-21 中标软件有限公司 The cloud cell phone system realized based on Docker container

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017111761A (en) * 2015-12-18 2017-06-22 エヌ・ティ・ティ・コミュニケーションズ株式会社 Container storage device, container creation method and program
CN106302046A (en) * 2016-08-15 2017-01-04 中国联合网络通信集团有限公司 Control method for remote controller and device
CN107734037A (en) * 2017-10-19 2018-02-23 郑州云海信息技术有限公司 A kind of NAS clusters and data access method
CN109922106A (en) * 2017-12-13 2019-06-21 中标软件有限公司 The cloud cell phone system realized based on Docker container

Also Published As

Publication number Publication date
CN110430276A (en) 2019-11-08

Similar Documents

Publication Publication Date Title
CN110430276B (en) Communication control method and device based on docker, communication control equipment and storage medium
CN109802957B (en) Interface docking method and device, computer equipment and storage medium
CN109510840B (en) Method and device for sharing unstructured data, computer equipment and storage medium
CN108965380A (en) Service request processing method, device, computer equipment and storage medium
CN112822124B (en) Multi-chip communication system, method, chip and storage medium
CN113285926B (en) Honey pot trapping method and device for power monitoring system and computer equipment
CN110995617B (en) MQTT-based data transmission method and device, computer equipment and storage medium
CN111182061A (en) Task distribution processing method, system, computer device and storage medium
CN102710452B (en) Method and device for managing visit of multiple clients
CN110855424B (en) Method and device for synthesizing asymmetric flow xDR in DPI field
CN110381149B (en) Data distribution method and device and data synchronization method and device
CN113885794B (en) Data access method and device based on multi-cloud storage, computer equipment and medium
CN110933192A (en) Local area network IP address allocation method, device, system and computer equipment
CN113095936B (en) Entrusted order processing method, entrusted order processing device, computer equipment and storage medium
CN111752675B (en) Internet of things platform based on containerization technology
CN111200519B (en) Data processing method and device, BBU, access network equipment and storage medium
CN116567094A (en) Service information processing method based on micro service system
CN114173396B (en) Method and device for determining terminal networking time, electronic equipment and storage medium
CN110889539B (en) Method, system and device for organizing spot market clearing cases based on cloud platform
CN112217659B (en) Method and system for adding client terminal equipment to SD-WAN system
CN113419745A (en) Application instance number management method and device, electronic equipment and computer readable medium
CN109671177B (en) Apparatus for managing vehicle data, server and system for managing vehicle data
CN111416798B (en) Operating system login method, device, equipment and readable storage medium
CN114125025B (en) Data transmission method and device under multi-target network
CN114866371B (en) Method and device for establishing IPSec tunnel, storage medium and electronic equipment

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

Effective date of registration: 20240322

Address after: 518101, 3rd Floor, Building 40, Baotian Industrial Zone, Chentian Community, Xixiang Street, Bao'an District, Shenzhen City, Guangdong Province

Patentee after: China Southern Power Grid Digital Platform Technology (Guangdong) Co.,Ltd.

Country or region after: China

Address before: 510000 No. 11 Kexiang Road, Science City, Luogang District, Guangzhou City, Guangdong Province

Patentee before: CHINA SOUTHERN POWER GRID Co.,Ltd.

Country or region before: China

Patentee before: Southern Power Grid Digital Grid Research Institute Co.,Ltd.