Differentiated services code point configuration method, device, equipment and medium

By carrying DSCP's hello packets when establishing a connection between the Netconf client and the server, the problem of low efficiency in differential service code point configuration after the Netconf server and the client is solved, and more efficient IP packet configuration is achieved.

CN115622955BActive Publication Date: 2024-11-26CHONGQING AOPUTAI COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211226253.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-09
Publication Date
2024-11-26
Estimated Expiration
2042-10-09

AI Technical Summary

Technical Problem

The existing differential service code point configuration method configures DSCP in IP packets through switches and other devices after establishing a session with the Netconf server and Netconf client, resulting in low configuration efficiency.

Method used

After the Netconf client establishes TCP and SSH connections with the Netconf server, the Netconf client sends hello packets carrying DSCP to the server. After completing the session creation, configure IP packets based on DSCP to improve configuration efficiency.

Benefits of technology

By carrying DSCP configuration IP packets during Netconf session creation, configuration efficiency is significantly improved, and the inefficiency problem of session establishment in the prior art is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115622955B_ABST
    Figure CN115622955B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus, device and medium for configuring a differential service code point. The method can be used to configure the differential service code point in the IP message transmitted between the Netconf client and the Netconf server such as a switch, a router, an OTN device, an SPTN device, a wavelength division device, and an IPRAN device. After the Netconf client and the Netconf server establish a transmission control protocol connection and a secure shell connection, the Netconf client sends a hello message carrying a differential service code point to the Netconf server, and then the Netconf server sends a response hello message to the Netconf client, completing the Netconf session creation, and then the Netconf client and the Netconf server create an IP message according to the differential service code point, which effectively improves the configuration efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a differential services code point configuration method, device, equipment and medium. Background Art

[0002] With the development of technology, when managing network devices such as routers, switches, OTN equipment, SPTN equipment, wavelength division equipment, and IPRAN equipment, the network configuration protocol (Netconf) is used for management. The network device acts as the Netconf server, the controller acts as the Netconf client, and the Netconf server and the Netconf client can communicate through Internet Protocol (IP) messages.

[0003] In the prior art, since there are many IP packets transmitted between different Netconf servers and different Netconf clients, there are relatively important IP packets. In order to reduce the transmission time of relatively important IP packets and prevent the loss of relatively important IP packets, the Differentiated Services Code Point (DSCP) can be configured in the IP packet. DSCP represents the transmission priority of the IP packet. The larger the DSCP value, the higher the corresponding transmission priority. For the configuration of DSCP, after the Netconf server establishes a Netconf session with the Netconf client and generates an IP packet, the DSCP in the IP packet is configured through a switch or other device.

[0004] In summary, the existing method for configuring the differentiated services code point configures the DSCP in the IP message through a switch or other device after the Netconf server establishes a Netconf session with the Netconf client and generates an IP message, resulting in low configuration efficiency. Summary of the invention

[0005] The embodiments of the present application provide a method, apparatus, device and medium for configuring a differentiated services code point, which are used to solve the problem that the existing differentiated services code point configuration method configures the DSCP in the IP message through a switch and other devices after a Netconf session is established between a Netconf server and a Netconf client and an IP message is generated, resulting in low configuration efficiency.

[0006] In a first aspect, an embodiment of the present application provides a method for configuring a differentiated service code point, which is applied to a network configuration protocol Netconf client, and the method includes:

[0007] Acquire a first differentiated service code point set by a user, where the first differentiated service code point is used to indicate a priority of transmitting an Internet protocol message between the Netconf client and the Netconf server;

[0008] After establishing a Transmission Control Protocol (TCP) connection and a Secure Shell (SSH) connection with a Netconf server, sending a first hello message to the Netconf server, where the first hello message includes the first Differentiated Services Code Point;

[0009] Receiving a second hello message returned by the Netconf server based on the first hello message;

[0010] A first Internet protocol message is generated and sent to the Netconf server, wherein a differential services code point of the first Internet protocol message is configured as the first differential services code point.

[0011] In a specific embodiment, the method further comprises:

[0012] In response to the user's operation of modifying the differentiated services code point, obtaining a second differentiated services code point set by the user;

[0013] Sending a remote procedure call (RPC) instruction to the Netconf server, wherein the RPC instruction includes the second differential services code point;

[0014] Receiving a remote procedure call response RPC-reply message returned by the Netconf server based on the RPC instruction;

[0015] A second Internet protocol message is generated and sent to the Netconf server, wherein a differential services code point of the second Internet protocol message is configured as the second differential services code point.

[0016] In a specific embodiment, the method further comprises:

[0017] receiving a notification message reported by the Netconf server, wherein the notification message includes a third differential service code point set by the user;

[0018] A third Internet protocol message is generated and sent to the Netconf server, wherein a differential services code point of the third Internet protocol message is configured as the third differential services code point.

[0019] In a second aspect, an embodiment of the present application provides a differential service code point configuration method, which is applied to a network configuration protocol Netconf server, and the method includes:

[0020] After establishing a transmission control protocol TCP connection and a secure shell SSH connection with a Netconf client, receiving a first hello message sent by the Netconf client, wherein the first hello message includes a first differential service code point set by a user, and the first differential service code point is used to indicate a priority of transmitting an Internet protocol message between the Netconf client and the Netconf server;

[0021] Based on the first hello message, return a second hello message to the Netconf client;

