Summary of the invention
The embodiment of the invention provides a kind of network collocating method, client, server and communication system, in order to improve the allocative efficiency of affected configuration operation return data mode.
The embodiment of the invention provides a kind of network collocating method, comprising:
Receive the control default data echo plex mode capability identifier that network configuration server is sent, increase a parameter in the said control default data echo plex mode capability identifier to show the operation name of at least one affected configuration operation that said network configuration server is supported;
For said affected configuration operation is provided with the default data echo plex mode;
Send the default data echo plex mode of said setting to said network configuration server.
The embodiment of the invention also provides another kind of network collocating method, comprising:
Send control default data echo plex mode capability identifier to the network configuration client, increase a parameter in the said control default data echo plex mode capability identifier to show the operation name of at least one affected configuration operation that said network configuration server is supported;
Receiving said network configuration client is the default data echo plex mode that said affected configuration operation is provided with according to said control default data echo plex mode capability identifier;
To with the relevant default data of said affected configuration operation, carry out the corresponding return of default data echo plex mode with said setting.
The embodiment of the invention also provides a kind of network configuration client, comprising:
The ability information receiver module; Be used to receive the control default data echo plex mode capability identifier that network configuration server is sent, increase a parameter in the said control default data echo plex mode capability identifier to show the operation name of at least one affected configuration operation that said network configuration server is supported;
The default data echo plex mode is provided with module, and the said control default data echo plex mode capability identifier that is used for sending according to said network configuration server is that said affected configuration operation is provided with the default data echo plex mode;
Information sending module is set; Be used for sending the default data echo plex mode of said setting to said network configuration server; For said network configuration server pair and the relevant default data of said affected configuration operation, carry out the corresponding return of default data echo plex mode with said setting.
The embodiment of the invention also provides a kind of network configuration server, comprising:
The ability information sending module; Be used for sending control default data echo plex mode capability identifier, increase a parameter in the said control default data echo plex mode capability identifier to show the operation name of at least one affected configuration operation that said network configuration server is supported to the network configuration client;
Information receiving module is set, and being used to receive said network configuration client is the default data echo plex mode that said affected configuration operation is provided with according to said control default data echo plex mode capability identifier;
Default data is returned Executive Module, be used for to the relevant default data of said affected configuration operation, carry out the corresponding return of default data echo plex mode with said setting.
The embodiment of the invention also provides a kind of communication system, comprising:
Network configuration server and network configuration client;
Said network configuration server comprises: the ability information sending module; Be used for sending control default data echo plex mode capability identifier, increase a parameter in the said control default data echo plex mode capability identifier to show the operation name of at least one affected configuration operation that said network configuration server is supported to said network configuration client; Information receiving module is set, and being used to receive said network configuration client is the default data echo plex mode that said affected configuration operation is provided with according to said control default data echo plex mode capability identifier; Default data is returned Executive Module, be used for to the relevant default data of said affected configuration operation, carry out the corresponding return of default data echo plex mode with said setting;
Said network configuration client comprises: the ability information receiver module; Be used to receive the control default data echo plex mode capability identifier that said network configuration server is sent, increase a parameter in the said control default data echo plex mode capability identifier to show the operation name of at least one affected configuration operation that said network configuration server is supported; The default data echo plex mode is provided with module, and the said control default data echo plex mode capability identifier that is used for sending according to said network configuration server is that said affected configuration operation is provided with the default data echo plex mode; Information sending module is set; Be used for sending the default data echo plex mode of said setting to said network configuration server; For said network configuration server pair and the relevant default data of said affected configuration operation, carry out the corresponding return of default data echo plex mode with said setting.
The embodiment of the invention is sent the ability information of self supporting through network configuration server to the network configuration client; Improve the network configuration client and obtained promptness and the accuracy of the affected configuration operation information that network configuration server supports; Thereby obviously to have improved the network configuration client be the affected configuration operation that network configuration clothes device is supported, the efficient of allocating default data echo plex mode.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not paying the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The network collocating method flow chart that Fig. 1 provides for first embodiment of the invention.The present embodiment executive agent is the network configuration client, promptly from the network configuration client-side, the technical scheme of network collocating method of the present invention is described.As shown in Figure 1, the present embodiment network collocating method comprises:
The ability information that step 11, reception network configuration server are sent, this ability information comprises at least one affected configuration operation (Affected operations) information that network configuration server is supported.
" affected configuration operation " is in this step: the network configuration client can be controlled the operation of its default data echo plex mode; Wherein, default data is meant the configuration data that acquiescence numerical value is filled, like: http port numbers 80 etc.Default data can comprise default data that is provided with by the network configuration client and the default data that is provided with by network configuration server.
In practical application, in the configuration operation that network configuration server is supported, which configuration operation is affected configuration operation, can also can be defined voluntarily by each equipment vendors by the normal structure definition.In this step, network configuration server can be with the one or more affected configuration operation information informing network configuration client end of self supporting.
Step 12, the default data echo plex mode is set for above-mentioned affected configuration operation.
For ease of communication, the default data echo plex mode that affected configuration operation is corresponding can be specified when initiating this affected configuration operation by the network configuration client according to actual needs.It is unrestricted that the network configuration client is initiated concrete opportunity of affected configuration operation.The default data echo plex mode can comprise: return all default data, do not return any default data, only return the default data of network configuration client setting and only return default data that network configuration server is provided with etc.Different configuration operations can corresponding different default data echo plex mode, and the network configuration client can be confirmed the echo plex mode of the default data relevant with affected configuration operation according to actual needs.
The network configuration client illustrates: if can be passed through other modes; As consult the default data that relevant documentation can obtain affected configuration operation; Under this situation; The network configuration client does not need the default data of this configuration operation of network configuration server feedback, can be set to " not returning any default data " by the corresponding default data echo plex mode of this affected configuration operation; And if the network configuration client must be obtained the default data of affected configuration operation, then can the corresponding default data echo plex mode of this affected configuration operation be set to " returning all default data " etc.
From the angle of configuration operation type, different configuration operations can corresponding different default data echo plex mode, for example: with the corresponding default data echo plex mode of default action A1 B1, with the corresponding default data echo plex mode of default action A2 B2.
Different time from the configuration operation use; Identical configuration operation constantly also can corresponding different default data echo plex modes in difference; For example: in the network configuration client for the first time when network configuration server is sent default action A1; It is B1 that the corresponding default data echo plex mode of default action A1 is set, and in the network configuration client for the second time when network configuration server is sent default action A1, it is B2 etc. that the corresponding default data echo plex mode of default action A1 is set.
Step 13, send the default data echo plex mode of said setting, carry out the corresponding return of default data echo plex mode with above-mentioned setting for the network configuration server pair default data relevant with affected configuration operation to network configuration server.
The network configuration client sends to network configuration server with the default data echo plex mode that is provided with; Can be when the above-mentioned affected configuration operation of initiating that network configuration server supports like: network configuration client; The operation name of affected configuration operation and the default data echo plex mode of setting are sent to network configuration server, and network configuration server is then carried out corresponding default data return.For example: the data mode of network configuration client setting is: return all default data, do not return any default data, only return the default data of network configuration client setting or only return default data that network configuration server is provided with etc.Network configuration server is according to the default data echo plex mode of network configuration, returns all default data accordingly, do not return any default data, only returns the default data of network configuration client setting or only returns default data that network configuration server is provided with etc.
On the basis of technique scheme; Also can comprise the default data echo plex mode that network configuration server self is supported in the ability information that network configuration server is sent; Under this situation; Default data echo plex mode and actual needs that the network configuration client can combine network configuration server to support; For the affected configuration operation of network configuration server support is provided with the default data echo plex mode, obtains the support of network configuration server self-ability with the default data echo plex mode of guaranteeing to be provided with, thereby help guaranteeing the proper communication between network configuration client and the network configuration server.
Present embodiment is through receiving the ability information that network configuration server self is supported; Make the network configuration client need not consult relevant documentation; Can obtain the affected configuration operation information that network configuration server is supported; For can not or the network configuration client of inconvenience inquiry document the new obtain manner of affected configuration operation information is provided; Therefore improve the network configuration client and obtained the promptness and the accuracy of the affected configuration operation information that network configuration server supports; And saved to confirming whether configuration operation is the resource overhead that affected configuration operation needs the inquiry respective document, thereby obviously to have improved the network configuration client be the affected configuration operation of network configuration clothes device support, the efficient of allocating default data echo plex mode.
The network collocating method flow chart that Fig. 2 provides for second embodiment of the invention.Be that with the difference of the corresponding embodiment of Fig. 1 the present embodiment executive agent is a network configuration server,, the technical scheme of network collocating method of the present invention be described promptly from the network configuration server side.As shown in Figure 2, the present embodiment network collocating method comprises:
Step 21, to network configuration client transmitting capacity information, at least one affected configuration operation information that aforementioned capabilities packets of information includes network configuration server is supported.
Network configuration server can send to the network configuration client with the one or more affected configuration operation name of self supporting.Optional; Network configuration server also can be carried at the default data echo plex mode information of self supporting in the aforementioned capabilities information; Send to the network configuration client; So that the network configuration client is in the limit of power that network configuration server self is supported, for the affected configuration operation of network configuration server support is provided with corresponding default data echo plex mode.
Step 22, reception network configuration client are the default data echo plex mode that above-mentioned affected configuration operation is provided with according to aforementioned capabilities information.
The network configuration client is the implementation of the default data echo plex mode that is provided with of above-mentioned affected configuration operation according to aforementioned capabilities information, can see the record of step 12 and step 13 among the corresponding embodiment of Fig. 1 for details, repeats no more.
Step 23, to the relevant default data of above-mentioned affected configuration operation, carry out and the corresponding return of default data echo plex mode that is provided with.
The network configuration client sends to network configuration server with the default data echo plex mode that is provided with; As: the network configuration client can be when initiating operation; The default data echo plex mode of configuration operation name and setting is sent to network configuration server, and network configuration server is then carried out corresponding default data return.The data mode of network configuration client setting can comprise: return all default data, do not return any default data, only return the default data of network configuration client setting and only return default data that network configuration server is provided with etc.Network configuration server is according to the default data echo plex mode of network configuration, then correspondingly returns all default data, do not return any default data, only returns the default data of network configuration client setting or only returns default data that network configuration server is provided with etc.
Illustrate: if the network configuration client is " not returning any default data " to the default data echo plex mode that a certain affected configuration operation is provided with; Under this situation; When the network configuration client need be when the webserver sends this affected configuration operation; The default data echo plex mode (being assumed to be " not returning any default data ") that the network configuration client is provided with for this affected configuration operation is carried at and sends to network configuration server in the corresponding configuration operation request, and network configuration server is not sent any default data to the network configuration client.If the network configuration client is " returning all default data " to the default data echo plex mode that this affected configuration operation is provided with, network configuration server is then sent all default data relevant with this affected configuration operation to the network configuration client.
Present embodiment sends the ability information that includes the affected operation information of self supporting through network configuration server to the network configuration client; Improve the network configuration client and obtained promptness and the accuracy of the affected configuration operation information that network configuration server supports; Thereby obviously to have improved the network configuration client be the affected configuration operation that network configuration clothes device is supported, the efficient of allocating default data echo plex mode.
The application scenarios of the 3rd embodiment provided by the invention is: in the communication network of following the NETCONF agreement, the network configuration client is that the affected configuration operation that network configuration server self is supported is provided with the default data echo plex mode.NETCONF draft agreement (draft-ietf-netconf-with-defaults) is provided with three kinds of default data echo plex modes:
1, Report-all: network configuration server is returned all default data;
2, Trim: network configuration server is not returned any default data;
3, Explicit: network configuration server is only returned the default data that is provided with by the network configuration client.
The network configuration client can be carried out in the capability negotiation process at itself and network configuration server, and affected configuration operation is provided with a kind of in the above-mentioned default data echo plex mode.The network configuration client is not all can carry out the control of default data echo plex mode to all configuration operations, promptly be not all configuration operations all be affected configuration operation.
The network collocating method Signalling exchange figure that Fig. 3 provides for third embodiment of the invention.As shown in Figure 3, the present embodiment network collocating method comprises:
Step 31, network configuration client and network configuration server are set up the NETCONF session.
Step 32, network configuration server and network configuration client are carried out NETCONF capabilities exchange (capabilities exchange).
Step 321, network configuration client are sent the ability information of self supporting to network configuration server.
Step 322, network configuration server are sent the ability information of self supporting to the network configuration client.
There is not the restriction of sequential relationship between above-mentioned steps 321 and the step 322.In step 322; Network configuration server can be sent control default data echo plex mode capability identifier (below be called the with-defaults capability identifier) to the network configuration client; Carry the ability information of network configuration server in this with-defaults capability identifier, i.e. the operation name of the affected configuration operation that the default data echo plex mode of network configuration server self support and network configuration server are supported.Below be an example of with-defaults capability identifier:
urn:ietf:params:netconf:capability:with-defaults:1.0?basic=report-all&supported=trim:explicit&ops=ns1:op1,ns2:op2
In the above-mentioned example; Parameter " basic " is used to be illustrated under the situation that the network configuration client is not provided with the default data echo plex mode; The default data echo plex mode that network configuration server is first-selected; Be illustrated under the situation that the network configuration client is not provided with the default data echo plex mode like " basic=report-all ", the first-selected default data echo plex mode of network configuration server is " report-all: return all default data ".Parameter " supported " is used to represent to handle first-selected default data echo plex mode; Other default data echo plex modes that network configuration server is also supported, other default data echo plex modes of also supporting like " supported=trim:explicit " expression network configuration server comprise: " Trim: network configuration server is not returned any default data " and " Explicit: network configuration server is only returned the default data that is provided with by the network configuration client ".The information that above-mentioned parameter " basic " and parameter " supported " are carried is exactly all default data echo plex modes that network configuration server is supported, i.e. " report-all ", " trim " and " explicit ".
In order in the with-defaults capability identifier, to carry the affected configuration operation information that network configuration server is supported, can in the with-defaults capability identifier, increase a parameter to show the operation name of one or more affected configuration operations that network configuration server is supported.Utilize separator to separate between a plurality of operation names.The operation name can comprise naming domain part and local domain part, utilizes separator to separate between two parts.In the above-mentioned example, parameter " ops " is used to represent the affected operation name of network configuration server support.For ease of distinguishing the different operation name, can be with separating with comma between the different operating name; Each operation name comprises naming domain and local domain two parts, separates with colon between naming domain and the local domain.For example: in the above-mentioned example, the operation name of two affected configuration operations that " ops=ns1:op1, ns2:op2 " expression network configuration server is supported, i.e. " ns1:op1 " and " ns2:op2 ".
The operational phase that is configured between step 33, network configuration client and the network configuration server.The default data echo plex mode that affected configuration operation is corresponding is specified when initiating the above-mentioned affected configuration operation of network configuration server support by the network configuration client according to actual needs.
In the corresponding scene one of step 331 and step 332, mutual between network configuration client and the network configuration server.
Scene one: the operation name " ns1:op1 " of supposing affected configuration operation in step 32 example is " http://example.com/ops/1.0:get-if "; This configuration operation is represented maximum data packet (Maximum Transmission Unit the is called for short MTU) value of the transmission over networks of Returning equipment network interface.Operation name naming rule (naming domain: local domain) according to above-mentioned setting; In the operation name " http://example.com/ops/1.0:get-if "; " http://example.com/ops/1.0 " representes naming domain, and " get-if " representes local domain, and the two separates through ": ".
Step 331, network configuration client be to network configuration server transmit operation request, in this operation requests, carries operation name " http://example.com/ops/1.0:get-if " and be the default data echo plex mode " report-all " of this configuration operation setting.
Step 332, network configuration server are sent response message to the network configuration client; Because the default data echo plex mode of this setting of configuration operation " http://example.com/ops/1.0:get-if " is " report-all "; Therefore; Carry in this response message and this configuration operation corresponding all default data, i.e. the MTU value of device network interface (the acquiescence numerical value of supposing current MTU value is 1500).
In the corresponding scene two of step 333 and step 334, mutual between network configuration client and the network configuration server.
Scene two: suppose that network configuration client and network configuration server send the operation requests of the MTU value that is used to obtain the device network interface once more.Because the network configuration client has been obtained default data MTU value (1500), therefore, the default configuration data echo plex mode of network configuration client this configuration operation when initiating this operation is set to " trim ", promptly need not return any default data.
Step 333, network configuration client be to network configuration server transmit operation request, in this operation requests, carries operation name " http://example.com/ops/1.0 " and be the default data echo plex mode " trim " of this configuration operation setting.
Step 334, network configuration server are sent response message to the network configuration client; Because the default data echo plex mode of this setting of configuration operation " http://example.com/ops/1.0 " is " trim "; Therefore, do not carry in this response message and these configuration operation corresponding default data.
Step 34, network configuration client and network configuration server finish the NETCONF session.
Present embodiment carries out the stage of capabilities exchange in network configuration client and network configuration server; Network configuration server is given the network configuration client through the affected configuration operation name of its support of with-defaults capability identifier declaration; Therefore help the network configuration client and obtain the affected configuration operation that network configuration server is supported conveniently, accurately, obviously improved the efficient of the echo plex mode of control default data.
The network configuration client terminal structure sketch map that Fig. 4 provides for fourth embodiment of the invention.As shown in Figure 4, present embodiment network configuration client comprises: ability information receiver module 41, default data echo plex mode are provided with module 42 and information sending module 43 are set.
Ability information receiver module 41 is used to receive the ability information that network configuration server is sent, and aforementioned capabilities information comprises at least one affected configuration operation information that above-mentioned network configuration server is supported.
It is that above-mentioned affected configuration operation is provided with the default data echo plex mode that the default data echo plex mode is provided with the ability information that module 42 is used for sending according to network configuration server.
The default data echo plex mode that information sending module 43 is used for sending to above-mentioned network configuration server above-mentioned setting is set; For network configuration server pair and the relevant default data of above-mentioned affected configuration operation, carry out the corresponding return of default data echo plex mode with above-mentioned setting.
On the basis of technique scheme; When aforementioned capabilities information also comprises the default data echo plex mode of network configuration server support; The default data echo plex mode is provided with module 42 and also is used for the default data echo plex mode according to the network configuration server support, for above-mentioned affected configuration operation is provided with the default data echo plex mode.
Present embodiment is through receiving the ability information that network configuration server self is supported; Make the network configuration client need not consult relevant documentation; Can obtain the affected configuration operation information that network configuration server is supported; Therefore improve the network configuration client and obtained the promptness and the accuracy of the affected configuration operation information that network configuration server supports; And saved to confirming whether configuration operation is the resource overhead that affected configuration operation needs the inquiry respective document, thereby obviously to have improved the network configuration client be the affected configuration operation of network configuration clothes device support, the efficient of allocating default data echo plex mode.About the realization principle of present embodiment network configuration client can repeat no more referring to the record of Fig. 1 and the corresponding embodiment of Fig. 3.
The network configuration server structural representation that Fig. 5 provides for fifth embodiment of the invention.As shown in Figure 5, the present embodiment network configuration server comprises: ability information sending module 51, information receiving module 52 is set and default data is returned Executive Module 53.
Ability information sending module 51 is used for to network configuration client transmitting capacity information, at least one affected configuration operation information that aforementioned capabilities packets of information includes network configuration server is supported.Optional, ability information sending module 51 also can comprise the echo plex mode information of the default data that self supports in the ability information that the network configuration client is sent.
Information receiving module 52 is set, and to be used to receive the network configuration client be the default data echo plex mode that above-mentioned affected configuration operation is provided with according to aforementioned capabilities information.
Default data return Executive Module 53 be used for to the relevant default data of above-mentioned affected configuration operation, carry out the corresponding return of default data echo plex mode with above-mentioned setting.
Present embodiment sends the ability information of self supporting through network configuration server to the network configuration client; Improve the network configuration client and obtained promptness and the accuracy of the affected configuration operation information that network configuration server supports; Thereby obviously to have improved the network configuration client be the affected configuration operation that network configuration clothes device is supported, the efficient of allocating default data echo plex mode.About the realization principle of present embodiment network configuration server can repeat no more referring to the record of Fig. 2 and the corresponding embodiment of Fig. 3.
The communication system architecture sketch map that Fig. 6 provides for sixth embodiment of the invention.As shown in Figure 6, the present embodiment communication system comprises: network configuration server 61 and network configuration client 62.
Network configuration server 61 is used for to network configuration client 62 transmitting capacity information, at least one affected configuration operation information that aforementioned capabilities packets of information includes network configuration server 61 is supported; Receive the default data echo plex mode that network configuration client 62 is provided with; To with the relevant default data of above-mentioned affected configuration operation, carry out the corresponding return of default data echo plex mode with above-mentioned setting.
Network configuration client 62 is used to receive the ability information that network configuration server 61 is sent; The affected configuration operation that comprises for aforementioned capabilities information is provided with the default data echo plex mode; Send the default data echo plex mode of above-mentioned setting to network configuration server 61.
Present embodiment sends the ability information of self supporting through network configuration server to the network configuration client; Improve the network configuration client and obtained promptness and the accuracy of the affected configuration operation information that network configuration server supports; Thereby obviously to have improved the network configuration client be the affected configuration operation that network configuration clothes device is supported, the efficient of allocating default data echo plex mode.The further refinement functional module structure of present embodiment related network configuration client end can be referring to the record of the corresponding embodiment of Fig. 4; The further refinement functional module structure of related network configuration server can be referring to the record of the corresponding embodiment of Fig. 5; The operation principle of relevant each node and realize that alternately the principle of network configuration can repeat no more referring to the record of the corresponding embodiment of Fig. 1-Fig. 3.
One of ordinary skill in the art will appreciate that: accompanying drawing is the sketch map of an embodiment, and module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
One of ordinary skill in the art will appreciate that: the module in the device among the embodiment can be described according to embodiment and be distributed in the device of embodiment, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that previous embodiment is put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging embodiment of the invention technical scheme of relevant art scheme.