CN111865693B - Automatic correction method, device, equipment and storage medium for network terminal networking parameters - Google Patents

Automatic correction method, device, equipment and storage medium for network terminal networking parameters Download PDF

Info

Publication number
CN111865693B
CN111865693B CN202010714077.0A CN202010714077A CN111865693B CN 111865693 B CN111865693 B CN 111865693B CN 202010714077 A CN202010714077 A CN 202010714077A CN 111865693 B CN111865693 B CN 111865693B
Authority
CN
China
Prior art keywords
parameters
networking parameters
network
parameter file
terminal
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
CN202010714077.0A
Other languages
Chinese (zh)
Other versions
CN111865693A (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.)
Shenzhen Castel Wireless Telecommunication Co ltd
Original Assignee
Shenzhen Castel Wireless Telecommunication 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 Shenzhen Castel Wireless Telecommunication Co ltd filed Critical Shenzhen Castel Wireless Telecommunication Co ltd
Priority to CN202010714077.0A priority Critical patent/CN111865693B/en
Publication of CN111865693A publication Critical patent/CN111865693A/en
Application granted granted Critical
Publication of CN111865693B publication Critical patent/CN111865693B/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
    • 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/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for automatically correcting networking parameters of a network terminal. According to the invention, new terminal networking parameters are sent to the network terminal according to the networking parameter replacement condition; receiving new terminal networking parameters and judging whether the new terminal networking parameters are networking effective parameters or not; if yes, a temporary parameter file is established, and the current network connection of the network terminal is disconnected; if not, discarding the new terminal networking parameters; caching new terminal networking parameters into a temporary parameter file; reading a temporary parameter file according to a preset grammar rule; performing a first telnet attempt according to the new terminal networking parameters; if the login fails, performing a second remote login attempt according to the new terminal networking parameters; if the login is successful, replacing the original terminal networking parameters in the original parameter file with the new terminal networking parameters; and deleting the temporary parameter file. The invention can automatically correct the network terminal parameter configuration errors without the need of an engineer to perform on-site operation, and has high timeliness.

Description