[0022] A fourth Internet protocol message is generated and sent to the Netconf client, wherein a differential services code point of the fourth Internet protocol message is configured as the first differential services code point.

[0023] In a specific embodiment, the method further comprises:

[0024] Receiving a remote procedure call (RPC) instruction sent by the Netconf client, wherein the RPC instruction includes a second differential service code point set by the user;

[0025] Based on the RPC instruction, return a remote procedure call response RPC-reply message to the Netconf client;

[0026] A fifth Internet Protocol message is generated and sent to the Netconf client, wherein a Differentiated Services Code Point of the fifth Internet Protocol message is configured as the second Differentiated Services Code Point.

[0027] In a specific embodiment, the method further comprises:

[0028] In response to the user's operation of modifying the differentiated services code point, obtaining a third differentiated services code point set by the user;

[0029] Reporting a notification message to the Netconf client, where the notification message includes the third differentiated service code point;

[0030] A sixth Internet Protocol message is generated and sent to the Netconf client, wherein a Differentiated Services Code Point of the sixth Internet Protocol message is configured as the third Differentiated Services Code Point.

[0031] In a third aspect, an embodiment of the present application provides a differential services code point configuration device, including:

[0032] An acquisition module, configured to acquire a first differential service code point set by a user, wherein the first differential service code point is used to indicate a priority of transmitting an Internet protocol message between the differential service code point configuration device and a Netconf server;

[0033] a sending module, configured to send a first hello message to the Netconf server after establishing a transmission control protocol TCP connection and a secure shell SSH connection with the Netconf server, wherein the first hello message includes the first differential service code point;

[0034] A receiving module, configured to receive a second hello message returned by the Netconf server based on the first hello message;

[0035] The processing module is used to generate a first Internet protocol message to be sent to the Netconf server, wherein the differential services code point of the first Internet protocol message is configured as the first differential services code point.

[0036] In a fourth aspect, an embodiment of the present application provides a differential services code point configuration device, including:

[0037] a receiving module, configured to receive a first hello message sent by the Netconf client after establishing a transmission control protocol TCP connection and a secure shell SSH connection with the Netconf client, wherein the first hello message includes a first differential service code point set by a user, and the first differential service code point is used to indicate a priority of transmitting an Internet protocol message between the Netconf client and the differential service code point configuration device;

[0038] A sending module, configured to return a second hello message to the Netconf client based on the first hello message;

[0039] A processing module is used for generating a fourth Internet protocol message sent to the Netconf client, wherein a differential services code point of the fourth Internet protocol message is configured as the first differential services code point.

[0040] In a fifth aspect, an embodiment of the present application provides a network configuration protocol Netconf client including:

[0041] Processor, memory, communication interface;

[0042] The memory is used to store executable instructions of the processor;

[0043] The processor is configured to execute the differentiated services code point configuration method described in any one of the first aspects by executing the executable instructions.

[0044] In a sixth aspect, an embodiment of the present application provides a network configuration protocol Netconf server, including:

[0045] Processor, memory, communication interface;

[0046] The memory is used to store executable instructions of the processor;

[0047] The processor is configured to execute the differentiated services code point configuration method described in any one of the second aspects by executing the executable instructions.

[0048] The differential services code point configuration method, device, equipment and medium provided in the embodiment of the present application, after the network configuration protocol (Netconf) client and the Netconf server establish a transmission control protocol (TCP) connection and a secure shell (SSH) connection, the Netconf client carries the DSCP when sending a hello message to the Netconf server, and then the Netconf server sends a response hello message to the Netconf client, completing the Netconf session creation, and then the Netconf client and the Netconf server create an Internet Protocol (IP) message according to the DSCP. This solution effectively improves the configuration efficiency by carrying the DSCP when the Netconf client sends a hello message to the Netconf server, and configuring the IP message according to the DSCP. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0050] Figure 1 A flowchart of a first embodiment of a differential services code point configuration method provided by the present application;

[0051] Figure 2A flowchart of Embodiment 2 of the method for configuring a differential services code point provided by the present application;

[0052] Figure 3 A flowchart of a third embodiment of the differential services code point configuration method provided by the present application;

[0053] Figure 4 A structural diagram of a first embodiment of a differential services code point configuration device provided by the present application;

[0054] Figure 5 A structural diagram of a second embodiment of a differential services code point configuration device provided by the present application;

[0055] Figure 6 A schematic diagram of the structure of a Netconf client provided for this application;

[0056] Figure 7 A schematic diagram of the structure of a Netconf server provided for this application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments made by ordinary technicians in this field under the enlightenment of the embodiments belong to the scope of protection of the present application.

[0058] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0059] With the rapid development of technology, the network configuration protocol (Netconf) server and the Netconf client can communicate through Internet Protocol (IP) messages.

[0060] Since there are many IP packets transmitted between different Netconf servers and different Netconf clients, and IP packets have different importance levels, for more important IP packets, in order to reduce the transmission time of more important IP packets and prevent the loss of more important IP packets, you can configure the Differentiated Services Code Point (DSCP) in the IP packet. DSCP represents the transmission priority of the IP packet. The larger the DSCP value, the higher the corresponding transmission priority. For the configuration of DSCP, after the Netconf server and the Netconf client establish a Netconf session, the DSCP in the IP packet is configured through switches and other devices, resulting in low configuration efficiency.

