CN115695191A - Switching method and device of terminal network and electronic equipment - Google Patents

Switching method and device of terminal network and electronic equipment Download PDF

Info

Publication number
CN115695191A
CN115695191A CN202211041623.4A CN202211041623A CN115695191A CN 115695191 A CN115695191 A CN 115695191A CN 202211041623 A CN202211041623 A CN 202211041623A CN 115695191 A CN115695191 A CN 115695191A
Authority
CN
China
Prior art keywords
network
terminal
information
information table
network segment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211041623.4A
Other languages
Chinese (zh)
Inventor
朱选章
袁阳
李静晨
闫凡茜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202211041623.4A priority Critical patent/CN115695191A/en
Publication of CN115695191A publication Critical patent/CN115695191A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a switching method and a switching device of a terminal network and electronic equipment, and relates to the field of financial science and technology or intelligent operation and maintenance, wherein the method comprises the following steps: receiving a network switching instruction initiated by a terminal device, wherein the network switching instruction at least carries: network name and terminal identification of the network to be connected; responding to a network switching instruction, and generating a terminal network configuration parameter of a network to be connected based on the terminal identification, the employee information, the employee station information and the connection switch information; and outputting the terminal identification and the terminal network configuration parameters to the terminal equipment, wherein the terminal equipment configures the terminal network configuration parameters to a terminal network card to replace the network parameters of the currently running default network, and completing network switching. The invention solves the technical problem of long switching time caused by respectively connecting two network segments in a wired way and a wireless way to realize the switching of different terminals in the related technology.

Description

Switching method and device of terminal network and electronic equipment
Technical Field
The invention relates to the field of financial science and technology or intelligent operation and maintenance, in particular to a switching method and device of a terminal network and electronic equipment.
Background
The terminal is used as an input/output device and can be divided into an office terminal, a test terminal, an operation and maintenance terminal and the like according to different functions borne by the terminal, meanwhile, different terminals need to be isolated and controlled on the network, and different types of terminals have different access rights so as to control access risks.
In the financial industry, most users have requirements for using two terminals, namely office and test, and if different terminals bear different functions, most employees need to configure the two terminals, so that not only is the terminal resource investment huge, but also a network isolation strategy needs to be specially set to realize terminal isolation.
In the related art, a network segment is divided into an office terminal access network segment and a test terminal access network segment in an access network, access control strategies are respectively implemented on the two network segments, and one physical terminal distinguishes whether the terminal is an office terminal or a test terminal by using different network segments. One terminal is connected with two network segments, which can be realized by adopting a method that two network wires are connected with different ports of a switch, but the scheme uses double switch resources and comprehensive wiring resources, so that a scheme of respectively connecting two network segments by wireless and wired wires is often adopted, but the following problems exist: firstly, a network cable needs to be pulled out when the wired connection is switched to the wireless connection, the wireless connection is clicked, and a dynamic password is input, so that the switching action is more and the time is long; secondly, due to the high density of office staff, the network quality is reduced after too many wireless access terminals are used, and the situations of data packet loss and large network delay occur, so that the use of users is influenced.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a switching method and device of a terminal network and electronic equipment, which at least solve the technical problem of long switching time caused by the fact that two network segments are respectively connected in a wired mode and a wireless mode to realize switching of different terminals in the related art.
According to an aspect of the embodiments of the present invention, there is provided a method for switching a terminal network, which is applied to a server, and includes: receiving a network switching instruction initiated by a terminal device, wherein the network switching instruction at least carries: the system comprises a network name and a terminal identifier of a network to be connected, wherein the terminal identifier is used for inquiring employee information, employee station information and connection switch information of the associated terminal equipment; responding to the network switching instruction, and generating a terminal network configuration parameter of the network to be connected based on the terminal identification, the employee information, the employee station information and the connection switch information; and outputting the terminal identification and the terminal network configuration parameters to the terminal equipment, wherein the terminal equipment configures the terminal network configuration parameters to a terminal network card to replace the network parameters of the currently running default network, and the network switching is completed.
Optionally, the handover method further includes: receiving a network management request initiated by terminal equipment, wherein the network management request at least carries an operation identifier and management parameter information; writing the management parameter information into a part room information table of an information base when the operation instruction indicated by the operation identifier is a new part room; in the case that the operation instruction indicated by the operation identifier is a modification part room, replacing an original part room name with a part room name to be modified in the part room information table based on the management parameter information; under the condition that the operation instruction indicated by the operation identifier is to add a network segment, adding a specified field in a network information table in the information base based on the management parameter information; or, in the case that the operation instruction indicated by the operation identifier is to delete a network segment, deleting a specified field in the network information table in the information base based on the management parameter information; under the condition that an operation instruction indicated by the operation identifier is to add a Domain Name System (DNS) address, adding a specified address in a network information table in the information base on the basis of the management parameter information; or, in the case that the operation instruction indicated by the operation identifier is to delete a DNS address, deleting a specified address in the network information table in the information base based on the management parameter information.
Optionally, after receiving the network management request initiated by the terminal device, the method further includes: under the condition that the operation instruction indicated by the operation identifier is configured for a newly added network, writing the management parameter information into a terminal information table of the information base; extracting first type key field information in the department information table to obtain a first extraction result; writing the first extraction result into the terminal information table; extracting an idle address from the second network segment address pool, and writing the extracted idle address into the terminal information table, wherein the second network segment address pool stores a plurality of second network segments, and the second network segment is a switching network segment of a default network segment currently used by a user; and extracting second key field information in a switch information table of the information base to obtain a second extraction result, and writing the second extraction result into the terminal information table.
Optionally, after receiving the network management request initiated by the terminal device, the method further includes: under the condition that the operation instruction indicated by the operation identifier is used for modifying the network configuration, writing the management parameter information into a terminal information table of an information base; inquiring a new department associated with the terminal identifier in a terminal information table of the information base based on the terminal identifier of the terminal to be modified in the network configuration, and replacing the original department identifier with the department identifier of the new department; releasing the network segment address of the second network segment and updating the network information table of the information base; extracting third key field information in a department information table of the information base by taking the department identifier of the new department as a keyword to obtain a third extraction result; writing the third extraction result into the terminal information table; extracting an idle address from a second network segment address pool, and writing the extracted idle address into the terminal information table; and extracting fourth type key field information in a switch information table of the information base to obtain a fourth extraction result, and writing the fourth extraction result into the terminal information table.
Optionally, after receiving the network management request initiated by the terminal device, the method further includes: writing the management parameter information into a terminal information table of an information base under the condition that the operation instruction indicated by the operation identifier is to delete network configuration; inquiring terminal information related to the terminal identification in a terminal information table of the information base based on the terminal identification of the terminal configured by the network to be deleted, and deleting the terminal identification and the terminal information; and releasing the network segment address of the second network segment, and updating the network information table of the information base.
Optionally, all tables stored in the information base form a table set, and tables included in the table set include: a client information table: the system comprises a terminal identifier, a department identifier, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, a second network segment address, a mask of the second network segment, a gateway of the second network segment, DNS address information and station information points; department room information table: the system comprises a department identity, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, an address pool of the second network segment, a mask of the second network segment, a gateway of the second network segment and a DNS address; network information table: the method comprises the steps of (1) including a network segment, a network segment mask, a network segment gateway and a DNS address; switch information table: the system comprises a switch management address, a switch port and a station information point.
Optionally, before receiving the network management request initiated by the terminal device, the method further includes: controlling an equipment screen interface of the terminal equipment to display a network menu, wherein a currently running default network and a switchable network are displayed in the network menu in a vertical arrangement mode; detecting a network selection operation of a user; and under the condition that the network selection operation indicates that the switchable network needs to be used, generating the network management request based on the network identification of the switchable network.
According to an aspect of the embodiments of the present invention, there is provided a handover apparatus of a terminal network, including: a first receiving unit, configured to receive a network handover instruction initiated by a terminal device, where the network handover instruction at least carries: the system comprises a network name and a terminal identification of a network to be connected, wherein the terminal identification is used for inquiring employee information, employee station information and connection switch information which are related to the terminal equipment; the first generating unit is used for responding to the network switching instruction and generating terminal network configuration parameters of the network to be connected based on the terminal identification, the employee information, the employee station information and the connection switch information; and the output unit is used for outputting the terminal identifier and the terminal network configuration parameters to the terminal equipment, wherein the terminal equipment configures the terminal network configuration parameters to a terminal network card to replace the network parameters of the currently running default network, and the network switching is completed.
Optionally, the switching device of the terminal network further includes: a second receiving unit, configured to receive a network management request initiated by a terminal device, where the network management request carries at least an operation identifier and management parameter information; a first writing unit, configured to write the management parameter information into a department room information table of an information base if an operation instruction indicated by the operation identifier is a new department room; a first replacement unit configured to replace, in a case where the operation instruction indicated by the operation identifier is a modified department, an original department name with a department name to be modified in the department information table based on the management parameter information; a first adding unit, configured to add a specified field in a network information table in the information base based on the management parameter information when the operation instruction indicated by the operation identifier is to add a network segment; or, in the case that the operation instruction indicated by the operation identifier is to delete a network segment, deleting a specified field in the network information table in the information base based on the management parameter information; a second adding unit, configured to add a specified address to the network information table in the information base based on the management parameter information, in a case where an operation instruction indicated by the operation identifier is to add a domain name system DNS address; or, in the case that the operation instruction indicated by the operation identifier is to delete a DNS address, deleting a specified address in the network information table in the information base based on the management parameter information.
Optionally, the switching device of the terminal network further includes: a second writing unit, configured to write the management parameter information into a terminal information table of an information base when the operation instruction indicated by the operation identifier is configured for a newly added network; the first extraction unit is used for extracting first type key field information in the department information table to obtain a first extraction result; a third writing unit, configured to write the first extraction result into the terminal information table; a second extraction unit, configured to extract an idle address from a second network segment address pool, and write the extracted idle address into the terminal information table, where the second network segment address pool stores multiple second network segments, and the second network segment is a handover network segment of a default network segment currently used by a user; and the third extraction unit is used for extracting second key field information in the switch information table of the information base to obtain a second extraction result, and writing the second extraction result into the terminal information table.
Optionally, the switching device of the terminal network further includes: a fourth writing unit, configured to write the management parameter information into a terminal information table of an information base when the operation instruction indicated by the operation identifier is to modify a network configuration; the first query unit is used for querying a new department associated with the terminal identifier in a terminal information table of the information base based on the terminal identifier of the terminal of the network configuration to be modified, and replacing the original department identifier with the department identifier of the new department; the first release unit is used for releasing the network segment address of the second network segment and updating the network information table of the information base; a fourth extraction unit, configured to extract, with the department identity of the new department as a keyword, third type key field information in the department information table of the information base, to obtain a third extraction result; a fifth writing unit, configured to write the third extraction result into the terminal information table; a fifth extraction unit, configured to extract an idle address from the second network segment address pool, and write the extracted idle address into the terminal information table; and the sixth extraction unit is used for extracting fourth type key field information in the switch information table of the information base to obtain a fourth extraction result, and writing the fourth extraction result into the terminal information table.
Optionally, the switching device of the terminal network further includes: a sixth writing unit, configured to write the management parameter information into a terminal information table of an information base when the operation instruction indicated by the operation identifier is to delete a network configuration; the second query unit is used for querying the terminal information associated with the terminal identifier in the terminal information table of the information base based on the terminal identifier of the terminal configured by the network to be deleted, and deleting the terminal identifier and the terminal information; and the second release unit is used for releasing the network segment address of the second network segment and updating the network information table of the information base.
Optionally, all tables stored in the information base form a table set, and tables included in the table set include: a client information table: the system comprises a terminal identifier, a department identifier, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, a second network segment address, a mask of the second network segment, a gateway of the second network segment, DNS address information and station information points; department room information table: the system comprises a department identity, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, an address pool of the second network segment, a mask of the second network segment, a gateway of the second network segment and a DNS address; network information table: the method comprises the steps of (1) including a network segment, a network segment mask, a network segment gateway and a DNS address; switch information table: the system comprises a switch management address, a switch port and a station information point.
Optionally, the switching device of the terminal network further includes: the first control unit is used for controlling an equipment screen interface of the terminal equipment to display a network menu, wherein the network menu displays a current running default network and a switchable network in a vertical arrangement mode; the first detection unit is used for detecting the network selection operation of a user; and the second generating unit is used for generating the network management request based on the network identification of the switchable network under the condition that the network selecting operation indicates that the switchable network needs to be used.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the handover method of the terminal network according to any one of the above through execution of the executable instructions.
According to another aspect of the embodiments of the present invention, there is further provided a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, a device in which the computer-readable storage medium is located is controlled to perform any one of the above methods for switching a terminal network.
In the application, the following steps are adopted to receive a network switching instruction initiated by a terminal device, wherein the network switching instruction at least carries: the system comprises a network name and a terminal identifier of a network to be connected, wherein the terminal identifier is used for inquiring employee information, employee station information and connection switch information of associated terminal equipment; responding to a network switching instruction, and generating terminal network configuration parameters of a network to be connected based on the terminal identification, the employee information, the employee station information and the connection switch information; and outputting the terminal identifier and the terminal network configuration parameters to the terminal equipment, wherein the terminal equipment configures the terminal network configuration parameters to the terminal network card to replace the network parameters of the currently-operated default network, and completing network switching.
In the application, a plurality of planned network (for example, terminal test and terminal office) connection parameters are pushed to a terminal, one terminal can simultaneously undertake two terminal roles with different access authorities, in the network switching process, a user only needs to perform corresponding operation on an operation interface, a series of operations such as plugging and unplugging a network cable, acquiring a dynamic password, clicking wireless network connection and inputting the dynamic password are not needed, the terminal can automatically and quickly switch between the two roles, the two networks are in wired connection, the network connection speed is high, the quality is high, the user experience and the data transmission speed are improved, the working efficiency is improved, the problems of office work and network safety isolation test are solved, the terminal resource investment is saved, and good use experience can be provided for the user.
Meanwhile, the method and the device realize the safety isolation of a plurality of networks (for example, terminal testing and terminal office), save the terminal resource investment and provide good use experience for users.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram illustrating an alternative handover method of a terminal network according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a switching device of an alternative terminal network according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an alternative handover system of a terminal network according to an embodiment of the present invention;
fig. 4 is a block diagram of a hardware structure of an electronic device (or a mobile device) of a handover method of a terminal network according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
To facilitate understanding of the invention by those skilled in the art, some terms or nouns referred to in the embodiments of the invention are explained below:
the terminal, an input and output device connected with the computer system, belongs to the peripheral equipment relative to the host computer, and does not provide the operation processing function.
Switch, a network equipment machine for electrical (optical) signal forwarding. It can provide an exclusive electrical signal path for any two network nodes accessing the switch, and can provide more connection ports in the sub-network for connecting more computers, e.g., ethernet switches, fiber switches, etc.
Network segment refers to a part of a computer network which can directly communicate by using the same physical layer device (transmission medium, repeater, hub, etc.), and the addresses of the same network segment can directly communicate in two layers, for example, the IP address 192.168.1.1/24 and the IP address 192.168.1.2/24 are both segments of 192.168.1.0/24, thus being capable of communicating with each other.
DNS, an abbreviation for Domain Name System, a System that converts Domain names into IP addresses.
It should be noted that the terminal network switching method and apparatus in the present disclosure may be used in the field of financial technology, and when the terminal network is switched, the terminal network switching method and apparatus may also be used in any field other than the field of financial technology, and the field of application of the terminal network switching method and apparatus in the present disclosure is not limited.
It should be noted that relevant information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data that are authorized by the user or sufficiently authorized by various parties. For example, an interface is provided between the system and the relevant user or organization, before obtaining the relevant information, an obtaining request needs to be sent to the user or organization through the interface, and after receiving the consent information fed back by the user or organization, the relevant information is obtained.
The invention can be applied to various terminal network systems/devices/products, can realize that one terminal simultaneously bears two terminal roles with different access authorities, and a user only needs to perform corresponding operations (such as clicking, double clicking, long pressing, touch screen and the like) on an operation interface, and the terminal can automatically and rapidly switch between the two roles, thereby realizing the safety isolation of a plurality of networks, saving the terminal resource investment and providing good use experience for the user.
The present invention will be described in detail with reference to examples.
Example one
According to an embodiment of the present invention, there is provided an embodiment of a handover method of a terminal network, it should be noted that the steps shown in the flowchart of the drawings may be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that here.
The switching method of the terminal network provided by the embodiment of the invention has the advantages that network maintenance personnel finish network planning in a campus in advance, each department allocates two network segments, one of the network segments is set as the default use network segment of the department according to the working characteristics of the department, the names, the default network segments, the second network segments and other information of each department are input into a user information base, and the information base further comprises fields such as staff terminal names (types including but not limited to Chinese characters, letters and number numbers), staff names (types including but not limited to Chinese characters, letters and number numbers), station information points (including but not limited to company floors, floor layout and station relative coordinates), connected switches (including but not limited to numbers, port numbers and the like) and the like.
In the embodiment of the invention, for each terminal, the system generates terminal network configuration according to information such as a department room to which the employee belongs, a station information point and the like, pushes the terminal network configuration to the terminal and stores the terminal network configuration, generates network configuration at the same time, and completes corresponding configuration on the switch. When a user needs to perform network switching, after selecting and applying a corresponding network connection name, the corresponding parameter is configured on the network card, the network card is restarted to enable the parameter to take effect, the corresponding network connection is realized, and the existing configuration is used all the time before the next selection.
According to the switching method of the terminal network provided by the embodiment of the invention, a series of complex operations of plugging and unplugging a network cable, acquiring a dynamic password, clicking wireless network connection, inputting the dynamic password and the like in the switching process of the wired network and the wireless network are reduced, the switching time is shortened by more than half, and the two networks are in wired connection, so that the network connection speed is high, the quality is high, the user experience and the data transmission speed are improved, and the working efficiency is improved. The invention is described below with reference to preferred embodiments.
Fig. 1 is a schematic diagram of a handover method of an optional terminal network according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S101, receiving a network switching instruction initiated by a terminal device, wherein the network switching instruction at least carries: the network name and the terminal identification of the network to be connected are used for inquiring the employee information, the employee station information and the connection switch information of the associated terminal equipment;
step S102, responding to a network switching instruction, and generating a terminal network configuration parameter of a network to be connected based on a terminal identifier, employee information, employee station information and connection switch information;
and step S103, outputting the terminal identification and the terminal network configuration parameters to the terminal equipment, wherein the terminal equipment configures the terminal network configuration parameters to the terminal network card to replace the network parameters of the currently running default network, and completing network switching.
Through the steps, a network switching instruction initiated by the terminal equipment is received, wherein the network switching instruction at least carries: the network name and the terminal identification of the network to be connected are used for inquiring the employee information, the employee station information and the connection switch information of the associated terminal equipment; responding to a network switching instruction, and generating terminal network configuration parameters of a network to be connected based on the terminal identification, the employee information, the employee station information and the connection switch information; and outputting the terminal identification and the terminal network configuration parameters to the terminal equipment, wherein the terminal equipment configures the terminal network configuration parameters to a terminal network card to replace the network parameters of the currently running default network, and completing network switching. In the embodiment, the planned network connection parameters of the two terminals are pushed to the terminals, so that one terminal can simultaneously bear two terminal roles with different access authorities, and after the corresponding operation of the user terminal is received, the terminal can automatically and quickly switch between the two roles, thereby not only realizing office work and testing network safety isolation, but also saving terminal resource investment, providing good use experience for users, and further solving the technical problem that in the related technology, in order to realize the switching of different terminals, two network segments are respectively connected by using a wired network and a wireless network, and further the switching time is long.
The following is a detailed description of the above embodiments.
Step S101, receiving a network switching instruction initiated by a terminal device, wherein the network switching instruction at least carries: and the terminal identification is used for inquiring the employee information, the employee station information and the connection switch information of the associated terminal equipment.
The terminal device provided in this embodiment may refer to a notebook, a PC, a panel, an IPAD, and the like used by a user, and the user initiates a network switching instruction to a server or a network system through the terminal device. The network switching instruction can implement fast switching of the terminal device in different terminal states (in this embodiment, two states of office and test are schematically illustrated), and can also implement switching of other functions, including but not limited to an operation terminal and an operation and maintenance terminal.
The user terminal equipment comprises operation buttons for adding network configuration, modifying network configuration, deleting network configuration, submitting and the like, currently used network connection names are displayed on an operation interface, the network connection names to be used are selected through a pull-down menu, and an application button is clicked, so that a switching instruction can be issued on the operation interface of the terminal equipment.
The terminal identifier includes, but is not limited to, a terminal name (type includes, but is not limited to, characters, letters, chinese characters, numeric labels, etc.), a terminal number, and the like.
And S102, responding to a network switching instruction, and generating a terminal network configuration parameter of the network to be connected based on the terminal identification, the employee information, the employee station information and the connection switch information.
It should be noted that the employee information includes, but is not limited to: employee names (types include but are not limited to Chinese characters, letters and numerical numbers), employee departments, employee direct leader identification and affiliated company identification, employee position information (including but not limited to company floors, floor layouts and position relative coordinates), and connection switch information including but not limited to: the switch configuration of the connection (including but not limited to, number, port number, etc.).
And after the network switching instruction is obtained, logging in the corresponding switch based on the obtained switch management address information and switch configuration, finishing switch configuration modification and saving the position of the switch, thereby generating the terminal network configuration parameters of the network to be connected.
And step S103, outputting the terminal identification and the terminal network configuration parameters to the terminal equipment, wherein the terminal equipment configures the terminal network configuration parameters to the terminal network card to replace the network parameters of the currently running default network, and completing network switching.
The terminal configuration parameters are generated through terminal names, default network segment network names, second network segment addresses, second network segment masks, second network segment gateways and DNS address information. And according to the terminal name and the terminal network configuration parameters and the information fed back by the system deployed on the terminal, searching the IP address of the corresponding terminal, and pushing the terminal network parameters to the corresponding module on the terminal through the network.
The default network segment is the network segment being used by the user, the network maintenance personnel finish the network planning in the garden in advance, each department room is distributed with two network segments with different functions, one of the network segments is set as the default network segment of the department room according to the working characteristics of the department room, and the second network segment is the network segment to be switched by the user.
After receiving the network configuration parameters, storing the network configuration parameters in an appointed directory, calling the network parameters corresponding to the default network name by running a batch processing program, configuring the network parameters on a terminal network card and taking effect, using the network name corresponding to the default network segment by default, connecting to the network corresponding to the default network segment, receiving the network connection name information, calling the network parameters corresponding to the default network name by running the batch processing program, configuring the network parameters on the terminal network card and taking effect. And new terminal network configuration parameters are configured on the terminal network card to replace the network parameters of the current running default network, and network switching is completed.
In the embodiment of the present invention, the method for switching the terminal network further includes: receiving a network management request initiated by terminal equipment, wherein the network management request at least carries an operation identifier and management parameter information; under the condition that an operation instruction indicated by the operation identifier is a new department, the management parameter information is written into a department information table of the information base, wherein the department information table is used for storing information of all the departments to which the employees belong and information of the used network segments, and the used network segments comprise: the system comprises a default network segment and a second network segment, wherein the default network segment is a common network segment of an employee, and the second network segment is a switching network segment of the default network segment; in the case that the operation instruction indicated by the operation identifier is a modification part room, replacing the original part room name with the part room name to be modified in the part room information table based on the management parameter information; under the condition that the operation instruction indicated by the operation identifier is to add a network segment, adding a specified field in a network information table in an information base based on the management parameter information; or, under the condition that the operation instruction indicated by the operation identifier is to delete the network segment, deleting the specified field in the network information table in the information base based on the management parameter information; under the condition that the operation instruction indicated by the operation identifier is to add a Domain Name System (DNS) address, adding a specified address in a network information table in an information base on the basis of management parameter information; or, in the case that the operation instruction indicated by the operation identifier is to delete the DNS address, the specified address is deleted in the network information table in the information base based on the management parameter information.
It should be noted that, the network maintenance personnel completes the network planning in the garden in advance, each department room is allocated with two network segments, one of the two network segments is set as the default network segment of the department room according to the working characteristics of the department room, and the names, the default network segment, the second network segment and other information of each department room are input into the user information base, and the information base includes but is not limited to: the contents of the terminal information table, the department information table, the network information table and the switch information table include but are not limited to: employee terminal name, employee name, station information point, connected switch, etc.
The department information table includes but is not limited to: the system comprises a department identity, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, a second network segment address pool, a mask of the second network segment, a gateway of the second network segment and a DNS address.
The network information table includes but is not limited to: network segment, network segment mask, network segment gateway and DNS address;
in this embodiment of the present invention, after receiving a network management request initiated by a terminal device, the method further includes: under the condition that the operation instruction indicated by the operation identifier is the configuration of the newly added network, writing the management parameter information into a terminal information table of the information base; extracting first type key field information in the department information table to obtain a first extraction result; writing the first extraction result into a terminal information table; extracting an idle address from the second network segment address pool, and writing the extracted idle address into a terminal information table; and extracting second key field information in the switch information table of the information base to obtain a second extraction result, and writing the second extraction result into the terminal information table.
The first type key field information includes but is not limited to: the network name of the default network segment, the mask of the default network segment, the network name of the second network segment, the mask of the second network segment, the gateway of the second network segment and the DNS address. The second category of key field information includes, but is not limited to: and the switch management address, the switch port and the virtual local area network identifier obtain a second extraction result.
And a plurality of second network segments are stored in the second network segment address pool, and the second network segment is a switching network segment of a default network segment currently used by a user.
The user carries out corresponding operation on a terminal interface, when the operation mark is newly added network configuration, parameter information is written into the terminal information table of the information base, a default network segment network name, a default network segment mask, a second network segment network name, a second network segment mask, a second network segment gateway and DNS address information are extracted from the department information table and written into the related field of the terminal information table, a free address is selected from the second network segment address pool and the second network segment address pool is updated, the second network segment address is written into the related field of the terminal information table, and a switch management address, a switch port and VLAN _ ID information are extracted from the switch information table and written into the related field of the terminal information table. If the switch information table has no corresponding information, the switch port information analysis unit is called and then the relevant information is extracted from the switch information table. And taking the operation sign, the terminal name, the default network segment network name, the second network segment address, the second network segment mask, the second network segment gateway and the DNS address information as the parameter information generated by configuration.
In the embodiment of the present invention, after receiving a network management request initiated by a terminal device, the method further includes: under the condition that the operation instruction indicated by the operation identifier is to modify the network configuration, writing the management parameter information into a terminal information table of the information base; based on the terminal identification of the terminal to be modified in the network configuration, inquiring a new department room associated with the terminal identification in a terminal information table of an information base, and replacing the original department room identification with the department room identification of the new department room; releasing the network segment address of the second network segment and updating the network information table of the information base; extracting third key field information in a department information table of the information base by taking the department identifier of the new department as a key word to obtain a third extraction result; writing the third extraction result into a terminal information table; extracting an idle address from the second network segment address pool, and writing the extracted idle address into a terminal information table; and extracting the fourth type key field information in the switch information table of the information base to obtain a fourth extraction result, and writing the fourth extraction result into the terminal information table.
The third type of key field information includes but is not limited to: the network name of the default network segment, the mask of the default network segment, the network name of the second network segment, the mask of the second network segment, the gateway of the second network segment and the DNS address. The fourth category of key field information includes, but is not limited to: and the switch management address, the switch port and the virtual local area network identifier obtain a fourth extraction result.
In the embodiment of the present invention, after receiving a network management request initiated by a terminal device, the method further includes: under the condition that the operation instruction indicated by the operation identifier is to delete the network configuration, writing the management parameter information into a terminal information table of an information base; inquiring terminal information related to the terminal identification in a terminal information table of an information base based on the terminal identification of the terminal configured by the network to be deleted, and deleting the terminal identification and the terminal information; and releasing the network segment address of the second network segment and updating the network information table of the information base.
All tables stored in the information base form a table set, and the tables contained in the table set comprise: a client information table: the system comprises a terminal identifier, a department identifier, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, an address of the second network segment, a mask of the second network segment, a gateway of the second network segment, DNS address information and station information points; department room information table: the system comprises a department identity, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, an address pool of the second network segment, a mask of the second network segment, a gateway of the second network segment and a DNS address; network information table: the method comprises the steps of (1) including a network segment, a network segment mask, a network segment gateway and a DNS address; switch information table: the system comprises a switch management address, a switch port and a station information point.
In the embodiment of the present invention, before receiving a network management request initiated by a terminal device, the method further includes: controlling an equipment screen interface of the terminal equipment to display a network menu, wherein the network menu displays a currently running default network and a switchable network in a vertical arrangement mode; detecting a network selection operation of a user; and under the condition that the network selection operation indicates that the switchable network needs to be used, generating a network management request based on the network identifier of the switchable network.
The user can use a user operation interface on the terminal to switch the network connection, the currently used network connection name is displayed on the interface, the network connection name to be used can be selected through a pull-down menu, and an application button is clicked, so that a network switching instruction is issued, and the network switching is realized.
Through the implementation mode, the connection parameters of a plurality of planned networks (for example, terminal testing and terminal office) are pushed to the terminal, one terminal can simultaneously bear two terminal roles with different access authorities, in the network switching process, a user only needs to perform corresponding operation on an operation interface without performing a series of operations such as plugging and unplugging a network cable, acquiring a dynamic password, clicking wireless network connection, inputting the dynamic password and the like, the terminal can automatically and quickly switch between the two roles, and the two networks both use wired connection, so that the network connection speed is high, the network connection quality is high, the user experience and the data transmission speed are improved, the working efficiency is improved, the safety isolation of the plurality of networks (for example, terminal testing and terminal office) is solved, the terminal resource investment is saved, and good use experience can be provided for the user. And the technical problem that in order to realize the switching of different terminals in the related technology, two network segments are respectively connected in a wired and wireless mode, so that the switching time is long is solved.
The invention is described below in connection with an alternative embodiment.
Example two
The present embodiment provides a switching device of a terminal network, where each implementation unit included in the switching device of the terminal network corresponds to each implementation step in the first embodiment.
Fig. 2 is a schematic diagram of an alternative switching apparatus of a terminal network according to an embodiment of the present invention, as shown in fig. 2, including: a first receiving unit 21, a first generating unit 22, an output unit 23, wherein,
a first receiving unit 21, configured to receive a network switching instruction initiated by a terminal device, where the network switching instruction at least carries: the network name and the terminal identification of the network to be connected are used for inquiring the employee information, the employee station information and the connection switch information of the associated terminal equipment;
the first generating unit 22 is configured to respond to the network switching instruction, and generate a terminal network configuration parameter of the network to be connected based on the terminal identifier, the employee information, the employee station information, and the connection switch information;
and the output unit 23 is configured to output the terminal identifier and the terminal network configuration parameter to the terminal device, where the terminal device configures the terminal network configuration parameter onto the terminal network card to replace a network parameter of a currently running default network, thereby completing network switching.
The switching device of the terminal network may receive a network switching instruction initiated by the terminal device through the first receiving unit 21, where the network switching instruction at least carries: the system comprises a network name and a terminal identifier of a network to be connected, wherein the terminal identifier is used for inquiring employee information, employee station information and connection switch information of associated terminal equipment; responding to a network switching instruction through a first generation unit 22, and generating a terminal network configuration parameter of a network to be connected based on a terminal identifier, employee information, employee station information and connection switch information; the terminal identifier and the terminal network configuration parameters are output to the terminal device through the output unit 23, wherein the terminal device configures the terminal network configuration parameters to the terminal network card to replace the currently running network parameters of the default network, thereby completing the network switching.
In this embodiment, a plurality of planned network (e.g., terminal test, terminal office) connection parameters are pushed to a terminal, so that one terminal can simultaneously undertake two terminal roles with different access permissions, and after receiving corresponding operations of a user terminal, the terminal can automatically and rapidly switch between the two roles, thereby not only realizing office and test network security isolation, but also saving terminal resource investment, and providing a good use experience for a user, and further solving the technical problem that in the related art, in order to realize switching of different terminals, two network segments are respectively connected by using a wire and a wireless, and thus the switching time is long.
Through the implementation mode, in the network switching process, a user only needs to perform corresponding operation on an operation interface, and does not need to perform a series of operations such as plugging and unplugging a network cable, acquiring a dynamic password, clicking wireless network connection, inputting the dynamic password and the like, the terminal can automatically and quickly switch between two roles, and the two networks are in wired connection, so that the network connection speed is high, the quality is high, the user experience and the data transmission speed are improved, and the working efficiency is improved.
Optionally, the switching device of the terminal network further includes: a second receiving unit, configured to receive a network management request initiated by a terminal device, where the network management request at least carries an operation identifier and management parameter information; a first writing unit configured to write the management parameter information into a department room information table of the information base, in a case where the operation instruction indicated by the operation identifier is a new department room; a first replacement unit configured to replace, in a case where the operation instruction indicated by the operation identification is a modification part room, an original part room name with a part room name to be modified in the part room information table based on the management parameter information; a first adding and deleting unit, configured to add a specified field in a network information table in an information base based on the management parameter information, when the operation instruction indicated by the operation identifier is to add a network segment; or, under the condition that the operation instruction indicated by the operation identifier is to delete the network segment, deleting the specified field in the network information table in the information base based on the management parameter information; a second adding and deleting unit that adds a specified address in a network information table in the information base based on the management parameter information in a case where the operation instruction indicated by the operation identifier is to add a domain name system DNS address; or, in the case that the operation instruction indicated by the operation identifier is to delete the DNS address, the specified address is deleted in the network information table in the information base based on the management parameter information.
Optionally, the switching device of the terminal network further includes: a second writing unit, configured to write the management parameter information into a terminal information table of the information base in a case that the operation instruction indicated by the operation identifier is the newly added network configuration; the first extraction unit is used for extracting the first type key field information in the department information table to obtain a first extraction result; a third writing unit configured to write the first extraction result into the terminal information table; a second extraction unit, configured to extract an idle address from a second network segment address pool, and write the extracted idle address into a terminal information table, where the second network segment address pool stores multiple second network segments, and the second network segment is a handover network segment of a default network segment currently used by a user; and the third extraction unit is used for extracting the second type key field information in the switch information table of the information base to obtain a second extraction result, and writing the second extraction result into the terminal information table.
Optionally, the switching device of the terminal network further includes: the fourth writing unit is used for writing the management parameter information into a terminal information table of the information base under the condition that the operation instruction indicated by the operation identifier is to modify the network configuration; the first query unit is used for querying a new department chamber related to the terminal identification in a terminal information table of an information base based on the terminal identification of the terminal of the network configuration to be modified, and replacing the original department chamber identification with the department chamber identification of the new department chamber; the first release unit is used for releasing the network segment address of the second network segment and updating the network information table of the information base; the fourth extraction unit is used for extracting third type key field information in a department information table of the information base by taking the department identifier of the new department as a key word to obtain a third extraction result; a fifth writing unit configured to write the third extraction result into the terminal information table; a fifth extraction unit, configured to extract an idle address from the second segment address pool, and write the extracted idle address into the terminal information table; and the sixth extraction unit is used for extracting the fourth type key field information in the switch information table of the information base to obtain a fourth extraction result, and writing the fourth extraction result into the terminal information table.
Optionally, the switching device of the terminal network further includes: a sixth writing unit, configured to write the management parameter information into a terminal information table of the information base when the operation instruction indicated by the operation identifier is to delete the network configuration; the second query unit is used for querying the terminal information related to the terminal identifier in the terminal information table of the information base based on the terminal identifier of the terminal configured by the network to be deleted, and deleting the terminal identifier and the terminal information; and the second release unit is used for releasing the network segment address of the second network segment and updating the network information table of the information base.
Optionally, all the tables stored in the information base form a table set, and the tables included in the table set include: a client information table: the system comprises a terminal identifier, a department identifier, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, an address of the second network segment, a mask of the second network segment, a gateway of the second network segment, DNS address information and station information points; department room information table: the system comprises a department identity, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, an address pool of the second network segment, a mask of the second network segment, a gateway of the second network segment and a DNS address; network information table: the method comprises the steps of (1) including a network segment, a network segment mask, a network segment gateway and a DNS address; switch information table: the system comprises a switch management address, a switch port and a station information point.
Optionally, the switching device of the terminal network further includes: the first control unit is used for controlling an equipment screen interface of the terminal equipment to display a network menu, wherein a currently running default network and a switchable network are displayed in the network menu in a vertical arrangement mode; the first detection unit is used for detecting the network selection operation of a user; and the second generation unit is used for generating a network management request based on the network identifier of the switchable network under the condition that the network selection operation indicates that the switchable network needs to be used.
The switching device of the terminal network may further include a processor and a memory, the first receiving unit 21, the first generating unit 22, the output unit 23, and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls a corresponding program unit from the memory. The kernel can be set to be one or more than one, so that one terminal can simultaneously bear two roles of the terminals with different access permissions, a user only needs to perform corresponding operation on an operation interface, and the terminal can automatically and quickly switch between the two roles, thereby not only solving the problem of safety isolation of a plurality of networks (such as terminal testing and terminal office), but also saving the terminal resource investment and providing good use experience for the user.
The memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The invention is described below in connection with an alternative embodiment.
EXAMPLE III
The embodiment of the invention provides a switching system of a terminal network, and each implementation unit included in the switching system of the terminal network corresponds to each implementation step in the first embodiment.
Fig. 3 is a schematic diagram of an optional terminal network switching system according to an embodiment of the present invention, and as shown in fig. 3, the terminal network switching system is composed of a 301 user network management interface module, a 302 user information processing module, a 303 terminal configuration generating module, a 304 terminal configuration pushing module, a 305 terminal configuration storing module, a 306 network configuration generating module, a 307 network device configuration module, a 308 user operation interface module, a 309 terminal configuration selecting module, and a 310 terminal configuration validating module, wherein three modules, namely, the 305 terminal configuration storing module, the 308 user operation interface module, and the 309 terminal configuration selecting module, are deployed on a user terminal, the system installation is completed in a terminal application issuing link, the remaining modules are deployed on a server, and when an employee uses a terminal or an employee adjustment room to perform network configuration addition or modification, the network configuration application is completed through the system, and an information base includes a terminal information table, a room information table, a network information table, and a switch information table. The function of each module will be described in detail below.
301 user network management interface module: the module for providing interface for user and network manager includes user application interface unit for common user to apply and modify network configuration, network management operation interface unit for providing network rule function of managing each room in the system.
User application interface element: the user application interface comprises operation buttons of adding network configuration, modifying network configuration, deleting network configuration, submitting and the like. The unit transmits 302 the terminal name (type includes but is not limited to characters, letters, chinese characters, numerical labels and the like), employee name (type includes but is not limited to Chinese characters, letters and numerical numbers), department name (type includes but is not limited to Chinese characters, letters and numerical numbers), work site information (including but is not limited to company floors, floor layouts and relative position coordinates) and operation marks (including but is not limited to adding operation, modifying operation and deleting operation) input by the user to the information processing module.
Network management operation interface unit: the network management operation interface unit comprises operation marks of a newly added part room, a modified part room, a deleted part room, an added network segment, a deleted network segment, a DNS address, a deleted DNS address, submission and the like. The unit transmits information such as a department name, a default network segment network name, a default network segment mask, a second network segment network name, a second network segment mask, a second network segment gateway, a second network segment address pool, a VLAN _ ID, a DNS address and the like input by a network administrator and an operation mark to the information processing module 302.
302 information processing module: the module receives 301 parameter information (including but not limited to employee information, department information, station information, switch information and operation marks) transmitted by a user application module, processes the parameter information, and stores the processed data into an information base, wherein the information base comprises a network management processing information unit, a user application information processing unit, an information storage unit and a switch port information analysis unit.
Network management processing information unit: the unit processes 301 the network management operation information transmitted by the network management operation interface unit in the user network management interface module, and processes according to the following rules:
identifying an operation mark, if the operation mark is a newly added department, processing and writing parameter information (including but not limited to employee information, department information, station information, switch information and the operation mark) received from a 301 user application module into corresponding fields in an information base department information table; if the operation mark is a modified department room, replacing the original department room name with the modified department room name in the department room information table; if the operation flag indicates that the part room is deleted, the part room name and the associated field are deleted from the part room information table. A certain network segment can only belong to one part room, but cannot belong to two or more part rooms simultaneously.
Identifying an operation mark, if the operation mark is a network segment addition or deletion, adding or deleting corresponding items or fields in a network information table in an information base, and transmitting the operation mark, network segment information, a network segment mask code and network segment gateway information to a 306 network configuration generation module; and identifying the operation mark, and if the operation mark is to add or delete the DNS address, performing corresponding addition or deletion operation on the parameter information received from the 301 user application module in a network information table.
The user applies for the information processing unit: the unit processes 301 the user application operation information transmitted by the user application interface unit in the user network management interface module according to the following rules:
identifying an operation mark, if the operation mark is newly added network configuration, writing parameter information (including but not limited to employee information, department information, station information, switch information and operation mark) received from a 301 user application module into an information base terminal information table, extracting a default network segment network name, a default network segment mask, a second network segment network name, a second network segment mask, a second network segment gateway and DNS address information from the department information table into a terminal information table related field, selecting an idle address from a second network segment address pool, updating the second network segment address pool, writing the second network segment address into the terminal information table related field, extracting a switch management address, a switch port and VLAN _ ID information from the switch information table, and writing the switch management address, the VLAN port and the ID information into the terminal information table related field. And transmitting 306 the operation mark, the switch management address, the switch port and the VLAN _ ID information to a network configuration production module, and if the switch information table has no corresponding information, calling a switch port information analysis unit and then extracting relevant information from the switch information table. And transmitting 303 the operation mark, the terminal name, the default network segment network name, the second network segment address, the second network segment mask, the second network segment gateway and the DNS address information to the terminal configuration generation module.
Identifying an operation mark, if the operation mark is used for modifying network configuration, inquiring parameter information (including but not limited to staff information, department information, station information, switch information and operation mark) received from a 301 user application module in a terminal information table by using a terminal name, replacing a department name field, releasing a second network segment address and updating a network information table, extracting a default network segment network name, a default network segment mask, a second network segment network name, a second network segment mask, a second network segment gateway and DNS address information from the department information table by using a new department name as a keyword, selecting an idle address from the second network segment address pool and updating the second network segment address pool, writing the second network segment address into a terminal information table related field, and extracting a switch management address, a switch port and VLAN _ ID information from the switch information table and writing the switch management address, the switch port and the VLAN _ ID information into the terminal information table related field. And transmitting 306 the operation mark, the switch management address, the switch port and the VLAN _ ID information to a network configuration generation module, and if the switch information table has no corresponding information, calling a switch port information analysis unit and then extracting relevant information from the switch information table. And transmitting 303 the operation mark, the terminal name, the default network segment network name, the second network segment address, the second network segment mask, the second network segment gateway and the DNS address information to the terminal configuration generation module.
Identifying the operation mark, if the operation mark is deleting the network configuration, inquiring the parameter information (including but not limited to staff information, department information, station information, switch information and operation mark) received from the 301 user application module in the terminal information table by the terminal name, releasing the second network segment address and updating the network information table, and deleting the terminal name and the related information in the terminal information table.
The switch port information analysis unit: the unit realizes the timing update of the corresponding relation between the switch port and the station information point, establishes the corresponding management of the switch port and the station information point by analyzing the switch configuration and utilizing the describing function of the switch port, and writes the information of the switch management address, the switch port, the station information point and the like into the switch information table in the information base.
The information base contains four tables, the details are as follows:
a client information table: the method comprises fields such as a terminal name, a department name, a default network segment network name, a default network segment mask, a second network segment network name, a second network segment address, a second network segment mask, a second network segment gateway, DNS address information, a station information point and the like.
Department room information table: the system comprises fields such as a department name, a default network segment network name, a default network segment mask, a second network segment network name, a second network segment address pool, a second network segment mask, a second network segment gateway, DNS address information and the like.
Network information table: network segment, network segment mask, network segment gateway, DNS address information, etc.
Switch information table: switch management address, switch port, station information point.
303 terminal configuration generating module: the module receives 302 the terminal name, the default network segment network name, the second network segment address, the second network segment mask, the second network segment gateway and the DNS address information transmitted by the user information warehousing module, generates terminal network configuration parameters according to the information, and outputs the terminal name and the terminal network configuration parameters to 304 terminal configuration pushing modules.
304, the terminal configuration pushing module: the module receives 303 the terminal name and the terminal network configuration parameter transmitted by the terminal configuration generation module, finds the IP address of the corresponding terminal according to the system feedback information deployed on the terminal, and pushes 305 the terminal network parameter to the terminal configuration storage module on the corresponding terminal through the network.
305 terminal configuration saving module: the module receives 304 the network configuration parameters transmitted by the terminal configuration pushing module, stores the parameters in a designated directory, calls the network parameters corresponding to the default network names by running a batch processing program, configures the parameters to the terminal network card and takes effect, and uses the network names corresponding to the default network segments by default to connect to the networks corresponding to the default network segments. The module also supports receiving 309 the network connection name information transmitted by the terminal configuration selection module, calls the network parameter corresponding to the default network name by running a batch processing program, and configures the network parameter to the terminal network card and takes effect.
306 network configuration generation module: receiving 302 information transmitted by the information processing module, and generating a corresponding network configuration, specifically configured as follows:
if the operation mark is to add or delete a network segment, combining the operation mark and the received switch management address, network segment information, network segment mask code and network segment gateway information to generate switch configuration, and transmitting the switch configuration and the switch management address information to the network equipment configuration module 307.
If the operation mark is to increase or modify the network configuration, the switch configuration is generated by combining the operation mark and the received switch management address, switch port and VLAN _ ID information, and is transmitted to 307 the network device configuration module together with the switch management address information.
307 network device configuration module: and receiving 306 the switch management address information and the switch configuration transmitted by the network configuration generation module, logging in the corresponding switch, modifying the switch configuration and storing the switch configuration.
308 the user-operated interface module: the user can use the user operation interface module on the terminal to switch network connection, the currently used network connection name is displayed on the interface, the network connection name to be used can be selected through a pull-down menu, and the application button is clicked, and the network connection name to be used is transmitted to the 309 terminal configuration selection module.
309 terminal configuration selection module: receiving 308 the network connection name transferred by the user operation interface, transferring 305 the name to the terminal configuration storage module, receiving 305 the network configuration parameters transferred by the terminal configuration storage module, and transferring 310 the network configuration parameters to the terminal configuration validation module.
Through the terminal network switching system, the connection parameters of a plurality of planned networks (such as terminal testing and terminal office) are pushed to the terminal, one terminal can simultaneously bear two terminal roles with different access authorities, in the network switching process, a user only needs to perform corresponding operation on an operation interface without performing a series of operations of plugging and unplugging a network cable, acquiring a dynamic password, clicking wireless network connection, inputting the dynamic password and the like, the terminal can automatically and quickly switch between the two roles, the two networks are in wired connection, the network connection speed is high, the network connection quality is high, the user experience and the data transmission speed are improved, the working efficiency is improved, the safety isolation of the plurality of networks (such as terminal testing and terminal office) is solved, the terminal resource investment is saved, and good use experience can be provided for the user. And the technical problem that in order to realize the switching of different terminals in the related technology, two network segments are respectively connected in a wired and wireless mode, so that the switching time is long is solved.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the handover method of the terminal network of any one of the above via execution of the executable instructions.
According to another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, a device in which the computer-readable storage medium is located is controlled to perform any one of the above methods for switching a terminal network.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: receiving a network switching instruction initiated by a terminal device, wherein the network switching instruction at least carries: the network name and the terminal identification of the network to be connected are used for inquiring the employee information, the employee station information and the connection switch information of the associated terminal equipment; responding to a network switching instruction, and generating a terminal network configuration parameter of a network to be connected based on the terminal identification, the employee information, the employee station information and the connection switch information; and outputting the terminal identification and the terminal network configuration parameters to the terminal equipment, wherein the terminal equipment configures the terminal network configuration parameters to a terminal network card to replace the network parameters of the currently running default network, and completing network switching.
Fig. 4 is a block diagram of a hardware structure of an electronic device (or a mobile device) of a handover method of a terminal network according to an embodiment of the present invention. As shown in fig. 4, the electronic device may include one or more (shown as 402a, 402b, \8230;, 402 n) processors 402 (processor 402 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), memory 404 for storing data. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a keyboard, a power supply, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration and is not intended to limit the structure of the electronic device. For example, the electronic device may also include more or fewer components than shown in FIG. 4, or have a different configuration than shown in FIG. 4. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit may be a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or may not be executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, a plurality of modifications and embellishments can be made without departing from the principle of the present invention, and these modifications and embellishments should also be regarded as the protection scope of the present invention.

Claims (10)

1. A switching method of a terminal network is applied to a server and comprises the following steps:
receiving a network switching instruction initiated by a terminal device, wherein the network switching instruction at least carries: the system comprises a network name and a terminal identification of a network to be connected, wherein the terminal identification is used for inquiring employee information, employee station information and connection switch information which are related to the terminal equipment;
responding to the network switching instruction, and generating a terminal network configuration parameter of the network to be connected based on the terminal identification, the employee information, the employee station information and the connection switch information;
and outputting the terminal identification and the terminal network configuration parameters to the terminal equipment, wherein the terminal equipment configures the terminal network configuration parameters to a terminal network card to replace the network parameters of the currently running default network, and the network switching is completed.
2. The handover method according to claim 1, further comprising:
receiving a network management request initiated by the terminal equipment, wherein the network management request at least carries an operation identifier and management parameter information;
writing the management parameter information into a part room information table of an information base under the condition that an operation instruction indicated by the operation identifier is a new part room;
in the case that the operation instruction indicated by the operation identifier is a modification part room, replacing an original part room name with a part room name to be modified in the part room information table based on the management parameter information;
under the condition that the operation instruction indicated by the operation identifier is to add a network segment, adding a specified field in a network information table in the information base based on the management parameter information; or, in the case that the operation instruction indicated by the operation identifier is to delete a network segment, deleting a specified field in a network information table in the information base based on the management parameter information;
under the condition that an operation instruction indicated by the operation identifier is to add a Domain Name System (DNS) address, adding a specified address in a network information table in the information base on the basis of the management parameter information; or, in the case that the operation instruction indicated by the operation identifier is to delete a DNS address, deleting a specified address in the network information table in the information base based on the management parameter information.
3. The handover method according to claim 2, further comprising, after receiving the network management request initiated by the terminal device:
under the condition that the operation instruction indicated by the operation identifier is configured for a newly added network, writing the management parameter information into a terminal information table of the information base;
extracting first type key field information in the department information table to obtain a first extraction result;
writing the first extraction result into the terminal information table;
extracting an idle address from a second network segment address pool, and writing the extracted idle address into the terminal information table, wherein the second network segment address pool stores a plurality of second network segments, and the second network segment is a switching network segment of a default network segment currently used by a user;
and extracting second key field information in a switch information table of the information base to obtain a second extraction result, and writing the second extraction result into the terminal information table.
4. The handover method according to claim 2, further comprising, after receiving the network management request initiated by the terminal device:
under the condition that the operation instruction indicated by the operation identifier is to modify network configuration, writing the management parameter information into a terminal information table of an information base;
inquiring a new department associated with the terminal identifier in a terminal information table of the information base based on the terminal identifier of the terminal to be modified in the network configuration, and replacing the original department identifier with the department identifier of the new department;
releasing the network segment address of the second network segment and updating the network information table of the information base;
extracting third key field information in a department information table of the information base by taking the department identifier of the new department as a key word to obtain a third extraction result;
writing the third extraction result into the terminal information table;
extracting an idle address from the second network segment address pool, and writing the extracted idle address into the terminal information table;
and extracting fourth type key field information in a switch information table of the information base to obtain a fourth extraction result, and writing the fourth extraction result into the terminal information table.
5. The handover method according to claim 2, further comprising, after receiving the network management request initiated by the terminal device:
writing the management parameter information into a terminal information table of an information base under the condition that the operation instruction indicated by the operation identifier is to delete network configuration;
inquiring terminal information related to the terminal identification in a terminal information table of the information base based on the terminal identification of the terminal configured by the network to be deleted, and deleting the terminal identification and the terminal information;
and releasing the network segment address of the second network segment, and updating the network information table of the information base.
6. The handover method according to any one of claims 2 to 5, wherein all tables stored in the information base form a table set, and the tables included in the table set include:
a client information table: the system comprises a terminal identifier, a department identifier, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, an address of the second network segment, a mask of the second network segment, a gateway of the second network segment, DNS address information and station information points;
department room information table: the system comprises a department identity, a default network segment, a network name of the default network segment, a mask of the default network segment, a network name of a second network segment, an address pool of the second network segment, a mask of the second network segment, a gateway of the second network segment and a DNS address;
network information table: the method comprises the steps of (1) including a network segment, a network segment mask, a network segment gateway and a DNS address;
switch information table: the system comprises a switch management address, a switch port and a station information point.
7. The handover method according to claim 2, wherein before receiving the network management request initiated by the terminal device, the handover method further comprises:
controlling an equipment screen interface of the terminal equipment to display a network menu, wherein a currently running default network and a switchable network are displayed in the network menu in a vertical arrangement mode;
detecting a network selection operation of a user;
and under the condition that the network selection operation indicates that the switchable network needs to be used, generating the network management request based on the network identification of the switchable network.
8. A switching apparatus of a terminal network, comprising:
a first receiving unit, configured to receive a network handover instruction initiated by a terminal device, where the network handover instruction at least carries: the system comprises a network name and a terminal identification of a network to be connected, wherein the terminal identification is used for inquiring employee information, employee station information and connection switch information which are related to the terminal equipment;
the first generating unit is used for responding to the network switching instruction and generating terminal network configuration parameters of the network to be connected based on the terminal identification, the employee information, the employee station information and the connection switch information;
and the output unit is used for outputting the terminal identifier and the terminal network configuration parameters to the terminal equipment, wherein the terminal equipment configures the terminal network configuration parameters to a terminal network card to replace the network parameters of the currently running default network, and the network switching is completed.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the handover method of a terminal network of any one of claims 1 to 7 via execution of the executable instructions.
10. A computer-readable storage medium, comprising a stored computer program, wherein when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the handover method of the terminal network according to any one of claims 1 to 7.
CN202211041623.4A 2022-08-29 2022-08-29 Switching method and device of terminal network and electronic equipment Pending CN115695191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211041623.4A CN115695191A (en) 2022-08-29 2022-08-29 Switching method and device of terminal network and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211041623.4A CN115695191A (en) 2022-08-29 2022-08-29 Switching method and device of terminal network and electronic equipment

Publications (1)

Publication Number Publication Date
CN115695191A true CN115695191A (en) 2023-02-03

Family

ID=85061487

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211041623.4A Pending CN115695191A (en) 2022-08-29 2022-08-29 Switching method and device of terminal network and electronic equipment

Country Status (1)

Country Link
CN (1) CN115695191A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040480A (en) * 2017-04-01 2017-08-11 汕头大学 A kind of method that network of computer room automatically switches
CN111314148A (en) * 2020-02-26 2020-06-19 卡斯柯信号有限公司 Redundant network IP intelligent switching method and system based on redundant computer
US10771430B1 (en) * 2015-03-25 2020-09-08 EMC IP Holding Company LLC Dynamic resource configuration system and method for distributed computing environments
CN112202711A (en) * 2020-08-26 2021-01-08 网神信息技术(北京)股份有限公司 Network access control method and device of terminal, electronic equipment and storage medium
CN114584608A (en) * 2022-02-09 2022-06-03 北信源***集成有限公司 Network switching method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10771430B1 (en) * 2015-03-25 2020-09-08 EMC IP Holding Company LLC Dynamic resource configuration system and method for distributed computing environments
CN107040480A (en) * 2017-04-01 2017-08-11 汕头大学 A kind of method that network of computer room automatically switches
CN111314148A (en) * 2020-02-26 2020-06-19 卡斯柯信号有限公司 Redundant network IP intelligent switching method and system based on redundant computer
CN112202711A (en) * 2020-08-26 2021-01-08 网神信息技术(北京)股份有限公司 Network access control method and device of terminal, electronic equipment and storage medium
CN114584608A (en) * 2022-02-09 2022-06-03 北信源***集成有限公司 Network switching method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
WO2021017279A1 (en) Cluster security management method and apparatus based on kubernetes and network domain, and storage medium
CN111756756B (en) Terminal network control method and device, electronic equipment and storage medium
US20190081921A1 (en) Management of domain name systems in a large-scale processing environment
CN110443010A (en) One kind permission visual configuration control method, device, terminal and storage medium in information system
CN107580083A (en) A kind of method and system of container IP address distribution
CN110457891A (en) A kind of authority configuration interface display method, device, terminal and storage medium
CN107113219A (en) VLAN marks in virtual environment
CN103036703A (en) Configuration management method of logical topology in virtual network and management server
WO2006059639A1 (en) Information sharing system, information sharing method, group management program, and compartment management program
CN105095023B (en) A kind of cloud host creating device, method and computing device
CN102468971A (en) Authority management method and device, and authority control method and device
CN106031116A (en) Method, apparatus and system for associating NS with VNF
CN111966779B (en) Knowledge base management method and system for robot, electronic equipment and storage medium
CN102696040A (en) Relay device and file sharing method
CN110166277A (en) A kind of method of order line order tree constructing method and order line dynamically load
CN108540408B (en) Openstack-based distributed virtual switch management method and system
CN104363306A (en) Private cloud management control method for enterprise
US20130238673A1 (en) Information processing apparatus, image file creation method, and storage medium
US7546374B2 (en) Methods and arrangements for managing and maintaining a switch environment
CN112068953B (en) Cloud resource fine management traceability system and method
CN111045928A (en) Interface data testing method, device, terminal and storage medium
CN115695191A (en) Switching method and device of terminal network and electronic equipment
CN110109623A (en) A kind of implementation method of the USB flash disk remote operation of kvm system
US10050837B2 (en) Computer-readable recording medium, command generation method and information processing apparatus
WO2011100172A2 (en) Rule-based assignment of control of peripherals of a computing 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