Automatic correction method, device, equipment and storage medium for network terminal networking parameters
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to a method, an apparatus, a device, and a storage medium for automatically correcting network parameters of a network terminal.
Background
The parameter configuration of the network terminal product generally comprises the use of a data line for local configuration or remote background operation configuration of a computer. The end-user of the network terminal typically does not have the ability to modify parameters and therefore is locally configured for use by professionals in the initial installation of the product. When using remote configuration, some important parameters inevitably cause configuration errors, which cause problems in the operation of the terminal. For example, the terminal networking parameters are important parameters regarding whether the terminal can log in remotely. When the operation enterprise changes the networking parameters, the operation enterprise needs to remotely configure the new networking parameters to the running terminal, and the terminal logs in the new networking parameters before reporting the data. If the operator configures the networking parameters and errors occur, the terminal logs in according to the wrong networking parameters after receiving the wrong networking parameters, and the terminal can not log in successfully any more, so that the operation enterprises can always lose the equipment data of the network terminal equipment. The traditional industry practice is to send professionals to the scene to modify networking parameters again for local configuration, and the practice consumes manpower and material resources and has poor timeliness. Therefore, the invention of a networking parameter remote configuration method with high timeliness has become a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for automatically correcting networking parameters of a network terminal aiming at the defects, which are used for solving the problems existing in the prior art.
In a first aspect, an embodiment of the present invention provides a method for automatically correcting a network terminal networking parameter, where the method includes:
according to the network parameter replacement condition, new terminal network parameters are sent to the network terminal;
receiving the new terminal networking parameters and judging whether the new terminal networking parameters are networking effective parameters or not;
if yes, a temporary parameter file is established, and the new terminal networking parameters are stored in the temporary parameter file;
if not, discarding the new terminal networking parameters;
disconnecting a current network connection of the network terminal;
caching the temporary parameter file, and reading the temporary parameter file according to a preset grammar rule;
performing a first telnet attempt according to the new terminal networking parameters;
if the login registration fails, judging whether the current remote login use times are smaller than the preset maximum login times or not;
if the network connection failure is equal to the network connection failure, judging that the network connection fails; if the network parameters are smaller than the network parameters, performing a second remote login attempt according to the new terminal networking parameters;
if login and registration are successful, replacing the original terminal networking parameters in the original parameter file with the new terminal networking parameters;
and deleting the temporary parameter file.
Preferably, before the first telnet attempt according to the new terminal networking parameter, the method further comprises:
presetting the maximum login times and login rules;
wherein, the login rule is:
when the number of remote login attempts exceeds the maximum login number, logging in by using the original terminal networking parameters;
and deleting the temporary parameter file, and carrying out remote reporting waiting processing.
Preferably, the network terminal networking parameter automatic correction method further comprises the following steps:
caching the new terminal networking parameters into the temporary parameter file;
and reading the temporary parameter file according to a preset grammar rule, and if the reading fails, logging in by using the original terminal networking parameters.
Preferably, the terminal networking parameters include an IP address parameter, a domain name address, and a port number.
Preferably, the receiving the new terminal networking parameter and determining whether the new terminal networking parameter is a networking valid parameter includes determining whether the address parameter is a valid IP address, and determining whether the address parameter is a valid IP address includes:
judging whether the IP address parameter is four-section decimal numbers separated by three point numbers;
judging whether the number size of each segment is between 0 and 255;
judging whether each section of number has illegal condition with the first bit of 0;
and judging whether a space exists between each two digits.
Preferably, the caching the temporary parameter file, reading the temporary parameter file according to a preset grammar rule, includes:
and after the temporary parameter file is read, the insufficient parameter part reads the original parameter file.
In a second aspect, an embodiment of the present invention provides an apparatus for automatically correcting a networking parameter of a network terminal, where the apparatus includes:
the receiving module is used for receiving the new terminal networking parameters sent by the network terminal;
the judging module is used for judging whether the new terminal networking parameters are networking effective parameters or not;
if yes, a temporary parameter file is established, and the new terminal networking parameters are stored in the temporary parameter file;
if not, discarding the new terminal networking parameters;
the network disconnection control module is used for disconnecting the current network connection of the network terminal;
the cache reading module is used for caching the temporary parameter file and reading the temporary parameter file according to a preset grammar rule;
the first remote login control module is used for performing a first remote login attempt according to the new terminal networking parameters;
if login and registration fail, performing a second remote login attempt according to the new terminal networking parameters;
if login and registration are successful, replacing the original terminal networking parameters in the original parameter file with the new terminal networking parameters;
and the deletion control module is used for deleting the temporary parameter file.
Preferably, the network terminal networking parameter automatic correction device further includes:
and the second remote login control module is used for logging in by using the original terminal networking parameters when the temporary parameter file fails to be read according to a preset grammar rule.
In a third aspect, an embodiment of the present invention provides an automatic network parameter correction device for a network terminal, including: at least one processor, at least one memory and computer program instructions stored in the memory, which when executed by the processor, implement the method as in the first aspect of the embodiments described above.
In a fourth aspect, embodiments of the present invention provide a storage medium having stored thereon computer program instructions which, when executed by a processor, implement a method as in the first aspect of the embodiments described above.
In summary, the method, the device, the equipment and the storage medium for automatically correcting the network terminal networking parameters provided by the embodiment of the invention. According to the invention, new terminal networking parameters are sent to the network terminal according to the networking parameter replacement condition; receiving the new terminal networking parameters and judging whether the new terminal networking parameters are networking effective parameters or not; if yes, a temporary parameter file is established, and the new terminal networking parameters are stored in the temporary parameter file; if not, discarding the new terminal networking parameters; disconnecting a current network connection of the network terminal; caching the temporary parameter file, and reading the temporary parameter file according to a preset grammar rule; performing a first telnet attempt according to the new terminal networking parameters; if login and registration fail, performing a second remote login attempt according to the new terminal networking parameters; if login and registration are successful, replacing the original terminal networking parameters in the original parameter file with the new terminal networking parameters; and deleting the temporary parameter file. After receiving the new terminal networking parameters, the network terminal of the invention caches the new terminal networking parameters into the temporary parameter file, and then tries to log in by using the new terminal networking parameters. If login and registration are successful, changing the new terminal networking parameter parameters into formal parameters, otherwise, deleting the temporary parameter file if login is unsuccessful after exceeding the preset maximum login times, logging in by using the original terminal networking parameter, and reporting the problem to wait for subsequent processing of platform personnel. The invention can automatically correct the network terminal parameter configuration errors, does not need an engineer to perform on-site operation at the first time, saves manpower and material resources to a certain extent, and has high timeliness.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are needed to be used in the embodiments of the present invention will be briefly described, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for automatically correcting network parameters of a network terminal according to an embodiment of the present invention.
Fig. 2 is a step diagram of a method for automatically correcting network parameters of a network terminal according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an automatic network parameter correction device for a network terminal according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an automatic network parameter correction device for a network terminal according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely configured to illustrate the invention and are not configured to limit the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the invention by showing examples of the invention.
It is noted that relational terms such as first and second, and the like are 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. Moreover, 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 … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
Referring to fig. 1 and fig. 2, an embodiment of the present invention provides a method for automatically correcting network terminal networking parameters, where after receiving new terminal networking parameters, the network terminal of the present invention caches the new terminal networking parameters into a temporary parameter file, and then tries to log in with the new terminal networking parameters. If login and registration are successful, changing the new terminal networking parameter parameters into formal parameters, otherwise, deleting the temporary parameter file if login is unsuccessful after exceeding the preset maximum login times, logging in by using the original terminal networking parameter, and reporting the problem to wait for subsequent processing of platform personnel. The invention can automatically correct the network terminal parameter configuration errors, does not need engineers to perform on-site operation at the first time, saves manpower and material resources to a certain extent, and has high timeliness.
The method comprises the following steps:
s1, sending new terminal networking parameters to a network terminal according to the networking parameter replacement condition;
specifically, in this embodiment, when the operator enterprise changes the networking parameters, it is necessary to remotely configure new networking parameters from an operator home site to a network terminal, where the operator home site is in communication connection with a switch through accessing an IPNetwork, the network terminal is used as a slave site, the switch is connected to the network terminal to be configured, and after logging in the new networking parameters, the network terminal device can report data to the operator home site. In this embodiment, the network terminal includes, but is not limited to, an OBD terminal.
S2, receiving the new terminal networking parameters and judging whether the new terminal networking parameters are networking effective parameters or not;
if yes, a temporary parameter file is established, and the new terminal networking parameters are stored in the temporary parameter file;
if not, discarding the new terminal networking parameters;
preferably, the receiving the new terminal networking parameter and determining whether the new terminal networking parameter is a networking valid parameter includes determining whether the address parameter is a valid IP address, and determining whether the address parameter is a valid IP address includes:
judging whether the IP address parameter is four-section decimal numbers separated by three point numbers;
judging whether the number size of each segment is between 0 and 255;
judging whether each section of number has illegal condition with the first bit of 0;
and judging whether a space exists between each two digits.
It can be understood that the IP address parameter is divided into 4 segments, the first 2 segments are network addresses, and the second 2 segments are host addresses. In this embodiment, when the new IP address parameter is four decimal digits separated by three point numbers, the size of each digit is between 0 and 255, the illegal condition that the first digit is 0 does not exist in each digit, and the condition that a space does not exist between each digit is simultaneously established, the new IP address parameter is a valid networking parameter. For example, if the new IP address parameter is 203.280.102.23, the new IP address parameter is a networking invalidation parameter. When the new terminal networking parameters are invalid, the original parameter files are required to be changed, and the new valid terminal networking parameters are input to enter the next step of the invention. If the IP address parameter is 203.250.102.23, the IP address parameter is a networking effective parameter. And when the IP address parameter is valid, establishing a temporary parameter file, and storing the IP address parameter into the temporary parameter file.
Preferably, the receiving the new terminal networking parameter and determining whether the new terminal networking parameter is a networking valid parameter further includes determining whether the domain name address is valid as a valid domain name address and whether the port number is a valid port number.
S3, disconnecting the current network connection of the network terminal;
specifically, before the network parameters are changed by the operation enterprise, the current network terminal logs in by using the original terminal network parameters, and the equipment data of the network terminal equipment are reported to the original operation platform through the original terminal network parameters. Thus, the current network connection of the network terminal needs to be disconnected first when configuring new terminal networking parameters.
S4, caching the temporary parameter file, and reading the temporary parameter file according to a preset grammar rule;
specifically, in this embodiment, the temporary parameter file is read by a file reading function built into the singlechip, and the temporary parameter file information is acquired and analyzed.
The step of caching the temporary parameter file, after reading the temporary parameter file according to a preset grammar rule, comprises the following steps:
and after the temporary parameter file is read, the insufficient parameter part reads the original parameter file. It can be understood that the insufficient parameter portion includes parameters such as a login protocol, a user account, a user password, a device restart instruction, and a reporting time interval instruction, which are necessary in the networking process.
Preferably, the terminal networking parameters include an IP address parameter, a domain name address, and a port number. It will be appreciated that there is a one-to-one or many-to-one relationship between a domain name address on the Internet, which facilitates memorization, and an IP address parameter, which communicates between devices, the conversion between the IP address parameter and the domain name address being a domain name resolution, which requires a specialized domain name resolution server such as DNS, the final destination of the domain name address being IP. The port number is an identification number of application software having a network function, is a port logically used for distinguishing services, and distinguishes different services by different logical port numbers.
S5, performing a first remote login attempt according to the new terminal networking parameters;
preferably, before the first telnet attempt according to the new terminal networking parameter, the method further comprises:
the maximum login times and login rules are preset, and in this embodiment, the maximum login times may be freely set, which is not limited herein.
Wherein, the login rule is:
when the number of remote login attempts exceeds the maximum login number, the original terminal networking parameters are used for login, the temporary parameter file is deleted, and remote reporting waiting processing is carried out. Therefore, the networking parameter remote configuration is firstly carried out, and the original networking parameter is reported to the operation platform after the unsuccessful configuration is tried for many times, so that manpower and material resources are saved to a certain extent, and the networking parameter is effectively replaced.
S6, performing a first remote login attempt according to the new terminal networking parameters;
if the login registration fails, judging whether the current remote login use times are equal to or less than the preset maximum login times;
if the network connection failure is equal to the network connection failure, judging that the network connection fails; if the network parameters are smaller than the network parameters, performing a second remote login attempt according to the new terminal networking parameters;
in this embodiment, after the first telnet attempt using the new terminal networking parameter fails, if the login registration fails, it is determined whether the current telnet usage number is equal to or less than the preset maximum login number. If the current remote login use times are equal to the preset maximum login times, judging that the networking is failed; and if the current remote login use times are smaller than the preset maximum login times, performing second remote login attempt according to the new terminal networking parameters until login registration is successful or the current remote login use times are larger than the preset maximum login times.
Specifically, when the second telnet attempt is made, the process includes: disconnecting the current connection and preparing reconnection; caching the temporary parameter file; and reading parameters in the temporary parameter file, and reading the original parameter file by the rest part to carry out networking.
If login and registration are successful, replacing the original terminal networking parameters in the original parameter file with the new terminal networking parameters;
s7, deleting the temporary parameter file.
Preferably, after deleting the temporary parameter file, logging in an original operation platform by using the original terminal networking parameters to carry out remote reporting waiting processing.
Referring to fig. 3, an embodiment provides an apparatus for automatically correcting networking parameters of a network terminal, where the apparatus includes:
the receiving module 1 is used for receiving new terminal networking parameters sent by a network terminal;
the judging module 2 is used for judging whether the new terminal networking parameters are networking effective parameters or not;
if yes, a temporary parameter file is established, and the new terminal networking parameters are stored in the temporary parameter file;
if not, discarding the new terminal networking parameters;
the network disconnection control module 3 is used for disconnecting the current network connection of the network terminal;
the cache reading module 4 is used for caching the temporary parameter file and reading the temporary parameter file according to a preset grammar rule;
a first telnet control module 5, configured to perform a first telnet attempt according to the new terminal networking parameter;
and the deletion control module 6 is used for deleting the temporary parameter file.
In another preferred embodiment, the network terminal networking parameter automatic correction device further includes a second remote login control module 7, where the second remote login control module is configured to log in using the original terminal networking parameter when the temporary parameter file is failed to be read according to a preset grammar rule.
In addition, the network terminal networking parameter automatic correction method of the embodiment of the invention described in connection with fig. 1 can be implemented by a networking parameter automatic correction device of a network terminal. Fig. 4 is a schematic hardware structure diagram of an automatic network parameter correction device for a network terminal according to an embodiment of the present invention.
The networking parameter automatic correction device of the network terminal may comprise a processor 401 and a memory 402 storing computer program instructions.
In particular, the processor 401 described above may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. Memory 402 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). The ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these, where appropriate.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any one of the network terminal networking parameter automatic correction methods in the above embodiments.
In one example, the network terminal's networking parameter auto-correction device may further include a communication interface 403 and a bus 410. As shown in fig. 4, the processor 401, the memory 402, and the communication interface 403 are connected by a bus 410 and perform communication with each other.
The communication interface 403 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiment of the present invention.
Bus 410 includes hardware, software, or both that couple components of the network terminal's networking parameter automatic correction device to each other. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 410 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
In addition, in combination with the network terminal networking parameter automatic correction method in the above embodiment, the embodiment of the invention can be implemented by providing a computer readable storage medium. The computer readable storage medium has stored thereon computer program instructions; the computer program instructions, when executed by the processor, implement any of the network terminal networking parameter auto-correction methods of the above embodiments.
In summary, the method, the device, the equipment and the storage medium for automatically correcting the network terminal networking parameters provided by the embodiment of the invention. According to the invention, new terminal networking parameters are sent to the network terminal according to the networking parameter replacement condition; receiving the new terminal networking parameters and judging whether the new terminal networking parameters are networking effective parameters or not; if yes, a temporary parameter file is established, and the new terminal networking parameters are stored in the temporary parameter file; if not, discarding the new terminal networking parameters; disconnecting a current network connection of the network terminal; caching the temporary parameter file, and reading the temporary parameter file according to a preset grammar rule; performing a first telnet attempt according to the new terminal networking parameters; if login and registration fail, performing a second remote login attempt according to the new terminal networking parameters; if login and registration are successful, replacing the original terminal networking parameters in the original parameter file with the new terminal networking parameters; and deleting the temporary parameter file. After receiving the new terminal networking parameters, the network terminal of the invention caches the new terminal networking parameters into the temporary parameter file, and then tries to log in by using the new terminal networking parameters. If login and registration are successful, changing the new terminal networking parameter parameters into formal parameters, otherwise, deleting the temporary parameter file if login is unsuccessful after exceeding the preset maximum login times, logging in by using the original terminal networking parameter, and reporting the problem to wait for subsequent processing of platform personnel. The invention can automatically correct the network terminal parameter configuration errors, does not need an engineer to perform on-site operation at the first time, saves manpower and material resources to a certain extent, and has high timeliness.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (8)