[0061] In view of the problems existing in the prior art, the inventors found in the process of studying the differential service code point configuration method that in order to create a Netconf session between the Netconf server and the Netconf client, it is necessary to first establish a Transmission Control Protocol (TCP) connection and a Secure Shell (SSH) connection, and then the Netconf client sends a hello message for negotiating capabilities to the Netconf server, and the Netconf server then sends a response hello message to the Netconf client to complete the creation of the Netconf session. Therefore, in order to improve the configuration efficiency, the DSCP can be carried in the hello message sent by the Netconf client to the Netconf server, so that after the Netconf session is created, the IP message can be configured according to the DSCP. Based on the above invention concept, the differential service code point configuration scheme in this application is designed.

[0062] The execution subjects of the differential service code point configuration method in this application are Netconf client and Netconf server. Netconf client can be a computer, or a terminal device, server, or other device used to manage Netconf server. Netconf server can be a router, or a network device such as a switch, wavelength division device, OTN device, SPTN device, IPRAN device, etc. This application does not limit Netconf client and Netconf server, and can be selected according to actual conditions.

[0063] The following describes the application scenario of the differential services code point configuration method provided in the embodiment of the present application.

[0064] Exemplarily, in this application scenario, a user sets the priority of an IP message transmitted between the Netconf client and a Netconf server in a Netconf client. That is, after setting the DSCP, during a Netconf session establishment between the Netconf client and the Netconf server, when the Netconf client sends a first hello message to the Netconf server, the DSCP set by the user is carried.

[0065] Then the Netconf server sends a second hello message to the Netconf client. After the Netconf session is established, when the Netconf client needs to generate an IP message to send to the Netconf server, the IP message is configured according to the DSCP set by the user, that is, the IP message is generated. Then when the Netconf client sends an IP message, the IP message is sent according to the DSCP, that is, if the Netconf client needs to send multiple IP messages, the IP message is sent according to the DSCP of each IP message. The larger the DSCP value, the higher the priority and the earlier it is sent.

[0066] When the Netconf server sends an IP packet, the IP packet is sent according to the DSCP. That is, if the Netconf server needs to send multiple IP packets, the IP packet is sent according to the DSCP of each IP packet. The larger the DSCP value, the higher the priority, and the higher the priority is.

[0067] It should be noted that the above scenario is only an example of an application scenario provided by an embodiment of the present application. The embodiment of the present application does not limit the actual form of the various devices included in the scenario, nor does it limit the interaction method between the devices. In the specific application of the solution, it can be set according to actual needs.

[0068] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0069] Figure 1This is a flowchart of the first embodiment of the differential services code point configuration method provided by the present application. In the process of establishing a Netconf session between the Netconf client and the Netconf server, the Netconf client sends a hello message with a DSCP set by the user to the Netconf server. After the Netconf session is established, the Netconf client and the Netconf server configure the IP message according to the DSCP. The method in this embodiment can be implemented by software, hardware, or a combination of software and hardware. Figure 1 As shown, the differential services code point configuration method specifically includes the following steps:

[0070] S101: The Netconf client obtains a first differential service code point set by a user.

[0071] The user can set the priority of the IP message transmitted between the Netconf client and a Netconf server in the Netconf client, that is, the differential service code point. The first differential service code point is used to indicate the priority of the Internet protocol message transmitted between the Netconf client and the Netconf server.

[0072] In this step, after the user sets the DSCP value with a Netconf server in the Netconf client, the Netconf client can obtain the first differential service code point set by the user, so as to carry the first differential service code point in the hello message later.

[0073] S102: After establishing a TCP connection and an SSH connection with the Netconf server, the Netconf client sends a first hello message to the Netconf server.

[0074] In this step, after the Netconf client obtains the first differential service code point, when it needs to establish a Netconf session with the Netconf server, the Netconf client and the Netconf server first establish a TCP connection and an SSH connection, and then send hello messages for capability negotiation to each other to complete the establishment of the Netconf session. Therefore, the Netconf client needs to send the first hello message to the Netconf server after establishing a TCP connection and an SSH connection with the Netconf server. The first hello message includes the first differential service code point set by the user.

[0075] Exemplarily, the content of the first hello message is:

[0076] <hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

[0077] <capabilities>

[0078] <capability> urn:ietf:params:netconf:base:1.0< / capability>

[0079] <capability> urn:ietf:params:netconf:base:1.1< / capability>

[0080] < / capabilities>

[0081] <quality-of-service>

[0082] <dscp> CS2< / dscp>

[0083] < / quality-of-service>

[0084]

[0085] in, <capabilities>Indicates that the following content is a set of Netconf protocol capability information of the Netconf client; <quality-of-service>Indicates that the following content is the differential service code point between the Netconf client and the Netconf server; <dscp> CS2< / dscp> Indicates the code corresponding to the Differentiated Services Code Point; CS2 indicates the first Differentiated Services Code Point set by the user.

[0086] It should be noted that the above example is only an example of the first hello message. The first differential service code point can also be 0, 2, 10, 50, 63, etc. The first differential service code point can also be represented by CS0, CS7, EF, AF11, AF12, etc. The embodiment of the present application does not limit the first differential service code point and the first hello message, and can be set according to actual conditions.

[0087] It should be noted that the Netconf server can be a router, or a switch, a wavelength division device, an OTN device, a SPTN device, an IPRAN device, or other network devices. This application does not limit the Netconf server, and it can be selected according to actual conditions.

