CN114650233A - Message processing method and related equipment - Google Patents
Message processing method and related equipment Download PDFInfo
- Publication number
- CN114650233A CN114650233A CN202011511178.4A CN202011511178A CN114650233A CN 114650233 A CN114650233 A CN 114650233A CN 202011511178 A CN202011511178 A CN 202011511178A CN 114650233 A CN114650233 A CN 114650233A
- Authority
- CN
- China
- Prior art keywords
- message
- application
- network
- dynamic information
- information
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 14
- 238000000034 method Methods 0.000 claims abstract description 97
- 230000008569 process Effects 0.000 claims abstract description 40
- 238000004891 communication Methods 0.000 claims description 81
- 238000004590 computer program Methods 0.000 claims description 9
- 238000013467 fragmentation Methods 0.000 claims description 9
- 238000006062 fragmentation reaction Methods 0.000 claims description 9
- 238000012545 processing Methods 0.000 abstract description 89
- 238000010586 diagram Methods 0.000 description 28
- 230000006870 function Effects 0.000 description 25
- 239000012634 fragment Substances 0.000 description 20
- 230000005540 biological transmission Effects 0.000 description 9
- 229960001484 edetic acid Drugs 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 230000002159 abnormal effect Effects 0.000 description 4
- 238000013473 artificial intelligence Methods 0.000 description 3
- 238000010801 machine learning Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- RGNPBRKPHBKNKX-UHFFFAOYSA-N hexaflumuron Chemical compound C1=C(Cl)C(OC(F)(F)C(F)F)=C(Cl)C=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F RGNPBRKPHBKNKX-UHFFFAOYSA-N 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000008833 migu Substances 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5003—Managing SLA; Interaction between SLA and QoS
- H04L41/5019—Ensuring fulfilment of SLA
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application discloses a message processing method and related equipment.A network device firstly acquires dynamic information corresponding to a received message, and the dynamic information represents a state corresponding to an application to which the message belongs; the network equipment determines the network resource information corresponding to the message according to the dynamic information, so that the network equipment can process the message based on the determined network resource information. Therefore, by the method, the network equipment receiving the message corresponding to the application can sense the dynamic information of the application and perform targeted processing on the message based on the dynamic information, and the application can bring better experience quality to the user by considering the dynamic information of the application in the message processing process, so that the use experience of the application to the user can be improved, and the control on the application is more accurate.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a message processing method and a related device.
Background
With the development of communication technology, a great number of applications are developed to bring convenience to the work and life of users. At present, in the running process of an application on a user equipment, a better quality of experience (QoE) cannot be brought to a user, which will affect the subjective feeling of the user on the quality and performance of a service provided by the application. Therefore, it is desirable to provide a technical solution that can provide better use experience for users using applications.
Disclosure of Invention
The application provides a message processing method and related equipment, each equipment receiving a message corresponding to an application can sense dynamic information of the application, and the message is subjected to targeted processing based on the dynamic information, so that the application can bring better QoE to a user, and the use experience of the application to the user is improved.
In a first aspect, the present application provides a message processing method, which may include: the network device obtains dynamic information corresponding to the message, and the dynamic information represents a state corresponding to an application to which the message belongs, so that the network device can determine network resource information corresponding to the message according to the dynamic information, and the network device can process the message based on the determined network resource information. Therefore, by the method, the network equipment receiving the message corresponding to the application can sense the dynamic information of the application, the message is processed in a targeted manner based on the dynamic information, and the application can bring better QoE to the user by considering the dynamic information of the application in the message processing process, so that the use experience of the application to the user can be improved, and the application can be controlled more accurately.
The dynamic information may include a state value of the application, and for example, the dynamic information may be at least one of the following information: the resolution level of the application, the video code rate of the application, the remaining duration of the application of the cached video, the remaining data volume of the application of the cached video, the proportion of the remaining data volume of the application of the cached video to the total cache space or the proportion of the remaining duration of the application of the cached video to the total duration of the video. Alternatively, the dynamic information may also include a status indication of the application, where the status indication of the application is used to instruct the network device to provide the application with the enhanced network resource, for example, the dynamic information may be at least one of the following information: the residual duration of the application cached video belongs to a normal state, an alarm state or other states, the residual data volume of the application cached video belongs to the normal state, the alarm state or other states, the proportion of the residual data volume of the application cached video in the total cache space belongs to the normal state, the alarm state or other states, and the proportion of the residual duration of the application cached video in the total duration of the video belongs to the normal state, the alarm state or other states. Still alternatively, dynamic information may also embody application-related states, including but not limited to: the relevant parameter or the status indication corresponding to the relevant parameter of the application-related device may be, for example, at least one of the following information: end-to-end delay from the user equipment where the application is located to the service equipment of the application, end-to-end delay jitter from the user equipment where the application is located to the service equipment, or end-to-end rate from the user equipment where the application is located to the service equipment; for another example, the dynamic information may also be a status indication corresponding to any of the above information, for example, an end-to-end rate from the user equipment where the application is located to the service equipment belongs to a normal state, an alarm state, or other states.
Wherein the network resource information includes but is not limited to one or more of the following: quality of service level, forwarding path, bandwidth, network fragmentation, wireless channel, or wireless frequency. The QoS Level may be, for example, a Quality of Service (QoS) Level or a Service Level Agreement (SLA) Level. For example, if the network resource information includes a forwarding path, the network device may send a message according to the forwarding path in the network resource information after determining the network resource information; for another example, if the network resource information includes a network segment, the network device may process the packet in the network segment in the network resource information after determining the network resource information.
In a possible implementation manner, the determining, by the network device, the network resource information corresponding to the packet according to the dynamic information may include: and the network equipment determines the network resource information according to the dynamic information and the application condition, wherein the application condition can comprise application characteristic information and/or application requirement information, the application characteristic information is used for representing the attribute of the application, and the application requirement information is used for representing the requirement of the application on the network. When the network to which the network device belongs or the network device mainly transmits the packet of the same type of application, the network device may determine the network resource information only according to the dynamic information of the application, or determine the network resource information according to the dynamic information of the application and the application requirement information. When the message transmitted by the network is related to multiple applications, the network device may determine the network resource information according to the dynamic information and the application characteristic information, or may also determine the network resource information according to the dynamic information, the application characteristic information, and the application requirement information. Therefore, the network equipment receiving the message corresponding to the application can sense the application condition and the dynamic information of the application and perform targeted processing on the message based on the application condition and the dynamic information, so that the application can bring better QoE to a user, and more accurate control on the application is realized.
In a possible implementation manner, when the client or the user equipment corresponding to the application has the capability of generating dynamic information, the dynamic information may be generated and carried in the message by the user equipment, that is, the message may include the dynamic information. Then, the network device obtains the dynamic information corresponding to the packet, for example, the network device may analyze the packet to obtain the dynamic information carried in the packet.
In another possible implementation, the dynamic information of the message may be generated by the network device. The dynamic information may be generated by the network device, such as when the client and the user device to which the application corresponds do not have the capability to generate the dynamic information. For example, the Network device may be a Broadband Network Gateway (BNG) between the user Equipment and the service device or a Customer Premise Equipment (CPE). Then, the network device obtains the dynamic information corresponding to the packet, which may be, for example: and the network equipment generates dynamic information corresponding to the message according to the message. The process of the network device generating the dynamic information corresponding to the packet according to the packet may include: the network device performs flow-by-flow detection on the received packet, and identifies a packet belonging to the same flow as the received packet, which may specifically be: the network equipment determines the flow to which the message belongs according to the application characteristic information carried in the message, and determines the message in the flow; then, the historical parameters of each message received in the flow are obtained, and based on the historical parameters, the dynamic information of the flow is generated through technologies such as machine learning, Artificial Intelligence (AI) or Deep Packet Inspection (DPI). In this implementation manner, after acquiring the dynamic information corresponding to the message, the network device may further update the message, where the updated message includes the acquired dynamic information.
In a possible implementation manner, after the network device determines the network resource information, the message may be updated, the updated message may include the determined network resource information, and the updated message may further include dynamic information. Therefore, each subsequent network device can acquire the corresponding network resource information from the updated message, so that the message is sent based on the acquired network resource information until the message is sent to the service device, the corresponding network resource information does not need to be determined on each network device based on the dynamic information, the network resources are saved, and the traffic processing efficiency is improved.
In a possible implementation manner, the network device may process the packet according to the network resource information corresponding to the dynamic information, for example, select a corresponding network resource such as a QoS class, a forwarding path, or a network segment based on the dynamic information or the network resource information in the packet, and process the packet according to the selected network resource.
In another possible implementation manner, the network device may further obtain a policy entry according to the network resource information corresponding to the dynamic information, so as to process the packet according to the policy entry. The network device may obtain the policy entry according to the network resource information corresponding to the dynamic information, for example, by: and the network equipment updates the strategy table entry according to the network resource information corresponding to the dynamic information to obtain the updated strategy table entry. The policy table entry may be a QoS level matching table, a forwarding table, a routing table, a tunnel table, a network fragmentation selection table, etc. locally set by the network device. The network device may query the relevant table entry according to the packet, and then process the packet using the query result, for example, process the packet using the QoS class, forwarding path, or network fragment included in the query result.
In yet another possible implementation manner, if the network device is a border device of an Autonomous System (AS), the network device may further mark a QoS related field in the message according to the dynamic information or network resource information corresponding to the dynamic information, where the QoS related field includes, but is not limited to: the IPv6 field may be a DSCP (Differentiated Services Code Point) or a stream Type (TC) field, a ToS (Type of Service) field of an IPv4 (Internet Protocol version 4), an EXP (EXP) field of an MPLS (Multiprotocol Label Switching) field, a VLAN (Virtual Local Area Network) Priority Code Point (PCP) field of a VLAN. The network device in the AS domain can process the message according to the QoS related field; however, when the packet enters the next AS domain, the boundary device of the next AS domain needs to re-label the QoS-related field according to the dynamic information or the network resource information corresponding to the dynamic information, so that the network device in the next AS domain can accurately forward the second packet according to the value of the re-labeled QoS-related field. On each network device of an AS domain, the message can determine the corresponding QoS level, forwarding path and/or network fragment according to the value of the QoS related field, so that the message is processed by using the determined QoS level, forwarding path and/or network fragment.
In a second aspect, the present application provides a message processing method, which may include: the communication equipment obtains dynamic information, and the dynamic information is used for representing the state corresponding to the application; then, the communication equipment generates a first message, wherein the first message comprises the dynamic information; then the communication device sends a first message. The communication device may be, for example, a user device, a network device, or a service device, where both the user device and the service device correspond to the application, for example, a client corresponding to the user is installed on the user device, and the service device can provide a corresponding service for the application. Therefore, by the method, the communication equipment can obtain the dynamic information of the application and carry the dynamic information in the message to be sent to the network, other equipment in the network can sense the dynamic information of the application, the message is subjected to targeted processing based on the dynamic information, and the dynamic information of the application is considered in the message processing process, so that the application can bring better QoE to a user, the use experience of the application to the user can be improved, and the application is controlled more accurately.
In one possible implementation, if the communication device is a network device or a service device, the communication device obtains the dynamic information, which may include, for example: and the communication equipment receives a second message belonging to the application and acquires the dynamic information according to the second message.
As an example, if the communication device is the network device, the obtaining, by the communication device, the dynamic information according to the second packet includes: the communication device obtains the dynamic information from the second message (i.e., the second message includes the dynamic information), or the communication device generates the dynamic information according to the second message. If the second message includes the dynamic information, the first message generated by the communication device may be the second message, or may be the first message obtained by updating the second message (for example, adding the network resource information to the second message); if the second message does not include the dynamic information, the first message generated by the communication device may be obtained by updating the second message, for example, by adding the dynamic information to the second message to obtain the first message.
As another example, if the communication device is the service device, the second packet is a packet sent by the user equipment, where the second packet includes the dynamic information, and the obtaining, by the communication device, the dynamic information according to the second packet includes: the communication device obtains the dynamic information from the second message. Then, the communication device generates the first packet, which may include: and responding to the second message including dynamic information, wherein the service equipment carries the dynamic information in a message corresponding to the application sent to the user equipment, and the message corresponding to the application includes the first message. In this way, the network device through which the service device sends the message to the user device can also sense the state of the application, so that the message of the application is reasonably processed based on the dynamic information in the received message.
In the method provided in the first aspect or the second aspect, the message may carry dynamic information through a Service Status Option (english: Service Status Option) field, and the Service Status Option field may be carried in an Application-aware sixth version Internet Protocol network (APN 6) Option header of the message. Wherein, the Service Status Option field may include: an Option Type (english: Option Type) field, an Option Length (english: Option Length) field, and an Option Value (english: Option Value) field. The Option Type field may be, for example, 1 byte, and the value of the Option Type field identifies that the Type of the Option field is Service-Status Option; the Option Length field may also be 1 byte, for example, and the Value of the Option Length field indicates the Length occupied by the Option Value field; the Length of the Option Value field is variable, and at least one piece of dynamic information may be carried by at least one sub Type Length Value (sub-TLV) field, for example, each sub-TLV field in the Option Value field carries one piece of dynamic information.
In a third aspect, the present application further provides a packet processing apparatus, where the apparatus is applied to a network device. The apparatus may comprise, for example, an acquisition unit and a determination unit. The device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring dynamic information corresponding to a message, and the dynamic information represents a state corresponding to an application to which the message belongs; and the determining unit is used for determining the network resource information corresponding to the message according to the dynamic information.
In a possible implementation manner, the determining unit is specifically configured to: and determining the network resource information according to the dynamic information and application conditions, wherein the application conditions comprise application characteristic information and/or application requirement information, the application characteristic information is used for representing the attributes of the application, and the application requirement information is used for representing the requirements of the application on the network.
In a possible implementation manner, the message includes the dynamic information.
In another possible implementation manner, the obtaining unit is specifically configured to: and generating the dynamic information according to the message. In this implementation, the apparatus may further include: a first updating unit. The first updating unit is configured to update the packet, where the packet includes the dynamic information.
In one possible implementation, the apparatus may further include: and a second updating unit. The second updating unit is configured to update the packet, where the packet includes the network resource information.
Wherein the network resource information includes one or more of: quality of service level, forwarding path, bandwidth, network fragmentation, wireless channel, or wireless frequency.
In one possible implementation, the apparatus may further include: and a sending unit. The sending unit is configured to send the packet according to the network resource information.
In one possible implementation, the apparatus may further include: an obtaining unit and a processing unit. The obtaining unit is used for obtaining a policy table entry according to the network resource information; and the processing unit is used for processing the message corresponding to the application according to the strategy table entry.
In a possible implementation manner, the dynamic information includes a status value of the application or a status indication of the application, where the status indication is used for indicating that the network device provides the enhanced network resource for the application.
In a possible implementation manner, the dynamic information is carried by the packet through a service state option field, where the service state option field may be carried in an APN6 option header of the packet.
It should be noted that, the message processing apparatus provided in the third aspect is configured to execute the relevant operations mentioned in the first aspect, and both the specific implementation manner and the achieved effect of the message processing apparatus may refer to the relevant description of the first aspect, and are not described herein again.
In a fourth aspect, the present application further provides a message processing apparatus, where the apparatus is applied to a communication device. The apparatus may comprise, for example: an obtaining unit, a generating unit and a transmitting unit. The device comprises an obtaining unit, a processing unit and a processing unit, wherein the obtaining unit is used for obtaining dynamic information, and the dynamic information is used for representing a state corresponding to an application; a generating unit, configured to generate a first packet, where the first packet includes the dynamic information; and the sending unit is used for sending the first message.
The communication device may include a user device, a network device, or a service device, among others.
In a possible implementation manner, the communication device is a network device or a service device, and the obtaining unit may include: a receiving subunit and an obtaining subunit. The receiving subunit is configured to receive a second packet, where the second packet belongs to the application; and the obtaining subunit is configured to obtain the dynamic information according to the second packet.
As an example, the communication device is the network device, and the generating unit is specifically configured to: and updating the second message to obtain the first message.
As another example, the communication device is the service device, the second packet is a packet sent by the user equipment, the second packet includes the dynamic information, and the generating unit is specifically configured to: and responding to the second message including the dynamic information, and carrying the dynamic information in a message corresponding to the application sent to the user equipment, wherein the message corresponding to the application includes the first message.
In a possible implementation manner, the dynamic information includes a status value of the application or a status indication of the application, where the status indication is used for indicating that the network device provides the enhanced network resource for the application.
In a possible implementation manner, the dynamic information is carried by the first packet through a service status option field, where the service status option field may be carried in an APN6 option header of the first packet.
It should be noted that, the message processing apparatus provided in the fourth aspect is configured to execute the relevant operations mentioned in the second aspect, and both the specific implementation manner and the achieved effect of the message processing apparatus can be referred to the relevant description of the second aspect, and are not described herein again.
In a fifth aspect, the present application further provides a network device, including: a memory and a processor. Wherein the memory is used for storing program codes or instructions; the processor is configured to execute the program code or instructions to cause the network device to perform the method provided by the first aspect above.
In a sixth aspect, the present application further provides a communication device, including: a memory and a processor. Wherein the memory is used for storing program codes or instructions; the processor is configured to execute the program code or instructions to cause the communication device to perform the method provided by the second aspect above.
In a seventh aspect, the present application further provides a network system, including: user equipment, network equipment and service equipment. The user equipment is used for generating a message corresponding to the application and sending the message to the service equipment through the network equipment; the network device, configured to perform the method provided in the first aspect above; and the service equipment is used for receiving the message and carrying the dynamic information in the message corresponding to the application sent to the user equipment.
In an eighth aspect, the present application further provides a computer-readable storage medium, in which program codes or instructions are stored, and when the program codes or instructions are executed on a computer, the computer is caused to execute the method provided in any one of the possible implementation manners provided in the above first aspect or second aspect.
In a ninth aspect, the present application further provides a computer program product, which when run on a network device, causes the network device to execute the method provided in any one of the possible implementation manners of the first aspect or the second aspect.
In a tenth aspect, the present application provides a chip comprising a memory for storing a computer program and a processor for calling and executing the computer program from the memory to perform the method of the first or second aspect.
Optionally, the chip only comprises a processor, the processor is configured to read and execute the computer program stored in the memory, and when the computer program is executed, the processor performs the method of the first aspect or the second aspect.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a diagram illustrating a format of an application-aware identification option field according to the present application;
FIG. 2a is a schematic diagram of a format of an option value field in an application aware identifier option field according to the present application;
FIG. 2b is a diagram illustrating another format of an option value field in an application aware identifier option field according to the present application;
FIG. 2c is a diagram illustrating another format of an option value field in an application aware identifier option field according to the present application;
FIG. 3 is a diagram illustrating a format of an option field of application parameter information according to the present application;
FIG. 4a is a diagram illustrating a format of an option value field in an option field of application parameter information according to the present application;
FIG. 4b is a diagram illustrating another format of an option value field in an option field of application parameter information according to the present application;
FIG. 4c is a diagram illustrating another format of an option value field in an option field of application parameter information according to the present application;
FIG. 4d is a schematic diagram of another format of an option value field in an application parameter information option field according to the present application;
FIG. 5 is a schematic diagram of a network scenario in the present application;
fig. 6 is a schematic flowchart of a message processing method 100 provided in the present application;
FIG. 7a is a diagram illustrating a format of a service status option field according to the present application;
fig. 7b is a schematic diagram of a format of a sub TLV field in the service status option field in the present application;
fig. 7c is another schematic diagram of a format of a sub-TLV field in the service status option field of the present application;
fig. 8a is a schematic diagram of a format of a Value field in a sub-TLV field in a service status option field in the present application;
fig. 8b is a schematic diagram of a format of a Value field in a sub-TLV field in a service status option field according to the present application;
fig. 8c is a schematic diagram of a format of a Value field in a sub-TLV field in a service status option field according to the present application;
fig. 8d is a schematic diagram of a format of a Value field in a sub-TLV field in a service status option field in the present application;
fig. 8e is a schematic diagram of a format of a Value field one of a sub TLV field in a service status option field in the present application;
fig. 8f is a schematic diagram of a format of a Value field in a sub-TLV field in a service status option field in the present application;
fig. 8g is a schematic diagram of a format of a Value field in a sub-TLV field in a service status option field in the present application;
fig. 8h is a schematic diagram of a format of a Value field in a sub-TLV field in a service status option field in the present application;
FIG. 9 is a schematic diagram of a network scenario in the present application;
fig. 10 is a schematic structural diagram of a message processing apparatus 1000 according to the present application;
fig. 11 is a schematic structural diagram of a message processing apparatus 1100 according to the present application;
fig. 12 is a schematic structural diagram of a network device 1200 or a communication device 1200 provided in the present application;
fig. 13 is a schematic structural diagram of a network device 1300 or a communication device 1300 provided in the present application;
fig. 14 is a schematic structural diagram of a network system 1400 provided in the present application.
Detailed Description
In the process of running the application on the user equipment, the network equipment connected with the user equipment performs access control on the application used by the user on the user equipment, and provides corresponding network service for the user. However, at present, the control of the network device on the application running on the user equipment cannot bring a better QoE to the user.
Research on the application running process shows that some indexes of the application in the user equipment in the running process can influence the QoE brought to the user by the application, so that the subjective feeling of the user on the quality and performance of the service provided by the application is influenced. For example, for live video and on-demand applications, the remaining video duration in the client cache of the application or the remaining data amount in the cache on the user equipment may affect whether a stuck event occurs, and the occurrence of the stuck event may bring a poor QoE to the user; for another example, for an application such as a battle game and a cloud game, whether a malfunction occurs may be determined by an end-to-end round-trip time (RTT) delay measured by a client of the application on a user equipment, and the occurrence of the malfunction may bring a poor QoE to a user.
Based on this, the present application provides a message processing method, which considers a parameter (hereinafter referred to as dynamic information) that affects QoE brought to a user by an application to process a message, and may include: the network equipment firstly acquires dynamic information corresponding to a received message, wherein the dynamic information represents a state corresponding to an application to which the message belongs; then, the network device determines the network resource information corresponding to the message according to the dynamic information, so that the network device can process the message based on the determined network resource information. Therefore, by the method provided by the application, the network device receiving the message corresponding to the application can sense the dynamic information of the application, and perform targeted processing on the message based on the dynamic information, and the application can bring better QoE to the user by considering the dynamic information of the application in the message processing process, so that the use experience of the application to the user can be improved, and the application can be controlled more accurately.
For the purpose of understanding the present application, the following first explains the meaning of some concepts related to the present application.
Dynamic information: the state of the application or the related state of the application can be represented, and the situation of the application in the running process can be reflected. The dynamic information characterizing the state of the application may include, but is not limited to: the relevant parameter or the status indication corresponding to the relevant parameter in the running process of the application may be, for example, at least one of the following information: the resolution level of the application, the video code rate of the application, the remaining duration of the application of the cached video, the remaining data volume of the application of the cached video, the proportion of the remaining data volume of the application of the cached video to the total cache space or the proportion of the remaining duration of the application of the cached video to the total duration of the video; for another example, the dynamic information may also be a status indication corresponding to any of the above information, for example, the remaining duration of the application-cached video belongs to a normal state, an alarm state, or another state. Dynamic information characterizing application-related states may include, but is not limited to: the relevant parameter or the status indication corresponding to the relevant parameter of the application-related device may be, for example, at least one of the following information: end-to-end delay from the user equipment where the application is located to the service equipment of the application, end-to-end delay jitter from the user equipment where the application is located to the service equipment, or end-to-end rate from the user equipment where the application is located to the service equipment; for another example, the dynamic information may also be a status indication corresponding to any of the above information, for example, an end-to-end rate from the user equipment where the application is located to the service equipment belongs to a normal state, an alarm state, or other states.
Resource conditions are as follows: the method comprises the steps of collecting information considered for controlling the application, and carrying out corresponding processing on a message based on resource conditions by network equipment through which the message corresponding to the application passes. The resource condition may include at least one of the following information: dynamic information, application characteristic information, or application requirement information. Here, the application characteristic information and the application requirement information may be referred to as application conditions.
Application characteristic information: for characterizing attributes of an application. For example, the application characteristic information may include all or part of the following information: an Application Identity (APPID), a User ID, a Flow ID, and a service level. The APP ID is used to uniquely identify a specific application, which may be an application provided by an operator (e.g., migu) or an application provided by an application provider (e.g., Over The Top, OTT for short) (e.g., glory by royal); the User ID is used for identifying the User to which the application belongs; the Flow ID is used for identifying the service Flow or session to which the service message sent by the application belongs; the Service Level is used to represent the network performance required by the Service packet sent by the application, and may be, for example, a Level of a Service Level Agreement (SLA) or an SLA value. In addition, the application characteristic information may also include network performance parameters. As an example, the message corresponding to the Application may carry Application feature information through an Application-aware identification Option (english: Application-aware ID Option) field shown in fig. 1, where the Application-aware ID Option field includes: an Option Type (English: Option Type) field, an Option Length (English: Option Length) field and an Option Value (English: Option Value) field, wherein the Option Type field is used for indicating that the Option field is an Application-aware ID Option field, namely, the Value of the Option Value field in the Option field is Application characteristic information; the option length type is used for indicating the length of the option field; and the value of the option value field is application characteristic information. The Option value field in the Application-aware ID Option field shown in FIG. 1, for example, may include an APP ID field, a User ID field, a Flow ID field, and an SLA level as shown in FIG. 2 a; also for example, as shown in FIG. 2b, it may include an APP ID field, a User ID field, a Flow ID field, an SLA level, and other network performance parameters (English: restrictions) fields; for another example, as shown in fig. 2c, the device may further include a Locator Address (location Address) field, a Function identifier (Function ID) field, and an definitions field.
The application requirement information is as follows: for characterizing the requirements of an application on a network. The application requirement information may include, but is not limited to: the requirements of the network performance such as bandwidth, time delay jitter, packet loss rate and the like are applied. As an example, the message corresponding to the application may carry the application requirement information through an application parameter information Option (english: Service-para Option) field shown in fig. 3, where the Service-para Option field includes: the Option field comprises an Option Type field, an Option Length field and an Option Value field, wherein the Option Type field is used for indicating that the Option field is a Service-para Option field, namely, the Value of an Option Value field in the Option field is application requirement information; the Option Length type is used for indicating the Length of the Option field; the Value of the Option Value field is application requirement information. The Option Value field in the Service-para Option field shown in fig. 3 may include, for example, as shown in fig. 4a, a Type field, a Length field, a class Type (english: ClassType) field, a Reserved (english: Reserved) field, and a Bandwidth (english: Bandwidth) field; for another example, as shown in fig. 4b, the message may include a Type field, a Length field, a Reserved field, and a Delay field; for another example, as shown in fig. 4c, the field may include a Type field, a Length field, a Reserved field, and a Delay Variation (english: Delay Variation) field; for example, as shown in fig. 4d, the Packet Loss rate (Packet Loss rate) field may also include a Type field, a Length field, a Reserved field, and a Packet Loss rate (english) field.
If the message corresponding to the application is an Internet Protocol Version 6 (IPv 6 for short), the application characteristic information and the application requirement information may be specifically carried in a Flow Label (Flow Label) field, a Hop-by-Hop Options Header (HBH for short) or a Destination Options Header (DOH for short) of the IPv6 Header. If the application-specific message is a Segment Routing-Internet Protocol Version 6 (SRv 6 for short), the application characteristic information and the application requirement information may be carried in the Segment Routing Header (SRH) field of SRv6 message, in addition to the above-mentioned position of the IPv6 Header of the message, and may be carried in the SRH Tag (Tag) field, the SRH Type Length Value (TLV) field, or the variable (Identifier) field of each Segment Identifier (SID) in the SRH. The above manner of carrying the application characteristic information and the application requirement information in the message is only exemplary, and how to carry the application characteristic information and the application requirement information of the application in the message corresponding to the application is not specifically limited in the application.
The network resource information corresponds to the resource condition, and is used for providing corresponding processing for the message, such as forwarding the message by using the network resource. The network resource information may include, for example, one or more of: quality of service level, forwarding path, bandwidth, network fragmentation, wireless channel, or wireless frequency. If the network resource information is a service quality grade, the network equipment receiving the message can determine the service quality grade of the message according to the resource condition of the message, so that the message is queued in a queue corresponding to the service quality grade; if the network resource information is a forwarding path, the network device receiving the message can determine the forwarding path of the message according to the resource condition of the message, so as to forward the message according to the determined forwarding path; if the network resource information is bandwidth, the network device receiving the message can determine the bandwidth of the message according to the resource condition of the message, so that the message can be forwarded at the determined bandwidth; if the network resource information is the network fragment, the network device receiving the message can determine the network fragment of the message according to the resource condition of the message, so that the message is forwarded in the determined network fragment. If the network resource information includes the service quality level and the network fragment, the network device receiving the message may determine the service quality level and the network fragment of the message according to the resource condition of the message, so as to enqueue the message in a queue corresponding to the service quality level and forward the message in the determined network fragment. If the network resource information includes a service quality level, a forwarding path, a bandwidth, a network fragment, a wireless channel and a wireless frequency, the network device receiving the message may determine the service quality level, the forwarding path, the bandwidth, the network fragment wireless channel and the wireless frequency of the message according to the resource condition of the message, so that the message is queued in a queue corresponding to the service quality level and forwarded according to the determined forwarding path, bandwidth, network fragment, wireless channel and wireless frequency. Wherein the quality of service level includes, but is not limited to, an SLA level.
For example, the present application may be applied to the network scenario shown in fig. 5, where the network scenario may include: the user equipment 11, the network equipment 21, the network equipment 22, the network equipment 23 and the service equipment 31, wherein the application A is installed on the user equipment 11, and the service equipment 31 can provide the corresponding service of the application A for the user. The user equipment 11 and the service equipment 31 can be connected through at least one network device, for example, the user equipment 11 and the service equipment 31 can be connected through the network device 21 and the network device 22; for another example, the user equipment 11 and the service device 31 may be connected to each other through the network device 23. Network device 21 and network device 22 may be directly connected or indirectly connected through other devices. Taking an example that a user operates the application a on the user equipment 11, so that the user equipment 11 sends the message 1 to the service equipment 31 through the network equipment 21 and the network equipment 22, the message processing process provided by the present application may include: s11, the user equipment 11 sends a message 1 to the network equipment 21, where the message 1 includes dynamic information 1 and application feature information 2; s12, the network device 21 determines SLA level 1 according to the dynamic information 1 and the application characteristic information 2 in the message 1; s13, the network device 21 enqueues the message 1 into the queue 1 corresponding to the SLA level 1, and the processing of the message in the queue 1 can meet the requirement of the SLA level 1; s14, the network device 21 sends the packet 1 from the queue 1 to the network device 22; s15, the network device 22 determines SLA level 1 according to the dynamic information 1 and the application characteristic information 2 in the message 1; s16, the network device 22 enqueues the message 1 to the queue 1 'corresponding to the SLA level 1, and the processing of the message in the queue 1' can meet the requirements of the SLA level 1; s17, the network device 22 sends the message 1 from the queue 1' to the service device 31; s18; the service device 31 acquires the dynamic information 1 from the message 1, and adds the dynamic information 1 to the message 2 sent to the user device 11 to acquire a message 3; s19, the service device 31 sends the message 3 to the network device 23; s20, the network device 23 determines SLA level 2 according to the dynamic information 1 in the message 3; s21, the network device 23 enqueues the message 3 in the queue 2 corresponding to the SLA level 2, and the processing of the message in the queue 2 can meet the requirements of the SLA level 2; s22, the network device 23 sends the message 3 from queue 2 to the user device 11. Therefore, in the message processing process, the dynamic information of the application is considered, so that the application can bring better QoE to the user, the use experience of the application to the user can be improved, and the application can be controlled more accurately.
In the present application, a user device refers to any device that can install a client of an application to provide a service related to the application for a user, and for example, the device may be a mobile phone, a computer, or the like. The service device is a device capable of providing a corresponding service for a certain application or some applications on the user device, and may be, for example, a Network Cloud Engine (NCE) or a server. The network device refers to a device having a message forwarding function, and may be, for example, a router, a switch, a repeater, a firewall, or other devices. The various devices in the present application are not specifically limited in the present application.
In order to facilitate understanding of the message processing method provided in the present application, the method will be described below with reference to the accompanying drawings.
Fig. 6 is a flowchart illustrating a message processing method 100 provided in the present application. The method 100 is described in terms of interaction among a user device, a network device, and a service device for the sake of clarity, but operations performed by each device in the method 100 may be implemented as a single embodiment. Taking the structure of the network scenario shown in fig. 5 as an example, the user equipment may be, for example, the user equipment 11 in fig. 5, the service equipment may be, for example, the service equipment 31 in fig. 5, and the network equipment may be, for example, the network equipment 21, the network equipment 22, or the network equipment 23 in fig. 5.
In a specific implementation, the method 100 may include, for example, the following S101 to S106:
s101, user equipment sends a first message to network equipment, wherein the first message belongs to application.
The first message may be a message that is generated by the user equipment and needs to be sent to the service equipment and corresponds to an application installed on the user equipment, and a destination address of the first message is matched with an address of the service equipment corresponding to the application. The first message may be a data message or a control message. The first message belongs to the application: the first message may be automatically generated by an application installed on the user equipment, or may be generated based on an operation trigger performed by a user on a client corresponding to the application installed on the user equipment.
In a specific implementation, the user equipment sends the first packet to a network device, where the network device may be any one of network devices through which the packet on the user equipment passes on a path to the service device, for example, the network device 21 in the network scenario shown in fig. 5.
S102, the network equipment acquires dynamic information corresponding to the first message, and the dynamic information is used for representing the dynamic state of the application.
And the dynamic information corresponding to the first message is used for representing the relevant state of the application to which the first message belongs, including the state of the application and the state of the user equipment in which the application is located. The dynamic information can be embodied in two forms: a state value of an application or an indication of the state of an application. The state value of the application may be a specific value of a relevant parameter in the application running process, for example, the dynamic information of the first packet may include a remaining duration of the application cached video; the state indication of the application may be an indication determined according to a state value of the application, and is used to indicate whether the network device receiving the first packet needs to provide the enhanced network resource for the application, for example, the dynamic information of the first packet may also include a state indication (normal or alarm) corresponding to the remaining duration of the application cached video, the normal state may be characterized that the enhanced network resource is not required to be provided for the application, and the alarm state may be characterized that the enhanced network resource is required to be provided for the application.
In a possible implementation manner, when the client or the user equipment corresponding to the application has a capability of generating dynamic information, the dynamic information of the first packet may be generated and carried in the first packet by the user equipment, and then, for example, S102 may be that the network equipment analyzes the first packet to obtain the dynamic information carried in the first packet. If the client of the application uses a Transmission Control Protocol (TCP) for communication, the first message may be a data acquisition request message sent by the client of the application, or the first message may also be an Acknowledgement (ACK) message sent by the client of the application after receiving the data, where the first message may carry dynamic information. If the client of the application uses User Datagram Protocol (UDP) communication, the first packet may be a UDP packet sent by the client of the application, or the first packet may also be a TCP packet in TCP communication corresponding to the UDP communication, and the first packet may carry dynamic information.
It should be noted that, in this implementation manner, the first packet may consider that the dynamic information needs to be notified to the network device only when the dynamic information represents that the application is in an abnormal state, so that the dynamic information is carried in the first packet; when the dynamic information indicates that the application is in a normal state, it is considered that the dynamic information does not need to be notified to the network device, so the dynamic information is not carried in the first message. Or, the user equipment may also carry the dynamic information in the first packet when the dynamic information indicates that the application is in an abnormal state or a normal state.
In a specific implementation, the first packet may carry the dynamic information through a Service Status Option (english: Service Status Option) field, and the Service Status Option field may be carried in an Application-aware sixth version Internet Protocol (APN 6) Option header of the first packet. As shown in fig. 7a, the Service Status Option field may include: an Option Type field, an Option Length field, and an Option Value field. The Option Type field may be, for example, 1 byte, and the value of the Option Type field identifies that the Type of the Option field is Service-Status Option; the Option Length field may also be 1 byte, for example, and the Value of the Option Length field indicates the Length occupied by the Option Value field; the length of the Option Value field is variable, and at least one piece of dynamic information may be carried by at least one sub-TLV field, for example, each sub-TLV field in the Option Value field carries one piece of dynamic information.
As shown in fig. 7b, each sub-TLV field in the Option Value field may include: a Type field, a sub-Type field, a Length field and a Value field, wherein the Type field may be 2 bytes, for example, and is used for indicating a category to which the piece of dynamic information belongs; the sub Type field may be, for example, 1 byte, and is used to indicate the subtype of the piece of dynamic information in the category to which the piece of dynamic information belongs, and the Type field jointly indicates the specific Type of the piece of dynamic information; the Length field may be, for example, 1 byte, and is used to indicate the Length of the Value field; the Value field is variable in length and is used for carrying specific contents of the piece of dynamic information. For example, the classification of the dynamic information includes, but is not limited to: the value of the Type field can be 0x 0000-0 x001F, which represents a general Type, and the sub-types represented by the values of the sub-Type field can include: delay, jitter, bandwidth, etc., and 32 × 256 to 8192 specific types can be supported in the general type; the value of the Type field can be 0x0020 to 0x2020, which represents an application Type, for example, a video application, and the sub-types represented by the values of the sub-Type field may include: cache duration, etc., and the application type can support 8192 specific types; the value of the Type field can be 0x 2021-0 xEFFF: representing a particular application, such as Royal, the sub-Type represented by the value of the sub-Type field may include: end-to-end delay, air interface delay, etc., and the specific application can support 53215 specific types; the value of the Type field can be 0xF 000-0 xFFFF, which represents a private application or an experimental application Type, such as an enterprise internal IT application and a research and development system, and the subtype represented by the value of the sub-Type field can include: delay, jitter, bandwidth, etc., which may be 4096 specific types for this proprietary or experimental use type.
Alternatively, as shown in fig. 7c, each sub-TLV field in the Option Value field may also include: a Type field, a Length field, and a Value field, wherein the Type field may be 3 bytes, for example, and only the Type field and the sub Type field in the sub TLV field shown in fig. 7b are merged into one Type field, compared to the sub TLV field format shown in fig. 7 b. The sub-TLV field shown in fig. 7c may enable the network device to have better processing performance for the sub-TLV field than the format of the sub-TLV field shown in fig. 7 b.
For the sub-TLV field shown in fig. 7b or fig. 7c, the Value field carries dynamic information corresponding to the first packet.
In one case, if the dynamic information is an indication of the status of the application, the Value field may be formatted as shown in fig. 8a, for example, where the Value field may include: an E flag bit of 1 bit (indicating Enhanced or Early warning) and a reserved field of 31 bits. For example, when the E flag bit is 1, it may indicate that the application wants the network to provide better network service for the application, so as to avoid the QoE of the application from being degraded; when the E flag bit is 0, it may indicate that the application does not currently require special treatment by the network.
Alternatively, if the dynamic information is the state Value of the application, the format of the Value field may be different according to the dynamic information. For example, for dynamic information of video attributes, the format of the Value field may be as shown in fig. 8b, including: a reserved field, a Resolution Level (english: Resolution Level), and a video Bitrate (also called Bitrate, english: Bitrate, unit: megabit per second (english: Mbps)). For another example, for the remaining duration of the cached video, the format of the Value field may be as shown in fig. 8c, including: a reserved field and a Remaining duration of the cached Video (in English: Remaining Time of buffered Video), wherein the unit of the Remaining duration of the cached Video is millisecond (in English: millisecond, abbreviated as ms); for another example, for the remaining data amount of the cached video, the format of the Value field may be as shown in fig. 8d, including: a reserved field and a Remaining data amount of the cached Video (english: Remaining Size of buffered Video), wherein the unit of the Remaining data amount of the cached Video is kilobyte (english: KB for short); for another example, for the remaining data amount of the cached video as a percentage of the cache space, the format of the Value field may be as shown in fig. 8e, including: the reserved field and the remaining data amount of the cached video are the percentage of the cache space (English: Capacity Ratio). For another example, for end-to-end delay from the ue to the serving device, the Value field may be formatted as shown in fig. 8f, including: a reserved field and an End-to-End Delay (English: End-to-End Delay, also called Round Trip Time (RTT), unit: microsecond (US)); for another example, for end-to-end delay jitter from the ue to the serving device, the Value field may be formatted as shown in fig. 8g, including: reserved fields and End-to-End delay Jitter (English: End-to-End Jitter, also called RTT, unit: us); for another example, for end-to-end rate from the ue to the server, the Value field may be formatted as shown in fig. 8h, including: t field, D field, reserved field, and End-to-End Rate (english: End-to-End Rate), where a value of T field may represent a unit of the End-to-End Rate, such as: 0 represents kilobits per second (english: Kbps), 1 represents Mbps, and 2 represents gigabits per second (english: Gbps), and the value of the D field can indicate whether the end-to-end rate is an uplink rate or a downlink rate, such as: 0 represents an upstream line, and 1 represents a downstream line.
In another possible implementation manner, the dynamic information of the first packet may be generated by the network device. Such as when the client and user device to which the application corresponds do not have the capability to generate dynamic information, the dynamic information may be generated by a device in the network. For example, the Network device may be a Broadband Network Gateway (BNG) or a Customer Premises Equipment (CPE) between the user Equipment and the service device. Then, S102 may include: and the network equipment generates dynamic information corresponding to the first message according to the first message. The process of generating, by the network device, the dynamic information corresponding to the first packet according to the first packet may include: the network device performs flow-by-flow detection on the received packet, and identifies a packet belonging to the same flow as the first packet, which may specifically be: the network equipment determines the flow to which the first message belongs according to the application characteristic information carried in the first message, and determines the message in the flow; then, the historical parameters of each message received in the flow are obtained, and the dynamic information of the flow is generated through the technologies of machine learning, Artificial Intelligence (AI) or Deep Packet Inspection (DPI) and the like based on the historical parameters.
It should be noted that after receiving the first packet, the network device may obtain, in addition to the dynamic information corresponding to the first packet, application characteristic information used for representing the packet, and determine a processing manner for the first packet based on the application characteristic information and the dynamic information, for example, determine a forwarding path 1 and a forwarding path 2 corresponding to the application according to the application characteristic information, determine a forwarding path 1 from the forwarding path 1 and the forwarding path 2 according to the dynamic information, and forward the first packet according to the forwarding path 1. The application characteristic information may be carried in a first message, for example. Or, the network device may further obtain application requirement information used for representing a requirement of the application on the network, and the network device may implement dynamic path computation based on the application requirement information and the application characteristic information, so that the network device may determine a processing manner of the first packet based on the application characteristic information and the dynamic information in a dynamic path computation result.
And S103, the network equipment determines the network resource information corresponding to the first message according to the dynamic information.
Optionally, the network device determines the network resource information according to the dynamic information and the application condition. The application condition comprises application characteristic information and/or application requirement information.
In one case, the network device in S103 may determine the network resource information according to the dynamic information; in another case, the network device in S103 may determine the network resource information according to the dynamic information and the application characteristic information in the application condition; in another case, the network device in S103 may determine the network resource information according to the dynamic information and the application characteristic information and the application requirement information in the application condition. When the network to which the network device belongs or the network device mainly transmits the packet of the same type of application, the network device may determine the network resource information only according to the dynamic information of the application, or determine the network resource information according to the dynamic information of the application and the application requirement information. When the message transmitted by the network is related to multiple applications, the network device may determine the network resource information according to the dynamic information and the application characteristic information, or may also determine the network resource information according to the dynamic information, the application characteristic information, and the application requirement information.
The network resource information includes one or more of the following information: quality of service level, forwarding path, bandwidth, network fragmentation, wireless channel, or wireless frequency. The QoS level may be, for example, a Quality of Service (QoS) level or an SLA level.
In a possible implementation manner, if the dynamic information is an application state value, the network device may store a corresponding threshold, and S103 may specifically include: and the network equipment determines the network resource information corresponding to the first message according to the comparison between the applied state value and the threshold value. The threshold may be a fixed value statically or dynamically configured in advance on the network device, may also be a variable value that is continuously adjusted and updated during the operation of the network device, and may also be generated by machine learning, big data, AI, or other techniques.
As an example, the description will be given by taking an example that the dynamic information includes the remaining duration of the cached video and the network resource information includes the forwarding path. Assume that the video application 1 uses the remaining duration of the buffered video as dynamic information, taking the format shown in fig. 8c as an example. In the network shown in fig. 9, the video application 1 runs on five user equipments, which are respectively assigned to: and users 1-5, five user devices are respectively connected to the network device A, and the service device of the video application 1 is connected to the network device B. Suppose that the user 1 carries dynamic information, and the remaining duration of the cached video is 1 second (english: second, abbreviated as s); the user 2 carries dynamic information, and the residual duration of the cached video is 5 s; the user 3 carries dynamic information, and the remaining duration of the cached video is 10 s; the user 4 carries dynamic information, and the remaining duration of the cached video is 30 s; the user 5 does not carry dynamic information.
For a scene with a single threshold, it is assumed that the network device uses 6s as the threshold, and if the remaining duration of the cached video in the dynamic information of a piece of traffic is less than 6s, the traffic is transmitted by switching and using the path 1 (i.e., the path from the network device a to the network device B via the network device C); if the remaining duration of the cached video in the dynamic information of one flow is greater than or equal to 6s, or the message in the flow does not carry the dynamic information, switching to use the path 3 (i.e. the path from the network device a to the network device B through the network device E, the network device F, and the network device G in sequence) to transmit the flow. Then, traffic from the video application 1 on the user 1 and the user 2 is transmitted using the path 1, and traffic from the video application 1 on the user 3, the user 4, and the user 5 is transmitted using the path 3.
For a dual-threshold scenario, in one case, the threshold may be used as a parameter for switching path delay, for example, the network device uses 6s and 12s as thresholds, and for one traffic, when the remaining duration of the cached video in the dynamic information is less than 6s, the path 1 is switched and used; and when the residual duration of the cached video in the dynamic information is more than 12s, switching to use the path 2 (namely, the path from the network device A to the network device B through the network device D). Suppose that the user 1 carries dynamic information, the remaining duration of the cached video at the time T1 is 20s, the remaining duration of the cached video at the time T2 is 10s, the remaining duration of the cached video at the time T3 is 3s, the remaining duration of the cached video at the time T4 is 8s, and the remaining duration of the cached video at the time T5 is 30 s. Then, in the time periods from T1 to T2 and from T2 to T3, since the remaining duration 20s of the buffered video at the time point of T1 is greater than 12s, and the remaining duration of the buffered video in the time periods from T1 to T2 and from T2 to T3 is not less than 6s, the video application 1 is transmitted by using the path 2; at the time T3, since the remaining duration 3s of the buffered video is less than 6s, the path 1 is switched to transmit the video application 1; in the time periods from T3 to T4 and from T4 to T5, the remaining duration of the cached video in the time periods from T1 to T2 and from T2 to T3 is not more than 12s, so the path 1 is used for transmitting the video application 1; at time T5, since the remaining duration of the buffered video 30s is greater than 12s, the path 2 is switched to transmit the video application 1. Alternatively, the threshold may be used as a parameter for actual path switching, for example, the network device uses 6s and 12s as the threshold. Transmitting the flow with the residual duration of the cached video in the dynamic information being less than 6s by using a path 2; for the traffic of which the remaining duration of the cached video in the dynamic information is greater than or equal to 6s and less than 12s, transmitting by using a path 4 (namely, a path from the network device a to the network device B through the network device H and the network device I in sequence); and transmitting the traffic with the residual duration of the cached video in the dynamic information being greater than or equal to 12s or the traffic without the dynamic information by using the path 3. Then, the traffic sent by the video application 1 on the user 1 and the user 2 is transmitted by using the path 2, the traffic sent by the video application 1 on the user 3 is transmitted by using the path 4, and the traffic sent by the video application 1 on the user 4 and the user 5 is transmitted by using the path 3.
For a multi-threshold scenario, the threshold may also be used as a parameter for the path delay switching or a parameter for the actual switching of the path. Taking the multiple thresholds as the parameters of the real-time path switching as an example, it is assumed that the video application 1 uses the percentage of the remaining data amount of the cached video in the cache space (hereinafter referred to as "occupation ratio") as the dynamic information, and the format shown in fig. 8e is taken as an example. Suppose that user 1 carries dynamic information and accounts for 3%; user 2 carries dynamic information and accounts for 10%; user 3 carries dynamic information and accounts for 30%; user 4 carries dynamic information and accounts for 80%; the user 5 does not carry dynamic information. If the network device uses 5%, 15%, 50% and 90% as threshold, aiming at the traffic with the proportion less than 5% in the dynamic information, using the path 1 for transmission; transmitting the traffic of which the proportion in the dynamic information is greater than or equal to 5% and less than 15% by using a path 2; for the traffic of which the proportion in the dynamic information is greater than or equal to 15% and less than 50%, transmitting by using a path 5 (namely, a path from the network device a to the network device B through the network device J); for the traffic of which the proportion in the dynamic information is greater than or equal to 50% and less than 90%, transmitting by using a path 4; and aiming at the traffic with the proportion larger than 90% in the dynamic information or the traffic without carrying the dynamic information, the path 3 is used for transmission. Then, the traffic sent by the video application 1 on the user 1 is transmitted by using the path 1, the traffic sent by the video application 1 on the user 2 is transmitted by using the path 2, the traffic sent by the video application 1 on the user 3 is transmitted by using the path 5, the traffic sent by the video application 1 on the user 4 is transmitted by using the path 4, and the traffic sent by the video application 1 on the user 5 is transmitted by using the path 3.
In another possible implementation manner, if the dynamic information is an application status indication, S103 may specifically include: and the network equipment determines the network resource information corresponding to the first message according to the state indication of the application.
As an example, assume that application 1 is provided with two QoS levels of forwarding services in the network: best Effort (BE) and Expedited Forwarding (EF). When the network equipment determines the message 1 with the E flag bit of 1 in the acquired dynamic information, the EF level is used for the message 1 to carry out priority transmission; and when the network equipment determines that the message 2 with the E flag bit of 0 or the message 3 without carrying the dynamic information in the acquired dynamic information, the BE grade is used for the message 2 and the message 3 to carry out normal transmission. If there is application 1 traffic and other traffic in the network, and application 1 contains three users: user 1, user 2, and user 3, assuming that the traffic sent by application 1 of user 1 carries dynamic information and the E flag is 1, and the traffic sent by application 1 of user 2 carries dynamic information and the E flag is 0, and the traffic sent by application 1 of user 3 does not carry dynamic information, then the traffic of application 1 of user 1 will use the EF level, and BE transmitted in the network in preference to the traffic sent by application 1 of user 2, the traffic sent by application 1 of user 3, and other traffic using the BE level.
As another example, the dynamic information includes end-to-end delay, and the network resource information includes BE large bandwidth network segment a and ultra-low delay small bandwidth network segment B. For the time delay sensitive battle game 1, suppose that the battle game 1 uses the dynamic information shown in fig. 8a, if the end-to-end time delay is greater than 100ms, the dynamic information is carried in the sent message and the value of the E flag bit in the dynamic information is 1; if the end-to-end delay is less than 80ms and more than or equal to 50ms, the sent message carries dynamic information, and the value of the E flag bit in the dynamic information is 0; when the end-to-end delay is less than 50ms, the sent message does not carry dynamic information. If the network equipment determines that the E zone bit in the dynamic information corresponding to the received message 1 is 1, the network fragment B is used for transmission; and if the network equipment determines that the E zone bit in the dynamic information corresponding to the received message 2 is 0 or the received message 3 does not carry the dynamic information, the network fragment A is used for transmission. Then, the battle game 1 includes three users: 1-3 users, and the end-to-end time delay of the three users is 35ms, 90ms and 125ms respectively. At this time, the situation that the messages 1 to 3 of the users 1 to 3 carry dynamic information can be as follows: the flow sent by the battle game 1 on the user 1 does not carry dynamic information, the flow sent by the battle game 1 on the user 2 carries dynamic information and the value of the E flag bit is 0, and the flow sent by the battle game 1 on the user 3 carries dynamic information and the value of the E flag bit is 1; the traffic processing of the network device to each user may be: the network device transmits the traffic sent by the battle game 1 on the user 1 by using the network fragment A, transmits the traffic sent by the battle game 1 on the user 2 by using the network fragment A, and transmits the traffic sent by the battle game 1 on the user 3 by using the network fragment B.
When the first packet corresponds to multiple pieces of dynamic information, and the multiple pieces of dynamic information respectively correspond to different types of network resource information on the network device, then the network device may respectively determine the corresponding network resource information according to each piece of dynamic information, so as to process the first packet based on the determined multiple pieces of network resource information. Or, when the first packet corresponds to multiple pieces of dynamic information, but at least two pieces of dynamic information in the multiple pieces of dynamic information correspond to the same type of network resource information on the network device, the network device may determine corresponding network resource information according to the at least two pieces of dynamic information, determine one piece of network resource information corresponding to the at least two pieces of dynamic information according to a preset rule (e.g., selecting a better processing mode), and process the first packet based on the determined network resource information.
S104, the network equipment sends a second message according to the network resource information, wherein the second message belongs to the application.
As an example, if the first message received by the network device includes dynamic information, in one case, the second message may be the first message, that is, S104 sends the first message for the network device according to the determined network resource information. In this way, each subsequent network device can acquire the dynamic information from the first message, and determine the corresponding network resource information according to the dynamic information, so that the first message is sent based on the determined network resource information until the first message is sent to the service device. In another case, the second packet may be obtained by updating the first packet by the network device, and the updated first packet (i.e., the second packet) includes the network resource information. In this way, each subsequent network device can acquire the corresponding network resource information from the second message, so that the second message is sent based on the determined network resource information until the second message is sent to the service device, and the corresponding network resource information does not need to be determined on each network device based on the dynamic information, thereby saving the network resources and improving the traffic processing efficiency.
As another example, if the first message received by the network device does not include dynamic information and the network device generates the dynamic information according to the first message, in one case, the second message may be obtained by the network device updating the first message, and the updated first message (i.e., the second message) includes the generated dynamic information. In this way, each subsequent network device can acquire the dynamic information from the second message, and determine the corresponding network resource information according to the dynamic information, so as to send the second message based on the determined network resource information until the second message is sent to the service device. In another case, the network device may further determine the network resource information according to the generated dynamic information, where the second packet may be obtained by updating the first packet by the network device, and the updated first packet (i.e., the second packet) includes the network resource information. It should be noted that, in order to enable the subsequent network device and the service device to reasonably process the received message, the updated first message (i.e., the second message) may further include dynamic information. In this way, each subsequent network device can acquire the corresponding network resource information from the second message, so that the second message is sent based on the determined network resource information until the second message is sent to the service device, and the corresponding network resource information does not need to be determined on each network device based on the dynamic information, thereby saving the network resources and improving the traffic processing efficiency. In another case, the network device may further determine whether the generated dynamic information representation belongs to an abnormal state, and if the generated dynamic information representation belongs to the abnormal state, the second message may be obtained by updating the first message by the network device, and the updated first message (i.e., the second message) includes the network resource information and/or the dynamic information; if the second packet is in the normal state, the second packet is the first packet, that is, the first packet is not processed, and the received first packet is directly used as the second packet in S104 for corresponding processing.
Wherein, the network device sends the second message according to the network resource information, if the next hop of the network device is still the network device and not the service device, S104 may be that the network device sends the second message to the next hop network device; if the next hop of the network device is still the service device, S104 may be that the network device sends the second packet to the service device.
In a possible implementation manner, the network device may process the second packet according to the network resource information corresponding to the dynamic information, for example, select a corresponding network resource such as a QoS level, a forwarding path, or a network segment based on the dynamic information or the network resource information in the second packet, and process the second packet according to the selected network resource.
In another possible implementation manner, the network device may further obtain a policy entry according to the network resource information corresponding to the dynamic information, so as to process the second packet according to the policy entry. The network device may obtain the policy entry according to the network resource information corresponding to the dynamic information, for example, by: and the network equipment updates the strategy table entry according to the network resource information corresponding to the dynamic information to obtain the updated strategy table entry. The policy table entry may be a QoS level matching table, a forwarding table, a routing table, a tunnel table, a network fragmentation selection table, etc. locally set by the network device. The network device may query the relevant table entry according to the second packet, and then process the second packet using the query result, for example, process the second packet using the QoS class, forwarding path, or network fragment included in the query result.
In yet another possible implementation manner, if the network device is a border device of an Autonomous System (AS), the network device may further mark a QoS related field in the second message according to the dynamic information or network resource information corresponding to the dynamic information, where the QoS related field includes, but is not limited to: the IPv6 field may be a DSCP (Differentiated Services Code Point) or a stream Type (TC) field, a ToS (Type of Service) field of a IPv4 (Internet Protocol version 4), an EXP (EXP) field (TC field) of an MPLS (Multiprotocol Label Switching) Experimental Use (MPLS) field, a PCP (Priority Code Point) field of a VLAN (Virtual Local Area Network). The network device in the AS domain can process the second message according to the QoS related field; however, when the second packet enters the next AS domain, the boundary device of the next AS domain needs to re-label the QoS-related field according to the dynamic information or the network resource information corresponding to the dynamic information, so that the network device in the next AS domain can accurately forward the second packet according to the value of the re-labeled QoS-related field. The second packet may determine, on each network device in an AS domain, a corresponding QoS class, forwarding path, and/or network fragment according to a value of the QoS-related field, so that the second packet is processed using the determined QoS class, forwarding path, and/or network fragment.
S105, the service equipment receives the second message and generates a third message, wherein the third message comprises the dynamic information.
Considering that a path through which the user equipment sends traffic to the service equipment may be different from a path through which the service equipment sends traffic to the user equipment, and the dynamic information representing the state applied to the client of the user equipment may also affect the processing of the application traffic by the network equipment through which the service equipment sends traffic to the user equipment, therefore, when the service equipment receives the second message including the dynamic information, the service equipment may also carry the dynamic information in a message corresponding to the application sent to the user equipment, and thus, the network equipment through which the service equipment sends a message to the user equipment may also perceive the state of the application, and thus, the message of the application is reasonably processed based on the dynamic information in the received message.
In the method 100, for example, the service device sends a message to the user equipment as a third message, and a manner of carrying dynamic information in the third message may refer to formats shown in fig. 7a to 7c and fig. 8a to 8h, which are not described herein again.
S106, the service equipment sends the third message to the user equipment.
Wherein the service device may send the third message to the user device through at least one network device. Each network device through which the third packet passes may process the third packet according to the dynamic information carried in the third packet, for example, determine network resource information corresponding to the third packet according to the dynamic information carried in the third packet, so as to process the third packet according to the network resource information. The processing of the third packet by each network device through which the third packet passes may refer to the description of the processing manner of the network device on the first packet or the second packet in S103 and S104, which is not described herein again.
Therefore, the network equipment through which the corresponding message passes can sense the state of the application according to the dynamic information corresponding to the message, provide different network services according to the state of the application, and dynamically optimize the message of the application. For traffic of one, one class or all applications, the network may allocate multiple levels of network resources, where the network resources of different levels correspond to, but are not limited to, different forwarding paths, different QoS levels, different network segments, different wireless channels and/or wireless frequencies, and so on. The network device may use network resources of different levels for traffic processing and forwarding according to the dynamic information. For example, the network resources may be divided into a base level and an enhanced level, and for the traffic of the application in the normal state, the network resources of the base level are used for transmission; and aiming at the traffic of the application in the alarm state, the network resource in the enhanced level is used for transmission. The network resources of the base level may set the QoS level to BE and set the forwarding path of the minimum hop count, for example; the enhanced level of network resources may, for example, set the QoS level to EF and set low latency forwarding paths or network fragmentation.
It should be noted that the user equipment, the service equipment, and the network equipment in the method 100 may be collectively referred to as communication equipment, and operations performed when the communication equipment is the user equipment, operations performed when the communication equipment is the network equipment, and operations performed when the communication equipment is the service equipment may all be implemented separately as separate embodiments. For the user equipment, the dynamic information which reflects the current state of the application can be carried in the message sent to the service equipment, and a premise is provided for the reasonable processing of the message by the subsequent network equipment. For the network equipment, the dynamic information which embodies the application state can be sensed, and the message is reasonably processed based on the dynamic information, so that the application can bring better QoE to the user. For the service equipment, the dynamic information for reflecting the application state can be carried in the message sent to the user equipment, so that the network equipment through which the message from the service equipment to the user equipment passes can sense the current state of the application, and the application can bring better QoE to the user.
As can be seen, by the method 100, dynamic information that affects QoE brought to a user by an application is considered for processing a packet, that is, the network device first obtains dynamic information used for representing a state of the application to which the received packet belongs, and determines network resource information corresponding to the packet according to the dynamic information, so that the network device can process the packet based on the determined network resource information. Therefore, the network equipment receiving the message corresponding to the application can sense the dynamic information of the application, the message is processed in a targeted mode based on the dynamic information, the dynamic information of the application is considered in the message processing process, so that the application can bring better QoE to a user, the use experience of the application to the user can be improved, and the application can be controlled more accurately.
Correspondingly, an embodiment of the present application further provides a message processing apparatus 1000, where the apparatus 1000 has any function of the network device 21, the network device 22, or the network device 23 in the embodiment shown in fig. 5, or the network device a in the embodiment shown in fig. 9. As shown in fig. 10. The apparatus 1000 may include: an acquisition unit 1001 and a determination unit 1002.
An obtaining unit 1001 is configured to obtain dynamic information corresponding to a packet, where the dynamic information represents a state corresponding to an application to which the packet belongs. The acquisition unit 1001 may execute S102 shown in fig. 6.
A determining unit 1002, configured to determine, according to the dynamic information, network resource information corresponding to the packet. The determination unit 1002 may perform S103 shown in fig. 6.
In a possible implementation manner, the determining unit 1002 is specifically configured to: and determining the network resource information according to the dynamic information and application conditions, wherein the application conditions comprise application characteristic information and/or application requirement information, the application characteristic information is used for representing the attributes of the application, and the application requirement information is used for representing the requirements of the application on the network.
In a possible implementation manner, the message includes the dynamic information.
In another possible implementation manner, the obtaining unit 1001 is specifically configured to: and generating the dynamic information according to the message. In this implementation, the apparatus 1000 may further include: a first updating unit. The first updating unit is configured to update the packet, where the packet includes the dynamic information.
In one possible implementation manner, the apparatus 1000 may further include: and a second updating unit. The second updating unit is configured to update the packet, where the packet includes the network resource information.
Wherein the network resource information includes one or more of: quality of service level, forwarding path, bandwidth, network fragmentation, wireless channel, or wireless frequency.
In one possible implementation manner, the apparatus 1000 may further include: and a sending unit. The sending unit is configured to send the packet according to the network resource information. The transmitting unit may perform S104 shown in fig. 6.
In one possible implementation, the apparatus 1000 may further include: an obtaining unit and a processing unit. The obtaining unit is used for obtaining a strategy table entry according to the network resource information; and the processing unit is used for processing the message corresponding to the application according to the strategy table entry.
In a possible implementation manner, the dynamic information includes a status value of the application or a status indication of the application, where the status indication is used for indicating that the network device provides the enhanced network resource for the application.
In a possible implementation manner, the dynamic information is carried by the packet through a service state option field, where the service state option field may be carried in an APN6 option header of the packet.
It should be noted that, the units with the same function but different numbers in the nomenclature may be one unit capable of implementing the function, for example, the acquiring unit 1001 and the obtaining unit may be the same unit with the acquiring function.
It should be noted that the message processing apparatus 1000 shown in fig. 10 may be a network device in the embodiment shown in fig. 6, and therefore, various specific embodiment modes of the message processing apparatus 1000 may refer to related descriptions of the method 100 corresponding to fig. 6, and details of this embodiment are not repeated.
Correspondingly, an embodiment of the present application further provides a message processing apparatus 1100, where the apparatus 1100 has any function of the user equipment 11, the network equipment 21, the network equipment 22, the network equipment 23, or the service equipment 31 in the embodiment shown in fig. 5, or any function of the network equipment a to the network equipment J, the user equipment, or the service equipment in the embodiment shown in fig. 9. As shown in fig. 11. The apparatus 1100 may include: obtaining unit 1101, generating unit 1102, and sending unit 1103.
An obtaining unit 1101 is configured to obtain dynamic information, where the dynamic information is used to characterize a state corresponding to an application. If the communication device is a network device, the obtaining unit 1101 may execute S102 shown in fig. 6; if the communication device is a service device, the obtaining unit 1101 obtains the dynamic information corresponding to the case of obtaining the dynamic information from the second packet shown in S105 in fig. 6; if the communication device is a user device, the obtaining unit 1101 corresponds to a case where the dynamic information is included in the first packet shown in S101 in fig. 6.
A generating unit 1102, configured to generate a first packet, where the first packet includes the dynamic information. If the communication device is a network device, the first packet generated by the generating unit 1102 corresponds to the second packet shown in S104 in fig. 6; if the communication device is a service device, the generating unit 1102 may execute S105 shown in fig. 6; if the communication device is a user device, the generating unit 1102 may perform S101 shown in fig. 6.
A sending unit 1103, configured to send the first packet. If the communication device is a network device, the sending unit 1103 sends the first packet corresponding to the second packet in S104 shown in fig. 6; if the communication device is a service device, the first packet sent by the sending unit 1103 corresponds to the third packet in S106 shown in fig. 6; if the communication device is a user device, the first packet sent by the sending unit 1103 corresponds to the first packet shown in S101 in fig. 6.
The communication device may include a user device, a network device, or a service device, among others.
In a possible implementation manner, the communication device is a network device or a service device, and the obtaining unit 1101 may include: a receiving subunit and an obtaining subunit. The receiving subunit is configured to receive a second packet, where the second packet belongs to the application; and the obtaining subunit is configured to obtain the dynamic information according to the second packet.
As an example, the communication device is the network device, and the generating unit 1102 is specifically configured to: and updating the second message to obtain the first message.
As another example, the communication device is the service device, the second message is a message sent by the user equipment, the second message includes the dynamic information, and the generating unit 1102 is specifically configured to: and responding to the second message including the dynamic information, and carrying the dynamic information in a message corresponding to the application sent to the user equipment, wherein the message corresponding to the application includes the first message.
In a possible implementation manner, the dynamic information includes a status value of the application or a status indication of the application, where the status indication is used for indicating that the network device provides the enhanced network resource for the application.
In a possible implementation manner, the dynamic information is carried by the first packet through a service status option field, where the service status option field may be carried in an APN6 option header of the first packet.
It should be noted that the message processing apparatus 1100 shown in fig. 11 may be user equipment, network equipment or service equipment in the embodiment shown in fig. 6, and therefore, various specific embodiment modes of the message processing apparatus 1100 may refer to related descriptions of the method 100 corresponding to fig. 6, and are not described again in this embodiment.
Referring to fig. 12, an embodiment of the present application provides a network device 1200. The network device 1200 may be a network device in any embodiment described above, for example, the network device in the embodiment shown in fig. 5 or 9, and the network device 1200 may implement the functions of the network device in the embodiment described above. The network device 1200 includes at least one processor 1201, a bus system 1202, a memory 1203, and at least one communication interface 1204.
The network device 1200 is a device with a hardware structure, and can be used to implement the functional modules in the message processing device 1000 shown in fig. 10. For example, those skilled in the art can appreciate that the obtaining unit 1001 and the determining unit 1002 in the message processing apparatus 1000 shown in fig. 10 can be implemented by the at least one processor 1201 calling the code in the memory 1203.
Optionally, the network device 1200 may also be used to implement the functions of the network device in any of the embodiments described above.
Optionally, the processor 1201 may be a general processing unit (CPU), a Network Processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program according to the present disclosure.
The bus system 1202 may include a path that carries information between the components.
The communication interface 1204 is used for communication with other devices or communication networks.
The memory 1203 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor.
The memory 1203 is used for storing application program codes for executing the scheme of the application, and the processor 1201 controls the execution of the application program codes. The processor 1201 is configured to execute application program code stored in the memory 1203 to implement the functions of the method of the present patent.
In particular implementations, processor 1201 may include one or more CPUs such as CPU0 and CPU1 in fig. 12, for example, as an example.
In particular implementations, the network device 1200 may include multiple processors, such as the processor 1201 and the processor 1207 of fig. 12, for example, as an example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
The communication device 1200 provided by the present application can also be seen in fig. 12. The communication device 1200 may be a user device, a network device, or a service device in any embodiment described above, for example, a user device, a network device, or a service device in the embodiments shown in fig. 5 or 9, and the communication device 1200 may implement the functions of the user device, the network device, or the service device in the embodiments described above. The communication device 1200 comprises at least one processor 1201, a bus system 1202, a memory 1203 and at least one communication interface 1204.
Fig. 13 is a schematic structural diagram of another network device 1300 provided in an embodiment of the present application, where the network device 1300 may be, for example, the network device 21 in the embodiment shown in fig. 5, or may also be the network device a in the embodiment shown in fig. 9.
The network device 1300 includes: master control board 1310 and interface board 1330.
The main control board 1310 is also called a Main Processing Unit (MPU) or a route processor card (route processor card), and the main control board 1310 controls and manages each component in the network device 1300, including routing computation, device management, device maintenance, and protocol processing functions. The main control board 1310 includes: a central processing unit 1311 and a memory 1312.
The interface board 1330 is also called a Line Processing Unit (LPU), a line card (line card), or a service board. Interface board 1330 is used to provide various traffic interfaces and to implement packet forwarding. The service interfaces include, but are not limited to, Ethernet interfaces, such as Flexible Ethernet services interfaces (FlexE Ethernet Clients), POS (Packet over SONET/SDH) interfaces, and the like. Interface board 1330 includes: a central processor 1331, a network processor 1332, a forwarding table entry memory 1334, and a Physical Interface Card (PIC) 1333.
The central processor 1331 of the interface board 1330 is used for controlling and managing the interface board 1330 and communicating with the central processor 1311 of the main control board 1310.
The network processor 1332 is configured to implement forwarding processing of the packet. Network processor 1332 may take the form of a forwarding chip. Specifically, the processing of the uplink packet includes: processing a message input interface and searching a forwarding table; and (3) processing downlink messages: forwarding table lookups, etc.
The physical interface card 1333 is used to implement the physical layer interface function, from which the original traffic enters the interface board 1330, and the processed messages are sent out from the physical interface card 1333. Physical interface card 1333 includes at least one physical interface, also referred to as a physical port, physical interface card 1333 corresponding to a FlexE physical interface in the system architecture. The physical interface card 1333, also called a daughter card, may be installed on the interface board 1330 and is responsible for converting the optical signal into a packet, performing validity check on the packet, and forwarding the packet to the network processor 1332 for processing. In some embodiments, central processor 1331 of interface board 1330 may also perform the functions of network processor 1332, such as implementing software forwarding based on a general purpose CPU, so that network processor 1332 is not required in physical interface card 1333.
Optionally, the network device 1300 includes a plurality of interface boards, for example, the network device 1300 further includes an interface board 1340, and the interface board 1340 includes: a central processor 1341, a network processor 1342, a forwarding entry store 1344, and a physical interface card 1343.
Optionally, the network device 1300 further comprises a switch board 1320. The switch board 1320 may also be referred to as a Switch Fabric Unit (SFU). In the case where the network device has a plurality of interface boards 1330, the switch board 1320 is used to complete data exchange between the interface boards. For example, interface board 1330 and interface board 1340 may communicate with each other through switch board 1320.
Master control board 1310 is coupled to interface board 1330. For example. The main control board 1310, the interface board 1330, the interface board 1340, and the switch board 1320 are connected to the system backplane through the system bus to realize the intercommunication. In one possible implementation, an inter-process communication (IPC) channel is established between the main control board 1310 and the interface board 1330, and the main control board 1310 and the interface board 1330 communicate with each other through the IPC channel.
Logically, the network device 1300 includes a control plane including a main control board 1310 and a central processor 1331, and a forwarding plane including various components performing forwarding, such as a forwarding entry memory 1334, a physical interface card 1333, and a network processor 1332. The control plane performs functions such as a router, generating a forwarding table, processing signaling and protocol messages, and configuring and maintaining the state of the device, and issues the generated forwarding table to the forwarding plane, and in the forwarding plane, the network processor 1332 looks up the table of the message received by the physical interface card 1333 and forwards the table based on the forwarding table issued by the control plane. The forwarding table issued by the control plane may be stored in a forwarding table entry storage 1334. In some embodiments, the control plane and the forwarding plane may be completely separate and not on the same device.
If the network device 1300 is configured as the network device 21, the network processor 1332 may trigger the physical interface card 1333 to receive the message. The central processing unit 1311 may obtain dynamic information corresponding to the message, and determine network resource information according to the dynamic information.
It should be understood that the transmitting unit and the like in the message processing apparatus 1000, and the communication interface 1204 in the network device 1200 may correspond to the physical interface card 1333 or the physical interface card 1343 in the network device 1300; the obtaining unit 1001, the determining unit 1002, and the like in the message processing apparatus 1000 and the processor 1201 in the network device 1200 may correspond to the central processing unit 1311 or the central processing unit 1331 in the network device 1300.
It should be understood that the operations on the interface board 1340 in the embodiment of the present application are the same as the operations on the interface board 1330, and for brevity, the description is omitted. It should be understood that the network device 1300 of this embodiment may correspond to the message processing apparatus or the network device in each of the above method embodiments, and the main control board 1310, the interface board 1330 and/or the interface board 1340 in the network device 1300 may implement the functions and/or the various steps implemented in the message processing apparatus 1000 or the network device 1200 in each of the above method embodiments, which are not described herein again for brevity.
It should be understood that the main control board may have one or more blocks, and when there are more blocks, the main control board may include an active main control board and a standby main control board. The interface board may have one or more blocks, and the stronger the data processing capability of the network device, the more interface boards are provided. There may also be one or more physical interface cards on an interface board. The exchange network board may not have, or may have one or more blocks, and when there are more blocks, the load sharing redundancy backup can be realized together. Under the centralized forwarding architecture, the network device does not need a switching network board, and the interface board undertakes the processing function of the service data of the whole system. Under the distributed forwarding architecture, the network device can have at least one switching network board, and the data exchange among a plurality of interface boards is realized through the switching network board, so that the high-capacity data exchange and processing capacity is provided. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those of devices in a centralized architecture. Optionally, the form of the network device may also be only one board card, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on the one board card, at this time, the central processing unit on the interface board and the central processing unit on the main control board may be combined into one central processing unit on the one board card to perform the function after the two are superimposed, and the data switching and processing capability of the device in this form is low (for example, network devices such as a low-end switch or a router, etc.). Which architecture is specifically adopted depends on the specific networking deployment scenario.
In some possible embodiments, each of the network devices or network devices described above may be implemented as a virtualized device. For example, the virtualized device may be a Virtual Machine (VM) running a program for sending a message, and the VM is deployed on a hardware device (e.g., a physical server). A virtual machine refers to a complete computer system with complete hardware system functionality, which is emulated by software, running in a completely isolated environment. The virtual machines may be configured as the network devices of fig. 5 or fig. 9. For example, each Network device or Network device may be implemented based on a general purpose physical server in conjunction with Network Function Virtualization (NFV) technology. Each network device or network device is a virtual host, a virtual router, or a virtual switch. Through reading the present application, a person skilled in the art may combine the NFV technology to virtually generate each network device or network device with the above functions on the general physical server, and details are not described here.
It should be understood that the network devices in the above various product forms respectively have any functions of the network devices or the network devices in the above method embodiments, and are not described herein again.
The communication device 1300 provided by the present application can also be seen in fig. 13. The communication device 1300 may be a user device, a network device or a service device in any embodiment described above, for example, the user device, the network device or the service device in the embodiment shown in fig. 5 or 9, and the communication device 1300 may implement the functions of the user device, the network device or the service device in the embodiment described above. The communication device 1300 includes: master control board 1310 and interface board 1330.
The embodiment of the application also provides a chip, which comprises a processor and an interface circuit, wherein the interface circuit is used for receiving the instruction and transmitting the instruction to the processor; the processor, which may be a specific implementation form of the message processing apparatus in the embodiment of the present application, may be configured to execute the message processing method. Wherein the processor is coupled to a memory for storing a program or instructions which, when executed by the processor, cause the system-on-chip to implement the method of any of the above method embodiments.
Optionally, the system on a chip may have one or more processors. The processor may be implemented by hardware or by software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
Optionally, the memory in the system-on-chip may also be one or more. The memory may be integrated with the processor or may be separate from the processor, which is not limited in this application. For example, the memory may be a non-transitory processor, such as a read only memory ROM, which may be integrated with the processor on the same chip or separately disposed on different chips, and the type of the memory and the arrangement of the memory and the processor are not particularly limited in this application.
The system-on-chip may be, for example, a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit (DSP), a Microcontroller (MCU), a Programmable Logic Device (PLD), or other integrated chips.
In addition, an embodiment of the present application further provides a network system 1400, see fig. 14. The network system 1400 may include: user equipment 1401, network equipment 1402, and service equipment 1403. The user equipment 1401 is configured to generate a message corresponding to an application, and send the message to the service equipment 1403 through the network equipment 1402; the network device 1402 for performing the above method 100; the service device 1403 is configured to receive the packet, and carry the dynamic information in the packet corresponding to the application sent to the user device 1401.
In addition, an embodiment of the present application further provides a computer-readable storage medium, in which program codes or instructions are stored, and when the program codes or instructions are executed on a computer, the computer is caused to execute the method in any implementation manner in the embodiment shown in fig. 6.
Furthermore, the present application also provides a computer program product, which when run on a computer, causes the computer to execute the method of any one of the foregoing implementation manners of the method 100.
It should be understood that reference to "determining B based on a" in the embodiments of the present application does not mean that B is determined based on a alone, but may also be determined based on a and/or other information.
In the names of the first message and the like, the first message is only used for name identification and does not represent the first message in sequence. The same applies to "second" etc.
As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that all or part of the steps in the above embodiment methods can be implemented by software plus a general hardware platform. Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a storage medium, such as a read-only memory (ROM)/RAM, a magnetic disk, an optical disk, or the like, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the method according to the embodiments or some parts of the embodiments of the present application.
All the embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, system embodiments and device embodiments are substantially similar to method embodiments and are therefore described in a relatively simple manner, where relevant reference may be made to some descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, and the modules described as separate parts may or may not be physically separate, and the parts shown as modules may or may not be physical modules, may be located in one position, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only a preferred embodiment of the present application and is not intended to limit the scope of the present application. It should be noted that, for a person skilled in the art, several modifications and refinements can be made without departing from the application, and these modifications and refinements should also be regarded as the protection scope of the application.
Claims (20)
1. A message processing method is characterized by comprising the following steps:
the method comprises the steps that network equipment obtains dynamic information corresponding to a message, wherein the dynamic information represents a state corresponding to an application to which the message belongs;
and the network equipment determines the network resource information corresponding to the message according to the dynamic information.
2. The method according to claim 1, wherein the determining, by the network device, the network resource information corresponding to the packet according to the dynamic information includes:
and the network equipment determines the network resource information according to the dynamic information and application conditions, wherein the application conditions comprise application characteristic information and/or application requirement information, the application characteristic information is used for representing the attributes of the application, and the application requirement information is used for representing the requirements of the application on the network.
3. The method according to claim 1 or 2, wherein the message comprises the dynamic information.
4. The method according to claim 1 or 2, wherein the acquiring, by the network device, dynamic information corresponding to the packet includes:
and the network equipment generates the dynamic information according to the message.
5. The method of claim 4, further comprising:
and the network equipment updates the message, wherein the message comprises the dynamic information.
6. The method according to any one of claims 1 to 5, further comprising:
and the network equipment updates the message, wherein the message comprises the network resource information.
7. The method according to any one of claims 1 to 6, wherein the network resource information comprises one or more of: quality of service level, forwarding path, bandwidth, network fragmentation, wireless channel, or wireless frequency.
8. The method according to any one of claims 1 to 7, further comprising:
and the network equipment sends the message according to the network resource information.
9. The method according to any one of claims 1 to 8, further comprising:
the network equipment acquires a strategy table entry according to the network resource information;
and the network equipment processes the message corresponding to the application according to the strategy table entry.
10. The method according to any of claims 1 to 9, wherein the dynamic information comprises a status value of the application, or a status indication of the application, the status indication being used to instruct the network device to provide enhanced network resources for the application.
11. A message processing method is characterized by comprising the following steps:
the communication equipment obtains dynamic information, and the dynamic information is used for representing the state corresponding to the application;
the communication equipment generates a first message, wherein the first message comprises the dynamic information;
and the communication equipment sends the first message.
12. The method of claim 11, wherein the communication device is a network device or a service device, and wherein the communication device obtains dynamic information, comprising:
the communication equipment receives a second message, wherein the second message belongs to the application;
and the communication equipment acquires the dynamic information according to the second message.
13. The method of claim 12, wherein the communication device is the network device, and wherein generating the first packet by the communication device comprises:
and the communication equipment updates the second message to obtain the first message.
14. The method of claim 12, wherein the communication device is the serving device, wherein the second message is a message sent by the user equipment, wherein the second message includes the dynamic information, and wherein generating the first message by the communication device comprises:
and responding to the second message including the dynamic information, wherein the service equipment carries the dynamic information in a message corresponding to the application sent to the user equipment, and the message corresponding to the application includes the first message.
15. The method according to any of claims 1 to 14, wherein the message carries the dynamic information via a service status option field.
16. The method of claim 15, wherein the service status option field is carried in an application-aware IPv6 network APN6 option header of the packet.
17. A network device, characterized in that the network device comprises: a processor and a memory;
the memory to store instructions;
the processor configured to execute the instructions in the memory to cause the network device to perform the method of any one of claims 1-10 or 15, 16.
18. A communication device, characterized in that the communication device comprises: a processor and a memory;
the memory to store instructions;
the processor to execute the instructions in the memory to cause the communication device to perform the method of any of claims 11-16.
19. A network system, characterized in that the network system comprises: user equipment, network equipment and service equipment;
the user equipment is used for generating a message corresponding to an application and sending the message to the service equipment through the network equipment;
the network device, configured to perform the method of any one of claims 1-10 or 15, 16;
and the service equipment is used for receiving the message and carrying the dynamic information in the message corresponding to the application sent to the user equipment.
20. A computer program product, characterized in that it comprises a computer program which, when being executed by a processor, carries out the method of any one of claims 1-16.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011511178.4A CN114650233A (en) | 2020-12-18 | 2020-12-18 | Message processing method and related equipment |
PCT/CN2021/139054 WO2022127895A1 (en) | 2020-12-18 | 2021-12-17 | Packet processing method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011511178.4A CN114650233A (en) | 2020-12-18 | 2020-12-18 | Message processing method and related equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114650233A true CN114650233A (en) | 2022-06-21 |
Family
ID=81990978
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011511178.4A Pending CN114650233A (en) | 2020-12-18 | 2020-12-18 | Message processing method and related equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114650233A (en) |
WO (1) | WO2022127895A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115412605A (en) * | 2022-08-02 | 2022-11-29 | 中国电信股份有限公司 | Network message sending method and network equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103118083B (en) * | 2013-01-21 | 2015-12-02 | 北京交通大学 | The method and apparatus that a kind of service message forwards |
WO2016049875A1 (en) * | 2014-09-30 | 2016-04-07 | Tencent Technology (Shenzhen) Company Limited | Device and method for capturing, sharing and watching video messages |
CN108934079B (en) * | 2017-05-27 | 2022-02-08 | 华为技术有限公司 | Resource scheduling method, terminal equipment and network side equipment |
-
2020
- 2020-12-18 CN CN202011511178.4A patent/CN114650233A/en active Pending
-
2021
- 2021-12-17 WO PCT/CN2021/139054 patent/WO2022127895A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2022127895A1 (en) | 2022-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3624408B1 (en) | Method for generating forwarding table entry, controller, and network device | |
US20220182315A1 (en) | Service Packet Transmission Method and Device | |
US11949576B2 (en) | Technologies for out-of-order network packet management and selective data flow splitting | |
US20160323193A1 (en) | Service Routing Method, Device, and System | |
CN113676361A (en) | On-demand probing for quality of experience metrics | |
KR101460048B1 (en) | Method and apparatus for control of dynamic service chaining by using tagging | |
WO2021093465A1 (en) | Method, device, and system for transmitting packet and receiving packet for performing oam | |
CN113395735B (en) | Message transmission method, device and network equipment | |
CN109005126B (en) | Data stream processing method, device and computer readable storage medium | |
US20230412508A1 (en) | Packet processing method and related apparatus | |
US20230208751A1 (en) | Packet forwarding method, device, and system | |
EP4239954A1 (en) | Message transmission method and apparatus, device, and computer-readable storage medium | |
CN115811494A (en) | Automatic application-based multi-path routing for SD-WAN services | |
WO2022127895A1 (en) | Packet processing method and related device | |
US20210126824A1 (en) | Forwarding Parameter Obtaining Method, Apparatus, and System | |
US20230275819A1 (en) | Packet processing method and related device | |
EP4165904A1 (en) | Access traffic management | |
CN113595920A (en) | Network congestion control method and equipment | |
CN117097818A (en) | Message processing method and related equipment | |
CN109104367B (en) | Method, network equipment and system for establishing tunnel | |
CN116056149B (en) | Simplex operation method, device, equipment and medium for IAB host node | |
EP4391482A1 (en) | Method, apparatus and system for acquiring capability, method, apparatus and system for sending capability information, and storage medium | |
US20240223504A1 (en) | Packet processing method, flow specification transmission method, device, system, and storage medium | |
CN114915518A (en) | Message transmission method, system and equipment | |
WO2023144589A1 (en) | Quality of experience directed network resource handling |
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 |