1. An automatic correction method for network terminal networking parameters, which is characterized by comprising the following steps:
according to the network parameter replacement condition, new terminal network parameters are sent to the network terminal;
receiving the new terminal networking parameters and judging whether the new terminal networking parameters are networking effective parameters or not;
if yes, a temporary parameter file is established, and the new terminal networking parameters are stored in the temporary parameter file;
if not, discarding the new terminal networking parameters;
disconnecting a current network connection of the network terminal; caching the temporary parameter file, and reading the temporary parameter file according to a preset grammar rule; if the reading fails, logging in by using the original terminal networking parameters;
presetting the maximum login times and login rules;
wherein, the login rule is:
when the number of remote login attempts exceeds the maximum login number, logging in by using the original terminal networking parameters;
deleting the temporary parameter file, and remotely reporting and waiting for processing;
performing a first telnet attempt according to the new terminal networking parameters;
if the login registration fails, judging whether the current remote login use times are smaller than the preset maximum login times or not;
if the network connection failure is equal to the network connection failure, judging that the network connection fails; if the network parameters are smaller than the network parameters, performing a second remote login attempt according to the new terminal networking parameters;
if login and registration are successful, replacing the original terminal networking parameters in the original parameter file with the new terminal networking parameters;
and deleting the temporary parameter file.
2. The method for automatically correcting network terminal networking parameters according to claim 1, wherein the terminal networking parameters include an IP address parameter, a domain name address and a port number.
3. The method according to claim 2, wherein the receiving the new terminal networking parameter and determining whether it is a networking valid parameter includes determining whether the address parameter is a valid IP address, and determining whether the address parameter is a valid IP address includes:
judging whether the IP address parameter is four-section decimal numbers separated by three point numbers;
judging whether the number size of each segment is between 0 and 255;
judging whether each section of number has illegal condition with the first bit of 0;
and judging whether a space exists between each two digits.
4. The method for automatically correcting networking parameters of a network terminal according to claim 1, wherein the caching the temporary parameter file, reading the temporary parameter file according to a preset grammar rule, comprises:
and after the temporary parameter file is read, the insufficient parameter part reads the original parameter file.
5. An apparatus for automatically correcting networking parameters of a network terminal, the apparatus comprising:
the receiving module is used for receiving the new terminal networking parameters sent by the network terminal;
the judging module is used for judging whether the new terminal networking parameters are networking effective parameters or not;
if yes, a temporary parameter file is established, and the new terminal networking parameters are stored in the temporary parameter file;
if not, discarding the new terminal networking parameters;
the network disconnection control module is used for disconnecting the current network connection of the network terminal;
the cache reading module is used for caching the temporary parameter file and reading the temporary parameter file according to a preset grammar rule;
the first remote login control module is used for performing a first remote login attempt according to the new terminal networking parameters;
if login and registration fail, performing a second remote login attempt according to the new terminal networking parameters;
if login and registration are successful, replacing the original terminal networking parameters in the original parameter file with the new terminal networking parameters;
and the deletion control module is used for deleting the temporary parameter file.
6. The apparatus for automatically correcting networking parameters of a network terminal according to claim 5, further comprising a second telnet control module for logging in using the networking parameters of the original terminal when the temporary parameter file is failed to be read according to a preset grammar rule.
7. An apparatus for automatically correcting networking parameters of a network terminal, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of any one of claims 1-4.
8. A storage medium having stored thereon computer program instructions, which when executed by a processor, implement the method of any of claims 1-4.
CN202010714077.0A 2020-07-23 2020-07-23 Automatic correction method, device, equipment and storage medium for network terminal networking parameters Active CN111865693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010714077.0A CN111865693B (en) 2020-07-23 2020-07-23 Automatic correction method, device, equipment and storage medium for network terminal networking parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010714077.0A CN111865693B (en) 2020-07-23 2020-07-23 Automatic correction method, device, equipment and storage medium for network terminal networking parameters