[0088] S103: After establishing a TCP connection and an SSH connection with the Netconf client, the Netconf server receives a first hello message sent by the Netconf client.

[0089] S104: The Netconf server returns a second hello message to the Netconf client based on the first hello message.

[0090] In the above steps, after the Netconf server establishes a TCP connection and an SSH connection with the Netconf client, the Netconf client sends a first hello message to the Netconf server, and the Netconf server receives the first hello message. In order to establish a Netconf session and realize the transmission of IP messages, the Netconf server needs to return a second hello message to the Netconf client based on the first hello message.

[0091] Exemplarily, the content of the second hello message is:

[0092] <hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

[0093] <capabilities>

[0094] <capability> urn:ietf:params:netconf:base:1.0< / capability>

[0095] <capability> urn:ietf:params:netconf:base:1.1< / capability>

[0096] < / capabilities>

[0097] <session-id> 1< / session-id>

[0098] <quality-of-service>

[0099] <dscp> CS2< / dscp>

[0100] < / quality-of-service>

[0101]

[0102] in, <capabilities>Indicates that the following content is a collection of Netconf protocol capability information of the Netconf server. <session-id>The field indicates the session identifier assigned by the Netconf server to this session. <quality-of-service>Indicates that the following content is the differential service code point between the Netconf client and the Netconf server; <dscp> CS2< / dscp> Indicates the code corresponding to the Differentiated Services Code Point; CS2 indicates the first Differentiated Services Code Point set by the user.

[0103] It should be noted that the above example is only an example of the second hello message. The embodiment of the present application does not limit the second hello message and can be set according to actual conditions.

[0104] S105: After receiving the second hello message sent by the Netconf server, the Netconf client generates a first Internet protocol message to be sent to the Netconf server.

[0105] In this step, after the Netconf server sends the second hello message to the Netconf client, the Netconf client can receive the second hello message and complete the establishment of the Netconf session. Then, when it is necessary to generate an IP message to be sent to the Netconf server, a first IP message to be sent to the Netconf server is generated, and the differential service code point of the first IP message is configured as the first differential service code point.

[0106] After the Netconf client generates the first IP message, when it needs to send the first IP message, if it needs to send other IP messages at this time, the Netconf client determines the sending order of the IP messages according to the differential service code point in each IP message, and sends the IP messages according to the sending order. For IP messages with the same differential service code point, the IP messages are sent in the order in which the IP messages are generated.

[0107] It should be noted that when the Netconf client sends IP packets to the Netconf server, if the packets pass through a transit device, when the transit device forwards multiple IP packets, the sending order of the IP packets is determined based on the differential service code points in the IP packets, and the IP packets are sent according to the sending order. For IP packets with the same differential service code points, the IP packets are sent in the order in which they are received.

[0108] S106: The Netconf server generates a fourth Internet protocol message to be sent to the Netconf client.

[0109] In this step, after the Netconf server and the Netconf client complete the establishment of the Netconf session, when it is necessary to generate an IP message to be sent to the Netconf client, the Netconf server generates a fourth IP message to be sent to the Netconf client, and the differential service code point of the fourth IP message is configured as the first differential service code point.

[0110] After the Netconf server generates the fourth IP message, when it needs to send the fourth IP message, if it needs to send other IP messages at this time, the Netconf server determines the sending order of the IP messages according to the differential service code point in each IP message, and sends the IP messages according to the sending order. For IP messages with the same differential service code point, the IP messages are sent in the order in which the IP messages are generated.

[0111] It should be noted that when the Netconf server sends IP packets to the Netconf client, if the packets pass through a transit device, when the transit device forwards multiple IP packets, the sending order of the IP packets is determined based on the differential service code points in the IP packets, and the IP packets are sent according to the sending order. For IP packets with the same differential service code points, the IP packets are sent in the order in which they are received.

[0112] The differential service code point configuration method provided in this embodiment carries the first differential service code point set by the user when the Netconf client sends the first hello message to the Netconf server during the process of establishing a Netconf session between the Netconf client and the Netconf server. After the Netconf session is established, when it is necessary to generate an IP message, the IP message is generated according to the first differential service code point to complete the configuration of the differential service code point in the IP message. Compared with the prior art, after establishing a Netconf session and generating an IP message, the differential service code point in the IP message is configured through a switch and other devices. In this solution, the differential service code point is sent during the process of establishing a Netconf session, and the differential service code point is configured when the IP message is generated, which effectively improves the configuration efficiency.

[0113] Figure 2 This is a flow chart of the second embodiment of the differential service code point configuration method provided by the present application. Based on the above embodiment, the present embodiment of the present application describes the situation that after the Netconf client and the Netconf server establish a Netconf session, the user modifies the differential service code point through the Netconf client, and the Netconf client and the Netconf server configure the IP message according to the modified differential service code point. Figure 2 As shown, the differential services code point configuration method specifically includes the following steps:

[0114] S201: The Netconf client obtains a second differentiated services code point set by the user in response to the user's operation of modifying the differentiated services code point.

[0115] In this step, after the Netconf client establishes a Netconf session with the Netconf server, the user can modify the differential service code point in the IP message transmitted between the Netconf client and the Netconf server through the Netconf client. After the user modifies the differential service code point in the Netconf client, the Netconf client can obtain the second differential service code point.

