CN113141390B - Netconf channel management method and device - Google Patents

Netconf channel management method and device Download PDF

Info

Publication number
CN113141390B
CN113141390B CN202110268206.2A CN202110268206A CN113141390B CN 113141390 B CN113141390 B CN 113141390B CN 202110268206 A CN202110268206 A CN 202110268206A CN 113141390 B CN113141390 B CN 113141390B
Authority
CN
China
Prior art keywords
netconf
request
channel
transmitting
channels
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
CN202110268206.2A
Other languages
Chinese (zh)
Other versions
CN113141390A (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.)
New H3C Technologies Co Ltd Hefei Branch
Original Assignee
New H3C Technologies Co Ltd Hefei Branch
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 New H3C Technologies Co Ltd Hefei Branch filed Critical New H3C Technologies Co Ltd Hefei Branch
Priority to CN202110268206.2A priority Critical patent/CN113141390B/en
Publication of CN113141390A publication Critical patent/CN113141390A/en
Application granted granted Critical
Publication of CN113141390B publication Critical patent/CN113141390B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a Netconf channel management method and a device, the method is applied to a Netconf client, the Netconf client is in CP equipment, and the method comprises the following steps: acquiring a Netconf request, wherein the Netconf request comprises a type mark; determining a Netconf channel for transmitting the Netconf request from a plurality of Netconf channels according to the type mark; sending the Netconf request to a Netconf server through the Netconf channel, wherein the Netconf server is in an UP device; wherein, multiple Netconf channels are established between the CP device and the UP device.

Description