Publications (2)

Publication Number Publication Date
CN111865693A CN111865693A (en) 2020-10-30
CN111865693B true CN111865693B (en) 2023-08-18

Family

ID=72950258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010714077.0A Active CN111865693B (en) 2020-07-23 2020-07-23 Automatic correction method, device, equipment and storage medium for network terminal networking parameters

Country Status (1)

Country Link
CN (1) CN111865693B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539974A (en) * 2008-03-07 2009-09-23 赛门铁克公司 Detecting, capturing and processing valid login credentials
CN106385356A (en) * 2015-08-06 2017-02-08 中兴通讯股份有限公司 Login method and terminal, session establishing method and server
CN106790122A (en) * 2016-12-27 2017-05-31 努比亚技术有限公司 A kind of login method when terminal, server and access application
CN107786998A (en) * 2017-08-31 2018-03-09 上海连尚网络科技有限公司 A kind of processing method of network connection, device, equipment and computer-readable storage medium
CN110972161A (en) * 2019-10-22 2020-04-07 珠海格力电器股份有限公司 Automatic networking method, device, equipment and readable medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101539974A (en) * 2008-03-07 2009-09-23 赛门铁克公司 Detecting, capturing and processing valid login credentials
CN106385356A (en) * 2015-08-06 2017-02-08 中兴通讯股份有限公司 Login method and terminal, session establishing method and server
CN106790122A (en) * 2016-12-27 2017-05-31 努比亚技术有限公司 A kind of login method when terminal, server and access application
CN107786998A (en) * 2017-08-31 2018-03-09 上海连尚网络科技有限公司 A kind of processing method of network connection, device, equipment and computer-readable storage medium
CN110972161A (en) * 2019-10-22 2020-04-07 珠海格力电器股份有限公司 Automatic networking method, device, equipment and readable medium

