CN113328896B - Configuration method of network equipment and related device - Google Patents

Configuration method of network equipment and related device Download PDF

Info

Publication number
CN113328896B
CN113328896B CN202110747563.7A CN202110747563A CN113328896B CN 113328896 B CN113328896 B CN 113328896B CN 202110747563 A CN202110747563 A CN 202110747563A CN 113328896 B CN113328896 B CN 113328896B
Authority
CN
China
Prior art keywords
session
request
network device
result information
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110747563.7A
Other languages
Chinese (zh)
Other versions
CN113328896A (en
Inventor
国超
佘春燕
曾锴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202110747563.7A priority Critical patent/CN113328896B/en
Publication of CN113328896A publication Critical patent/CN113328896A/en
Application granted granted Critical
Publication of CN113328896B publication Critical patent/CN113328896B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Abstract

The application provides a configuration method of network equipment and a related device, wherein the configuration method of the network equipment comprises the following steps: after establishing a secure communication protocol with network equipment, an operation and maintenance terminal establishes a session containing a network configuration protocol with the network equipment, sends a remote program calling request to the network equipment through the session containing the network configuration protocol and receives an execution result of the network equipment aiming at the remote program calling request; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling. Because the network device is configured through the network configuration protocol without depending on a command line, and the network configuration protocol provides a set of mechanisms for managing the network device, a user can add, modify and delete the configuration of the network device through the set of mechanisms to acquire the configuration and state information of the network device. Therefore, the purpose of large-scale automatic deployment of the network equipment can be achieved.

Description

Configuration method of network equipment and related device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a configuration method for a network device and a related apparatus.
Background
The management and configuration of network devices is a very important ring in the operation and maintenance work of data centers. The types of network devices managed and maintained by the data center are different and the number of the network devices is huge, and for safety, engineers need to manage and configure the network devices through a Security Operation Management (SOM) rather than directly communicating with the network devices.
The traditional configuration mode is to use Command-Line Interface (CLI) commands or CLI scripts to send CLI commands to devices one by one through SOM, however, the CLI configuration network device method is not suitable for the requirements of large-scale automatic deployment of network devices at present because there are great differences in Command sets between manufacturers and there is no limitation that transactional performance may cause the effective part of the configuration part to be ineffective and data modeling idea to be absent.
Disclosure of Invention
In view of this, the present application provides a configuration method of a network device and a related apparatus, which are used for large-scale automated deployment of the network device.
A first aspect of the present application provides a configuration method for a network device, which is applied to an operation and maintenance terminal, where the configuration method includes:
sending a connection request for establishing a secure communication protocol to the network device;
receiving first result information fed back by the network equipment; wherein the first result information indicates whether the network device agrees to the connection request to establish a secure communication protocol;
if the first result information indicates that the network equipment agrees to the connection request for establishing the secure communication protocol, establishing secure communication protocol connection with the network equipment, and sending a session establishment request to the network equipment; wherein the session comprises a network configuration protocol;
receiving second result information fed back by the network equipment; wherein the second result information indicates whether the network device agrees with the creation request of the session;
if the second result information indicates that the network equipment agrees with the session creation request, creating a session with the network equipment;
sending a remote program call request to the network device through the session; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling;
and receiving an execution result of the network equipment for the remote program calling request through the session.
Optionally, after receiving, by the session, an execution result of the network device for the remote procedure call request, the method further includes:
sending a closing request of the session to the network equipment; wherein the closing request of the session is used for requesting to close the session between the network equipment and the session server;
receiving third result information fed back by the network equipment; wherein the third result information indicates whether the network device agrees with a close request of the session;
and if the third result information indicates that the network equipment agrees with the closing request of the session, closing the session.
Optionally, the configuration method of the network device further includes:
initiating an end command to the network device; wherein the end command is to end a session with the network device.
A second aspect of the present application provides a configuration method for a network device, which is applied to the network device, and the configuration method includes:
receiving a connection request for establishing a secure communication protocol sent by an operation and maintenance terminal;
feeding back first result information to the operation and maintenance terminal; wherein the first result information indicates whether the connection request for establishing a secure communication protocol is granted;
receiving a session establishing request sent by the operation and maintenance terminal; wherein the session comprises a network configuration protocol;
feeding back second result information to the operation and maintenance terminal; wherein the second result information indicates whether the network device agrees with the creation request of the session;
receiving a remote program calling request sent by the operation and maintenance terminal; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling;
and feeding back an execution result aiming at the remote program calling request to the operation and maintenance terminal.
Optionally, the configuration method of the network device further includes:
receiving a closing request of the session sent by the operation and maintenance terminal; wherein the session closing request is used for requesting to close the session with the network equipment;
feeding back third result information to the operation and maintenance terminal; wherein the third result information indicates whether the network device approves the request for closing the session.
The third aspect of the present application provides an operation and maintenance terminal, including:
a first sending unit, configured to send a connection request for establishing a secure communication protocol to a network device;
a first receiving unit, configured to receive first result information fed back by the network device; wherein the first result information indicates whether the network device agrees with the connection request for establishing a secure communication protocol;
a second sending unit, configured to establish a secure communication protocol connection with the network device and send a session creation request to the network device if the first result information indicates that the network device agrees to the connection request for establishing the secure communication protocol; wherein the session comprises a network configuration protocol;
a second receiving unit, configured to receive second result information fed back by the network device; wherein the second result information indicates whether the network device agrees with the creation request of the session;
a session creating unit, configured to create a session with the network device if the second result information indicates that the network device agrees with the session creating request;
a third sending unit, configured to send a remote program call request to the network device through the session; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling;
a third receiving unit, configured to receive, through the session, an execution result of the network device for the remote program invocation request.
Optionally, the operation and maintenance terminal further includes:
a fourth sending unit, configured to send a request for closing the session to the network device; wherein the session closing request is used for requesting to close the session with the network equipment;
a fourth receiving unit, configured to receive third result information fed back by the network device; wherein the third result information indicates whether the network device agrees with a close request of the session;
a session closing unit, configured to close the session if the third result information indicates that the network device agrees with the request to close the session.
Optionally, the operation and maintenance terminal further includes:
an end unit, configured to initiate an end command to the network device; wherein the end command is to end a session with the network device.
A fourth aspect of the present application provides a network device, comprising:
a fifth receiving unit, configured to receive a connection request for establishing a secure communication protocol, where the connection request is sent by the operation and maintenance terminal;
the first feedback unit is used for feeding back first result information to the operation and maintenance terminal; wherein the first result information indicates whether the connection request for establishing a secure communication protocol is granted;
a sixth receiving unit, configured to receive a session creation request sent by the operation and maintenance terminal; wherein the session comprises a network configuration protocol;
the second feedback unit is used for feeding back second result information to the operation and maintenance terminal; wherein the second result information indicates whether the network device agrees with the creation request of the session;
a seventh receiving unit, configured to receive a remote program call request sent by the operation and maintenance terminal; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling;
and the third feedback unit is used for feeding back an execution result aiming at the remote program calling request to the operation and maintenance terminal.
Optionally, the network device further includes:
an eighth receiving unit, configured to receive a request for closing the session, where the request is sent by the operation and maintenance terminal; wherein the session closing request is used for requesting to close the session with the network equipment;
the fourth feedback unit is used for feeding back third result information to the operation and maintenance terminal; wherein the third result information indicates whether the network device approves the request for closing the session.
In view of the above, the present application provides a method for configuring a network device and a related apparatus, where the method for configuring a network device includes: after establishing a secure communication protocol with network equipment, an operation and maintenance terminal establishes a session containing a network configuration protocol with the network equipment, sends a remote program calling request to the network equipment through the session containing the network configuration protocol and receives an execution result of the network equipment aiming at the remote program calling request; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling. Because the network device is configured through the network configuration protocol without depending on a command line, and the network configuration protocol provides a whole set of mechanism for managing the network device, a user can add, modify and delete the configuration of the network device through the set of mechanism to acquire the configuration and state information of the network device. Therefore, the purpose of large-scale automatic deployment of the network equipment can be achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a detailed flowchart of a configuration method of a network device according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a four-layer relationship of a NetConf protocol according to another embodiment of the present application;
FIG. 3 is a detailed flow chart of accessing and configuring a network device after adding an SOM according to another embodiment of the present application;
fig. 4 is a schematic diagram of an operation and maintenance terminal according to another embodiment of the present application;
fig. 5 is a schematic diagram of a network device according to another embodiment of the present application.
Detailed Description
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, referred to in this application, are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence of functions performed by these devices, modules or units, but the terms "include", or any other variation thereof are intended to cover a non-exclusive inclusion, so that a process, method, article, or apparatus that includes a series of elements includes not only those elements but also other elements that are not explicitly listed, or includes elements inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
An embodiment of the present application provides a method for configuring a network device, which specifically includes the following steps, as shown in fig. 1:
s101, the operation and maintenance terminal sends a connection request for establishing a secure communication protocol to the network equipment.
It should be noted that the Secure communication protocol may be, but is not limited to, Secure Shell (SSH) protocol, and the like, and is not limited herein.
S102, the network equipment receives a connection request for establishing a secure communication protocol sent by the operation and maintenance terminal.
S103, the network equipment feeds back the first result information to the operation and maintenance terminal.
Wherein the first result information indicates whether the connection request to establish the secure communication protocol is granted.
S104, the operation and maintenance terminal receives first result information fed back by the network equipment.
And S105, if the first result information indicates that the network equipment agrees to establish the connection request of the secure communication protocol, the operation and maintenance terminal establishes the secure communication protocol connection with the network equipment.
S106, the operation and maintenance terminal sends a session creation request to the network equipment.
Wherein the session comprises a network configuration protocol. The Network Configuration Protocol is The Network Configuration Protocol, NetConf.
It can be understood that the configuration of the network devices determines whether the requirement for automated deployment of the network devices during the construction and maintenance of the data center can be met, and the conventional CLI configuration is not suitable for meeting such requirement due to the problems described above. Different from the traditional CLI configuration mode, NetConf does not depend on a command line for configuring the network device, and NetConf provides a complete set of mechanism for managing the network device, and a user can add, modify and delete the configuration of the network device through the complete set of mechanism to acquire the configuration and state information of the network device. NetConf is a network configuration and management protocol based on Extensible Markup Language (XML), and uses a simple RPC-based mechanism to implement communication between a client, which may be a script or an application program, and a server, which is a network device.
The NetConf protocol provides a method for directly configuring network equipment by an operation and maintenance terminal, the protocol is internally divided into four layers, namely a safety transmission layer, a message layer, an operation layer and a content layer from bottom to top, the operation and maintenance terminal establishes connection and session with the network equipment by using the safety transmission layer and the message layer, the operation layer and the content layer are mainly used for the configuration process of the network equipment, and the four-layer relation of the NetConf protocol is shown in fig. 2.
The safety transport layer is responsible for establishing communication between the operation and maintenance terminal and the network device through a communication protocol, and the safety advantage of NetConf is also shown here. The communication protocol within the secure transport layer must meet the requirements of being securely encryptable (SSH is commonly used); the message layer is used for enabling the operation and maintenance terminal and the network equipment to mutually send a < hello > message to create a NetConf session (the < hello > message comprises a capability set supported by the operation and maintenance terminal and a NetConf version number), and to transmit an RPC request and a response of the RPC request between the operation and maintenance terminal and the network equipment, wherein the RPC request comprises configuration information in an operation layer and a content layer.
S107, the network equipment receives a session creation request sent by the operation and maintenance terminal.
And S108, the network equipment feeds back second result information to the operation and maintenance terminal.
Wherein the second result information indicates whether the network device approves the creation request of the session.
And S109, the operation and maintenance terminal receives second result information fed back by the network equipment.
And S110, if the second result information indicates that the network equipment agrees to the session creation request, the operation and maintenance terminal and the network equipment create a session.
And S111, the operation and maintenance terminal sends a remote program calling request to the network equipment through the session.
Wherein, the Remote Procedure Call request is Remote Procedure Call, i.e. RPC. The remote program calling request comprises information about operation to be carried out and required data information of the remote program calling.
And S112, the network equipment receives the remote program calling request sent by the operation and maintenance terminal.
S113, the network equipment feeds back an execution result aiming at the remote program calling request to the operation and maintenance terminal through the conversation.
S114, the operation and maintenance terminal receives the execution result of the network equipment for the remote program calling request through the session.
Optionally, in another embodiment of the present application, after all the remote procedure call requests are completed, the session needs to be closed, and therefore, an implementation manner after step S114 is executed further includes:
and the operation and maintenance terminal sends a closing request of the session to the network equipment.
The closing request of the session is used for requesting to close the session between the network equipment and the session closing request.
And the network equipment receives a closing request of the session sent by the operation and maintenance terminal.
And the network equipment feeds back the third result information to the operation and maintenance terminal.
Wherein the third result information indicates whether the network device agrees with the request for closing the session.
And the operation and maintenance terminal receives the third result information fed back by the network equipment.
And if the third result information indicates that the network equipment agrees to the session closing request, the operation and maintenance terminal closes the session.
It can be understood that, in the implementation process of the present application, at any time, the operation and maintenance terminal may initiate an end command to the network device if a special condition is met. Wherein the end command is for ending the session with the network device.
It should be noted that, NetConf access and configuration equipment requires direct connection between an operation and maintenance terminal and network equipment, and although security is guaranteed by an encrypted communication protocol, auditability cannot be guaranteed. In daily operation and maintenance work of a data center, safety audit is an important measure for guaranteeing the safety of an information system. Therefore, the SOM safety operation and maintenance management system is introduced to increase the auditing function of the scheme, and the configuration information and the instruction sent to the network equipment by the SOM transfer operation and maintenance terminal are transmitted. Firstly, logging in the SOM through the operation and maintenance terminal, acquiring a token provided by the SOM, adding the RPC message of NetConf sent by the operation and maintenance terminal into the token, and then forwarding the RPC message to the network equipment by the SOM.
Specifically, as shown in fig. 3, a flowchart for accessing and configuring a network device after adding an SOM is provided:
namely, the operation and maintenance terminal realizes NetConf conversation with the network equipment by calling an interface of the SOM, then sends the RPC request to the SOM and forwards the RPC request to the network equipment through the SOM, records all operations of the operation and maintenance terminal through an auditing function of the SOM, and makes up the defect that the NetConf protocol configuration network equipment lacks the auditing function by using the SOM.
According to the above scheme, the present application provides a method for configuring a network device, comprising: after a safe communication protocol is established with network equipment through an operation and maintenance terminal, a session containing a network configuration protocol is established with the network equipment, a remote program calling request is sent to the network equipment through the session containing the network configuration protocol, and an execution result of the network equipment for the remote program calling request is received; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling. Because the network device is configured through the network configuration protocol without depending on a command line, and the network configuration protocol provides a whole set of mechanism for managing the network device, a user can add, modify and delete the configuration of the network device through the set of mechanism to acquire the configuration and state information of the network device. Therefore, the purpose of large-scale automatic deployment of the network equipment can be achieved.
Another embodiment of the present application provides an operation and maintenance terminal, as shown in fig. 4, specifically including:
a first sending unit 401, configured to send a connection request for establishing a secure communication protocol to a network device.
A first receiving unit 402, configured to receive first result information fed back by the network device.
Wherein the first result information indicates whether the network device agrees to a connection request to establish a secure communication protocol.
A second sending unit 403, configured to establish a secure communication protocol connection with the network device and send a session creation request to the network device if the first result information indicates that the network device agrees to establish a connection request of the secure communication protocol.
Wherein the session comprises a network configuration protocol.
A second receiving unit 404, configured to receive second result information fed back by the network device.
Wherein the second result information indicates whether the network device agrees with the request for creating the session.
A session creating unit 405, configured to create a session with the network device if the second result information indicates that the network device agrees to the session creation request.
A third sending unit 406, configured to send the remote procedure call request to the network device through the session.
The remote program calling request comprises operation information to be carried out and required data information of the remote program calling.
A third receiving unit 407, configured to receive, through the session, an execution result of the network device for the remote program invocation request.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 1, which is not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the operation and maintenance terminal further includes:
and a fourth sending unit, configured to send a request for closing the session to the network device.
Wherein, the closing request of the session is used for requesting to close the session with the network equipment.
And the fourth receiving unit is used for receiving the third result information fed back by the network equipment.
Wherein the third result information indicates whether the network device agrees with the request for closing the session.
And a session closing unit, configured to close the session if the third result information indicates that the network device agrees to the request for closing the session.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the operation and maintenance terminal further includes:
and the ending unit is used for initiating an ending command to the network equipment.
Wherein the end command is for ending the session with the network device.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
According to the scheme, the operation and maintenance terminal provided by the application comprises the following components: after a safe communication protocol is established with network equipment through an operation and maintenance terminal, a session containing a network configuration protocol is established with the network equipment, a remote program calling request is sent to the network equipment through the session containing the network configuration protocol, and an execution result of the network equipment for the remote program calling request is received; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling. Because the network device is configured through the network configuration protocol without depending on a command line, and the network configuration protocol provides a whole set of mechanism for managing the network device, a user can add, modify and delete the configuration of the network device through the set of mechanism to acquire the configuration and state information of the network device. Therefore, the purpose of large-scale automatic deployment of the network equipment can be achieved.
Another embodiment of the present application provides a network device, as shown in fig. 5, specifically including:
a fifth receiving unit 501, configured to receive a connection request for establishing a secure communication protocol sent by the operation and maintenance terminal.
A first feedback unit 502, configured to feed back the first result information to the operation and maintenance terminal.
Wherein the first result information indicates whether the connection request to establish the secure communication protocol is granted.
A sixth receiving unit 503, configured to receive a session creation request sent by the operation and maintenance terminal.
Wherein the session comprises a network configuration protocol.
A second feedback unit 504, configured to feed back the second result information to the operation and maintenance terminal.
Wherein the second result information indicates whether the network device agrees with the request for creating the session.
A seventh receiving unit 505, configured to receive a remote program call request sent by the operation and maintenance terminal.
The remote program calling request comprises operation information to be carried out and required data information of the remote program calling.
And a third feedback unit 506, configured to feed back an execution result for the remote procedure call request to the operation and maintenance terminal.
For a specific working process of the unit disclosed in the above embodiment of the present application, reference may be made to the content of the corresponding method embodiment, as shown in fig. 1, which is not described herein again.
Optionally, in another embodiment of the present application, an implementation manner of the network device further includes:
and the eighth receiving unit is used for receiving the session closing request sent by the operation and maintenance terminal.
The session closing request is used for requesting to close the session with the network equipment.
And the fourth feedback unit is used for feeding back the third result information to the operation and maintenance terminal.
Wherein the third result information indicates whether the network device approves the session close request.
For specific working processes of the units disclosed in the above embodiments of the present application, reference may be made to the contents of the corresponding method embodiments, which are not described herein again.
According to the above scheme, the network device provided by the present application: after a safe communication protocol is established with network equipment through an operation and maintenance terminal, a session containing a network configuration protocol is established with the network equipment, a remote program calling request is sent to the network equipment through the session containing the network configuration protocol, and an execution result of the network equipment for the remote program calling request is received; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling. Because the network device is configured through the network configuration protocol without depending on a command line, and the network configuration protocol provides a whole set of mechanism for managing the network device, a user can add, modify and delete the configuration of the network device through the set of mechanism to acquire the configuration and state information of the network device. Therefore, the purpose of large-scale automatic deployment of the network equipment can be achieved.
In the above embodiments disclosed in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part. The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a live broadcast device, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A configuration method of network equipment is applied to an operation and maintenance terminal, and comprises the following steps:
sending a connection request for establishing a secure communication protocol to the network device;
receiving first result information fed back by the network equipment; wherein the first result information indicates whether the network device agrees with the connection request for establishing a secure communication protocol;
if the first result information indicates that the network equipment agrees to the connection request for establishing the secure communication protocol, establishing secure communication protocol connection with the network equipment, and sending a session establishment request to the network equipment; wherein the session comprises a network configuration protocol;
receiving second result information fed back by the network equipment; wherein the second result information indicates whether the network device agrees with the creation request of the session;
if the second result information indicates that the network equipment agrees with the session creation request, creating a session with the network equipment;
sending a remote program call request to the network device through the session; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling;
and receiving an execution result of the network equipment for the remote program calling request through the session.
2. The configuration method according to claim 1, further comprising, after receiving, through the session, an execution result of the network device for the remote procedure call request:
sending a closing request of the session to the network equipment; wherein the session closing request is used for requesting to close the session with the network equipment;
receiving third result information fed back by the network equipment; wherein the third result information indicates whether the network device agrees with a close request of the session;
and if the third result information indicates that the network equipment agrees with the closing request of the session, closing the session.
3. The configuration method according to claim 1, further comprising:
initiating an end command to the network device; wherein the end command is to end a session with the network device.
4. A configuration method of a network device is applied to the network device, and the configuration method comprises the following steps:
receiving a connection request for establishing a secure communication protocol sent by an operation and maintenance terminal;
feeding back first result information to the operation and maintenance terminal; wherein the first result information indicates whether the connection request for establishing a secure communication protocol is granted;
receiving a session establishing request sent by the operation and maintenance terminal;
feeding back second result information to the operation and maintenance terminal; wherein the second result information indicates whether the network device agrees with the creation request of the session;
receiving a remote program calling request sent by the operation and maintenance terminal; the remote program calling request comprises the information of operation to be carried out and required data information of the remote program calling;
and feeding back an execution result aiming at the remote program calling request to the operation and maintenance terminal.
5. The configuration method according to claim 4, further comprising:
receiving a closing request of the session sent by the operation and maintenance terminal; wherein the session closing request is used for requesting to close the session with the network equipment;
feeding back third result information to the operation and maintenance terminal; wherein the third result information indicates whether the network device approves the request for closing the session.
6. An operation and maintenance terminal, comprising:
a first sending unit, configured to send a connection request for establishing a secure communication protocol to a network device;
a first receiving unit, configured to receive first result information fed back by the network device; wherein the first result information indicates whether the network device agrees with the connection request for establishing a secure communication protocol;
a second sending unit, configured to establish a secure communication protocol connection with the network device and send a session creation request to the network device if the first result information indicates that the network device agrees to the connection request for establishing the secure communication protocol; wherein the session comprises a network configuration protocol;
a second receiving unit, configured to receive second result information fed back by the network device; wherein the second result information indicates whether the network device agrees with the creation request of the session;
a session creating unit, configured to create a session with the network device if the second result information indicates that the network device agrees with the session creating request;
a third sending unit, configured to send a remote program call request to the network device through the session; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling;
a third receiving unit, configured to receive, through the session, an execution result of the remote program invocation request by the network device.
7. The operation and maintenance terminal of claim 6, further comprising:
a fourth sending unit, configured to send a request for closing the session to the network device; wherein the session closing request is used for requesting to close the session with the network equipment;
a fourth receiving unit, configured to receive third result information fed back by the network device; wherein the third result information indicates whether the network device agrees with a close request of the session;
a session closing unit, configured to close the session if the third result information indicates that the network device agrees with the request to close the session.
8. The operation and maintenance terminal of claim 6, further comprising:
an end unit, configured to initiate an end command to the network device; wherein the end command is to end a session with the network device.
9. A network device, comprising:
a fifth receiving unit, configured to receive a connection request for establishing a secure communication protocol, where the connection request is sent by the operation and maintenance terminal;
the first feedback unit is used for feeding back first result information to the operation and maintenance terminal; wherein the first result information indicates whether the connection request for establishing a secure communication protocol is granted;
a sixth receiving unit, configured to receive a session creation request sent by the operation and maintenance terminal; wherein the session comprises a network configuration protocol;
the second feedback unit is used for feeding back second result information to the operation and maintenance terminal; wherein the second result information indicates whether the network device agrees with the creation request of the session;
a seventh receiving unit, configured to receive a remote program call request sent by the operation and maintenance terminal; the remote program calling request comprises operation information to be carried out and required data information of the remote program calling;
and the third feedback unit is used for feeding back an execution result aiming at the remote program calling request to the operation and maintenance terminal.
10. The network device of claim 9, comprising:
an eighth receiving unit, configured to receive a session close request sent by the operation and maintenance terminal; wherein the session closing request is used for requesting to close the session with the network equipment;
the fourth feedback unit is used for feeding back third result information to the operation and maintenance terminal; wherein the third result information indicates whether the network device approves the session close request.
CN202110747563.7A 2021-07-01 2021-07-01 Configuration method of network equipment and related device Active CN113328896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110747563.7A CN113328896B (en) 2021-07-01 2021-07-01 Configuration method of network equipment and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110747563.7A CN113328896B (en) 2021-07-01 2021-07-01 Configuration method of network equipment and related device

Publications (2)

Publication Number Publication Date
CN113328896A CN113328896A (en) 2021-08-31
CN113328896B true CN113328896B (en) 2022-05-27

Family

ID=77425450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110747563.7A Active CN113328896B (en) 2021-07-01 2021-07-01 Configuration method of network equipment and related device

Country Status (1)

Country Link
CN (1) CN113328896B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104883267A (en) * 2014-02-28 2015-09-02 杭州华三通信技术有限公司 Network configuration accessing method and device thereof
CN104883266A (en) * 2014-02-28 2015-09-02 杭州华三通信技术有限公司 Network configuration accessing method and device thereof
US9253034B1 (en) * 2009-06-01 2016-02-02 Juniper Networks, Inc. Mass activation of network devices
CN105656643A (en) * 2014-11-10 2016-06-08 中兴通讯股份有限公司 Method and equipment for performing compatible management based on network configuration protocol
CN108206764A (en) * 2018-03-29 2018-06-26 新华三技术有限公司 Configuration method, server and the computer-readable medium of configuring information of network appliance

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9253034B1 (en) * 2009-06-01 2016-02-02 Juniper Networks, Inc. Mass activation of network devices
CN104883267A (en) * 2014-02-28 2015-09-02 杭州华三通信技术有限公司 Network configuration accessing method and device thereof
CN104883266A (en) * 2014-02-28 2015-09-02 杭州华三通信技术有限公司 Network configuration accessing method and device thereof
CN105656643A (en) * 2014-11-10 2016-06-08 中兴通讯股份有限公司 Method and equipment for performing compatible management based on network configuration protocol
CN108206764A (en) * 2018-03-29 2018-06-26 新华三技术有限公司 Configuration method, server and the computer-readable medium of configuring information of network appliance

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曲悦."NETCONF配置数据一致性维护方案的设计与实现".《 中国优秀硕士论文电子期刊网》.2019, *

Also Published As

Publication number Publication date
CN113328896A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CN104994073B (en) Mobile phone terminal, server and its account number and apparatus bound control execute method
US8713177B2 (en) Remote management of networked systems using secure modular platform
KR101392789B1 (en) Method and system for remote configuration of a device
CN103840960B (en) A kind of business collocation method and system of passive optical network
KR102148046B1 (en) Calling an unready terminal
EP2512064A1 (en) Data configuration method and apparatus
US9894518B2 (en) Server and method for remotely controlling working of communications terminal, and communications terminal
WO2018099350A1 (en) Resource sharing method, device and system
WO2009152736A1 (en) Method and apparatus for creating and deploying service
CN109450948B (en) Data transmission method and device
WO2011137788A1 (en) Device management method, middleware, and machine-to-machine communication platform, device and system
US9576270B1 (en) System and related method for management of devices of a network system via social media interfaces
CN110138779B (en) Hadoop platform safety management and control method based on multi-protocol reverse proxy
US11026087B2 (en) Systems and methods for provisioning user devices using a zero touch configuration proxy
CN112187532A (en) Node control method and system
CN109417548A (en) High efficiency of transmission of the packaged media flow in the transport layer based on datagram
CN111064742A (en) Method, device and related equipment for realizing intranet access based on network agent
CN102546331B (en) Method and device for transmitting service information
KR102051839B1 (en) Methods for processing a message in M2M system and Apparatuses thereof
CN113328896B (en) Configuration method of network equipment and related device
CN103475491A (en) Remote maintenance system which is logged in to safely without code and achieving method
CN112217845B (en) Data transmission method based on Netconf protocol and related equipment
CN114025005B (en) Data communication method, system, electronic equipment and storage medium
EP4161116A1 (en) Method, apparatus and system for determining user plane security execution information
KR102092100B1 (en) Methods for processing M2M communication via public IP And Apparatuses thereof

Legal Events

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