CN114338516B - Traffic forwarding and policy determining method and device - Google Patents

Traffic forwarding and policy determining method and device Download PDF

Info

Publication number
CN114338516B
CN114338516B CN202111624563.4A CN202111624563A CN114338516B CN 114338516 B CN114338516 B CN 114338516B CN 202111624563 A CN202111624563 A CN 202111624563A CN 114338516 B CN114338516 B CN 114338516B
Authority
CN
China
Prior art keywords
target
service type
parameter information
traffic
forwarding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111624563.4A
Other languages
Chinese (zh)
Other versions
CN114338516A (en
Inventor
马彧嵩
穆俊龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111624563.4A priority Critical patent/CN114338516B/en
Publication of CN114338516A publication Critical patent/CN114338516A/en
Application granted granted Critical
Publication of CN114338516B publication Critical patent/CN114338516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device for forwarding flow and determining policy, which relate to the technical field of mobile communication, in particular to the technical field of data processing. The method comprises the following steps: receiving target network traffic to be forwarded, which is sent by a terminal device, and determining target traffic parameter information of the target network traffic; determining a target service type of a service to which the target network flow belongs based on the target flow parameter information; determining a target forwarding path for forwarding the target network traffic based on the target traffic type; sending a policy generation request containing the target flow parameter information and the target service type to management equipment; receiving a traffic forwarding strategy sent by the management equipment in response to the strategy generation request; and forwarding the target network traffic by adopting the traffic forwarding strategy according to the target forwarding path. By applying the scheme provided by the embodiment, the efficiency of forwarding network traffic can be improved.

Description

Traffic forwarding and policy determining method and device
Technical Field
The invention relates to the technical field of mobile communication, in particular to the technical field of data processing.
Background
The current service types are increasingly diversified, and the original network traffic forwarding technology gradually evolves into a network traffic forwarding technology based on the service types. The network traffic forwarding technique based on the service type refers to: and forwarding network traffic by adopting different forwarding paths for the services of different service types.
In the prior art, a worker usually determines forwarding paths of network traffic of different service types based on experience, and forwards the network traffic based on the determined forwarding paths, and the efficiency of determining the forwarding paths is lower due to the fact that the forwarding paths are manually determined by the worker, so that the efficiency of forwarding the network traffic is lower.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for forwarding flow and determining a policy so as to improve the efficiency of forwarding network flow. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a traffic forwarding method, applied to a network device, where the method includes:
receiving target network traffic to be forwarded, which is sent by a terminal device, and determining target traffic parameter information of the target network traffic;
determining a target service type of a service to which the target network flow belongs based on the target flow parameter information;
Determining a target forwarding path for forwarding the target network traffic based on the target traffic type;
sending a policy generation request containing the target flow parameter information and the target service type to management equipment;
receiving a traffic forwarding strategy sent by the management equipment in response to the strategy generation request;
and forwarding the target network traffic by adopting the traffic forwarding strategy according to the target forwarding path.
In one embodiment of the present invention, determining, based on the target traffic parameter information, a target traffic type of a traffic to which the target network traffic belongs, includes:
calculating the matching degree between the target flow parameter information and the flow parameter information corresponding to the stored service type;
and determining the service type corresponding to the highest matching degree as the target service type of the service to which the target network flow belongs.
In one embodiment of the present invention, the method further includes:
and updating the stored flow parameter information corresponding to the target service type based on the target flow parameter information.
In one embodiment of the present invention, determining a target forwarding path for forwarding the target network traffic based on the target traffic type includes:
And determining a forwarding path corresponding to the target service type based on a corresponding relation between the preset service type and the forwarding path, and using the forwarding path as a target forwarding path for forwarding the target network traffic.
In a second aspect, an embodiment of the present invention provides a policy determining method, applied to a management device, where the method includes:
receiving a policy generation request comprising target traffic parameter information and a target service type, wherein the target traffic parameter information is sent by a network device, and the policy generation request comprises the target traffic parameter information: the network device receives flow parameter information of target network flow to be forwarded, and the target service type is: the service type of the service to which the target network flow belongs;
obtaining target service parameter information of the target service type from the stored service parameter information of each service type;
and determining a flow forwarding strategy for forwarding the target network flow based on the target flow parameter information and the target service parameter information, and sending the flow forwarding strategy to the network equipment.
In one embodiment of the present invention, the service parameter information for each service type is determined as follows:
And generating service parameter information of each service type based on the service description information of each service type, the configuration information of each network device and the parameter information of the network resource.
In one embodiment of the present invention, the service description information includes: identification of service type, importance of service type, SLA of service type.
In one embodiment of the present invention, the target service type is one of the following service types: browser service type, email service type, game service type, video service type, audio service type.
In a third aspect, an embodiment of the present invention provides a traffic forwarding apparatus, applied to a network device, where the apparatus includes:
the information determining module is used for receiving the target network flow to be forwarded sent by the terminal equipment and determining target flow parameter information of the target network flow;
the type determining module is used for determining a target service type of the service to which the target network flow belongs based on the target flow parameter information;
the path determining module is used for determining a target forwarding path for forwarding the target network traffic based on the target service type;
The request sending module is used for sending a policy generation request containing the target flow parameter information and the target service type to the management equipment before the target network flow is forwarded according to the target forwarding path in the flow forwarding module;
the policy receiving module is used for receiving a flow forwarding policy sent by the management equipment in response to the policy generation request;
and the flow forwarding module is used for forwarding the target network flow by adopting the flow forwarding strategy according to the target forwarding path.
In one embodiment of the present invention, the type determining module includes:
the matching degree calculating submodule is used for calculating the matching degree between the target flow parameter information and the flow parameter information corresponding to the stored service type;
and the type determining sub-module is used for determining the service type corresponding to the highest matching degree as the target service type of the service to which the target network flow belongs.
In one embodiment of the present invention, the type determining module further includes:
and the information updating sub-module is used for updating the stored flow parameter information corresponding to the target service type based on the target flow parameter information.
In one embodiment of the present invention, the path determining module is specifically configured to determine a target forwarding path corresponding to the target service type based on a corresponding relationship between a preset service type and a forwarding path.
In a fourth aspect, an embodiment of the present invention provides a policy determining apparatus, applied to a management device, where the apparatus includes:
the request receiving module is configured to receive a policy generation request including target traffic parameter information and a target service type, where the target traffic parameter information is sent by a network device: the network device receives flow parameter information of target network flow to be forwarded, and the target service type is: the service type of the service to which the target network flow belongs;
the information acquisition module is used for acquiring target service parameter information of the target service type from the stored service parameter information of each service type;
and the policy determining module is used for determining a flow forwarding policy for forwarding the target network flow based on the target flow parameter information and the target service parameter information, and sending the flow forwarding policy to the network equipment.
In one embodiment of the present invention, the service parameter information for each service type is determined as follows:
and generating service parameter information of each service type based on the service description information of each service type, the configuration information of each network device and the parameter information of the network resource.
In one embodiment of the present invention, the service description information includes: identification of service type, importance of service type, SLA of service type.
In one embodiment of the present invention, the target service type is one of the following service types: browser service type, email service type, game service type, video service type, audio service type.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and a processor, configured to implement the method steps described in the first aspect or the second aspect when executing the program stored in the memory.
In a sixth aspect, embodiments of the present invention provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements the method steps of the first or second aspects described above.
As can be seen from the above, when the solution provided by the embodiment of the present invention is applied to forwarding traffic, because the network device determines the target forwarding path for forwarding the target network traffic according to the target service type, and obtains the traffic forwarding policy, and further forwards the target network traffic based on the determined target forwarding path and the traffic forwarding policy, compared with the prior art that the forwarding path is manually determined by relying on a worker, the efficiency of forwarding path determination is improved, and further the efficiency of traffic forwarding is improved.
And the target service type is determined based on the target flow parameter information, and the data packet in the target network flow is not required to be analyzed to obtain the service type corresponding to the target network flow, so that the problem of data packet safety caused by analyzing the data packet is avoided, the safety of the data packet is improved, and meanwhile, the efficiency of determining the service type is also improved.
In addition, the traffic forwarding policy is a policy generated based on the target parameter information and the target service type, where the target parameter information and the target service type are both information related to the target network traffic to be forwarded, and the traffic forwarding policy can be better applicable to the target network traffic, so that when the network device forwards the target network traffic by adopting the traffic forwarding policy, unnecessary consumption of network resources can be avoided, and network resources are saved.
Of course, it is not necessary for any one product or method of practicing the invention to achieve all of the advantages set forth above at the same time.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the invention, and other embodiments may be obtained according to these drawings to those skilled in the art.
Fig. 1 is a flow chart of a first flow forwarding method according to an embodiment of the present invention;
fig. 2 is a flow chart of a second flow forwarding method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a policy determining method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a flow forwarding system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a flow forwarding device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a policy determining device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by the person skilled in the art based on the present application are included in the scope of protection of the present application.
In view of the increasing diversity of industry applications, the network traffic original forwarding technology will gradually evolve into network traffic policy scheduling and adjustment based on application type base analysis. Therefore, it is important to realize a system based on application type flow analysis and management control, and a related system of a service application identification system aims at solving the problems that the existing SRv6 (Segment Routing IPv, segment routing based on an IPv6 forwarding plane) network layer flow cannot identify an application type and is adjusted and scheduled in real time, shortening the adjustment and scheduling time of the network layer application flow, and avoiding the need of distinguishing SRv6 network layer flow application types by various technical modes at a user side, and automatically executing SRv6 network application flow adjustment by the service application identification system, thereby improving service guarantee efficiency, reducing labor and physical hardware cost and greatly improving customer perception.
Referring to fig. 1, fig. 1 is a flow chart of a first flow forwarding method according to an embodiment of the present invention, where the method includes the following steps S101 to S104.
First, before explaining the above steps, an execution body of an embodiment of the present invention will be explained.
The implementation main body of the embodiment of the invention is network equipment, specifically, the network equipment is equipment accessed to each terminal equipment, after the terminal equipment sends network traffic, the first arrived equipment is the network equipment, and the network equipment determines a forwarding path of the network traffic. The network device may be a router, a gateway device, or the like.
Steps S101 to S106 will be specifically described below.
Step S101: and receiving the target network flow to be forwarded, which is sent by the terminal equipment, and determining target flow parameter information of the target network flow.
The target network traffic may be SRv6 network traffic.
The target flow parameter information is: traffic parameter information for the target network traffic. The target flow parameter information may include a parameter value of a preset network flow parameter item, where the network flow parameter item may include information such as a transmission rate and an occupied bandwidth of the network flow.
When determining the target flow parameter information, a preset information detection mode can be adopted to detect the flow parameter information of the target network flow, and the preset information detection mode can be any detection mode of the flow parameter information in the prior art.
Step S102: and determining the target service type of the service to which the target network flow belongs based on the target flow parameter information.
The target service type refers to: the service type of the service to which the target network traffic belongs. For example: when the service node provides the game service for the user, the service to which the network traffic transmitted in the network belongs may be the game service, where the service type of the service to which the network traffic belongs is: game service type.
The service types of the service to which the target network traffic belongs may include: browser service type, email service type, game service type, video service type, audio service type, etc.
In the case that the number of services subscribed to by the terminal device is large, the service types of the services to which the network traffic transmitted in the network belongs may be different, so that the network device needs to determine the target service type of the service to which the network traffic belongs. And because the difference between the flow parameter information of the network flows corresponding to the services of different service types is large, the service type of the service to which the target network flow belongs can be determined based on the flow parameter information of the target network flow.
In one embodiment, the target traffic parameter information of the target network traffic may be input into a pre-trained service type identification model to obtain a service type output by the service type identification model, which is used as a target service type of the service to which the target network traffic belongs.
The service type identification model is a model for carrying out service type identification on the flow parameter information.
When the service type identification model is trained, sample flow parameter information can be used as a training sample, and the actual service type of the service to which the sample network flow belongs is used as a training reference to train a preset neural network model.
Other embodiments for determining the target service type may refer to the following examples corresponding to fig. 2, and will not be described in detail herein.
Because the target service type is determined based on the target flow parameter information, the data packet in the target network flow is not required to be analyzed to obtain the target service type, and the problem of data packet safety caused by analyzing the data packet is avoided.
In addition, because the information recorded by the data packet in the target network flow is related to the service content, the data packet does not record the information related to the target network flow, so the data packet does not contain the parameter information of the target network flow, and in this case, the data packet in the target network flow does not need to be analyzed to obtain the parameter information of the target network flow, thereby further improving the safety of the data packet.
Step S103: a target forwarding path for forwarding the target network traffic is determined based on the target traffic type.
In one embodiment, a forwarding path corresponding to a target service type may be determined based on a preset correspondence between the service type and the forwarding path, and the forwarding path may be used as a target forwarding path for forwarding the target network traffic.
The correspondence between traffic types and forwarding paths may be predetermined. When the service type T and the forwarding path R have a corresponding relationship, the forwarding path of the network traffic included in the service of the service type T is the forwarding path R.
The forwarding path includes device information of network devices through which the target network traffic passes, and an order of the network devices through which the target network traffic passes. The device information may include identification of network devices, IP (Internet Protocol ) addresses, ports, etc.
The process of determining the target forwarding path is described below in conjunction with table 1. Table 1 shows the correspondence between the type of service and the forwarding path.
TABLE 1
Service type Forwarding path
Game service type E1→E2→E3→D
Video service type E2→E3→E4→D
Audio service type E3→E4→E5→D
The forwarding paths E1, E2, E3, E4, E5, and D in table 1 are all network devices.
When the target service type is the game service type, in table 1, the forwarding path corresponding to the game service type is: e1→e2→e3→d, so the target forwarding path is: E1→E2→E3→D.
Because the corresponding relation between the service type and the forwarding path is preset, based on the corresponding relation, the forwarding path corresponding to the more accurate target service type can be determined, so that the accuracy of the determined target forwarding path for forwarding the target network traffic is higher.
Step S104: and sending a policy generation request containing the target traffic parameter information and the target service type to the management equipment.
Specifically, after receiving the policy generation request, the management device may parse the policy generation request to obtain the target traffic parameter information and the target service type.
Step S105: and the receiving management equipment responds to the traffic forwarding strategy sent by the strategy generation request.
The traffic forwarding policy is as follows: a forwarding policy for forwarding the target network traffic. Specifically, the information such as the bandwidth required by forwarding the target network traffic, the required time delay and the like can be recorded in the traffic forwarding strategy.
Step S106: and forwarding the target network traffic by adopting a traffic forwarding strategy according to the target forwarding path.
In one embodiment, the information recorded in the traffic forwarding policy may be used to forward the target network traffic. For example: the bandwidth required for recording and forwarding the target network traffic in the traffic forwarding strategy is 10M, the required time delay is 10s, the network equipment can adopt the 10M bandwidth, and the target network traffic is reserved for 10 s.
As can be seen from the above, when the solution provided by the present embodiment is applied to forwarding traffic, because the network device determines the target forwarding path for forwarding the target network traffic according to the target service type, and obtains the traffic forwarding policy, and further forwards the target network traffic based on the determined target forwarding path and the traffic forwarding policy, compared with the prior art that the forwarding path is manually determined by relying on a worker, the efficiency of forwarding path determination is improved, and further the efficiency of traffic forwarding is improved.
And the target service type is determined based on the target flow parameter information, and the data packet in the target network flow is not required to be analyzed to obtain the service type corresponding to the target network flow, so that the problem of data packet safety caused by analyzing the data packet is avoided, the safety of the data packet is improved, and meanwhile, the efficiency of determining the service type is also improved.
In addition, the traffic forwarding policy is a policy generated based on the target parameter information and the target service type, where the target parameter information and the target service type are both information related to the target network traffic to be forwarded, and the traffic forwarding policy can be better applicable to the target network traffic, so that when the network device forwards the target network traffic by adopting the traffic forwarding policy, unnecessary consumption of network resources can be avoided, and network resources are saved.
In the implementation manner of step S103 in the foregoing embodiment shown in fig. 1, the correspondence between the preset service type and the forwarding path may be generated by a management device, where the management device is: an electronic device for managing network devices. Specifically, the management device may obtain service type parameter information of a service type of the service subscribed by the terminal device, calculate, based on the service type parameter information, a forwarding path by using a preset optimal path algorithm, and obtain a correspondence between a service type and the forwarding path as a forwarding path for forwarding network traffic included in the service.
After determining the forwarding paths for forwarding the network traffic included in the service, the management device may display the forwarding paths in a user interface provided by the management device, so that a worker may review the forwarding paths based on experience, and after the review, the management device sends a correspondence between the service type and the forwarding paths to each network device included in the forwarding paths, so that the network device may determine the forwarding paths for forwarding the network traffic based on the correspondence.
In order to adapt the forwarding paths corresponding to the service types to the network traffic in dynamic change, the forwarding paths corresponding to the service types can be updated periodically, so that updated corresponding relations are obtained, and then more accurate forwarding paths can be determined and obtained based on the corresponding relations.
Based on the analysis, in one embodiment of the present invention, after the step S106, the target service type and the target parameter information may be further sent to the management device; and receiving the adjusted target forwarding path sent by the management equipment, and updating the corresponding relation between the preset target service type and the target forwarding path based on the adjusted target forwarding path.
After receiving the target service type and the target parameter information, the management device can adjust a target forwarding path corresponding to the target service type based on the received information.
In one embodiment, the network device may periodically send the received traffic parameter information of the network traffic to be forwarded and the corresponding traffic type to the management device.
After receiving the adjusted target forwarding path, the network device replaces the original target forwarding path with the adjusted target forwarding path in the corresponding relation between the preset target service type and the target forwarding path, thereby realizing updating the corresponding relation.
In this way, when the forwarding path is determined by adopting the preset corresponding relationship later, the accuracy of the corresponding relationship between the service type and the forwarding path is higher due to the fact that the preset corresponding relationship is the updated corresponding relationship, so that the accuracy of the forwarding path determined later is also higher.
In step S102 of the embodiment shown in fig. 1, in addition to determining the target service type by using the service type identification model, the implementation of determining the target service type mentioned in the embodiment shown in fig. 2 may also be used. In an embodiment of the present invention, referring to fig. 2, fig. 2 is a schematic flow chart of a second flow forwarding method provided in this embodiment, and step S102 of the foregoing embodiment shown in fig. 1 may be implemented according to steps S202-S203 of the embodiment shown in fig. 2 described below.
Specifically, the embodiment shown in FIG. 2 includes the following steps S201-S207.
Step S201: and receiving the target network flow to be forwarded, which is sent by the terminal equipment, and determining target flow parameter information of the target network flow.
The step S201 is the same as the step S101 shown in fig. 1, and will not be described in detail here.
Step S202: and calculating the matching degree between the target flow parameter information and the flow parameter information corresponding to the stored service type.
The traffic parameter information corresponding to the service type is used for reflecting the parameter information of the network traffic included in the service of the corresponding service type. The flow parameter information may include a parameter value of a preset flow parameter item, where the preset flow parameter item may include a flow transmission rate, a bandwidth occupied by a flow, and the like.
Specifically, for each service type, the network device may perform statistical analysis on historical parameter information of network traffic included in the service of the service type, determine a statistical analysis result as traffic parameter information corresponding to the service type, and store the statistical analysis result. The statistical analysis method may be a method of calculating an average value, a calculation, a value, or the like.
In order to adapt to the dynamic change characteristic of the network traffic, the stored traffic parameter information corresponding to the service type is not fixed, but is updated and adjusted regularly. In one embodiment of the invention, the stored flow parameter information corresponding to the target service type can be updated based on the target flow parameter information.
In one embodiment, the statistical analysis may be performed again on the target flow parameter information and the history parameter information, and the statistical analysis result may be determined as updated flow parameter information and stored. In this way, when the traffic type is determined by adopting the stored traffic parameter information corresponding to the traffic type later, the accuracy of the traffic parameter information reflecting the parameter information of the target network traffic is higher because the stored traffic parameter information corresponding to the traffic type is updated information, so that the accuracy of the traffic type determined later is also higher.
In one embodiment, when calculating the matching degree, a difference value between a parameter value included in the target traffic parameter information and a parameter value included in the traffic parameter information corresponding to the traffic type may be calculated for each traffic type, and the matching degree may be determined based on the calculated difference value corresponding to each traffic type.
When the difference value is larger, the target flow parameter information is not matched with the flow parameter information corresponding to the service type, and the matching degree is smaller; and when the difference value is smaller, the target flow parameter information is matched with the flow parameter information corresponding to the service type, and the matching degree is larger.
Specifically, when calculating the difference value, an absolute difference between a parameter value of the preset flow parameter item in the target flow parameter information and a parameter value of the preset flow parameter item in the flow parameter information may be calculated for the same preset flow parameter item, and the absolute difference of each calculated preset flow parameter item is determined as a difference value between the target flow parameter information and flow parameter information corresponding to the service type.
Step S203: and determining the service type corresponding to the highest matching degree as the target service type of the service to which the target network flow belongs.
The process of determining the target traffic type is described below in connection with table 2. Table 2 shows the calculated matching degree and the service type corresponding to the matching degree.
TABLE 2
Service type Degree of matching
Game service type 20%
Video service type 90%
Audio service type 60%
As can be seen from the above table 2, 90% is the highest matching degree, and the service type corresponding to 90% is the video service type, so that the target service type video service type of the service to which the target network traffic belongs can be determined.
Step S204: a target forwarding path for forwarding the target network traffic is determined based on the target traffic type.
Step S205: and sending a policy generation request containing the target traffic parameter information and the target service type to the management equipment.
Step S206: and the receiving management equipment responds to the traffic forwarding strategy sent by the strategy generation request.
Step S207: and forwarding the target network traffic by adopting a traffic forwarding strategy according to the target forwarding path.
Specifically, the steps S204-S207 are the same as the steps S103-S106 in the embodiment shown in FIG. 1, respectively, and are not described in detail herein.
From the above, the above-mentioned target service type is determined based on the service type corresponding to the highest matching degree, where the possibility that the service type of the highest matching degree is the service type of the service to which the target network traffic belongs is highest, so that the accuracy of determining the service type corresponding to the highest matching degree as the target service type is higher.
Referring to fig. 3, fig. 3 is a flowchart of a policy determining method according to an embodiment of the present invention, where the method includes the following steps S301 to S303.
First, before explaining the above steps, an execution body of an embodiment of the present invention will be explained.
The execution main body of the embodiment of the invention is a management device, and the management device is as follows: the electronic device for managing each network device may be an electronic device in a management platform, or the like.
Steps S301 to S303 are explained below.
Step S301: and receiving a policy generation request which is sent by the network equipment and contains the target flow parameter information and the target service type.
The target flow parameter information is: and the network equipment receives flow parameter information of the target network flow to be forwarded. The target service types are as follows: the service type of the service to which the target network traffic belongs.
In one embodiment of the present invention, the target service type may be one of the following service types: browser service type, email service type, game service type, video service type, audio service type.
The policy generation request is used for requesting to generate a traffic forwarding policy.
After receiving the policy generation request, the management device may parse the policy generation request to obtain the target traffic parameter information and the target service type.
Step S302: and obtaining target service parameter information of the target service type from the stored service parameter information of each service type.
The service parameter information of each service type may be stored in a preset database, and the management device may read the target service parameter information of the target service type from the database.
Step S303: and determining a flow forwarding strategy for forwarding the target network flow based on the target flow parameter information and the target service parameter information, and sending the flow forwarding strategy to the network equipment.
In one embodiment, the forwarding policy corresponding to the target traffic parameter information and the target service parameter information may be determined based on a corresponding relationship between preset parameter information and the forwarding policy, and the determined forwarding policy is used as a traffic forwarding policy for forwarding the target network traffic.
The parameter information in the corresponding relation comprises flow parameter information of network flow and service type service parameter information.
After obtaining the traffic forwarding policy, a response including the traffic forwarding policy may be generated, and the response may be sent to the network device, so that the network device obtains the traffic forwarding policy.
Therefore, the generated flow forwarding strategy is more applicable to the target network flow to be forwarded, and unnecessary consumption of network resources can be avoided and network resources can be saved when the subsequent network equipment forwards the target network flow based on the flow forwarding strategy.
And the flow forwarding strategy is generated based on the management equipment, so that compared with the flow forwarding strategy determined based on the experience of staff in the prior art, the efficiency of strategy determination is improved, and the labor cost is reduced.
The service parameter information mentioned for each service type in the above-described step S302 is predetermined, and specifically the above-described service parameter information may be generated in the following manner.
And generating service parameter information of each service type based on the service description information of each service type, the configuration information of each network device and the parameter information of the network resource.
In one embodiment of the present invention, the service description information of the service type may include: identification of service type, importance of service type, SLA of service type (Service Level Agreement ).
The network resources may include: computing resources, transmission resources, etc.
In one embodiment, the service description information, the configuration information of the network device, and the parameter information of the network resource may be integrated, and the integrated information is determined as the service parameter information.
Because the network traffic included in the service needs to be forwarded by the network equipment and the network resources, the service parameter information has an association relationship with the network equipment and the network resources. Thus, based on the service description information. The accuracy of the generated service parameter information is higher.
The following describes the flow forwarding method provided by the embodiment of the present invention in full with reference to fig. 4. Fig. 4 is a schematic structural diagram of a traffic forwarding system according to an embodiment of the present invention.
The traffic forwarding system comprises a service ordering unit, a service management unit, a service application identification unit, a network controller, an application characteristic acquisition unit and network equipment.
Specifically, a user subscribes a required service type through a service subscription unit, and the service subscription unit sends the service type subscribed by the user to a service management unit;
The service management unit generates service parameter information of the service type according to the service type, the description information of the service type, the configuration information of the network equipment and the parameter information of the network resource, and sends the service parameter information to the network controller.
And the network controller calculates an optimal forwarding path based on SRv after receiving the service parameter information to obtain a forwarding path for forwarding the network traffic corresponding to each service type, and displays the forwarding path on a user interface provided by the network controller for a worker to review, and after the worker passes the review, the network controller sends the corresponding relation between the service type and the forwarding path to each network device included in the forwarding path.
After receiving SRv network traffic to be forwarded, the network device determines SRv traffic parameter information of the network traffic, and determines a service type of the service to which the SRv network traffic belongs based on the traffic parameter information, so as to determine a forwarding path corresponding to the service type based on a stored corresponding relation, and the network device sends the traffic parameter information and the service type to an application feature acquisition unit;
the application characteristic acquisition unit is used for integrating the flow parameter information and the service type sent by the network equipment and sending the flow information after the information integration to the service application identification unit;
And the service application identification unit is used for retrieving the service parameter information of the service type from the service management unit, generating a flow forwarding strategy based on the service parameter information and the flow information, and transmitting the flow forwarding strategy to the network equipment so that the network equipment forwards the network flow based on the forwarding path and the forwarding strategy. And, the service application identifying unit may also send the traffic forwarding policy to the network controller and the service management unit.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a flow forwarding device according to an embodiment of the present invention, where the device includes the following modules 501-506.
An information determining module 501, configured to receive a target network traffic to be forwarded sent by a terminal device, and determine target traffic parameter information of the target network traffic;
a type determining module 502, configured to determine, based on the target traffic parameter information, a target traffic type of a traffic to which the target network traffic belongs;
a path determining module 503, configured to determine a target forwarding path for forwarding the target network traffic based on the target traffic type;
a request sending module 504, configured to send a policy generation request including the target traffic parameter information and a target service type to a management device before forwarding the target network traffic according to the target forwarding path in the traffic forwarding module;
A policy receiving module 505, configured to receive a traffic forwarding policy sent by the management device in response to the policy generation request;
and a traffic forwarding module 506, configured to forward the target network traffic according to the target forwarding path and using the traffic forwarding policy.
As can be seen from the above, when the solution provided by the present embodiment is applied to forwarding traffic, because the network device determines the target forwarding path for forwarding the target network traffic according to the target service type, and obtains the traffic forwarding policy, and further forwards the target network traffic based on the determined target forwarding path and the traffic forwarding policy, compared with the prior art that the forwarding path is manually determined by relying on a worker, the efficiency of forwarding path determination is improved, and further the efficiency of traffic forwarding is improved.
And the target service type is determined based on the target flow parameter information, and the data packet in the target network flow is not required to be analyzed to obtain the service type corresponding to the target network flow, so that the problem of data packet safety caused by analyzing the data packet is avoided, the safety of the data packet is improved, and meanwhile, the efficiency of determining the service type is also improved.
In addition, the traffic forwarding policy is a policy generated based on the target parameter information and the target service type, where the target parameter information and the target service type are both information related to the target network traffic to be forwarded, and the traffic forwarding policy can be better applicable to the target network traffic, so that when the network device forwards the target network traffic by adopting the traffic forwarding policy, unnecessary consumption of network resources can be avoided, and network resources are saved.
In one embodiment of the present invention, the type determining module 502 includes:
the matching degree calculating submodule is used for calculating the matching degree between the target flow parameter information and the flow parameter information corresponding to the stored service type;
and the type determining sub-module is used for determining the service type corresponding to the highest matching degree as the target service type of the service to which the target network flow belongs.
From the above, the above-mentioned target service type is determined based on the service type corresponding to the highest matching degree, where the possibility that the service type of the highest matching degree is the service type of the service to which the target network traffic belongs is highest, so that the accuracy of determining the service type corresponding to the highest matching degree as the target service type is higher.
In one embodiment of the present invention, the type determining module 502 further includes:
and the information updating sub-module is used for updating the stored flow parameter information corresponding to the target service type based on the target flow parameter information.
In this way, when the traffic type is determined by adopting the traffic parameter information corresponding to the stored traffic type later, the accuracy of the traffic parameter information reflecting the parameter information of the network traffic is higher because the traffic parameter information corresponding to the stored traffic type is updated information, so that the accuracy of the traffic type determined later is also higher.
In one embodiment of the present invention, the path determining module is specifically configured to determine a target forwarding path corresponding to the target service type based on a corresponding relationship between a preset service type and a forwarding path.
Because the corresponding relation between the service type and the forwarding path is preset, based on the corresponding relation, the forwarding path corresponding to the more accurate target service type can be determined, so that the accuracy of the determined target forwarding path for forwarding the target network traffic is higher.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a policy determining apparatus according to an embodiment of the present invention, where the apparatus includes the following modules 601-603.
The request receiving module 601 is configured to receive a policy generation request sent by a network device and including target traffic parameter information and a target service type, where the target traffic parameter information is: the network device receives flow parameter information of target network flow to be forwarded, and the target service type is: the service type of the service to which the target network flow belongs;
an information obtaining module 602, configured to obtain target service parameter information of the target service type from the stored service parameter information of each service type;
a policy determining module 603, configured to determine a traffic forwarding policy for forwarding the target network traffic based on the target traffic parameter information and the target service parameter information, and send the traffic forwarding policy to the network device.
Therefore, the generated flow forwarding strategy is more applicable to the network flow to be forwarded, and unnecessary consumption of network resources can be avoided and network resources can be saved when the subsequent network equipment forwards the target network flow based on the flow forwarding strategy.
In one embodiment of the present invention, the service parameter information for each service type is determined as follows:
and generating service parameter information of each service type based on the service description information of each service type, the configuration information of each network device and the parameter information of the network resource.
Because the network traffic included in the service needs to be forwarded by the network equipment and the network resources, the service parameter information has an association relationship with the network equipment and the network resources. Thus, based on the service description information. The accuracy of the generated service parameter information is higher.
In one embodiment of the present invention, the service description information includes: identification of service type, importance of service type, SLA of service type.
In one embodiment of the present invention, the target service type is one of the following service types: browser service type, email service type, game service type, video service type, audio service type.
The embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 perform communication with each other through the communication bus 704,
A memory 703 for storing a computer program;
the processor 701 is configured to implement the above-described traffic forwarding or policy determination method when executing the program stored in the memory 703.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer readable storage medium is provided, in which a computer program is stored, which when executed by a processor, implements the steps of the above-mentioned traffic forwarding or policy determination method.
In yet another embodiment of the present invention, a computer program product containing instructions that, when run on a computer, cause the computer to perform the method of traffic forwarding or policy determination in the above embodiment is also provided.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part. The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (16)

1. A method for forwarding traffic, the method being applied to a network device, the method comprising:
receiving target network traffic to be forwarded, which is sent by a terminal device, and determining target traffic parameter information of the target network traffic;
determining a target service type of a service to which the target network flow belongs based on the target flow parameter information;
determining a target forwarding path for forwarding the target network traffic based on the target traffic type;
sending a policy generation request containing the target flow parameter information and the target service type to management equipment;
receiving a traffic forwarding strategy sent by the management equipment in response to the strategy generation request;
forwarding the target network traffic by adopting the traffic forwarding strategy according to the target forwarding path;
the determining, based on the target traffic parameter information, a target traffic type of a traffic to which the target network traffic belongs includes:
calculating the matching degree between the target flow parameter information and the flow parameter information corresponding to the stored service type;
and determining the service type corresponding to the highest matching degree as the target service type of the service to which the target network flow belongs.
2. The method according to claim 1, wherein the method further comprises:
and updating the stored flow parameter information corresponding to the target service type based on the target flow parameter information.
3. The method according to any of claims 1-2, wherein the determining a target forwarding path for forwarding the target network traffic based on the target traffic type comprises:
and determining a forwarding path corresponding to the target service type based on a corresponding relation between the preset service type and the forwarding path, and using the forwarding path as a target forwarding path for forwarding the target network traffic.
4. A policy determining method, applied to a management device, the method comprising:
receiving a policy generation request comprising target traffic parameter information and a target service type, wherein the target traffic parameter information is sent by a network device, and the policy generation request comprises the target traffic parameter information: the network device receives flow parameter information of target network flow to be forwarded, and the target service type is: the service type of the service to which the target network flow belongs; the target traffic type is determined by: calculating the matching degree between the target flow parameter information and the flow parameter information corresponding to the stored service type; determining a service type corresponding to the highest matching degree as a target service type of a service to which the target network flow belongs;
Obtaining target service parameter information of the target service type from the stored service parameter information of each service type;
and determining a flow forwarding strategy for forwarding the target network flow based on the target flow parameter information and the target service parameter information, and sending the flow forwarding strategy to the network equipment.
5. The method of claim 4, wherein the service parameter information for each service type is determined as follows:
and generating service parameter information of each service type based on the service description information of each service type, the configuration information of each network device and the parameter information of the network resource.
6. The method of claim 5, wherein the service description information comprises: identification of service type, importance of service type, SLA of service type.
7. The method according to any of claims 4-6, wherein the target traffic type is one of the following traffic types: browser service type, email service type, game service type, video service type, audio service type.
8. A traffic forwarding device for use with a network appliance, the device comprising:
The information determining module is used for receiving the target network flow to be forwarded sent by the terminal equipment and determining target flow parameter information of the target network flow;
the type determining module is used for determining a target service type of the service to which the target network flow belongs based on the target flow parameter information;
the path determining module is used for determining a target forwarding path for forwarding the target network traffic based on the target service type;
the request sending module is used for sending a policy generation request containing the target flow parameter information and the target service type to the management equipment before the target network flow is forwarded according to the target forwarding path in the flow forwarding module;
the policy receiving module is used for receiving a flow forwarding policy sent by the management equipment in response to the policy generation request;
the flow forwarding module is used for forwarding the target network flow by adopting the flow forwarding strategy according to the target forwarding path;
the type determination module comprises: the matching degree calculating submodule is used for calculating the matching degree between the target flow parameter information and the flow parameter information corresponding to the stored service type; and the type determining sub-module is used for determining the service type corresponding to the highest matching degree as the target service type of the service to which the target network flow belongs.
9. The apparatus of claim 8, wherein the type determination module further comprises:
and the information updating sub-module is used for updating the stored flow parameter information corresponding to the target service type based on the target flow parameter information.
10. The apparatus according to any one of claims 8-9, wherein the path determining module is specifically configured to determine a target forwarding path corresponding to the target traffic type based on a correspondence between a preset traffic type and forwarding paths.
11. A policy determining apparatus, applied to a management device, the apparatus comprising:
the request receiving module is configured to receive a policy generation request including target traffic parameter information and a target service type, where the target traffic parameter information is sent by a network device: the network device receives flow parameter information of target network flow to be forwarded, and the target service type is: the service type of the service to which the target network flow belongs; the target traffic type is determined by: calculating the matching degree between the target flow parameter information and the flow parameter information corresponding to the stored service type; determining a service type corresponding to the highest matching degree as a target service type of a service to which the target network flow belongs;
The information acquisition module is used for acquiring target service parameter information of the target service type from the stored service parameter information of each service type;
and the policy determining module is used for determining a flow forwarding policy for forwarding the target network flow based on the target flow parameter information and the target service parameter information, and sending the flow forwarding policy to the network equipment.
12. The apparatus of claim 11, wherein the service parameter information for each service type is determined as follows:
and generating service parameter information of each service type based on the service description information of each service type, the configuration information of each network device and the parameter information of the network resource.
13. The apparatus of claim 12, wherein the service description information comprises: identification of service type, importance of service type, SLA of service type.
14. The apparatus according to any of claims 11-13, wherein the target traffic type is one of the following traffic types: browser service type, email service type, game service type, video service type, audio service type.
15. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-4 or 5-8 when executing a program stored on a memory.
16. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-3 or 4-7.
CN202111624563.4A 2021-12-28 2021-12-28 Traffic forwarding and policy determining method and device Active CN114338516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111624563.4A CN114338516B (en) 2021-12-28 2021-12-28 Traffic forwarding and policy determining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111624563.4A CN114338516B (en) 2021-12-28 2021-12-28 Traffic forwarding and policy determining method and device

Publications (2)

Publication Number Publication Date
CN114338516A CN114338516A (en) 2022-04-12
CN114338516B true CN114338516B (en) 2023-09-29

Family

ID=81015532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111624563.4A Active CN114338516B (en) 2021-12-28 2021-12-28 Traffic forwarding and policy determining method and device

Country Status (1)

Country Link
CN (1) CN114338516B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117395545A (en) * 2022-07-04 2024-01-12 中国电信股份有限公司 Traffic policy distribution method and device, storage medium and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660507A (en) * 2013-11-22 2015-05-27 华为技术有限公司 Control method and device for data flow forwarding route
CN107483337A (en) * 2017-07-31 2017-12-15 郑州云海信息技术有限公司 Determine the method and its network equipment in path
CN110784345A (en) * 2019-10-17 2020-02-11 杭州迪普科技股份有限公司 Network traffic processing method and device, electronic equipment and machine-readable storage medium
US10567293B1 (en) * 2018-08-23 2020-02-18 Cisco Technology, Inc. Mechanism to coordinate end to end quality of service between network nodes and service provider core
CN110808919A (en) * 2019-10-21 2020-02-18 新华三信息安全技术有限公司 Flow control method and device, network equipment and storage medium
WO2020073685A1 (en) * 2018-10-11 2020-04-16 平安科技(深圳)有限公司 Forwarding path determining method, apparatus and system, computer device, and storage medium
CN111049757A (en) * 2018-10-12 2020-04-21 华为技术有限公司 Service flow processing method and device
CN112422426A (en) * 2020-10-28 2021-02-26 中盈优创资讯科技有限公司 Service processing method and device based on SR
WO2021197253A1 (en) * 2020-04-03 2021-10-07 华为技术有限公司 Service message transmission method and related device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660507A (en) * 2013-11-22 2015-05-27 华为技术有限公司 Control method and device for data flow forwarding route
CN107483337A (en) * 2017-07-31 2017-12-15 郑州云海信息技术有限公司 Determine the method and its network equipment in path
US10567293B1 (en) * 2018-08-23 2020-02-18 Cisco Technology, Inc. Mechanism to coordinate end to end quality of service between network nodes and service provider core
WO2020073685A1 (en) * 2018-10-11 2020-04-16 平安科技(深圳)有限公司 Forwarding path determining method, apparatus and system, computer device, and storage medium
CN111049757A (en) * 2018-10-12 2020-04-21 华为技术有限公司 Service flow processing method and device
CN110784345A (en) * 2019-10-17 2020-02-11 杭州迪普科技股份有限公司 Network traffic processing method and device, electronic equipment and machine-readable storage medium
CN110808919A (en) * 2019-10-21 2020-02-18 新华三信息安全技术有限公司 Flow control method and device, network equipment and storage medium
WO2021197253A1 (en) * 2020-04-03 2021-10-07 华为技术有限公司 Service message transmission method and related device
CN112422426A (en) * 2020-10-28 2021-02-26 中盈优创资讯科技有限公司 Service processing method and device based on SR

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于SDN的流量控制算法综述;阳凯;林海涛;黎海雪;;通信技术(第04期);全文 *

Also Published As

Publication number Publication date
CN114338516A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN109768879B (en) Method and device for determining target service server and server
US10091675B2 (en) System and method for estimating an effective bandwidth
CN112087644B (en) Pull stream request processing method, device and system, electronic equipment and storage medium
CN110022259B (en) Message arrival rate determining method and device, data statistics server and storage medium
CN110138610B (en) Service message sending method and device
CN113467910B (en) Overload protection scheduling method based on service level
CN110830565B (en) Resource downloading method, device, system, electronic equipment and storage medium
US20230083553A1 (en) Content Delivery Network Server Testing
US8069236B2 (en) Flow control of events based on threshold, grace period, and event signature
CN114338516B (en) Traffic forwarding and policy determining method and device
CN111654561B (en) Method and device for determining IP address number, electronic equipment and storage medium
CN112929241A (en) Network testing method and device
CN108964822B (en) Method and system for acquiring network time in parallel by multiple schemes
CN112737940A (en) Data transmission method and device
CN109194545B (en) Network test platform flow generation system, method and device and electronic equipment
CN110677683B (en) Video storage and video access method and distributed storage and video access system
CN114465919B (en) Network service testing method, system, electronic equipment and storage medium
CN115665262A (en) Request processing method and device, electronic equipment and storage medium
TWI718778B (en) Network connected apparatus and traffic estimation method thereof
CN109756384B (en) Data source state determination method and device and computer readable storage medium
CN113835905A (en) Message queue load balancing method and device, electronic equipment and medium
CN109842627B (en) Method and device for determining service request frequency
CN113079063A (en) Offline judgment method, system and device for charging device and computer storage medium
CN111163088B (en) Message processing method, system and device and electronic equipment
CN112217740B (en) Request processing method and device based on edge computing network

Legal Events

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