Netconf channel management method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a Netconf channel management method and apparatus.
Background
In a service scenario of a new architecture of a transfer control separation, a channel based on a network configuration (Netconf) protocol needs to be established between a CP device and a UP device, so as to realize management of the CP device on the UP device.
In the prior art, the Netconf channel is similar to a lane in a road, which is a limited system resource, and a fine management control mechanism is needed to manage the Netconf channel, so that the capability of the Netconf channel is exerted more efficiently.
Currently, some manufacturers classify the Netconf channels according to the RPC operation type, and initially realize the management mechanism of the Netconf channels,
the Netconf channel management mechanism performs fixed planning on the division and resource allocation of the Netconf channel, and cannot perform dynamic adjustment in the service operation process, so that part of Netconf channel resources are wasted, and the utilization rate is low.
Disclosure of Invention
In view of this, the present application provides a Netconf channel management method and apparatus, so as to solve the problems that, in the existing service operation process, the Netconf channel cannot be dynamically adjusted, so that part of Netconf channel resources are wasted, and the utilization rate is low.
In a first aspect, the present application provides a Netconf channel management method, where the method is applied to a Netconf client, where the Netconf client is in a CP device, and the method includes:
acquiring a first Netconf request, wherein the Netconf request comprises a type mark;
determining a Netconf channel for transmitting the Netconf request from a plurality of Netconf channels according to the type mark;
sending the Netconf request to a Netconf server through the Netconf channel, wherein the Netconf server is in an UP device;
wherein, multiple Netconf channels are established between the CP device and the UP device.
In a second aspect, the present application provides a Netconf channel management apparatus, where the apparatus is applied to a Netconf client, and the Netconf client is in a CP device, and the apparatus includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a Netconf request which comprises a type mark;
a determining unit, configured to determine, according to the type flag, a Netconf channel used for transmitting the Netconf request from multiple Netconf channels;
a sending unit, configured to send the Netconf request to a Netconf server through the Netconf channel, where the Netconf server is in an UP device;
wherein, multiple Netconf channels are established between the CP device and the UP device.
In a third aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.
Therefore, by applying the Netconf channel management method and device provided by the application, the Netconf client in the CP device acquires a Netconf request, and the Netconf request includes a type flag. According to the type mark, the Netconf client determines a Netconf channel for transmitting the Netconf request from the plurality of Netconf channels. Through the Netconf channel, the Netconf client sends a Netconf request to the Netconf server, which is in the UP device. Wherein, multiple Netconf channels are established between the CP device and the UP device.
Thus, according to the type mark included in the Netconf request, the Netconf channel used for transmitting the Netconf request is determined from the plurality of Netconf channels. The problems that in the operation process of the existing service, the Netconf channel cannot be dynamically adjusted, so that part of Netconf channel resources are wasted, and the utilization rate is low are solved. The fine management mechanism for time-sharing and multiplexing of the Netconf channel is realized, and the utilization rate of the Netconf channel is improved.
Drawings
Fig. 1 is a flowchart of a Netconf channel management method provided in an embodiment of the present application;
FIG. 2 is a diagram showing the connection relationship between the CP device and the internal modules of the UP device;
fig. 3 is a structural diagram of a Netconf channel management apparatus according to an embodiment of the present application;
fig. 4 is a hardware structure of a network device according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The Netconf channel management method provided in the embodiments of the present application is described in detail below. Referring to fig. 1, fig. 1 is a flowchart of a Netconf channel management method provided in an embodiment of the present application. The method is applied to a Netconf client, and the Netconf channel method provided by the embodiment of the application can comprise the following steps.
Step 110, acquiring a Netconf request, wherein the Netconf request comprises a type mark.
Specifically, the Netconf client is in the CP device, and the Netconf server is in the UP device. Each service module in the CP equipment can send a Netconf request to a Netconf server through the Netconf client, and the Netconf server transmits the Netconf request to a corresponding service module in the UP equipment, thereby realizing the management of the CP equipment on the UP equipment.
As shown in fig. 2, fig. 2 is a connection relationship diagram of CP device and UP device internal modules. In fig. 2, the CP device and the UP device include a plurality of service modules, and the plurality of service modules are correspondingly configured in both the CP device and the UP device. For example, the CP device includes a Netconf client, an interface management module, a device management module, a traffic module, and the like. The UP device comprises a Netconf server terminal, an interface management module, a device management module, a service module and the like.
Further, before this step, the method also comprises a step that the CP device establishes at least one channel of Netconf protocol with the UP device according to a Netconf channel configuration command input by a user.
The user inputs a Netconf channel configuration command to the CP device, the Netconf channel configuration command including address information of the UP device, a port number included in the UP device, and authentication information.
After receiving a Netconf channel configuration instruction input by a user, the CP device acquires address information of the UP device, a port number included in the UP device, and authentication information from the Netconf channel configuration instruction. According to the address information of the UP device and the port number included by the UP device, the CP device sends a request for establishing Netconf channel connection to the UP device indicated by the address information of the UP device, wherein the connection request includes the port number of the UP device and authentication information. And after the UP equipment receives the request for establishing the Netconf channel connection, the authentication information is verified. And after the authentication is passed, the UP device establishes a Netconf channel with the CP device at the port indicated by the port number of the UP device.
It can be understood that the authentication information is specifically a user name and a password, and is used for CP device identity authentication. According to the actual networking environment, the CP device and the UP device can select the number of the Netconf channels to be established. In the embodiment of the present application, the CP device may choose to establish 4 Netconf channels with the UP device. For example, a Netconf channel is configured, a multiplexed Netconf channel, a subscribed Netconf channel, and a dynamic Netconf channel.
When each service module included in the CP device needs to perform service configuration, query and maintenance on the corresponding service module in the UP device, the service module generates a Netconf request, and the Netconf request comprises a type mark. The type flag is used to indicate the type of Netconf request. Wherein, the Netconf request includes a header that may embody the type flag.
The Netconf request is illustrated below by way of example:
in one example, when the type flag indicates that the Netconf request is a configuration type request, the Netconf request may specifically be an Edit-config request, specifically:
Figure BDA0002973123020000051
in one example, when the type flag indicates that the Netconf request is a query type request, the Netconf request may specifically be a Get request, specifically:
Figure BDA0002973123020000052
in one example, when the type flag indicates that the Netconf request is a subscription type request, for example, a subscription interface event, the Netconf request specifically includes:
event subscription class messages (subscription interface events),
Figure BDA0002973123020000061
in one example, when the type flag indicates that the Netconf request is a maintenance type request, for example, an interface active event, the Netconf request specifically includes:
Figure BDA0002973123020000062
and after the service module generates the Netconf request, transmitting the Netconf request to the Netconf client.
And step 120, determining a Netconf channel for transmitting the Netconf request from a plurality of Netconf channels according to the type mark.
Specifically, according to the description of step 110, after receiving the Netconf request, the Netconf client determines, according to the type flag, a Netconf channel for transmitting the Netconf request from a plurality of Netconf channels already established with the UP device.
Further, in one example, when the type flag indicates that the Netconf request is a configuration type request, the Netconf client determines whether the Netconf request is a bulk request.
If not, the Netconf client selects a configured Netconf channel from the plurality of Netconf channels as the Netconf channel for transmitting the Netconf request.
If so, the Netconf client decomposes the Netconf request according to the dependency independence strategy. And if the current state of the configured Netconf channel is the idle state, the Netconf client uses the configured Netconf channel as a Netconf channel for transmitting the decomposed Netconf request.
If the current state of the multiplexing Netconf channel is an idle state (no query type request exists in the current multiplexing Netconf channel), or if the CP device is in the non-maintenance mode, the Netconf client selects the multiplexing Netconf channel or the dynamic Netconf channel as the Netconf channel for transmitting the decomposed Netconf request.
In the embodiment of the application, when the multiplexing Netconf channel is idle or the CP device is in a non-maintenance mode, the Netconf client selects the multiplexing Netconf channel or the dynamic Netconf channel to carry a part of the configuration request, and sends the part of the configuration request to the UP device, so that a fine management mechanism for time-sharing and multiplexing of the Netconf channel is realized, and the utilization rate of the Netconf channel is improved.
It should be noted that, the Netconf request may include a plurality of configuration instructions, and in the process of performing decomposition processing on the Netconf request by the Netconf client according to the dependency independence policy, the Netconf client acquires the Netconf request having a service dependency relationship from the plurality of configuration instructions. In the embodiment of the present application, having a service dependency relationship specifically means that a plurality of Netconf requests have a service dependency therebetween. For example, an IP address of the UP device is configured, and the IP address is a port attached to the UP device. In this way, the Netconf request for configuring the IP address and the Netconf request for configuring the port have a service dependency relationship, and the IP service depends on the interface service.
And after acquiring the Netconf request with the service dependency relationship, the Netconf client binds the Netconf request with the service dependency relationship, so that the Netconf request with the service dependency relationship is distributed to the same Netconf channel. For example, the Netconf request includes configuration 1, configuration 2, configuration 3, configuration. The configuration 2 and the configuration 3 are configurations with a service dependency relationship, and the Netconf client binds the configuration 2 and the configuration 3 to form a configuration 2'. And the Netconf client stores the configuration 1, the configuration 2' and the configuration 3 in a transmission queue in sequence and waits for transmission through a corresponding Netconf channel.
At this time, the transmission queue includes 3 configurations to be transmitted, i.e., configuration 1, configuration 2', and configuration 3. And the Netconf client identifies the current state of the currently configured Netconf channel, and if the current state of the configured Netconf channel is in an idle state, the Netconf client takes the configured Netconf channel as the Netconf channel for transmitting the configuration 1.
And the configuration 1 is popped from the sending queue and sent to a Netconf server through a configured Netconf channel. The Netconf client identifies the current state of the currently multiplexed Netconf channel, or, alternatively, the current state of the CP device. If the current state of the multiplexing Netconf channel is an idle state, or if the CP device is in a non-maintenance mode, the Netconf client selects the multiplexing Netconf channel or the dynamic Netconf channel as the Netconf channel for the transmission configuration 2.
In another example, when the type flag indicates that the Netconf request is a query type request, the Netconf client selects a multiplexed Netconf channel from the plurality of Netconf channels as the Netconf channel for transmitting the Netconf request.
In another example, when the type flag indicates that the Netconf request is a subscription type request, the Netconf client selects a subscription Netconf channel from the plurality of Netconf channels as the Netconf channel for transmitting the Netconf request.
In another example, when the type flag indicates that the Netconf request is a maintenance type request, then the Netconf client initiates a maintenance mode. From the plurality of Netconf channels, the Netconf client selects a dynamic Netconf channel as the Netconf channel for transmitting the Netconf request.
When the CP equipment fails or the CP equipment eliminates the failure, the Netconf client starts a maintenance mode and sends a maintenance type request to the Netconf server through a dynamic Netconf channel.
In the embodiment of the present application, the function and the action of each Netconf channel established between the CP device and the UP device are different, and each Netconf channel is briefly described below. Specifically, the following table 1 shows.
TABLE 1 function and Effect of various Netconf channels
Figure BDA0002973123020000091
Figure BDA0002973123020000101
Step 130, sending the first Netconf request to a Netconf server through the first Netconf channel, wherein the Netconf server is in an UP device.
Specifically, according to the description of step 120, after determining a first Netconf channel for transmitting a first Netconf request from among multiple Netconf channels, the Netconf client sends the first Netconf request to the Netconf server through the determined first Netconf channel.
And after receiving the first Netconf request, the Netconf server forwards the first Netconf request to the corresponding service module.
Therefore, by applying the Netconf channel management method and device provided by the application, the Netconf client in the CP device obtains the first Netconf request, and the first Netconf request includes the type flag. According to the type mark, from the plurality of Netconf channels, the Netconf client determines a first Netconf channel for transmitting a first Netconf request. Through the first Netconf channel, the Netconf client sends a first Netconf request to the Netconf server, which is in the UP device. Wherein, multiple Netconf channels are established between the CP device and the UP device.
Thus, according to the type mark included in the Netconf request, the Netconf channel used for transmitting the Netconf request is determined from the plurality of Netconf channels. The problems that in the operation process of the existing service, the Netconf channel cannot be dynamically adjusted, so that part of Netconf channel resources are wasted, and the utilization rate is low are solved. The fine management mechanism for time-sharing and multiplexing of the Netconf channel is realized, and the utilization rate of the Netconf channel is improved.
Based on the same inventive concept, the embodiment of the application also provides a Netconf channel management device corresponding to the Netconf channel management method. Referring to fig. 3, fig. 3 is a structural diagram of a Netconf channel management device according to an embodiment of the present application. The device is applied to a Netconf client, wherein the Netconf client is in a CP device, and the device comprises:
an obtaining unit 310, configured to obtain a Netconf request, where the Netconf request includes a type flag;
a determining unit 320, configured to determine, according to the type flag, a Netconf channel used for transmitting the Netconf request from multiple Netconf channels;
a sending unit 330, configured to send the Netconf request to a Netconf server through the Netconf channel, where the Netconf server is in an UP device;
wherein, multiple Netconf channels are established between the CP device and the UP device.
Optionally, the apparatus further comprises: a receiving unit (not shown in the figure) for receiving a Netconf channel configuration instruction input by a user, wherein the Netconf channel configuration instruction comprises address information of the UP device, a port number included in the UP device and authentication information;
and a establishing unit (not shown in the figure) configured to establish at least one Netconf channel with the UP device according to the address information of the UP device, the port number included in the UP device, and the authentication information.
Optionally, the determining unit 320 is specifically configured to, when the type flag indicates that the Netconf request is a configuration type request, determine whether the Netconf request is a batch request;
and if not, selecting and configuring a Netconf channel from the plurality of Netconf channels as the Netconf channel for transmitting the Netconf request.
Optionally, the determining unit 320 is further specifically configured to, if yes, perform decomposition processing on the Netconf request according to a dependency-independence policy;
if the current state of the configured Netconf channel is an idle state, taking the configured Netconf channel as a Netconf channel for transmitting the Netconf request after decomposition processing;
and if the current state of the multiplexing Netconf channel is an idle state, or if the CP device is in a non-maintenance mode, selecting the multiplexing Netconf channel or the dynamic Netconf channel as the Netconf channel for transmitting the Netconf request after the decomposition processing.
Optionally, the determining unit 320 is specifically configured to, when the type flag indicates that the Netconf request is an inquiry type request, select, from the multiple Netconf channels, a multiplexing Netconf channel as a Netconf channel used for transmitting the Netconf request.
Optionally, the determining unit 320 is specifically configured to, when the type flag indicates that the Netconf request is a subscription type request, select a subscription Netconf channel from the multiple Netconf channels as a Netconf channel for transmitting the Netconf request.
Optionally, the determining unit 320 is specifically configured to, when the type flag indicates that the Netconf request is a maintenance type request, start a maintenance mode;
from among the plurality of Netconf channels, a dynamic Netconf channel is selected as the Netconf channel for transmitting the Netconf request.
Therefore, by applying the Netconf channel management apparatus provided in the present application, the Netconf client in the CP device obtains a Netconf request, which includes a type flag. According to the type mark, the Netconf client determines a Netconf channel for transmitting the Netconf request from the plurality of Netconf channels. Through the Netconf channel, the Netconf client sends a Netconf request to the Netconf server, which is in the UP device. Wherein, multiple Netconf channels are established between the CP device and the UP device.
Thus, according to the type mark included in the Netconf request, the Netconf channel used for transmitting the Netconf request is determined from the plurality of Netconf channels. The problems that in the operation process of the existing service, the Netconf channel cannot be dynamically adjusted, so that part of Netconf channel resources are wasted, and the utilization rate is low are solved. The fine management mechanism for time-sharing and multiplexing of the Netconf channel is realized, and the utilization rate of the Netconf channel is improved.
Based on the same inventive concept, the present application further provides a network device, as shown in fig. 4, including a processor 410, a transceiver 420, and a machine-readable storage medium 430, where the machine-readable storage medium 430 stores machine-executable instructions capable of being executed by the processor 410, and the processor 410 is caused by the machine-executable instructions to perform the Netconf channel management method provided in the present application. The Netconf channel management apparatus shown in fig. 3 can be implemented by using a hardware structure of a network device shown in fig. 4.
The computer-readable storage medium 430 may include a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as at least one disk Memory. Alternatively, the computer-readable storage medium 430 may also be at least one memory device located remotely from the processor 410.
The Processor 410 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the embodiment of the present application, the processor 410 is caused by machine executable instructions by reading the machine executable instructions stored in the machine readable storage medium 430, so as to enable the processor 410 itself and the call transceiver 420 to execute the Netconf channel management method described in the foregoing embodiment of the present application.
Additionally, embodiments of the present application provide a machine-readable storage medium 430, where the machine-readable storage medium 430 stores machine-executable instructions that, when invoked and executed by the processor 410, cause the processor 410 itself and the invoking transceiver 420 to perform the Netconf channel management methods described in embodiments of the present application.
The specific details of the implementation process of the functions and actions of each unit in the above device are the implementation processes of the corresponding steps in the above method, and are not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As for the Netconf channel management device and the machine-readable storage medium embodiment, since the content of the related method is basically similar to that of the foregoing method embodiment, the description is relatively simple, and relevant points can be referred to the partial description of the method embodiment.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A Netconf channel management method, applied to a Netconf client, the Netconf client being in a CP device, the method comprising:
acquiring a Netconf request, wherein the Netconf request comprises a type mark;
determining a Netconf channel for transmitting the Netconf request from a plurality of Netconf channels according to the type mark;
sending the Netconf request to a Netconf server through the Netconf channel, wherein the Netconf server is in an UP device;
wherein, a plurality of Netconf channels are established between the CP device and the UP device;
the determining, according to the type flag, a Netconf channel used for transmitting the Netconf request from among a plurality of Netconf channels specifically includes:
when the type mark indicates that the Netconf request is a configuration type request, judging whether the Netconf request is a batch request;
if not, selecting a configured Netconf channel from a plurality of Netconf channels as a Netconf channel for transmitting the Netconf request;
if so, decomposing the Netconf request according to a dependency policy;
if the current state of the configured Netconf channel is an idle state, taking the configured Netconf channel as a Netconf channel for transmitting the decomposed Netconf request;
and if the current state of the multiplexing Netconf channel is an idle state, or if the CP equipment is in a non-maintenance mode, selecting the multiplexing Netconf channel or the dynamic Netconf channel as the Netconf channel for transmitting the Netconf request after the decomposition processing.
2. The method of claim 1, wherein prior to the obtaining the Netconf request, the method further comprises:
receiving a Netconf channel configuration instruction input by a user, wherein the Netconf channel configuration instruction comprises address information of the UP device, a port number included by the UP device and authentication information;
and establishing at least one Netconf channel with the UP equipment according to the address information of the UP equipment, the port number and the authentication information which are included in the UP equipment.
3. The method according to claim 1, wherein the determining, according to the type flag, a Netconf channel for transmitting the Netconf request from among a plurality of Netconf channels specifically includes:
and when the type mark indicates that the Netconf request is a query type request, selecting a multiplexing Netconf channel from a plurality of Netconf channels as the Netconf channel for transmitting the Netconf request.
4. The method according to claim 1, wherein the determining, according to the type flag, a Netconf channel for transmitting the Netconf request from among a plurality of Netconf channels specifically includes:
and when the type mark indicates that the Netconf request is a subscription type request, selecting a subscription Netconf channel from a plurality of Netconf channels as a Netconf channel for transmitting the Netconf request.
5. The method according to claim 1, wherein the determining, according to the type flag, a Netconf channel for transmitting the Netconf request from among a plurality of Netconf channels specifically includes:
when the type mark indicates that the Netconf request is a maintenance type request, starting a maintenance mode;
from among the plurality of Netconf channels, a dynamic Netconf channel is selected as the Netconf channel for transmitting the Netconf request.
6. A Netconf channel management apparatus, which is applied to a Netconf client in a CP device, and comprises:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a Netconf request which comprises a type mark;
a determining unit, configured to determine, according to the type flag, a Netconf channel used for transmitting the Netconf request from multiple Netconf channels;
a sending unit, configured to send the Netconf request to a Netconf server through the Netconf channel, where the Netconf server is in an UP device;
wherein, a plurality of Netconf channels are established between the CP equipment and the UP equipment;
the determining unit is specifically configured to, when the type flag indicates that the Netconf request is a configuration type request, determine whether the Netconf request is a batch request;
if not, selecting a configured Netconf channel from a plurality of Netconf channels as a Netconf channel for transmitting the Netconf request;
if so, decomposing the Netconf request according to a dependency policy;
if the current state of the configured Netconf channel is an idle state, taking the configured Netconf channel as a Netconf channel for transmitting the Netconf request after decomposition processing;
and if the current state of the multiplexing Netconf channel is an idle state, or if the CP device is in a non-maintenance mode, selecting the multiplexing Netconf channel or the dynamic Netconf channel as the Netconf channel for transmitting the Netconf request after the decomposition processing.
7. The apparatus of claim 6, further comprising:
a receiving unit, configured to receive a Netconf channel configuration instruction input by a user, where the Netconf channel configuration instruction includes address information of the UP device, a port number included in the UP device, and authentication information;
and the establishing unit is used for establishing at least one Netconf channel with the UP equipment according to the address information of the UP equipment, the port number and the authentication information which are included by the UP equipment.
8. The apparatus according to claim 6, wherein the determining unit is specifically configured to, when the type flag indicates that the Netconf request is a query type request, select a multiplexed Netconf channel from a plurality of Netconf channels as the Netconf channel for transmitting the Netconf request.
9. The apparatus according to claim 6, wherein the determining unit is specifically configured to, when the type flag indicates that the Netconf request is a subscription type request, select a subscription Netconf channel from among multiple Netconf channels as the Netconf channel for transmitting the Netconf request.
10. The apparatus according to claim 6, wherein the determining unit is specifically configured to, when the type flag indicates that the Netconf request is a maintenance type request, start a maintenance mode;
from among the plurality of Netconf channels, a dynamic Netconf channel is selected as the Netconf channel for transmitting the Netconf request.
CN202110268206.2A 2021-03-11 2021-03-11 Netconf channel management method and device Active CN113141390B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110268206.2A CN113141390B (en) 2021-03-11 2021-03-11 Netconf channel management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110268206.2A CN113141390B (en) 2021-03-11 2021-03-11 Netconf channel management method and device