[0116] S202: The Netconf client sends a Remote Procedure Call (RPC) instruction to the Netconf server.

[0117] In this step, after the Netconf client obtains the second differentiated services code point set by the user, in order to configure the differentiated services code point in the IP message according to the second differentiated services code point, the Netconf client needs to send an RPC instruction to the Netconf server, and the RPC instruction includes the second differentiated services code point.

[0118] The Netconf client can request the Netconf server to perform specific operations by means of RPC instructions, so the second differential service code point is carried in the RPC instruction so that the Netconf server can subsequently configure the IP message according to the second differential service code point.

[0119] For example, the specific content of the RPC instruction is:

[0120] <rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

[0121] <set-quality-of-service>

[0122] <dscp> CS5< / dscp>

[0123] < / set-quality-of-service>

[0124]

[0125] in, <set-quality-of-service>Indicates setting the differential service code point between the Netconf client and the Netconf server; <dscp> CS5< / dscp> Indicates the code corresponding to the differentiated services code point; CS5 indicates the second differentiated services code point set by the user.

[0126] It should be noted that the above examples are only examples of RPC instructions. The second differential service code point can also be 0, 2, 10, 50, 63, etc. The second differential service code point can also be represented by CS0, CS7, EF, AF11, AF12, etc. The embodiment of the present application does not limit the second differential service code point and RPC instructions, and can be set according to actual conditions.

[0127] It should be noted that the Netconf server can be a router, or a switch, a wavelength division device, an OTN device, a SPTN device, an IPRAN device, or other network devices. This application does not limit the Netconf server, and it can be selected according to actual conditions.

[0128] S203: After receiving the RPC instruction sent by the Netconf client, the Netconf server returns a remote procedure call response (Remote Procedure Call-reply, abbreviated as: RPC-reply) message to the Netconf client based on the RPC instruction.

[0129] In this step, after the Netconf client sends the RPC instruction to the Netconf server, the Netconf server can receive the RPC instruction, and then parse the RPC instruction to obtain the second differential service code point therein, and then generate an RPC-reply message to send to the Netconf client, indicating that the RPC instruction is received and parsed successfully.

[0130] Exemplarily, the specific content of the RPC-reply message is:

[0131] <rpc-reply xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">

[0132] <ok / >

[0133]

[0134] It should be noted that the above example is only an example of the RPC-reply message. The embodiments of the present application do not limit the RPC-reply message and can be set according to actual conditions.

[0135] S204: After receiving the remote procedure call response RPC-reply message returned by the Netconf server based on the RPC instruction, the Netconf client generates a second Internet protocol message to be sent to the Netconf server.

[0136] In this step, after the Netconf server sends the RPC-reply message to the Netconf client, the Netconf client can receive the RPC-reply message, and can determine that the Netconf server has received the RPC instruction and has parsed the second differential service code point. Then, when it is necessary to generate an IP message to be sent to the Netconf server, a second IP message to be sent to the Netconf server is generated, and the differential service code point of the second IP message is configured as the second differential service code point.

[0137] After the Netconf client generates the second IP message, when it needs to send the second IP message, if it needs to send other IP messages at this time, the Netconf client determines the sending order of the IP messages according to the differential service code point in each IP message, and sends the IP messages according to the sending order. For IP messages with the same differential service code point, the IP messages are sent in the order in which the IP messages are generated.

[0138] It should be noted that when the Netconf client sends IP packets to the Netconf server, if the packets pass through a transit device, when the transit device forwards multiple IP packets, the sending order of the IP packets is determined based on the differential service code points in the IP packets, and the IP packets are sent according to the sending order. For IP packets with the same differential service code points, the IP packets are sent in the order in which they are received.

[0139] S205: The Netconf server generates a fifth Internet protocol message to be sent to the Netconf client.

[0140] In this step, after the Netconf server sends the RPC-reply message to the Netconf client, when it is necessary to generate an IP message to be sent to the Netconf client, it generates a fifth IP message to be sent to the Netconf client, and the differential service code point of the fifth IP message is configured as the second differential service code point.

[0141] After the Netconf server generates the fifth IP message, when it needs to send the fifth IP message, if it needs to send other IP messages at this time, the Netconf server determines the sending order of the IP messages according to the differential service code point in each IP message, and sends the IP messages according to the sending order. For IP messages with the same differential service code point, the IP messages are sent in the order in which the IP messages are generated.

[0142] It should be noted that when the Netconf server sends IP packets to the Netconf client, if the packets pass through a transit device, when the transit device forwards multiple IP packets, the sending order of the IP packets is determined based on the differential service code points in the IP packets, and the IP packets are sent according to the sending order. For IP packets with the same differential service code points, the IP packets are sent in the order in which they are received.

[0143] The method for configuring the differentiated services code point provided in this embodiment modifies the differentiated services code point in the IP message by sending an RPC instruction from the Netconf client to the Netconf server, which is easy to operate and improves the efficiency of modifying the differentiated services code point.

[0144] Figure 3 This is a flow chart of the third embodiment of the differential service code point configuration method provided by the present application. Based on the above embodiment, the present embodiment of the present application describes the situation in which the user modifies the differential service code point through the Netconf server, and the Netconf client and the Netconf server configure the IP message according to the modified differential service code point. Figure 3 As shown, the differential services code point configuration method specifically includes the following steps:

[0145] S301: The Netconf server obtains a third differentiated services code point set by the user in response to the user's operation of modifying the differentiated services code point.

[0146] In this step, after the Netconf client establishes a Netconf session with the Netconf server, the user can modify the differential service code point in the IP message transmitted between the Netconf client and the Netconf server through the Netconf server. After the user modifies the differential service code point in the Netconf server, the Netconf server can obtain the third differential service code point.

[0147] It should be noted that the Netconf server can be a router, or a switch, a wavelength division device, an OTN device, a SPTN device, an IPRAN device, or other network devices. This application does not limit the Netconf server, and it can be selected according to actual conditions.

[0148] S302: The Netconf server reports a notification message to the Netconf client.

[0149] In this step, after the Netconf server obtains the third differentiated service code point set by the user, in order to configure the differentiated service code point in the IP message according to the third differentiated service code point, the notification message includes the third differentiated service code point.

[0150] For example, the specific content of the notification message is:

[0151] <notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">

[0152] <eventtime> 2022-08-22T10:19:24+08:00< / eventtime>

[0153] <dscp-change-notification>

[0154] <dscp> CS7< / dscp>

[0155] < / dscp-change-notification>

[0156]

[0157] in, <dscp-change-notification>Indicates setting the differential service code point between the Netconf client and the Netconf server; <dscp> CS7< / dscp> Indicates the code corresponding to the Differentiated Services Code Point; CS7 indicates the third Differentiated Services Code Point set by the user.

[0158] It should be noted that the above example is only an example of a notification message. The third differential service code point can also be 0, 2, 10, 50, 63, etc. The third differential service code point can also be represented by CS0, CS7, EF, AF11, AF12, etc. The embodiment of the present application does not limit the third differential service code point and RPC instruction, and can be set according to actual conditions.

[0159] S303: After receiving the notification message reported by the Netconf server, the Netconf client generates a third Internet protocol message to be sent to the Netconf server.

[0160] In this step, after the Netconf server reports the notification message to the Netconf client, the Netconf client can receive the notification message and obtain the third differential service code point set by the user. Then, when it is necessary to generate an IP message to be sent to the Netconf server, the third IP message can be generated to be sent to the Netconf server, and the differential service code point of the third IP message is configured as the third differential service code point.

[0161] After the Netconf client generates the third IP message, when it needs to send the third IP message, if it needs to send other IP messages at this time, the Netconf client determines the sending order of the IP messages according to the differential service code point in each IP message, and sends the IP messages according to the sending order. For IP messages with the same differential service code point, the IP messages are sent in the order in which the IP messages are generated.

[0162] It should be noted that when the Netconf client sends IP packets to the Netconf server, if the packets pass through a transit device, when the transit device forwards multiple IP packets, the sending order of the IP packets is determined based on the differential service code points in the IP packets, and the IP packets are sent according to the sending order. For IP packets with the same differential service code points, the IP packets are sent in the order in which they are received.

[0163] S304: The Netconf server generates a sixth Internet protocol message to be sent to the Netconf client.

[0164] In this step, after the Netconf server reports the notification message to the Netconf client, it can generate a sixth IP message to be sent to the Netconf client when it is necessary to generate an IP message to be sent to the Netconf client, and the differential service code point of the sixth IP message is configured as the third differential service code point.

[0165] After the Netconf server generates the sixth IP message, when it needs to send the sixth IP message, if it needs to send other IP messages at this time, the Netconf server determines the sending order of the IP messages according to the differential service code point in each IP message, and sends the IP messages according to the sending order. For IP messages with the same differential service code point, the IP messages are sent in the order in which the IP messages are generated.

[0166] It should be noted that when the Netconf server sends IP packets to the Netconf client, if the packets pass through a transit device, when the transit device forwards multiple IP packets, the sending order of the IP packets is determined based on the differential service code points in the IP packets, and the IP packets are sent according to the sending order. For IP packets with the same differential service code points, the IP packets are sent in the order in which they are received.

[0167] The method for configuring the differentiated services code point provided in this embodiment modifies the differentiated services code point in the IP message by reporting a notification message from the Netconf server to the Netconf server. The operation is convenient and the efficiency of modifying the differentiated services code point is improved.

[0168] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0169] Figure 4 This is a structural diagram of Embodiment 1 of the Differentiated Services Code Point configuration device provided in this application.

[0170] like Figure 4 As shown, the differential services code point configuration device 40 includes:

[0171] An acquisition module 41 is used to acquire a first differential service code point set by a user, where the first differential service code point is used to indicate a priority of transmitting an Internet protocol message between the differential service code point configuration device and a Netconf server;

[0172] A sending module 42 is configured to send a first hello message to the Netconf server after establishing a transmission control protocol TCP connection and a secure shell SSH connection with the Netconf server, wherein the first hello message includes the first differential service code point;

[0173] A receiving module 43, configured to receive a second hello message returned by the Netconf server based on the first hello message;

[0174] The processing module 44 is configured to generate a first Internet protocol message to be sent to the Netconf server, wherein the differential services code point of the first Internet protocol message is configured as the first differential services code point.

[0175] Furthermore, the acquisition module 41 is further configured to acquire a second differentiated services code point set by the user in response to the user's operation of modifying the differentiated services code point.

[0176] Furthermore, the sending module 42 is further configured to send a remote procedure call (RPC) instruction to the Netconf server, wherein the RPC instruction includes the second differential service code point;

[0177] Furthermore, the receiving module 43 is further configured to receive a remote procedure call response RPC-reply message returned by the Netconf server based on the RPC instruction;

[0178] Furthermore, the processing module 44 is further configured to generate a second Internet protocol message to be sent to the Netconf server, and the differential services code point of the second Internet protocol message is configured as the second differential services code point.

[0179] Furthermore, the receiving module 43 is further configured to receive a notification message reported by the Netconf server, wherein the notification message includes the third differential service code point set by the user;

[0180] Furthermore, the processing module 44 is further configured to generate a third Internet protocol message to be sent to the Netconf server, wherein the differential services code point of the third Internet protocol message is configured as the third differential services code point.

[0181] The differential services code point configuration device provided in this embodiment is used to execute the technical solution of the Netconf client in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0182] Figure 5 This is a structural diagram of Embodiment 2 of the differential services code point configuration device provided by the present application; Figure 5 As shown, the differential services code point configuration device 50 includes:

[0183] The receiving module 51 is used to receive a first hello message sent by the Netconf client after establishing a transmission control protocol TCP connection and a secure shell SSH connection with the Netconf client, wherein the first hello message includes a first differential service code point set by a user, and the first differential service code point is used to indicate a priority of transmitting an Internet protocol message between the Netconf client and the differential service code point configuration device;

[0184] A sending module 52, configured to return a second hello message to the Netconf client based on the first hello message;

[0185] The processing module 53 is configured to generate a fourth Internet protocol message to be sent to the Netconf client, wherein a differential services code point of the fourth Internet protocol message is configured as the first differential services code point.

[0186] Furthermore, the receiving module 51 is further configured to receive a remote procedure call (RPC) instruction sent by the Netconf client, wherein the RPC instruction includes a second differential service code point set by the user;

[0187] Furthermore, the sending module 52 is further configured to return a remote procedure call response RPC-reply message to the Netconf client based on the RPC instruction;

[0188] Furthermore, the processing module 53 is further configured to generate a fifth Internet Protocol message to be sent to the Netconf client, and a Differentiated Services Code Point of the fifth Internet Protocol message is configured as the second Differentiated Services Code Point.

[0189] An acquisition module 54, configured to acquire a third differentiated services code point set by the user in response to the user's operation of modifying the differentiated services code point;

[0190] Further, the sending module 52 is further configured to report a notification message to the Netconf client, wherein the notification message includes the third differential service code point;

[0191] Furthermore, the processing module 53 is further configured to generate a sixth Internet Protocol message to be sent to the Netconf client, wherein a Differentiated Services Code Point of the sixth Internet Protocol message is configured as the third Differentiated Services Code Point.

[0192] The differential services code point configuration device provided in this embodiment is used to execute the technical solution of the Netconf server in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0193] Figure 6 A schematic diagram of the structure of a Netconf client provided in this application. Figure 6 As shown, the Netconf client 60 includes:

[0194] Processor 61, memory 62, and communication interface 63;

[0195] The memory 62 is used to store executable instructions of the processor 61;

[0196] The processor 61 is configured to execute the technical solution of the Netconf client in any of the aforementioned method embodiments by executing the executable instructions.

[0197] Optionally, the memory 62 may be independent or integrated with the processor 61 .

[0198] Optionally, when the memory 62 is a device independent of the processor 61, the Netconf client 60 may further include:

[0199] The bus 64 , the memory 62 and the communication interface 63 are connected to the processor 61 via the bus 64 and communicate with each other. The communication interface 63 is used to communicate with other devices.

[0200] Optionally, the communication interface 63 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.

[0201] The bus 64 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0202] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it 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.

[0203] The Netconf client is used to execute the technical solution of the Netconf client in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.

[0204] Figure 7 A schematic diagram of the structure of a Netconf server provided for this application. Figure 7 As shown, the Netconf server 70 includes:

[0205] Processor 71, memory 72, and communication interface 73;

[0206] The memory 72 is used to store executable instructions of the processor 71;

[0207] The processor 71 is configured to execute the technical solution of the Netconf server in any of the aforementioned method embodiments by executing the executable instructions.

[0208] Optionally, the memory 72 can be independent or integrated with the processor 71.

[0209] Optionally, when the memory 72 is a device independent of the processor 71, the Netconf server 70 may further include:

[0210] The bus 74 , the memory 72 and the communication interface 73 are connected to the processor 71 via the bus 74 and communicate with each other. The communication interface 73 is used to communicate with other devices.

[0211] Optionally, the communication interface 73 may be implemented by a transceiver. The communication interface is used to implement communication between the database access device and other devices (such as a client, a read-write library, and a read-only library). The memory may include a random access memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage.

[0212] The bus 74 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0213] The above-mentioned processor can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it 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.

[0214] The Netconf server is used to execute the technical solution of the Netconf server in any of the aforementioned method embodiments, and its implementation principle and technical effect are similar and will not be repeated here.

[0215] An embodiment of the present application also provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the technical solution provided by any of the aforementioned method embodiments is implemented.

[0216] An embodiment of the present application also provides a computer program product, including a computer program, which is used to implement the technical solution provided by any of the aforementioned method embodiments when executed by a processor.

[0217] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0218] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application. < / capabilities> < / capabilities>

Claims

1. A method for configuring a differential services code point, It is characterized in that Applied to a network configuration protocol Netconf client, the method comprises: Acquire a first differentiated service code point set by a user, where the first differentiated service code point is used to indicate a priority of transmitting an Internet protocol message between the Netconf client and the Netconf server; After establishing a Transmission Control Protocol (TCP) connection and a Secure Shell (SSH) connection with a Netconf server, sending a first hello message to the Netconf server, where the first hello message includes the first Differentiated Services Code Point; Receiving a second hello message returned by the Netconf server based on the first hello message; generating a first internet protocol message to be sent to the Netconf server, wherein a differential services code point of the first internet protocol message is configured as the first differential services code point; The method further comprises: receiving a notification message reported by the Netconf server, wherein the notification message includes a third differential service code point set by the user; A third Internet protocol message is generated and sent to the Netconf server, wherein a differential services code point of the third Internet protocol message is configured as the third differential services code point.

2. The method according to claim 1, It is characterized in that The method further comprises: In response to the user's operation of modifying the differentiated services code point, obtaining a second differentiated services code point set by the user; Sending a remote procedure call (RPC) instruction to the Netconf server, wherein the RPC instruction includes the second differentiated services code point; Receiving a remote procedure call response RPC-reply message returned by the Netconf server based on the RPC instruction; A second Internet protocol message is generated and sent to the Netconf server, wherein a differential services code point of the second Internet protocol message is configured as the second differential services code point.

3. A method for configuring a differential services code point, It is characterized in that Applied to a network configuration protocol Netconf server, the method includes: After establishing a transmission control protocol TCP connection and a secure shell SSH connection with a Netconf client, receiving a first hello message sent by the Netconf client, wherein the first hello message includes a first differential service code point set by a user, and the first differential service code point is used to indicate a priority of transmitting an Internet protocol message between the Netconf client and the Netconf server; Based on the first hello message, return a second hello message to the Netconf client; generating a fourth internet protocol message to be sent to the Netconf client, wherein a differential services code point of the fourth internet protocol message is configured as the first differential services code point; The method further comprises: In response to the user's operation of modifying the differentiated services code point, obtaining a third differentiated services code point set by the user; Reporting a notification message to the Netconf client, where the notification message includes the third differentiated service code point; A sixth Internet Protocol message is generated and sent to the Netconf client, wherein a Differentiated Services Code Point of the sixth Internet Protocol message is configured as the third Differentiated Services Code Point.

4. The method according to claim 3, It is characterized in that The method further comprises: Receiving a remote procedure call (RPC) instruction sent by the Netconf client, wherein the RPC instruction includes a second differential service code point set by the user; Based on the RPC instruction, return a remote procedure call response RPC-reply message to the Netconf client; A fifth Internet Protocol message is generated and sent to the Netconf client, wherein a Differentiated Services Code Point of the fifth Internet Protocol message is configured as the second Differentiated Services Code Point.

5. A differential services code point configuration device, It is characterized in that include: An acquisition module, configured to acquire a first differential service code point set by a user, wherein the first differential service code point is used to indicate a priority of transmitting an Internet protocol message between the differential service code point configuration device and a Netconf server; a sending module, configured to send a first hello message to the Netconf server after establishing a transmission control protocol TCP connection and a secure shell SSH connection with the Netconf server, wherein the first hello message includes the first differential service code point; A receiving module, configured to receive a second hello message returned by the Netconf server based on the first hello message; a processing module, configured to generate a first internet protocol message to be sent to the Netconf server, wherein a differential services code point of the first internet protocol message is configured as the first differential services code point; The receiving module is further configured to receive a notification message reported by the Netconf server, wherein the notification message includes a third differential service code point set by the user; The processing module is further used to generate a third Internet protocol message to be sent to the Netconf server, and the differential services code point of the third Internet protocol message is configured as the third differential services code point.

6. A differential services code point configuration device, It is characterized in that include: a receiving module, configured to receive a first hello message sent by the Netconf client after establishing a transmission control protocol TCP connection and a secure shell SSH connection with the Netconf client, wherein the first hello message includes a first differential service code point set by a user, and the first differential service code point is used to indicate a priority of transmitting an Internet protocol message between the Netconf client and the differential service code point configuration device; A sending module, configured to return a second hello message to the Netconf client based on the first hello message; a processing module, configured to generate a fourth internet protocol message sent to the Netconf client, wherein a differential services code point of the fourth internet protocol message is configured as the first differential services code point; an acquisition module, configured to acquire a third differentiated services code point set by the user in response to the user's operation of modifying the differentiated services code point; The sending module is further configured to report a notification message to the Netconf client, wherein the notification message includes the third differential service code point; The processing module is further configured to generate a sixth Internet Protocol message to be sent to the Netconf client, wherein a Differentiated Services Code Point of the sixth Internet Protocol message is configured as the third Differentiated Services Code Point.

7. A network configuration protocol Netconf client, It is characterized in that include: Processor, memory, communication interface; The memory is used to store executable instructions of the processor; The processor is configured to execute the differentiated services code point configuration method of claim 1 or 2 by executing the executable instructions.

8. A network configuration protocol Netconf server, It is characterized in that include: Processor, memory, communication interface; The memory is used to store executable instructions of the processor; The processor is configured to execute the differentiated services code point configuration method of claim 3 or 4 by executing the executable instructions.