CN113347040B - Configuration changing method and device and electronic equipment - Google Patents

Configuration changing method and device and electronic equipment Download PDF

Info

Publication number
CN113347040B
CN113347040B CN202110670347.7A CN202110670347A CN113347040B CN 113347040 B CN113347040 B CN 113347040B CN 202110670347 A CN202110670347 A CN 202110670347A CN 113347040 B CN113347040 B CN 113347040B
Authority
CN
China
Prior art keywords
communication link
configuration information
server
target
change instruction
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
CN202110670347.7A
Other languages
Chinese (zh)
Other versions
CN113347040A (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 Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software Co Ltd
Original Assignee
Beijing Topsec Technology Co Ltd
Beijing Topsec Network Security Technology Co Ltd
Beijing Topsec Software 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 Topsec Technology Co Ltd, Beijing Topsec Network Security Technology Co Ltd, Beijing Topsec Software Co Ltd filed Critical Beijing Topsec Technology Co Ltd
Priority to CN202110670347.7A priority Critical patent/CN113347040B/en
Publication of CN113347040A publication Critical patent/CN113347040A/en
Application granted granted Critical
Publication of CN113347040B publication Critical patent/CN113347040B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/0813Configuration setting characterised by the conditions triggering a change of settings
    • 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/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Abstract

The invention provides a configuration change method and device, and relates to the technical field of network security audit. The method is applied to the terminal equipment and comprises the steps of receiving a configuration change instruction sent by a server; the configuration change instruction carries target configuration information corresponding to at least one communication link and is used for indicating terminal equipment using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information; judging whether the at least one communication link comprises a target communication link or not, wherein the target communication link is a communication link used by the terminal equipment; if yes, the original configuration information of the target communication link is updated to the corresponding target configuration information. By the method, when the configuration information of a plurality of communication links of the server is changed, each terminal device can automatically update the corresponding link configuration information, so that the effect of automatically re-uploading each terminal device is achieved.

Description

Configuration changing method and device and electronic equipment
Technical Field
The present invention relates to the field of network security audit technologies, and in particular, to a configuration change method, a device, and an electronic device.
Background
With the rapid development of IT technology, more and more services are carried on an IT network, the scale of the network is larger and larger, the structure is more and more complex, the configuration complexity of equipment is higher and higher requirements are put forward for network administrators. The centralized management platform centralizes a large number of devices, and the terminal devices need to know information such as addresses of the centralized management platform to perform normal communication. The server supports configuration of multiple links, and information such as an IP address of a platform that is centrally managed is changed. Because of the complexity of the existing network configuration, the terminal device and the server may span different networks, and the server cannot obtain the real IP address of the terminal device, and cannot directly send a message of configuration change to the designated device. If the change information cannot be notified to the terminal equipment, the normal service management operation of the whole system is affected.
The scheme in the prior art is as follows: the management device sends a message to each member device in the member device group, and the management device indicates the member devices in the member device group to keep basic configuration items when the configuration change is carried out by using the configuration files corresponding to the device group. When the configuration files corresponding to the member device groups are monitored to be accordant with the trigger configuration change, each device member in the device groups uses the corresponding configuration files to carry out configuration change, and other configuration items except the basic configuration items are updated. The basic configuration item comprises a working mode, a communication protocol used between the management equipment and the member equipment and an IP address used in communication.
In the prior art, the information change of the management server to the terminal equipment is limited to non-basic information, and the IP address of the server cannot be modified. The server of the existing network generally supports the configuration of multiple links, and if the IP address of a certain link of the management server is changed, the current scheme cannot realize change management, so that the management server and the terminal device cannot communicate.
In summary, in the prior art, a method for automatically updating link configuration information by a terminal device when IP addresses of a plurality of communication links of a server are changed is not available.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the invention provides a configuration changing method, which solves the problem that a server cannot effectively manage managed equipment when multi-link configuration information of the server is changed.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
in a first aspect, an embodiment of the present invention provides a configuration changing method, applied to a terminal device, where the method includes:
receiving a configuration change instruction sent by a server; the configuration change instruction carries target configuration information corresponding to at least one communication link and is used for indicating terminal equipment using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information;
judging whether the at least one communication link comprises a target communication link or not, wherein the target communication link is a communication link used by the terminal equipment;
if yes, the original configuration information of the target communication link is updated to the corresponding target configuration information.
As an optional implementation manner of the embodiment of the present invention, the configuration change instruction further carries original configuration information of the at least one communication link;
the determining whether the at least one communication link includes a target communication link includes:
judging whether the server IP address of the original configuration information of the at least one communication link contains the server IP address of the target communication link or not;
and if so, determining that the target communication link is included in the at least one communication link.
As an optional implementation manner of the embodiment of the present invention, the updating the original configuration information of the target communication link to the corresponding target configuration information includes:
and updating at least one of a server IP address, a server monitoring port, a server response port and a pre-shared key of the target communication link according to the target configuration information.
As an optional implementation manner of the embodiment of the present invention, after updating the original configuration information of the target communication link to the corresponding target configuration information, the method further includes:
and periodically sending a connection request to a server by taking a preset time period as a period until a communication link is successfully established with the server.
As an optional implementation manner of the embodiment of the present invention, a configuration changing method is provided, and the method is applied to a server, and includes:
generating a configuration change instruction, wherein the configuration change instruction carries target configuration information corresponding to at least one communication link and is used for indicating terminal equipment using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information;
and sending the configuration change instruction to each terminal device so as to change the original configuration information of the at least one communication link into corresponding target configuration information by using the terminal device of the at least one communication link.
As an optional implementation manner of the embodiment of the present invention, the sending the configuration change instruction to each terminal device includes:
and sending the configuration change instruction to each terminal device in a broadcasting mode.
As an optional implementation manner of the embodiment of the present invention, after sending the configuration change instruction to each terminal device, the method further includes:
and if the communication link is not successfully established with the terminal equipment using the at least one communication link within the first preset time period, the configuration change instruction is sent to each terminal equipment again.
In a second aspect, an embodiment of the present invention provides a terminal device, including:
the receiving module is used for receiving the configuration change instruction sent by the server; the configuration change instruction carries target configuration information corresponding to at least one communication link and is used for indicating terminal equipment using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information;
the judging module is used for judging whether the at least one communication link comprises a target communication link or not, wherein the target communication link is a communication link used by the terminal equipment;
and the updating module is used for updating the original configuration information of the target communication link into corresponding target configuration information if the at least one communication link comprises the target communication link.
As an optional implementation manner of the embodiment of the present invention, the configuration change instruction further carries original configuration information of the at least one communication link;
the determining whether the at least one communication link includes a target communication link includes:
judging whether the server IP address of the original configuration information of the at least one communication link contains the server IP address of the target communication link or not;
and if so, determining that the target communication link is included in the at least one communication link.
As an optional implementation manner of the embodiment of the present invention, the updating the original configuration information of the target communication link to the corresponding target configuration information includes:
and updating at least one of a server IP address, a server monitoring port, a server response port and a pre-shared key of the target communication link according to the target configuration information.
As an optional implementation manner of the embodiment of the present invention, after updating the original configuration information of the target communication link to the corresponding target configuration information, the method further includes:
and periodically sending a connection request to a server by taking a preset time period as a period until a communication link is successfully established with the server.
In a third aspect, an embodiment of the present invention provides a server, including:
the generating module is used for generating a configuration change instruction, wherein the configuration change instruction carries target configuration information corresponding to at least one communication link and is used for indicating terminal equipment using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information;
and the sending module is used for sending the configuration change instruction to each terminal device so as to change the original configuration information of the at least one communication link into corresponding target configuration information by using the terminal device of the at least one communication link.
As an optional implementation manner of the embodiment of the present invention, the sending the configuration change instruction to each terminal device includes:
and sending the configuration change instruction to each terminal device in a broadcasting mode.
As an optional implementation manner of the embodiment of the present invention, after sending the configuration change instruction to each terminal device, the method further includes:
and if the communication link is not successfully established with the terminal equipment using the at least one communication link within the first preset time period, the configuration change instruction is sent to each terminal equipment again.
In a fourth aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor implements the configuration changing method described in the first aspect or any implementation manner of the first aspect when executing the computer program.
The configuration change method provided by the embodiment of the invention is applied to terminal equipment, and is characterized in that firstly, a configuration change instruction which is sent by a server and carries target configuration information corresponding to at least one communication link is received, then, whether the at least one communication link contains the target communication link used by the terminal equipment is judged, and if yes, the original configuration information of the target communication link is updated into the corresponding target configuration information. Because the configuration change instruction carries the target configuration information corresponding to at least one communication link, and the configuration change instruction is used for instructing the terminal equipment to change the original configuration information of at least one communication link into the corresponding target configuration information, when the configuration information of a plurality of communication links of the server is changed, each terminal equipment can automatically update the link configuration information used by each terminal equipment, thereby achieving the effect of automatically re-connecting each terminal equipment, and simultaneously solving the problem of low change efficiency caused by manually carrying out configuration update on a plurality of terminal equipment.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of an application scenario of a configuration change method in one embodiment;
fig. 2 is a schematic flow chart of a configuration changing method applied to a terminal device in one embodiment;
fig. 3 is a flow chart illustrating a configuration changing method applied to a terminal device in another embodiment;
FIG. 4 is a flow chart illustrating a configuration change method applied to a server in one embodiment;
FIG. 5 is a flowchart illustrating a configuration change method applied to a server according to another embodiment;
fig. 6 is a schematic structural diagram of a configuration changing method applied to a terminal device in one embodiment;
FIG. 7 is a schematic diagram of a configuration change method applied to a server in one embodiment;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the invention will be more clearly understood, a further description of the invention will be made. It should be noted that, without conflict, the embodiments of the present invention and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present invention may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the invention.
Relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
In embodiments of the invention, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g." in an embodiment should not be taken as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion. Furthermore, in the description of the embodiments of the present invention, unless otherwise indicated, the meaning of "plurality" means two or more.
The overall conception of the embodiment of the invention is as follows: when the multi-link configuration information of the server needs to be changed, a broadcast message is sent to the managed device to inform the configuration information to be changed, and then the change is automatically completed on at least one of the server IP address, the server monitoring port, the server response port and the pre-shared secret key of the server communication link within preset time.
The application provides a configuration change method which can be applied to an application environment shown in fig. 1. FIG. 1 is an application scenario diagram of a configuration change method in one embodiment; the application environment comprises at least one terminal device (in fig. 1, 3 terminal devices are shown as an example, and 3 terminal devices are respectively terminal device 11, terminal device 12, terminal device 13) and a server 14. The terminal equipment and the server communicate through a network. Specifically, the server sends a broadcast message to the terminal device informing of the changed configuration, the broadcast message of which is implemented based on the message communication framework already supported by the current system. The terminal equipment receives a configuration change instruction sent by a server; the configuration change instruction carries target configuration information corresponding to at least one communication link and is used for indicating the terminal equipment to change the original configuration information of the at least one communication link into the corresponding target configuration information; judging whether the at least one communication link comprises a target communication link or not, wherein the target communication link is a communication link used by the terminal equipment; if yes, the original configuration information of the target communication link is updated to the corresponding target configuration information. The terminal device may be, but not limited to, various smart phones, tablet computers, notebook computers, desktop computers, portable wearable devices, and the server may be implemented by a separate server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in FIG. 2, a configuration change method is provided. In this embodiment, the method is mainly applied to a terminal device for illustration, and includes the following steps:
s201, receiving a configuration change instruction sent by a server.
The configuration change instruction carries target configuration information corresponding to at least one communication link, and is used for indicating terminal equipment using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information.
The terminal device may be a managed device, for example. A server may have multiple IP addresses, each associated with a group of managed devices, each of which establishes a communication link with the server. For example, a first group of terminal devices is managed by a first IP address, and an nth group of terminal devices is managed by an nth IP address.
Specifically, the target configuration information is the configuration information after the corresponding item of the original configuration information is changed. And the managed equipment receives the configuration change instruction sent by the server.
S202, judging whether the at least one communication link comprises a target communication link. If the at least one communication link includes the target communication link, step S203 is performed.
Wherein the target communication link is a communication link used by the terminal device.
S203, the original configuration information of the target communication link is updated to the corresponding target configuration information.
As an alternative implementation manner of the embodiment of the present invention, the implementation manner of step S203 may include:
and updating at least one of a server IP address, a server monitoring port, a server response port and a pre-shared key of the target communication link according to the target configuration information.
Wherein the IP address (Internet Protocol Address ) is a unified address format provided by the IP protocol, which assigns a logical address to each network and each host on the internet, thereby masking the difference in physical addresses. For a device on a network, such as a computer or a router, the IP address of the device is designed based on the network topology, and it is easy to change the IP address.
The server monitoring port is used by the server monitoring client, is equivalent to an address, and is a link between the server and the client. The server has a plurality of services, and the port numbers distinguish different services of the server. After sending the request, the server transmits the request to different ports according to the port numbers to respond.
In this embodiment, the pre-shared key functions as: the identities of the server and the managed device are confirmed.
As an optional implementation manner of the embodiment of the present invention, the configuration change instruction further carries original configuration information of the at least one communication link, and the implementation manner of step S202 (determining whether the at least one communication link includes the target communication link) may include the following steps a and b:
a. and judging whether the server IP address of the original configuration information of the at least one communication link contains the server IP address of the target communication link.
b. And if so, determining that the target communication link is included in the at least one communication link.
The configuration change instruction also illustratively carries original configuration information of at least one communication link, where the original configuration information includes a server IP address. The server IP address may be used as an identification method, and since the original configuration information is stored in the terminal device, if the server IP address of the original configuration information of the at least one communication link contains the server IP address of the target communication link, it may be determined that the target communication link is contained in the at least one communication link.
In one embodiment, the configuration change instruction further carries identification information of the at least one communication link;
the determining whether the at least one communication link includes a target communication link includes:
judging whether the identification information of the at least one communication link contains the identification information of the target communication link or not;
and if so, determining that the target communication link is included in the at least one communication link.
The identification information may be, for example, the number of the communication link. In this embodiment, the number of the communication link is used as an identification method, and similar to the steps of using the server IP address as an identification method, but as an alternative implementation manner, the specific form or content of the identifier is not specifically limited.
As an optional implementation manner of the embodiment of the present invention, as shown in fig. 3, after updating the original configuration information of the target communication link to the corresponding target configuration information, the method further includes step S204, periodically sending, with a preset duration as a period, a connection request to a server until the communication link is successfully established with the server.
Specifically, in order to verify that the original configuration information of the managed device has been successfully changed to the target configuration information, the managed device sends a connection request to the server, and if connection is successful within a preset duration, it is indicated that the configuration information has been changed; if the connection fails, the request is sent to the server again at intervals of preset duration.
The configuration change method provided by the embodiment of the invention is applied to terminal equipment, and is characterized in that firstly, a configuration change instruction which is sent by a server and carries target configuration information corresponding to at least one communication link is received, then, whether the at least one communication link contains the target communication link used by the terminal equipment is judged, and if yes, the original configuration information of the target communication link is updated into the corresponding target configuration information. Because the configuration change instruction carries the target configuration information corresponding to at least one communication link, and the configuration change instruction is used for instructing the terminal equipment to change the original configuration information of at least one communication link into the corresponding target configuration information, when the multi-link configuration of the server is changed, each terminal equipment can automatically update the link configuration information used by each terminal equipment, thereby achieving the effect of automatically re-connecting each terminal equipment, and simultaneously solving the problem of low change efficiency caused by manually updating the configuration on a plurality of terminal equipment.
In one embodiment, as shown in FIG. 4, a configuration change method is provided. In this embodiment, the method is mainly applied to a server for illustration, and includes the following steps:
s401, generating a configuration change instruction.
The configuration change instruction carries target configuration information corresponding to at least one communication link, and is used for indicating terminal equipment using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information.
For example, the manager configures and modifies the communication information of each link of the server on the web page of the server, and the server message ServerConnectInfo for short comprises the IP address of the server, the monitoring port of the server, the response port of the server and the pre-shared secret key; the administrator may modify the communications for multiple sets of links simultaneously. Specifically, the configuration change instruction may be generated according to the communication information of at least one group of links modified by the administrator.
S402, sending the configuration change instruction to each terminal device so as to change the original configuration information of the at least one communication link into corresponding target configuration information by using the terminal device of the at least one communication link.
As an optional implementation manner of the embodiment of the present invention, the implementation manner of step S402 (sending the configuration change instruction to each terminal device) may include:
and sending the configuration change instruction to each terminal device in a broadcasting mode.
Specifically, broadcasting refers to a transmission mode in which a destination address is all devices in a network when a packet is transmitted in a computer network. In fact, all devices referred to herein are also limited in scope, referred to as the "broadcast domain".
For example, the server information change notification broadcast message may be defined as follows:
{<ServerConnectInfo_01_Old,ServerConnectInfo_01_New>
<ServerConnectInfo_02_Old,ServerConnectInfo_02_New>,
<ServerConnectInfo_03_Old,ServerConnectInfo_03_New>,
...}
the serverconnectinfo_01_old is the original configuration information of the server link 1, and the serverconnectinfo_01_new is the configuration information after the server link 1 is changed.
Other groups are as follows: the meaning of the < serverconnectinfo_02_old, serverconnectinfo_02_new > data is the same as described above.
As an optional implementation manner of the embodiment of the present invention, as shown in fig. 5, after step S402 (sending the configuration change instruction to each terminal device), the method further includes step S403, if the communication link is not successfully established with the terminal device using the at least one communication link within the first preset duration, sending the configuration change instruction to each terminal device again.
In particular, the implementation of resending the configuration change instruction to each terminal device may be understood as a timeout mechanism, for example, sending a request to a terminal device and then waiting for a response of B, while starting the timeout timer, and waiting for ending the timer if the response is successfully received within the timeout time, if the communication link is not successfully established with the terminal device using the at least one communication link. If no response is received by the timeout, the waiting is finished, and the communication fails. In this embodiment, the configuration change instruction may be sent again to each terminal device.
The configuration change method provided by the embodiment of the invention is applied to a server, and is characterized in that firstly, the server generates a configuration change instruction, and then the configuration change instruction is sent to each terminal device so as to change the original configuration information of at least one communication link into corresponding target configuration information by using the managed device of the at least one communication link. Furthermore, when the configuration of a plurality of communication links of the server is changed, each terminal device can automatically update the link configuration information used by each terminal device, so that the effect of automatically re-uploading each terminal device is achieved, and meanwhile, the problem of low changing efficiency caused by manually updating the configuration of a plurality of terminal devices is solved.
In one embodiment, as shown in fig. 6, there is provided a terminal device including:
a receiving module 601, configured to receive a configuration change instruction sent by a server; the configuration change instruction carries target configuration information corresponding to at least one communication link, and is used for indicating terminal equipment using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information.
A determining module 602, configured to determine whether the at least one communication link includes a target communication link, where the target communication link is a communication link used by the terminal device.
And an updating module 603, configured to update the original configuration information of the target communication link to the corresponding target configuration information if the at least one communication link includes the target communication link.
As an optional implementation manner of the embodiment of the present invention, the configuration change instruction further carries original configuration information of the at least one communication link, and the determining whether the at least one communication link includes a target communication link includes: judging whether the server IP address of the original configuration information of the at least one communication link contains the server IP address of the target communication link or not; and if so, determining that the target communication link is included in the at least one communication link.
As an optional implementation manner of the embodiment of the present invention, the updating the original configuration information of the target communication link to the corresponding target configuration information includes: and updating at least one of a server IP address, a server monitoring port, a server response port and a pre-shared key of the target communication link according to the target configuration information.
As an optional implementation manner of the embodiment of the present invention, after updating the original configuration information of the target communication link to the corresponding target configuration information, the method further includes: and periodically sending a connection request to a server by taking a preset time period as a period until a communication link is successfully established with the server.
In one embodiment, as shown in fig. 7, there is provided a server including:
a generating module 701, configured to generate a configuration change instruction, where the configuration change instruction carries target configuration information corresponding to at least one communication link, and is configured to instruct a terminal device using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information;
a sending module 702, configured to send the configuration change instruction to each terminal device; so that the terminal equipment using the at least one communication link changes the original configuration information of the at least one communication link into corresponding target configuration information.
As an optional implementation manner of the embodiment of the present invention, the sending the configuration change instruction to each terminal device includes: and sending the configuration change instruction to each terminal device in a broadcasting mode.
As an optional implementation manner of the embodiment of the present invention, after sending the configuration change instruction to each terminal device, the method further includes: and if the communication link is not successfully established with the terminal equipment using the at least one communication link within the first preset time period, the configuration change instruction is sent to each terminal equipment again.
The embodiment of the invention also provides an electronic device, and fig. 8 is a schematic structural diagram of the configuration change electronic device provided by the embodiment of the invention. As shown in fig. 8, the configuration change electronic device provided in this embodiment includes: a memory 81 and a processor 82, the memory 81 for storing a computer program; the processor 82 is configured to execute the steps in the configuration change method provided in the method embodiment described above when the computer program is invoked.
The embodiment of the invention also provides a computer readable storage medium, and the computer readable storage medium stores a computer program which realizes the configuration change method provided by the method embodiment when being executed by a processor.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects.
The processor may be a central decision unit (CentralProcessingUnit, CPU), but may also be other general purpose processors, digital signal processors (DigitalSignalProcessor, DSP), application specific integrated circuits (ApplicationSpecificIntegratedCircuit, ASIC), off-the-shelf programmable gate arrays (Field-ProgrammableGateArray, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash memory (flashRAM). Memory is an example of a computer-readable medium.
Computer readable media include both non-transitory and non-transitory, removable and non-removable storage media. Storage media may embody any method or technology for storage of information, which may be computer readable instructions, data structures, program modules, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transshipment) such as modulated data signals and carrier waves.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A method for changing configuration, applied to a terminal device, the method comprising:
receiving a configuration change instruction sent by a server in a broadcast mode; the configuration change instruction carries target configuration information corresponding to at least one communication link and is used for indicating terminal equipment using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information; the configuration change instruction also carries original configuration information or identification information of the at least one communication link;
judging whether the at least one communication link comprises a target communication link or not, wherein the target communication link is a communication link used by the terminal equipment;
if yes, updating the original configuration information of the target communication link into corresponding target configuration information;
the updating the original configuration information of the target communication link to the corresponding target configuration information includes:
updating the server IP address, the server monitoring port, the server response port and the pre-shared secret key of the target communication link according to the target configuration information;
wherein determining whether the at least one communication link includes a target communication link includes:
judging whether the server IP address of the original configuration information of the at least one communication link contains the server IP address of the target communication link or not;
or;
judging whether the identification information of the at least one communication link contains the identification information of the target communication link or not;
and if so, determining that the at least one communication link comprises a target communication link.
2. The method of claim 1, wherein after updating the original configuration information of the target communication link to the corresponding target configuration information, the method further comprises:
and periodically sending a connection request to a server by taking a preset time period as a period until a communication link is successfully established with the server.
3. A method of configuration change, applied to a server, the method comprising:
generating a configuration change instruction, wherein the configuration change instruction carries target configuration information corresponding to at least one communication link and is used for indicating terminal equipment using the at least one communication link to change the server IP address, the server monitoring port, the server response port and the pre-shared key of the original configuration information of the at least one communication link into the corresponding target configuration information;
and sending the configuration change instruction to each terminal device in a broadcast mode so that the terminal device using the at least one communication link changes the server IP address, the server monitoring port, the server response port and the pre-shared key of the original configuration information of the at least one communication link into corresponding target configuration information.
4. A method according to claim 3, characterized in that after sending the configuration change instruction to the respective terminal device, the method further comprises:
and if the communication link is not successfully established with the terminal equipment using the at least one communication link within the first preset time period, the configuration change instruction is sent to each terminal equipment again.
5. A terminal device, comprising:
the receiving module is used for receiving a configuration change instruction sent by the server in a broadcast mode; the configuration change instruction carries target configuration information corresponding to at least one communication link and is used for indicating terminal equipment using the at least one communication link to change original configuration information of the at least one communication link into corresponding target configuration information; the configuration change instruction also carries original configuration information or identification information of the at least one communication link;
the judging module is used for judging whether the at least one communication link comprises a target communication link or not, wherein the target communication link is a communication link used by the terminal equipment;
the updating module is used for updating the original configuration information of the target communication link into corresponding target configuration information if the at least one communication link comprises the target communication link;
the updating module is specifically configured to:
updating the server IP address, the server monitoring port, the server response port and the pre-shared secret key of the target communication link according to the target configuration information;
the judging module is specifically configured to:
judging whether the server IP address of the original configuration information of the at least one communication link contains the server IP address of the target communication link or not;
or;
judging whether the identification information of the at least one communication link contains the identification information of the target communication link or not;
and if so, determining that the at least one communication link comprises a target communication link.
6. A server, comprising:
the generation module is used for generating a configuration change instruction, wherein the configuration change instruction carries target configuration information corresponding to at least one communication link and is used for indicating terminal equipment using the at least one communication link to change the server IP address, the server monitoring port, the server response port and the pre-shared secret key of the original configuration information of the at least one communication link into the corresponding target configuration information;
and the sending module is used for sending the configuration change instruction to each terminal device in a broadcasting mode so as to change the server IP address, the server monitoring port, the server response port and the pre-shared key of the original configuration information of the at least one communication link into corresponding target configuration information by using the terminal device of the at least one communication link.
7. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the configuration change method of any of claims 1 to 4 when the computer program is executed.
CN202110670347.7A 2021-06-17 2021-06-17 Configuration changing method and device and electronic equipment Active CN113347040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110670347.7A CN113347040B (en) 2021-06-17 2021-06-17 Configuration changing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110670347.7A CN113347040B (en) 2021-06-17 2021-06-17 Configuration changing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113347040A CN113347040A (en) 2021-09-03
CN113347040B true CN113347040B (en) 2024-02-02

Family

ID=77475869

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110670347.7A Active CN113347040B (en) 2021-06-17 2021-06-17 Configuration changing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113347040B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2541861A1 (en) * 2011-06-30 2013-01-02 British Telecommunications Public Limited Company Server security systems and related aspects
CN106100986A (en) * 2016-07-25 2016-11-09 乐视控股(北京)有限公司 Line control of communication method and device
WO2018027949A1 (en) * 2016-08-12 2018-02-15 华为技术有限公司 Communication method, network device, and terminal
WO2018107387A1 (en) * 2016-12-14 2018-06-21 深圳前海达闼云端智能科技有限公司 Data transmission method, device, system, electronic device, and computer program product
CN110101555A (en) * 2019-06-04 2019-08-09 济南浪潮高新科技投资发展有限公司 A kind of subway blind way navigation methods and systems based on indoor positioning
CN110690996A (en) * 2019-10-09 2020-01-14 深圳市欧瑞博科技有限公司 Configuration method, system and device of intelligent household terminal equipment and terminal equipment
CN111224889A (en) * 2019-12-30 2020-06-02 视联动力信息技术股份有限公司 Data transmission method and device
CN111245733A (en) * 2019-12-30 2020-06-05 视联动力信息技术股份有限公司 Data transmission method and device
CN111935800A (en) * 2020-08-12 2020-11-13 成都极米科技股份有限公司 System message changing method under multilink scene, terminal equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100042674A1 (en) * 2008-08-15 2010-02-18 Sony Ericsson Mobile Communications Ab Method and system for discovery of dynamic ip addresses
CN102404181B (en) * 2010-09-08 2014-10-08 华为技术有限公司 Address corresponding relationship sending method of layer 2 protocol utilizing link state routing
CN105764106B (en) * 2016-02-03 2019-06-11 宇龙计算机通信科技(深圳)有限公司 A kind of update method of transmission path, terminal and system
CN113259833A (en) * 2020-02-10 2021-08-13 南京理工大学 Subway station auxiliary traveling system and method based on visually impaired passengers

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2541861A1 (en) * 2011-06-30 2013-01-02 British Telecommunications Public Limited Company Server security systems and related aspects
CN106100986A (en) * 2016-07-25 2016-11-09 乐视控股(北京)有限公司 Line control of communication method and device
WO2018027949A1 (en) * 2016-08-12 2018-02-15 华为技术有限公司 Communication method, network device, and terminal
WO2018107387A1 (en) * 2016-12-14 2018-06-21 深圳前海达闼云端智能科技有限公司 Data transmission method, device, system, electronic device, and computer program product
CN110101555A (en) * 2019-06-04 2019-08-09 济南浪潮高新科技投资发展有限公司 A kind of subway blind way navigation methods and systems based on indoor positioning
CN110690996A (en) * 2019-10-09 2020-01-14 深圳市欧瑞博科技有限公司 Configuration method, system and device of intelligent household terminal equipment and terminal equipment
CN111224889A (en) * 2019-12-30 2020-06-02 视联动力信息技术股份有限公司 Data transmission method and device
CN111245733A (en) * 2019-12-30 2020-06-05 视联动力信息技术股份有限公司 Data transmission method and device
CN111935800A (en) * 2020-08-12 2020-11-13 成都极米科技股份有限公司 System message changing method under multilink scene, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN113347040A (en) 2021-09-03

Similar Documents

Publication Publication Date Title
US10110671B2 (en) Method, system, and device for managing server hardware resources in a cloud scheduling environment
US11070633B2 (en) Pre-association discovery of services
US10148511B2 (en) Managing servers based on pairing keys to implement an administrative domain-wide policy
WO2020186909A1 (en) Virtual network service processing method, apparatus and system, and controller and storage medium
EP3657861B1 (en) Deploying a network slice
US10491632B1 (en) Methods for reducing compliance violations in mobile application management environments and devices thereof
US20220046088A1 (en) Systems and methods for distributing partial data to subnetworks
EP3353952B1 (en) Managing groups of servers
US9116775B2 (en) Relationship-based dynamic firmware management system
US7912055B1 (en) Method and apparatus for configuration and analysis of network multicast routing protocols
WO2019056883A1 (en) Network slice deployment method and related device
US10637794B2 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
JP5957111B2 (en) Service discovery in service-oriented architecture (SOA) networks
CN112953774B (en) Network topology generation method, system, equipment and computer storage medium
WO2019062995A1 (en) Network management method, device and system
ES2594007T3 (en) Service, device and system data processing method
WO2023050966A1 (en) Blockchain data verification
CN116566984A (en) Routing information creation method and device of k8s container cluster and electronic equipment
US10075345B2 (en) Cloud based manual discovery of devices in a device management environment
CN113347040B (en) Configuration changing method and device and electronic equipment
EP3241363B1 (en) Resource link management at service layer
US11973687B2 (en) Multilayer decentralized server network
US20230041981A1 (en) Identifying an Instance of a Virtual Network Function
AU2023203129B2 (en) Systems and methods for distributing partial data to subnetworks
WO2022213903A1 (en) Method and apparatus for processing information of edge configuration server, and communication device

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