Publications (2)

Publication Number Publication Date
CN113141390A CN113141390A (en) 2021-07-20
CN113141390B true CN113141390B (en) 2022-05-27

Family

ID=76811037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110268206.2A Active CN113141390B (en) 2021-03-11 2021-03-11 Netconf channel management method and device

Country Status (1)

Country Link
CN (1) CN113141390B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113794583B (en) * 2021-08-15 2023-12-29 新华三信息安全技术有限公司 Configuration method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790986A (en) * 2014-12-23 2016-07-20 中兴通讯股份有限公司 Method, apparatus and system for managing optical network unit DPU device
CN109040178A (en) * 2018-06-22 2018-12-18 北京星网锐捷网络技术有限公司 Configuration information transmitting method and device
CN111355601A (en) * 2018-12-21 2020-06-30 华为技术有限公司 Information transmission method and device
CN112217845A (en) * 2019-07-09 2021-01-12 华为技术有限公司 Data transmission method based on Netconf protocol and related equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790986A (en) * 2014-12-23 2016-07-20 中兴通讯股份有限公司 Method, apparatus and system for managing optical network unit DPU device
CN109040178A (en) * 2018-06-22 2018-12-18 北京星网锐捷网络技术有限公司 Configuration information transmitting method and device
CN111355601A (en) * 2018-12-21 2020-06-30 华为技术有限公司 Information transmission method and device
CN112217845A (en) * 2019-07-09 2021-01-12 华为技术有限公司 Data transmission method based on Netconf protocol and related equipment