Also Published As

Publication number Publication date
CN111865693A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN111343021B (en) Method, device, equipment and medium for generating network topology structure
CN113472607B (en) Application program network environment detection method, device, equipment and storage medium
CN110121859B (en) Information verification method and related equipment
CN113115351B (en) Network exception processing method, processing device, terminal equipment and medium
CN111277602B (en) Network data packet identification processing method and device, electronic equipment and storage medium
CN111385180B (en) Communication tunnel construction method, device, equipment and medium
CN114268957B (en) Abnormal business data processing method, device, server and storage medium
US6754844B1 (en) Diagnostic configuration management of embedded network devices
CN113791928A (en) Port fault handling method, system, storage medium and electronic equipment
CN111355817B (en) Domain name resolution method, device, security server and medium
CN111865693B (en) Automatic correction method, device, equipment and storage medium for network terminal networking parameters
CN112953764A (en) Networking terminal configuration method and device, networking terminal and computer storage medium
CN109981813B (en) Message processing method and device
CN111866921A (en) Method, device and equipment for searching service fault of 5G base station and storage medium
KR101959733B1 (en) Method and device for configuring a switch which is newly connected to a network by performing auto-ip provision to acqure information on a network by using arp packets passing by itself
CN111385157B (en) Server abnormity detection method and device
CN107678917B (en) Test machine automation management method, device, equipment and storage medium
CN114928833A (en) Network link login method and device, power terminal and storage medium
CN112534880B (en) Computer-implemented method and network access server for connecting a network component to a network, in particular a mobile radio network, using an extended network access identifier
CN109995564B (en) Method, device, equipment and medium for automatically opening maintenance port
CN113765842B (en) Network on-line management system for information device
CN110022538B (en) Method and device for identifying traffic type
CN111181984B (en) Security protection method, device, system, terminal and storage medium based on environment-friendly 212 protocol
CN116032889B (en) IP address allocation method and device
CN111917575B (en) Gateway offline configuration method, system, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant