WO2016180089A1 - Procédé et appareil de configuration de commutateur, terminal mobile, et commutateur - Google Patents
Procédé et appareil de configuration de commutateur, terminal mobile, et commutateur Download PDFInfo
- Publication number
- WO2016180089A1 WO2016180089A1 PCT/CN2016/077140 CN2016077140W WO2016180089A1 WO 2016180089 A1 WO2016180089 A1 WO 2016180089A1 CN 2016077140 W CN2016077140 W CN 2016077140W WO 2016180089 A1 WO2016180089 A1 WO 2016180089A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- command line
- user
- command
- switch
- configuration
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/34—Signalling channels for network management communication
Definitions
- the present invention relates to the field of communications, and in particular, to a method, an apparatus, a mobile terminal, and a switch for configuring a switch.
- the network configuration method of the switch device is as follows: 1. After logging in to the switch using the serial port protocol or remote login Telnet protocol, configure the switch in the command line. 2. Use the MIB (Management Information Base) browser to manage the switch through the SNMP (Simple Network Management Protocol) protocol. 3. The switch receives the configuration request sent by the web browser through the embedded web server and performs corresponding operations.
- MIB Management Information Base
- SNMP Simple Network Management Protocol
- the technical problem to be solved by the present invention is to provide a method, a device, a mobile terminal and a switch for configuring a switch, which solves the problem that the existing switch network configuration method cannot manage the switch through the mobile terminal.
- an embodiment of the present invention provides a method for configuring a switch, which is applied to a mobile terminal, and the configuration method includes:
- each command line management protocol data packet includes at least one command line code and a command corresponding to each command line code Row name
- the command line code corresponding to the command line name selected by the user is sent to the switch, and the switch obtains and executes the configuration corresponding to the command line code selected by the user according to the mapping relationship between the preset command line encoding and the configuration command. command.
- the command line management protocol data packet further includes a protocol identifier and a cyclic redundancy check code CRC;
- the command line management protocol data packet is parsed, and if a valid command line code is parsed, the command line name corresponding to the valid command line code is obtained, which specifically includes:
- the command line code corresponding to the command line name selected by the user is sent to the switch, and the switch obtains and executes the command line selected by the user according to the mapping relationship between the preset command line encoding and the configuration command.
- the corresponding configuration command of the code includes:
- the command line management protocol data packet further includes a command line name length
- the command line name corresponding to the valid command line code is obtained, specifically:
- the command line name corresponding to the valid command line code is obtained according to the length of the command line name.
- the command line code corresponding to the command line name selected by the user is sent to the switch, and the switch obtains and executes the command line selected by the user according to the mapping relationship between the preset command line encoding and the configuration command.
- the corresponding configuration command of the code includes:
- the configuration method further includes:
- the switch is prompted to verify the verification of the user information.
- an embodiment of the present invention further provides a configuration apparatus for a switch, which is applied to a mobile terminal, where the configuration apparatus includes:
- a first sending module configured to send user input information input by the user to the switch
- a first receiving module configured to receive at least one command line management protocol data packet returned by the switch after verifying the user verification information, where each command line management protocol data packet includes at least one command line code and each The command line name corresponding to the command line code;
- a parsing module configured to parse each of the command line management protocol data packets, if a valid life is parsed If the line is encoded, the command line name corresponding to the valid command line code is obtained;
- a display module configured to display a command line name corresponding to the valid command line code to the user, and obtain a command line name selected by the user;
- a second sending module configured to send a command line code corresponding to the command line name selected by the user to the switch, and obtain, execute, and select a user according to a mapping relationship between the command line encoding and the configuration command by the switch.
- the command line encodes the corresponding configuration command.
- the command line management protocol data packet further includes a protocol identifier and a cyclic redundancy check code CRC;
- parsing module specifically includes:
- a first verification module configured to separately verify the protocol identifier and the CRC
- a first acquiring module configured to acquire a command line code included in each of the command line protocol information if the protocol identifier and the CRC are both verified;
- the second obtaining module is configured to obtain a command line name corresponding to the valid command line code if a valid command line code is obtained.
- the second sending module specifically includes:
- a first sending submodule configured to send a command line code corresponding to the command line name selected by the user, the protocol identifier, and the CRC to the switch, where the switch identifies the protocol and the The CRC is separately verified, and when the protocol identifier and the CRC are both verified, the configuration command corresponding to the command line code selected by the user is obtained and executed according to the mapping relationship between the preset command line encoding and the configuration command.
- an embodiment of the present invention further provides a mobile terminal, including: a configuration apparatus of a switch as described above.
- an embodiment of the present invention further provides a method for configuring a switch, which is applied to a switch, where the configuration method includes:
- command line code selected by the user is used by the mobile terminal to parse the command line management protocol data packet, and the mobile terminal will parse the valid data.
- the command line name corresponding to the command line code is displayed to the user, and the command line code corresponding to the command line name selected by the user acquired by the mobile terminal is encoded;
- the step of returning, to the mobile terminal, the command line management protocol data packet including the command line code corresponding to the command line code and the command line code according to the verification result includes:
- a valid command line code if the user verification information is verified
- the command line encodes a command line management protocol packet corresponding to the command line name. Otherwise, the command line management protocol packet containing the invalid command line code and the command line code corresponding to the command line code is returned to the mobile terminal.
- the command line management protocol data packet further includes a protocol identifier and a cyclic redundancy check code CRC;
- the step of receiving the command line code selected by the user sent by the mobile terminal includes:
- the obtaining, according to the mapping relationship between the preset command line encoding and the configuration command, before acquiring and executing the configuration command corresponding to the command line encoding selected by the user, includes:
- the obtaining, according to the mapping relationship between the preset command line encoding and the configuration command, the obtaining and executing the configuration command corresponding to the command line encoding selected by the user further includes:
- the execution result is returned to the mobile terminal.
- an embodiment of the present invention further provides a device for configuring a switch, which is applied to a switch, where the configuration device includes:
- a second receiving module configured to receive user verification information sent by the mobile terminal
- a verification module configured to verify the user verification information according to the pre-stored user information, and obtain a verification result
- a returning module configured to return, to the mobile terminal, a command line management protocol data packet including a command line code corresponding to a command line code according to the verification result;
- a third receiving module configured to receive a command line code selected by the user sent by the mobile terminal, where the command line code selected by the user is used by the mobile terminal to parse the command line management protocol data packet by the mobile terminal
- the terminal displays the command line name corresponding to the valid command line code that is parsed to the user, and the command line code corresponding to the command line name selected by the user acquired by the mobile terminal is encoded;
- an execution module configured to acquire and execute a configuration command corresponding to the command line code selected by the user according to a mapping relationship between the preset command line encoding and the configuration command.
- the return module includes:
- the mobile terminal returns, to the mobile terminal, a command line management protocol data packet containing a valid command line code and a command line code corresponding command line name, otherwise, The mobile terminal returns a command line management protocol packet containing an invalid command line code and a command line name corresponding to the command line code.
- the command line management protocol data packet further includes a protocol identifier and a cyclic redundancy check code CRC;
- the third receiving module includes:
- a first receiving submodule configured to receive, by the mobile terminal, a command line selected by the user A code, the protocol identifier, and the CRC.
- the configuration device further includes:
- a third check module configured to perform verification on the protocol identifier and the CRC respectively, and if the protocol identifier and the CRC are both verified, according to a mapping relationship between a preset command line encoding and a configuration command And acquiring and executing a configuration command corresponding to the command line code selected by the user.
- an embodiment of the present invention further provides a switch, including: a configuration apparatus of a switch as described above.
- the configuration method of the switch in the embodiment of the present invention firstly sends user authentication information input by the user to the switch; and then receives at least one command line management protocol data packet returned by the switch after verifying the user verification information, and each command line management protocol data packet Contains at least one command line code and a command line name corresponding to each command line code; parses each command line management protocol packet, and if valid command line code is parsed, obtains the parsed valid command line code Corresponding command line name; display the command line name corresponding to the valid command line code to the user, and obtain the command line name selected by the user; send the command line code corresponding to the command line name selected by the user to the switch, and the switch A mapping relationship between the preset command line encoding and the configuration command, and acquiring and executing a configuration command corresponding to the command line encoding acquired by the user. Therefore, the management function of the switch is realized by the mobile terminal, which facilitates the use of the user and improves the practicability.
- FIG. 1 is a first flowchart of a method for configuring a switch according to the present invention
- FIG. 2 is a first schematic structural diagram of a device for configuring a switch according to the present invention
- FIG. 3 is a second flowchart of a method for configuring a switch according to the present invention.
- FIG. 4 is a second schematic structural diagram of a device for configuring a switch according to the present invention.
- FIG. 5 is a schematic diagram of a network topology of a method for configuring a switch according to the present invention.
- FIG. 6 is a schematic diagram of a first embodiment of a command line management protocol of a method for configuring a switch according to the present invention
- FIG. 7 is a schematic diagram of a second embodiment of a command line management protocol of a method for configuring a switch according to the present invention.
- FIG. 8 is a schematic diagram of a third embodiment of a command line management protocol of a method for configuring a switch according to the present invention.
- FIG. 9 is a schematic diagram of a fourth embodiment of a command line management protocol according to a method for configuring a switch according to the present invention.
- FIG. 10 is a schematic diagram of a fifth embodiment of a command line management protocol of a method for configuring a switch according to the present invention.
- FIG. 11 is a schematic flowchart of a specific embodiment of a method for configuring a switch according to the present invention.
- FIG. 12 is a schematic diagram of a software module implementation of a device for configuring a switch according to the present invention.
- the configuration method of the switch in the embodiment of the present invention enables the device based on the mobile terminal, such as a mobile phone or a tablet computer, to manage the switch.
- the method of the embodiment of the present invention does not use the telnet protocol, and provides a visual management interface, which facilitates user management of the switch.
- the SNMP protocol needs to apply for a globally unique management node ID number, and configure the ID number on the MIB file and the switch end.
- the method in the embodiment of the present invention does not need to apply for any SNMP-like management ID number, the command line.
- the mapping from name to command line encoding is transparent to the user and is convenient for the user.
- the server Compared with the WEB configuration mode, the server generally consumes more resources.
- the method in the embodiment of the present invention does not need the support of the embedded WEB server at the switch end, thereby saving resource consumption.
- a method for configuring a switch according to an embodiment of the present invention is applied to a mobile terminal, where the configuration method includes:
- Step 101 Send user authentication information input by the user to the switch.
- the user authentication information may include a username and a password.
- the user can create a user name and password on the switch in advance, and the switch verifies the user name and password sent by the terminal according to the pre-created user name and password.
- Step 102 Receive at least one command line management protocol data packet returned by the switch after verifying the user verification information, where each command line management protocol data packet includes at least one command line code and each command line code. The corresponding command line name.
- the command line encoding is the identifier of the configuration command and is unique.
- Step 103 Parse each of the command line management protocol data packets, and if a valid command line code is parsed, obtain a command line name corresponding to the valid command line code.
- Step 104 Display the command line name corresponding to the valid command line code to the user, and obtain the command line name selected by the user.
- step 105 the command line code corresponding to the command line name selected by the user is sent to the switch, and the switch obtains and executes the command line code selected by the user according to the mapping relationship between the preset command line encoding and the configuration command. Corresponding configuration commands.
- the configuration method of the switch in the embodiment of the present invention implements the management function of the switch through the mobile terminal, which facilitates the use of the user and improves the practicability.
- the mobile terminal and the switch can provide IP communication service support through the wireless router to implement communication between the mobile terminal and the switch.
- the command line management protocol data packet may further include a protocol identifier and a cyclic redundancy check code CRC;
- step of step 103 above specifically includes:
- Step 1031 Perform verification on the protocol identifier and the CRC respectively.
- Step 1032 If the protocol identifier and the CRC are both verified, obtain a command line code included in each of the command line management protocol data packets.
- Step 1033 If a valid command line code is obtained, obtain a command line name corresponding to the valid command line code.
- the protocol identifier is an identifier of the command line management protocol and is unique.
- the value of the CRC is calculated by the CRC algorithm from all fields of the command line management protocol.
- the protocol identifier in the protocol data packet it can be determined whether the obtained protocol data packet is a command line management protocol data packet, so that when the obtained data packet is a command line management protocol data packet, follow-up actions. And by verifying the CRC in the protocol packet, it can be determined whether the obtained packet has an error during the transmission. When the CRC check is passed, it can be judged that the obtained data packet has no error during the transmission process; otherwise, it is judged that the acquired data packet has an error during the transmission process. Therefore, by verifying the protocol identifier and the CRC separately, the accuracy and validity of the data received by the terminal are ensured.
- step 105 specifically include:
- step 1051 the command line code corresponding to the command line name selected by the user, the protocol identifier, and the CRC are sent to the switch, and the switch identifies the protocol identifier and the CRC respectively. And when the protocol identifier and the CRC are both verified, the configuration command corresponding to the command line code selected by the user is obtained and executed according to a mapping relationship between the preset command line encoding and the configuration command.
- the protocol identifier and the CRC are returned to the switch together with the command line code selected by the user, and the switch performs subsequent operations on the protocol identifier and the CRC check, thereby ensuring the accuracy and validity of the data received by the switch. .
- the command line management protocol data packet may further include a command line name length
- step 103 if the valid command line code is parsed, the command line name corresponding to the valid command line code is obtained, specifically:
- Step 1034 If a valid command line code is parsed, obtain a command line name corresponding to the valid command line code according to the command line name length.
- the command line name can be accurately parsed by the command line name length to display the command line name to the user for user selection, which improves the processing accuracy.
- a command line management protocol data packet includes multiple (N, N is an integer greater than 1) command line encoding and command line encoding corresponding to the command line name
- the command line management The protocol packet can also contain the number of command lines.
- the command line name corresponding to the valid command line code and the command line code can be parsed according to the number of command lines.
- the command line code may also be added to the data returned by the terminal to the switch. Number to facilitate the parsing of multiple command line encodings by the switch.
- the step of the foregoing step 105 specifically includes:
- Step 1052 Fill a command line encoding field corresponding to the command name selected by the user into a command line encoding field in the command line management protocol data packet, and length the command line name in the command line management protocol data packet. The value is set to an invalid value;
- Step 1053 Return the filled command line management protocol data packet to the switch, and after the switch parses the command line management protocol data packet, perform mapping according to a preset command line coding and configuration command. Relationship, obtain and execute a configuration command corresponding to the command line code selected by the user.
- the switch only needs to execute the corresponding configuration command according to the command line code selected by the user, and does not need to use the command line name. Therefore, the command line name length value can be set to an invalid value by the above step 1052, thereby avoiding redundant data. Transmission saves resources.
- the command line management protocol data packet may further include a reserved field, and is initialized to an invalid value, for the command line management protocol data packet to implement an extended function.
- the command line management protocol data packet may further include a packet length, which is convenient for the terminal or the switch to parse the command line management protocol data packet.
- the format of the command line management protocol data packet sent by the switch to the mobile terminal may be as shown in Figure 6-8, and the format of the command line management protocol data packet sent by the mobile terminal to the switch may be as shown in Figure 6-10.
- the command line management protocol data packet sent by the mobile terminal to the switch may not include the command line name, and may also include the command line name. When the command line name is included, the command line name length value may be set to an invalid value.
- command line management protocol data packet is merely an example. Any format of the command line management protocol data packet that can implement the terminal to switch management function can be applied to the specific embodiment of the present invention, and not one by one. For example.
- the configuration method may further include:
- Step 106 If only the invalid command line code is parsed, the switch is prompted to verify that the user verification information fails.
- the user may be prompted to re-enter the verification information and the like, which is convenient for the user to use.
- the following takes the format of the command line management protocol packet shown in FIG. 6 as an example.
- the configuration method of the switch of the present invention is as follows:
- the command line management protocol data packet of the embodiment of the present invention includes: command line code 601, length 4 bytes; protocol identifier 602, length 2 bytes; command line name length 603,
- the length of the command line name is in bytes, and its length is 2 bytes;
- the command line name 604, the length of the command line name 604 is identified by the command line name length 603 field field; the reserved field 605, initialized to 0, the length It is 2 bytes; CRC 606, initialized to 0, and has a length of 2 bytes.
- the data in the data packet is stored in units of 4 bytes, in order to ensure the efficiency of data processing, if the length of the command name 604 field is not 0, the modulo remainder is not 0, and 1-3 words are filled.
- the 0 of the section has its length modulo remainder of 4 to zero.
- the configuration method of the switch in this embodiment of the present invention includes:
- Step 1101 the switch maps all configuration commands to command line encoding, and encodes and matches the command line.
- the set command is saved according to the mapping relationship.
- step 1102 the switch saves the user name and password created by the user on the switch.
- Step 1103 The user name and password input by the user are sent by the mobile terminal to the switch.
- Step 1104 The switch verifies the username and password sent by the mobile terminal according to the saved username and password, and obtains the verification result.
- Step 1105 If the verification result shows that the verification is passed, the switch sends the command line code of all the configuration commands to the mobile terminal by using multiple command line management protocol data packets, and the command line management protocol data packet is encapsulated as shown in FIG. 6; otherwise, the sending is performed.
- a command line management protocol packet is sent to the mobile terminal, and the command line code 601 field of the command line management protocol packet is set to all zeros.
- Step 1106 The received command line management protocol data packet is parsed one by one by the mobile terminal, and the parsing process is: verifying the protocol identifier 602 and the CRC 606, if the protocol identifier 602 and the CRC 606 are both verified and valid.
- the command line code 601 obtains the command line name 604 according to the command line name length 603, and records the valid command line code 601 and the corresponding command line name 604.
- Step 1107 if the mobile terminal only parses a message with the command line code 601 all 0, the user is prompted to verify the failure; otherwise, the mobile terminal generates a visual configuration list according to the recorded command line code and the corresponding command line name, The command line name corresponding to a valid command line code is displayed to the user.
- step 1108 the user selects the name of the command line to be configured.
- Step 1109 The mobile terminal adds the command line code corresponding to the command name selected by the user to the command line code 601 field of the command line management protocol data packet, adds the protocol identifier 602, sets the command line name length 603 to 0, and initializes the reserved field 605. It is 0 and the value of CRC 606 is calculated.
- Step 1110 The command line management protocol data packet of the above step 1109 is sent by the mobile terminal to the switch.
- Step 1111 The switch checks the CRC 606 and the protocol identifier 602 in the received data packet. If the check succeeds, the mapping between the command line code and the configuration command saved in the foregoing step 1101 is performed, and the command selected by the user is obtained. The line corresponds to the corresponding configuration command.
- step 1112 the switch executes a configuration command corresponding to the command line code selected by the user.
- Step 1113 The switch returns the execution result to the mobile terminal.
- the configuration method of the switch in the embodiment of the present invention implements the management function of the switch through the mobile terminal, which facilitates the use of the user and improves the practicability.
- an embodiment of the present invention further provides a configuration apparatus for a switch, which is applied to a mobile terminal, where the configuration apparatus includes:
- a first sending module configured to send user input information input by the user to the switch
- a first receiving module configured to receive at least one command line management protocol data packet returned by the switch after verifying the user verification information, where each command line management protocol data packet includes at least one command line code and each The command line name corresponding to the command line code;
- a parsing module configured to parse each of the command line management protocol data packets, if a valid life is parsed If the line is encoded, the command line name corresponding to the valid command line code is obtained;
- a display module configured to display a command line name corresponding to the valid command line code to the user, and obtain a command line name selected by the user;
- a second sending module configured to send a command line code corresponding to the command line name selected by the user to the switch, and obtain, execute, and select a user according to a mapping relationship between the command line encoding and the configuration command by the switch.
- the command line encodes the corresponding configuration command.
- the configuration device of the switch in the embodiment of the invention implements the management function of the switch through the mobile terminal, which facilitates the use of the user and improves the practicability.
- the user authentication information may include a username and a password.
- the user can create a user name and password on the switch in advance, and the switch verifies the user name and password sent by the terminal according to the pre-created user name and password.
- the first sending module may be implemented by a connection management module of the mobile terminal; the first receiving module and the second sending module may be implemented by a communication protocol module of the mobile terminal;
- the module is configured by a command structure of the mobile terminal; the display module can be implemented by a human interface module of the mobile terminal.
- connection management module is used for user and password verification and connection state maintenance between the switch and the mobile terminal;
- command structure configuration module is used to implement mapping of the switch configuration command to the command line code, and the command line code to the command line name.
- the communication protocol module is responsible for information exchange between the mobile terminal device and the switch;
- the switch management human-machine interface module provides a visual graphical interface on the mobile terminal, which makes the management of the switch more convenient.
- the command line management protocol data packet may further include a protocol identifier and a cyclic redundancy check code CRC;
- parsing module specifically includes:
- a first verification module configured to separately verify the protocol identifier and the CRC
- a first acquiring module configured to acquire a command line code included in each of the command line protocol information if the protocol identifier and the CRC are both verified;
- the second obtaining module is configured to obtain a command line name corresponding to the valid command line code if a valid command line code is obtained.
- the second sending module specifically includes:
- a first sending submodule configured to send a command line code corresponding to the command line name selected by the user, the protocol identifier, and the CRC to the switch, where the switch identifies the protocol and the The CRC is separately verified, and when the protocol identifier and the CRC are both verified, the configuration command corresponding to the command line code selected by the user is obtained and executed according to the mapping relationship between the preset command line encoding and the configuration command.
- the command line management protocol data packet may further include a command line name length
- parsing module specifically includes:
- the third obtaining module is configured to obtain a command line name corresponding to the valid command line code according to the length of the command line name if the valid command line code is parsed.
- the second sending module specifically includes:
- a padding module configured to fill a command line encoding field corresponding to the command name selected by the user into a command line encoding field in the command line management protocol data packet, and length the command line name in the command line management protocol data packet The value is set to an invalid value
- a second sending submodule configured to return the filled command line management protocol data packet to the switch, and after the switch parses the command line management protocol data packet, according to a preset command line encoding
- the mapping relationship with the configuration command acquires and executes a configuration command corresponding to the command line code selected by the user.
- the prompting module is configured to prompt the switch to fail verification of the user verification information if only invalid command line coding is parsed.
- the configuration device of the switch in the embodiment of the invention implements the management function of the switch through the mobile terminal, which facilitates the use of the user and improves the practicability.
- configuration device of the switch is a device corresponding to the configuration method of the switch, and all the implementation manners in the foregoing method embodiments are applicable to the embodiment of the device, and the same technical effects can be achieved.
- the configuration of the switch of the embodiment of the present invention is applied to the mobile terminal. Therefore, the embodiment of the present invention further provides a mobile terminal, including: the configuration device of the switch as described in the foregoing embodiment.
- the implementation examples of the configuration device of the switch are applicable to the embodiment of the mobile terminal, and the same technical effects can be achieved.
- the mobile terminal of the present invention may be a mobile electronic device such as a mobile phone or a tablet computer.
- an embodiment of the present invention further provides a method for configuring a switch, which is applied to a switch, and the configuration method includes:
- Step 301 Receive user authentication information sent by the mobile terminal.
- Step 302 Verify the user verification information according to the pre-stored user information, and obtain a verification result.
- Step 303 Return, according to the verification result, a command line management protocol data packet including a command line code corresponding to the command line code and the command line code to the mobile terminal;
- Step 304 Receive a command line code selected by the user sent by the mobile terminal, where the command line code selected by the user is used by the mobile terminal to parse the command line management protocol data packet, and the mobile terminal will parse out
- the command line name corresponding to the valid command line code is displayed to the user, and the command line code corresponding to the command line name selected by the user acquired by the mobile terminal is encoded;
- Step 305 Acquire and execute a configuration command corresponding to the command line code selected by the user according to a mapping relationship between the preset command line encoding and the configuration command.
- the configuration method of the switch in the embodiment of the present invention implements the management function of the switch through the mobile terminal, which facilitates the use of the user and improves the practicability.
- step of step 303 specifically includes:
- Step 3031 If the user verification information is verified, return a command line management protocol data packet containing a valid command line code and a command line code corresponding command line name to the mobile terminal, otherwise, return to the mobile terminal.
- the command line management protocol data packet may further include a protocol identifier and a cyclic redundancy check code CRC;
- the step of receiving the command line code selected by the user sent by the mobile terminal includes:
- Step 3041 Receive, by the mobile terminal, a command line code selected by the user, the protocol identifier, and the CRC.
- the method may further include:
- Step 3051 Perform verification on the protocol identifier and the CRC respectively, and if the protocol identifier and the CRC are both verified, obtain and execute according to a mapping relationship between a preset command line encoding and a configuration command.
- the configuration command corresponding to the command line code selected by the user.
- the protocol identifier is an identifier of the command line management protocol and is unique.
- the value of the CRC is calculated by the CRC algorithm from all fields of the command line management protocol.
- the protocol identifier in the protocol data packet it can be determined whether the obtained protocol data packet is a command line management protocol data packet, so that when the obtained data packet is a command line management protocol data packet, follow-up actions. And by verifying the CRC in the protocol packet, it can be determined whether the obtained packet has an error during the transmission. When the CRC check is passed, it can be judged that the obtained data packet has no error during the transmission process; otherwise, it is judged that the acquired data packet has an error during the transmission process. Therefore, by verifying the protocol identifier and the CRC separately, the accuracy and validity of the data received by the switch are ensured.
- the step 305 may further include:
- Step 306 returning an execution result to the mobile terminal.
- the user can obtain the execution result in time to perform subsequent operations according to the execution result, which is convenient for the user to use, and improves the practicability and convenience.
- the configuration method of the switch in the embodiment of the present invention implements the management function of the switch through the mobile terminal, which facilitates the use of the user and improves the practicability.
- an embodiment of the present invention further provides a configuration apparatus for a switch, which is applied to a switch, and the configuration apparatus includes:
- a second receiving module configured to receive user verification information sent by the mobile terminal
- a verification module configured to verify the user verification information according to the pre-stored user information, and obtain a verification result fruit
- a returning module configured to return, to the mobile terminal, a command line management protocol data packet including a command line code corresponding to a command line code according to the verification result;
- a third receiving module configured to receive a command line code selected by the user sent by the mobile terminal, where the command line code selected by the user is used by the mobile terminal to parse the command line management protocol data packet by the mobile terminal
- the terminal displays the command line name corresponding to the valid command line code that is parsed to the user, and the command line code corresponding to the command line name selected by the user acquired by the mobile terminal is encoded;
- an execution module configured to acquire and execute a configuration command corresponding to the command line code selected by the user according to a mapping relationship between the preset command line encoding and the configuration command.
- the configuration device of the switch in the embodiment of the invention implements the management function of the switch through the mobile terminal, which facilitates the use of the user and improves the practicability.
- the second receiving module and the verification module may be implemented by a connection management module of the switch; the return module and the third receiving module may be implemented by a communication protocol module of the switch; The command structure configuration module and the command execution module of the switch are implemented.
- connection management module is used for user and password verification and connection state maintenance between the switch and the mobile terminal;
- command structure configuration module is used to implement mapping of the switch configuration command to the command line code, and the command line code to the command line name. Mapping;
- the communication protocol module is responsible for information exchange between the mobile terminal device and the switch;
- the command execution module is responsible for executing the received command on the switch.
- the returning module includes:
- the mobile terminal returns, to the mobile terminal, a command line management protocol data packet containing a valid command line code and a command line code corresponding command line name, otherwise, The mobile terminal returns a command line management protocol packet containing an invalid command line code and a command line name corresponding to the command line code.
- the command line management protocol data packet further includes a protocol identifier and a cyclic redundancy check code CRC;
- the third receiving module includes:
- a first receiving submodule configured to receive, by the mobile terminal, the command line code selected by the user, the protocol identifier, and the CRC.
- the configuration device further includes:
- a third check module configured to perform verification on the protocol identifier and the CRC respectively, and if the protocol identifier and the CRC are both verified, according to a mapping relationship between a preset command line encoding and a configuration command And acquiring and executing a configuration command corresponding to the command line code selected by the user.
- the configuring device further includes:
- a second returning module configured to return an execution result to the mobile terminal.
- the configuration device of the switch in the embodiment of the invention implements the management function of the switch through the mobile terminal, which facilitates the use of the user and improves the practicability.
- configuration device of the switch is a device corresponding to the configuration method of the switch, and all the implementation manners in the foregoing method embodiments are applicable to the embodiment of the device, and the same technical effects can be achieved.
- the embodiment of the present invention further provides a switch, including: a configuration device of the switch as described in the foregoing embodiment.
- the implementation examples of the configuration device of the switch are applicable to the embodiment of the switch, and the same technical effects can be achieved.
- the present invention is applicable to a network configuration of a switch device, and is used to implement management of a switch by a mobile terminal device.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
La présente invention appartient au domaine des communications. Elle concerne un procédé et un appareil de configuration d'un commutateur, un terminal mobile, et le commutateur. L'invention vise à résoudre le problème lié, dans l'état de la technique, à l'incapacité de gérer un commutateur au moyen d'un terminal mobile. Le procédé consiste à : envoyer des informations de vérification d'utilisateur à un commutateur; recevoir des paquets de données de protocole de gestion de ligne de commande, retournés après que le commutateur a vérifié les informations de vérification d'utilisateur, les paquets de données de protocole de gestion de ligne de commande contenant des codes de ligne de commande et des noms de ligne de commande correspondants; analyser les paquets de données de protocole de gestion de ligne de commande afin d'obtenir des noms de ligne de commande correspondant à des codes de ligne de commande effectifs; afficher, à l'intention d'un utilisateur, les noms de ligne de commande correspondant aux codes de ligne de commande effectifs, et obtenir un nom de ligne de commande sélectionné par l'utilisateur; et envoyer, au commutateur, un code de ligne de commande correspondant au nom de ligne de commande et sélectionné par l'utilisateur de sorte que le commutateur exécute, selon une relation de mappage entre des codes de ligne de commande et des instructions de configuration, une instruction de configuration correspondant au code de ligne de commande sélectionné par l'utilisateur. Dans la solution de la présente invention, un commutateur est géré au moyen d'un terminal mobile.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510242113.7 | 2015-05-13 | ||
| CN201510242113.7A CN106301818A (zh) | 2015-05-13 | 2015-05-13 | 一种交换机的配置方法、装置、移动终端及交换机 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016180089A1 true WO2016180089A1 (fr) | 2016-11-17 |
Family
ID=57247772
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/077140 Ceased WO2016180089A1 (fr) | 2015-05-13 | 2016-03-23 | Procédé et appareil de configuration de commutateur, terminal mobile, et commutateur |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN106301818A (fr) |
| WO (1) | WO2016180089A1 (fr) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109088855A (zh) * | 2018-07-12 | 2018-12-25 | 新华三信息安全技术有限公司 | 一种身份认证的方法及设备 |
| CN109067755B (zh) * | 2018-08-17 | 2021-06-04 | 深圳市永达电子信息股份有限公司 | 一种安全交换机的访问控制方法和系统 |
| CN109245947A (zh) * | 2018-10-30 | 2019-01-18 | 北京计算机技术及应用研究所 | 一种交换机及其策略配置方法 |
| CN111614498A (zh) * | 2020-05-22 | 2020-09-01 | 南京金税网安系统软件有限公司 | 一种多板卡核心交换机的配置命令交互系统及其实现方法 |
| CN115455384A (zh) * | 2021-06-08 | 2022-12-09 | 京东方科技集团股份有限公司 | 服务管理方法及相关设备 |
| CN116827771A (zh) * | 2023-06-30 | 2023-09-29 | 杭州海康威视数字技术股份有限公司 | 一种基于协议的命令配置方法、装置及电子设备 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7139751B1 (en) * | 2000-12-01 | 2006-11-21 | Juniper Networks, Inc. | Searching and reusing information from previously executed control instructions in a data forwarding device |
| CN102546239A (zh) * | 2011-12-26 | 2012-07-04 | 苏州风采信息技术有限公司 | 服务端配置的操作方法 |
| CN104346280A (zh) * | 2014-10-31 | 2015-02-11 | 上海斐讯数据通信技术有限公司 | 一种交换机重启配置检查的方法及系统 |
-
2015
- 2015-05-13 CN CN201510242113.7A patent/CN106301818A/zh active Pending
-
2016
- 2016-03-23 WO PCT/CN2016/077140 patent/WO2016180089A1/fr not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7139751B1 (en) * | 2000-12-01 | 2006-11-21 | Juniper Networks, Inc. | Searching and reusing information from previously executed control instructions in a data forwarding device |
| CN102546239A (zh) * | 2011-12-26 | 2012-07-04 | 苏州风采信息技术有限公司 | 服务端配置的操作方法 |
| CN104346280A (zh) * | 2014-10-31 | 2015-02-11 | 上海斐讯数据通信技术有限公司 | 一种交换机重启配置检查的方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106301818A (zh) | 2017-01-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103152331B (zh) | 通过移动终端进行登录/注册的方法、系统和云端服务器 | |
| WO2016180089A1 (fr) | Procédé et appareil de configuration de commutateur, terminal mobile, et commutateur | |
| JP7451696B2 (ja) | 結合デバイスおよび関連デバイスのためのリモートアテステーションモードネゴシエーション方法 | |
| TWI735429B (zh) | 用戶端登錄伺服器端的鑑別方法、裝置、系統及電子設備 | |
| CN103124267B (zh) | 通过移动终端进行登录/注册的方法、系统和云端服务器 | |
| US20120064880A1 (en) | Method and apparatus of providing messaging service and callback feature to mobile stations | |
| KR20230127284A (ko) | 등록 방법 및 장치, 인증 방법 및 장치, 라우팅 표시자결정 방법 및 장치, 엔티티 및 단말기 | |
| US9148412B2 (en) | Secure configuration of authentication servers | |
| CN102684899B (zh) | 基于Tr069协议获取设备状态的方法、ACS及系统 | |
| CN105828329B (zh) | 移动终端认证管理方法 | |
| US12058002B2 (en) | Device configuration method, system, and apparatus | |
| TW201707415A (zh) | 安全認證方法、裝置及系統 | |
| CN106060128B (zh) | 一种浏览器访问智能密钥设备的方法及装置 | |
| CN102957678B (zh) | 认证ip电话机和协商语音域的方法、系统以及设备 | |
| CN105162802B (zh) | Portal认证方法及认证服务器 | |
| CN105516061A (zh) | 远程访问服务器的方法及web服务器 | |
| CN105897475A (zh) | 一种路由器的远程配置方法及路由器 | |
| CN109309655B (zh) | 无状态通信安全签名方法、终端及服务器端 | |
| EP2670107B1 (fr) | Procédé de communication pour un terminal sans fil et un dispositif hôte, et terminal sans fil et dispositif hôte correspondants | |
| CN118316688A (zh) | 网关的认证方法、装置和系统 | |
| CN112087412B (zh) | 一种基于唯一令牌的服务访问处理方法及装置 | |
| CN104202372B (zh) | 一种触摸屏终端登录服务器的方法和系统 | |
| WO2017124728A1 (fr) | Procédé et appareil d'acquisition de configuration de routeur | |
| CN117527338A (zh) | 一种物联网应用中双向身份加强鉴定方法及系统 | |
| CN111984958B (zh) | 一种支持vnc双因子的认证方法 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16791939 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16791939 Country of ref document: EP Kind code of ref document: A1 |