Also Published As

Publication number Publication date
CN113141390A (en) 2021-07-20

Similar Documents

Publication Publication Date Title
EP3648401B1 (en) Method, device, and computer readable storage medium for managing network slice
EP3675549B1 (en) Network slice management method, device and system
JP2020511083A (en) Service quality control method and device, SMF, UPF, UE, PCF and AN
US9693092B2 (en) Method and system for transmitting network video
CN110958281B (en) Data transmission method and communication device based on Internet of things
CN109842895B (en) Network reliability configuration method, information transmission method, device and system
US11251981B2 (en) Communication method and apparatus
CN106657259B (en) Routing server and routing service method for server cluster
CN113014528A (en) Message processing method, processing unit and virtual private network server
CN106970843B (en) Remote calling method and device
US20010010061A1 (en) Communication system, communication method, gateway apparatus, and client
CN110995829B (en) Instance calling method and device and computer storage medium
CN113141390B (en) Netconf channel management method and device
CN116633934A (en) Load balancing method, device, node and storage medium
CN111506443A (en) Service calling method, device, equipment and storage medium
CN112491951A (en) Request processing method, server and storage medium in peer-to-peer network
CN112968965A (en) Metadata service method, server and storage medium for NFV network node
WO2022260330A1 (en) Improvements in and relating to multi-access edge computing
CN116633852A (en) Data transmission method, system and electronic equipment
EP3723393A1 (en) Method, device and system for transmitting multicast group information
CN113660121B (en) Information management method and device based on distributed system and computer storage medium
US20230385161A1 (en) Network nodes and methods therein for providing backup network function
WO2019067892A1 (en) Service registration based on service capabilities requirements and preferences
US20230081774A1 (en) Method and Network Node for QoS Notification
CN115915289A (en) Method, device, network element and medium for determining strategy or allocating resources of computing task

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