WO2022127895A1 - Packet processing method and related device - Google Patents

Packet processing method and related device Download PDF

Info

Publication number
WO2022127895A1
WO2022127895A1 PCT/CN2021/139054 CN2021139054W WO2022127895A1 WO 2022127895 A1 WO2022127895 A1 WO 2022127895A1 CN 2021139054 W CN2021139054 W CN 2021139054W WO 2022127895 A1 WO2022127895 A1 WO 2022127895A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
network
packet
dynamic information
message
Prior art date
Application number
PCT/CN2021/139054
Other languages
French (fr)
Chinese (zh)
Inventor
毛健炜
彭书萍
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022127895A1 publication Critical patent/WO2022127895A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5019Ensuring fulfilment of SLA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a message processing method and related equipment.
  • the present application provides a message processing method and related equipment.
  • Each device receiving a message corresponding to an application can perceive the dynamic information of the application, and perform targeted processing of the message based on the dynamic information, so that the application can Bring better QoE to users and improve the experience of the application to users.
  • the present application provides a method for processing a message.
  • the method may include: a network device obtains dynamic information corresponding to a message, and the dynamic information represents a state corresponding to an application to which the message belongs. Then, the network device can According to the dynamic information, network resource information corresponding to the packet is determined, so that the network device can process the packet based on the determined network resource information. It can be seen that, through this method, the network device that receives the message corresponding to the application can perceive the dynamic information of the application, and process the message in a targeted manner based on the dynamic information, and the dynamic information of the application is considered in the message processing process.
  • the application can bring a better QoE to the user, thereby improving the use experience brought by the application to the user, and making the control of the application more precise.
  • the dynamic information may include the state value of the application.
  • the dynamic information may be at least one of the following information: the resolution level of the application, the video bit rate of the application, the remaining duration of the application's cached video, the application's cached video The remaining data amount of the video, the ratio of the remaining data amount of the application's cached video to the total cache space, or the ratio of the remaining duration of the application's cached video to the total video duration.
  • the dynamic information may also include a state indication of the application, and the state indication of the application is used to instruct the network device to provide enhanced network resources for the application.
  • the dynamic information may be at least one of the following information: the application has The remaining duration of the cached video is in the normal state, the alarm state or other states, the remaining data volume of the application's cached video is in the normal state, the alarm state or other states, and the ratio of the remaining data volume of the application's cached video to the total cache space is in the normal state , alarm status, or other status, the ratio of the remaining duration of the application's cached video to the total video duration belongs to the normal status, alarm status, or other status.
  • the dynamic information can also reflect the state related to the application, including but not limited to: the related parameters of the device related to the application or the state indication corresponding to the related parameters.
  • the dynamic information can be at least one of the following information: where the application is located The end-to-end delay from the user equipment where the application is located to the service device of the application, the end-to-end delay jitter from the user equipment where the application is located to the service device, or the end-to-end rate from the user equipment where the application is located to the service device; another example, dynamic information It may also be a state indication corresponding to any of the above information, for example, the 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.
  • the network resource information includes but is not limited to one or more of the following: service quality level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency.
  • the service quality level may be, for example, a quality of service (English: Quality of Service, referred to as: QoS) level or a service level agreement (English: Service Level Agreement, referred to as: SLA) level.
  • QoS Quality of Service
  • SLA Service Level Agreement
  • the network device determines the network resource information corresponding to the packet according to the dynamic information, for example, it may include: the network device determines the network resource information according to the dynamic information and application conditions, wherein , the application condition may include application characteristic information and/or application requirement information, the application characteristic information is used to characterize the attributes of the application, and the application requirement information is used to characterize the requirement of the application on the network.
  • 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 .
  • the network device can determine the network resource information according to the dynamic information and application feature information, or can also determine the network resource information according to the dynamic information, application feature information and application requirement information. In this way, the network device that receives the message corresponding to the application can perceive the application condition and dynamic information of the application, and perform targeted processing of the message based on the application condition and dynamic information, so that the application can bring better benefits to the user. high QoE, so as to achieve more precise control of the application.
  • the dynamic information when the client or user equipment corresponding to the application has the ability to generate dynamic information, the dynamic information may be generated by the user equipment and carried in the message, that is, the message may be Include dynamic information. Then, the network device obtains the dynamic information corresponding to the packet, for example, the network device may parse the packet to obtain the dynamic information carried in the packet.
  • the dynamic information of the packet may be generated by a network device.
  • the network device may be a broadband network gateway (English: Broadband Network Gateway, BNG for short) or a client-side device (English: Customer Premise Equipment, short: CPE) between the user equipment and the service device. Then, the network device obtains the dynamic information corresponding to the packet, for example, the network device may generate dynamic information corresponding to the packet according to the packet.
  • BNG Broadband Network Gateway
  • CPE Customer Premise Equipment
  • the process of generating the dynamic information corresponding to the message by the network device according to the message may include: the network device performs flow-by-flow detection on the received message, and identifies the message that belongs to the same flow as the message, which may be specifically: The network device determines the flow to which the message belongs according to the application feature information carried in the message, and determines the messages in the flow; then, obtains the historical parameters of each message received in the flow, and based on the history
  • the parameters generate dynamic information of the flow through technologies such as machine learning, artificial intelligence (English: Artificial Intelligence, AI for short) or deep packet inspection (English: Deep Packet Inspection, short for DPI).
  • the network device may also update the packet, and the updated packet includes the acquired dynamic information.
  • the packet may also be updated.
  • the packet may include the determined network resource information, and the updated packet also includes Dynamic information can be included.
  • each subsequent network device can obtain the corresponding network resource information from the updated message, so as to send the message based on the obtained network resource information, until the message is sent to the service device, without the need for each network
  • the device determines the corresponding network resource information based on dynamic information, which saves network resources and improves traffic processing efficiency.
  • the network device may process the packet according to the network resource information corresponding to the dynamic information, for example, select the corresponding QoS level and forwarding path based on the dynamic information or network resource information in the packet or network resources such as network fragmentation, and process the packet according to the selected network resources.
  • the network device may also 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 obtaining the policy entry according to the network resource information corresponding to the dynamic information may, for example, be: the network device updates the policy entry according to the network resource information corresponding to the dynamic information, and obtains the updated policy entry.
  • the policy entry may be a QoS level matching table, a forwarding table, a routing table, a tunnel table, a network fragment selection table, etc. locally set by the network device.
  • the network device can use the query result to process the packet after querying the relevant entry according to the packet, such as processing the packet by using the QoS level, forwarding path or network fragment included in the query result.
  • the network device may also be based on dynamic information or network resource information corresponding to the dynamic information , mark the QoS-related fields in the message.
  • AS Autonomous System
  • the QoS-related fields include but are not limited to: IPv6 Differentiated Services Code Point (English: Differentiated Services Code Point, referred to as: DSCP) or flow type (English: Traffic Class, referred to as: TC) field, Internet Protocol version 4 (English: Internet Protocol version 4, referred to as: IPv4) type of service (English: Type of Service, referred to as: ToS) field, Multiprotocol Label Switching (English: Multiprotocol Label Switching, referred to as: MPLS) experimental use (English: Experimental Use, referred to as: EXP) field (also known as TC field), virtual local area network (English: Virtual Local Area Network, referred to as: VLAN) priority code point (English: Priority Code Point, referred to as: VLAN).
  • the network device in the AS domain can process the packet according to the QoS related fields; however, when the packet enters the next AS domain, the border device in the next AS domain needs to use the dynamic information or the network resource information corresponding to the dynamic information.
  • the QoS related field is remarked, so that the network device in the next AS domain can accurately forward the second packet according to the value of the remarked QoS related field.
  • the packet can determine the corresponding QoS level, forwarding path and/or network fragment according to the value of the QoS-related fields, so as to use the determined QoS level, forwarding path and/or network Fragmentation processes the packet.
  • the present application provides a message processing method.
  • the method may include: a communication device obtains dynamic information, where the dynamic information is used to represent a state corresponding to an application; then, the communication device generates a first message, the The first message includes the dynamic information; then, the communication device sends the first message.
  • the communication device may be, for example, user equipment, network equipment, or service equipment. Both the user equipment and the service equipment correspond to the application. For example, if a client corresponding to the user is installed on the user equipment, the service equipment can provide the application with corresponding Serve.
  • the communication device can obtain the dynamic information of the application and send the dynamic information to the network with the dynamic information carried in the message, so that other devices in the network can perceive the dynamic information of the application, and based on the dynamic information
  • the packet is processed in a targeted manner, and the dynamic information of the application is considered in the packet processing process, so that the application can bring better QoE to the user, thereby improving the use experience brought by the application to the user, and making the application more user-friendly. Control is more precise.
  • the communication device obtains dynamic information, for example, it may include: the communication device receives a second packet belonging to the application, according to the second packet Obtain the dynamic information.
  • obtaining the dynamic information according to the second packet by the communication device includes: the communication device acquires dynamic information from the second packet (that is, the second packet includes dynamic information), or the communication device generates dynamic information according to the second message. If the second packet includes dynamic information, the first packet generated by the communication device may be the second packet, or may be the first packet obtained by updating the second packet (for example, adding the second packet to the second packet). network resource information); if the second packet does not include dynamic information, the first packet generated by the communication device may be obtained by updating the second packet, such as adding dynamic information to the second packet to obtain the first packet arts.
  • 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
  • the communication device obtains the information according to the second packet.
  • the dynamic information includes: the communication device obtains the dynamic information from the second message.
  • generating the first packet by the communication device may, for example, include: in response to the second packet including dynamic information, the service device carries the dynamic information in the packet corresponding to the application sent to the user equipment, wherein the application The corresponding message includes the first message.
  • the network device through which the service device sends the message to the user equipment can also perceive the state of the application, so as to reasonably process the message of the application based on the dynamic information in the received message.
  • 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 the application-aware sixth field of the message.
  • Version 6Networking (English: Application-aware Internet Protocol version 6Networking, referred to as: APN6) option header.
  • 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 indicates that the type of the Option field is Service-Status Option; the Option Length field may be, for example, 1 byte, and the value of the Option Length field indicates that the Option
  • the length occupied by the Value field; the length of the Option Value field is variable, and at least one dynamic information can be carried by at least one sub-type length value (English: sub Type Length Value, referred to as: sub-TLV) field, for example, the Option Value field
  • sub-TLV sub-type length value
  • Each sub-TLV field in the sub-TLV field carries a piece of dynamic information.
  • the present application further provides a message processing apparatus, which is applied to network equipment.
  • the apparatus may, for example, comprise an acquisition unit and a determination unit.
  • the obtaining unit is configured to obtain dynamic information corresponding to the message, where the dynamic information represents the state corresponding to the application to which the message belongs; the determining unit is configured to determine the network resource corresponding to the message according to the dynamic information information.
  • the determining unit is specifically configured to: determine the network resource information according to the dynamic information and application conditions, where the application conditions include application feature information and/or application requirement information, the The application characteristic information is used to characterize the attributes of the application, and the application requirement information is used to characterize the network requirement of the application.
  • the message includes the dynamic information.
  • the obtaining unit is specifically configured to: generate the dynamic information according to the message.
  • the apparatus may further include: a first updating unit.
  • the first updating unit is configured to update the message, where the message includes the dynamic information.
  • the apparatus may further include: a second updating unit.
  • the second update unit is configured to update the message, and the message includes the network resource information.
  • the network resource information includes one or more of the following: service quality level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency.
  • the apparatus may further include: a sending unit.
  • the sending unit is configured to send the message according to the network resource information.
  • the apparatus may further include: an obtaining unit and a processing unit.
  • the obtaining unit is configured to obtain the policy entry according to the network resource information;
  • the processing unit is configured to process the message corresponding to the application according to the policy entry.
  • the dynamic information includes a state value of the application, or a state indication of the application, where the state indication is used to instruct the network device to provide enhanced network resources for the application.
  • the message carries the dynamic information through a service status option field, where the service status option field may be carried in an APN6 option header of the message.
  • the message processing apparatus provided in the third aspect is used to perform the relevant operations mentioned in the first aspect.
  • the relevant description of the first aspect No longer.
  • the present application further provides a message processing apparatus, which is applied to a communication device.
  • the apparatus may include, for example, an obtaining unit, a generating unit and a sending unit.
  • an obtaining unit is used to obtain dynamic information, and the dynamic information is used to represent a state corresponding to an application;
  • a generating unit is used to generate a first message, and the first message includes the dynamic information;
  • a sending unit for sending the first message.
  • the communication equipment may include user equipment, network equipment or service equipment.
  • the communication device is a network device or a service device
  • the obtaining unit may include: a receiving subunit and an obtaining subunit.
  • the receiving subunit is configured to receive a second packet, the second packet belongs to the application; the obtaining subunit is configured to obtain the dynamic information according to the second packet.
  • the communication device is the network device, and the generating unit is specifically configured to: update the second packet to obtain the first packet.
  • 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
  • the generating unit specifically uses In: in response to the second packet including the dynamic information, carrying the dynamic information in a packet corresponding to the application sent to the user equipment, where the packet corresponding to the application includes the first message.
  • the dynamic information includes a state value of the application, or a state indication of the application, where the state indication is used to instruct the network device to provide enhanced network resources for the application.
  • the first packet carries the dynamic information through a service status option field, where the service status option field may be carried in an APN6 option header of the first packet.
  • the message processing apparatus provided in the fourth aspect is used to perform the relevant operations mentioned in the second aspect above.
  • the relevant description of the second aspect above No longer.
  • the present application further provides a network device, including: a memory and a processor.
  • the memory is used to store program codes or instructions; the processor is used to run the program codes or instructions, so that the network device executes the method provided in the first aspect above.
  • the present application further provides a communication device, including: a memory and a processor.
  • the memory is used for storing program codes or instructions; the processor is used for running the program codes or instructions, so that the communication device executes the method provided in the second aspect above.
  • the present application further provides a network system, including: user equipment, network equipment and service equipment.
  • the user equipment is configured to generate a message corresponding to the application, and send the message to the service device through the network device;
  • the network device is configured to execute the method provided in the first aspect above;
  • the A service device configured to receive the message, and carry the dynamic information in a message corresponding to the application sent to the user equipment.
  • the embodiments of the present application further provide a computer-readable storage medium, where program codes or instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer executes the first aspect or the second aspect above.
  • the embodiments of the present application further provide a computer program product, which, when the computer program product runs on a network device, enables the network device to perform any one of the possible implementations of the first aspect or the second aspect.
  • the present application provides a chip, including a memory and a processor, the memory is used for storing a computer program, and the processor is used for calling and running the computer program from the memory to execute the above-mentioned first aspect or the second aspect. method.
  • the above chip only includes a processor, and the processor is configured to read and execute the computer program stored in the memory, and when the computer program is executed, the processor executes the method in the first aspect or the second aspect.
  • 1 is a schematic diagram of the format of the application perception identification option field in this application.
  • 2a is a schematic diagram of a format of the option value field in the application-aware identification option field in the application;
  • 2b is a schematic diagram of another format of the option value field in the application-aware identification option field in the application;
  • Fig. 2c is another format schematic diagram of the option value field in the application-aware identification option field in the application;
  • Fig. 3 is the format schematic diagram of application parameter information option field in this application.
  • 4a is a schematic diagram of a format of the option value field in the application parameter information option field in the application;
  • Fig. 4b is another format schematic diagram of the option value field in the application parameter information option field in this application.
  • Fig. 4c is another format schematic diagram of the option value field in the application parameter information option field in this application.
  • 4d is a schematic diagram of yet another format of the option value field in the application parameter information option field in the application;
  • FIG. 5 is a schematic structural diagram of a network scenario in the application.
  • FIG. 6 is a schematic flowchart of a message processing method 100 provided by the present application.
  • Figure 7a is a schematic diagram of the format of the service status option field in this application.
  • 7b is a schematic diagram of a format of the sub-TLV field in the service status option field in the application.
  • 7c is a schematic diagram of another format of the sub-TLV field in the service status option field in this application.
  • Figure 8a is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
  • Figure 8b is a schematic diagram of the format of the Value field of the sub-TLV field in the service status option field in the application;
  • Figure 8c is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in this application;
  • 8d is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
  • 8e is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
  • Figure 8f is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
  • 8g is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
  • 8h is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
  • FIG. 9 is a schematic structural diagram of a network scenario in the application.
  • FIG. 10 is a schematic structural diagram of a message processing apparatus 1000 provided by the present application.
  • FIG. 11 is a schematic structural diagram of a message processing apparatus 1100 provided by the present application.
  • FIG. 12 is a schematic structural diagram of a network device 1200 or a communication device 1200 provided by this application;
  • FIG. 13 is a schematic structural diagram of a network device 1300 or a communication device 1300 provided by this application;
  • FIG. 14 is a schematic structural diagram of a network system 1400 provided by this application.
  • the network device connected to the user equipment performs access control on the application used by the user on the user equipment, and provides corresponding network services for the user.
  • the control of the application running on the user equipment by the network equipment cannot bring better QoE to the user.
  • the remaining video duration in the client cache of the application on the user device or the amount of data remaining in the cache can affect whether a stuck event occurs, and the occurrence of a stuck event will bring users Poor QoE; for example, for applications such as battle games and cloud games, the end-to-end round-trip time (RTT) delay measured by the client of the application on the user device can determine whether an error occurs. Operation, the occurrence of misoperation will bring poor QoE to users.
  • RTT round-trip time
  • the present application provides a packet processing method.
  • the packet processing considers parameters that affect the QoE brought by the application to the user (hereinafter referred to as dynamic information).
  • the method may include: the network device first obtains the Receive dynamic information corresponding to the message, the dynamic information representing the state corresponding to the 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 be based on the determined network resource information information to process the message.
  • the network device that receives the message corresponding to the application can perceive the dynamic information of the application, and process the message in a targeted manner based on the dynamic information.
  • the dynamic information enables the application to bring better QoE to the user, thereby improving the use experience brought by the application to the user, and making the control of the application more precise.
  • Dynamic information It is used to represent the state of the application or the related state of the application, which can reflect the situation during the running of the application.
  • the dynamic information representing the state of the application may include, but is not limited to: the relevant parameters in the running process of the application or the state indication corresponding to the relevant parameters, for example, the dynamic information may be at least one of the following information: the resolution level of the application , the video bit rate of the application, the remaining duration of the application's cached video, the remaining data volume of the application's cached video, the ratio of the remaining data volume of the application's cached video to the total cache space, or the remaining duration of the application's cached video to the total video duration
  • the dynamic information may also be a state indication corresponding to any of the above information, for example, the remaining duration of the application's cached video belongs to a normal state, an alarm state, or other states.
  • the dynamic information representing the application-related state may include, but is not limited to: the relevant parameters of the device related to the application or the state indication corresponding to the relevant parameters.
  • the dynamic information may be at least one of the following information: the user equipment where the application is located to the application.
  • the state indication corresponding to the information for example, the end-to-end rate from the user equipment where the application is located to the service equipment belongs to the normal state, the alarm state or other states.
  • Resource condition It includes a set of information considered in controlling the application, and the network device through which the packet corresponding to the application passes through the packet is processed accordingly based on the resource condition.
  • the resource condition may include at least one of the following information: dynamic information, application feature information, or application requirement information.
  • the application characteristic information and the application requirement information may be referred to as application conditions.
  • Application characteristic information attributes used to characterize the application.
  • the application feature information may include all or part of the following information: application identification (English: Application Identity, referred to as: APP ID), user identification (English: User ID), application flow identification (English: Flow ID ) and service level.
  • APP ID is used to uniquely identify a specific application.
  • the application can be an application provided by an operator (such as Migu), or an application provided by an application provider (English: Over The Top, referred to as: OTT) (such as : King of Glory);
  • User ID is used to identify the user to which the application belongs;
  • Flow ID is used to identify the service flow or session to which the service message sent by the application belongs;
  • Service level is used to reflect the network required by the service message sent by the application
  • the performance for example, may be a level of a service level agreement (English: Service Level Agreement, SLA for short) or a SLA value.
  • the application characteristic information may also include network performance parameters.
  • the application-aware identification option (English: Application-aware ID Option) field shown in FIG.
  • the Application-aware ID Option field includes: option type ( English: Option Type) field, option length (English: Option Length) field and option value (English: Option Value) field, the option type field is used to indicate that the option field is the Application-aware ID Option field, that is, in the option field
  • option value field is application feature information
  • option length type is used to indicate the length of the option field
  • value of the option value field is application feature information.
  • the option value field in the Application-aware ID Option field shown in Figure 1 can be shown in Figure 2a, including the APP ID field, the User ID field, the Flow ID field, and the SLA level; for example, it can be shown in Figure 2b, Including APP ID field, User ID field, Flow ID field, SLA level and other network performance parameter (English: Arguments) fields; another example can also be shown in Figure 2c, including Locator Address (English: Locator Address) field, function Identification (English: Function ID) field and Arguments field.
  • Figure 2a including the APP ID field, the User ID field, the Flow ID field, and the SLA level
  • Figure 2b Including APP ID field, User ID field, Flow ID field, SLA level and other network performance parameter (English: Arguments) fields
  • Figure 2c including Locator Address (English: Locator Address) field, function Identification (English: Function ID) field and Arguments field.
  • the application requirement information may include but is not limited to: application requirements for network performance such as bandwidth, delay, delay jitter, and packet loss rate.
  • the message corresponding to the application may carry the application requirement information through the application parameter information option (English: Service-para Option) field shown in FIG. 3 , wherein the Service-para Option field includes: Option Type field, Option Length field and Option Value field.
  • the Option Type field is used to indicate that the option field is a Service-para Option field, that is, the value of the option value field in the option field is the application requirement information; the Option Length type is used to indicate the option field.
  • the length of the Option Value field is the application requirement information.
  • the application feature information and application requirement information can be specifically carried in the flow label ( English: Flow Label) field, Hop-by-Hop Options Header (English: Hop-by-Hop Options Header, Abbreviation: HBH) or Destination Options Header (English: Destination Options Header, Abbreviation: DOH).
  • flow label English: Flow Label
  • Hop-by-Hop Options Header English: Hop-by-Hop Options Header, Abbreviation: HBH
  • Destination Options Header English: Destination Options Header, Abbreviation: DOH
  • the application feature information and application requirement information can be carried in the packet in addition to In addition to the above-mentioned positions of the IPv6 packet header, it can also be carried in the segment routing header (English: Segment Routing Header, SRH) field of the SRv6 packet, specifically the SRH tag (English: Tag ) field, the SRH Type Length Value (English: Type Length Value, referred to as: TLV) field or the variable (English: Arguments, referred to as: Args) field of each segment identifier (English: Segment Identifier, referred to as: SID) in the SRH.
  • the above manner of carrying the application feature information and application requirement information in the message is only exemplary, and this application does not specifically limit how to carry the application feature information and application requirement information of the application in the message corresponding to the application.
  • the network resource information corresponds to resource conditions, and is used to provide corresponding processing for packets, such as forwarding packets using network resources.
  • the network resource information may include, for example, one or more of the following: quality of service level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency.
  • the network device that receives the message can determine the service quality level of the message according to the resource conditions of the message, so as to enqueue the message into the queue corresponding to the service quality level; If the network resource information is the forwarding path, the network device receiving the packet can determine the forwarding path of the packet according to the resource conditions of the packet, so as to forward the packet according to the determined forwarding path; if the network resource information is bandwidth, the network device receiving the packet can determine the bandwidth of the packet according to the resource conditions of the packet, so that the packet can be forwarded with the determined bandwidth; if the network resource information is a network fragment, then the packet receiving The network device that sends the message can determine the network fragment of the message according to the resource conditions of the message, so as to forward the message in the determined network fragment.
  • the network device receiving the packet can determine the service quality level and network fragmentation of the packet according to the resource conditions of the packet, so as to enqueue the packet to the In the queue corresponding to the quality of service level, the packet is forwarded in the determined network segment.
  • the network resource information includes QoS level, forwarding path, bandwidth, network fragmentation, wireless channel and wireless frequency
  • the network device receiving the packet can determine the QoS level and forwarding path of the packet according to the resource conditions of the packet. , bandwidth, network fragmentation wireless channel and wireless frequency, so that the packet is queued into the queue corresponding to the quality of service level, and forwarded according to the determined forwarding path, bandwidth, network fragmentation, wireless channel and wireless frequency.
  • the service quality level includes but is not limited to the SLA level.
  • the present application can be applied to the network scenario shown in FIG. 5 .
  • the network scenario may include: user equipment 11 , network equipment 21 , network equipment 22 , network equipment 23 and service equipment 31 , where user equipment 11 After installing the application A, the service device 31 can provide the corresponding service of the application A for the user.
  • the user equipment 11 and the service device 31 may be connected through at least one network device, for example, the user equipment 11 and the service device 31 may be connected through the network device 21 and the network device 22; for example, the user equipment 11 and the service device 31 They can also be connected through the network device 23 .
  • the network device 21 and the network device 22 may be directly connected or indirectly connected through other devices.
  • the message processing process provided in this application may include: S11, the user equipment 11 Send a message 1 to the network device 21, where the message 1 includes dynamic information 1 and application feature information 2; S12, the network device 21 determines the SLA level 1 according to the dynamic information 1 and application feature information 2 in the message 1; S13 , the network device 21 queues the packet 1 into the queue 1 corresponding to the SLA level 1, and the processing of the packets in the queue 1 can meet the requirements 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 the SLA level 1 according to the dynamic information 1 and the application feature information 2 in the packet 1; S16, the network device 22 enqueues the packet 1 into the queue 1' corresponding to the SLA level 1 , the processing of the packets in the queue 1
  • user equipment refers to any device that can install a client of an application to provide users with services related to the application, for example, it may be a mobile phone, a computer and other devices.
  • a service device refers to a device that can provide a corresponding service for an application or some applications on a user device, for example, it can be a network cloud engine (English: Network Cloud Engine, NCE for short) or a server.
  • a network device refers to a device with a packet forwarding function, such as a router, a switch, a repeater, and a firewall. It should be noted that the various devices in this application are not specifically limited in this application.
  • FIG. 6 is a schematic flowchart of a packet processing method 100 provided by the present application.
  • the method 100 is described in the way of interaction among user equipment, network equipment and service equipment, but the operations performed by each device in the method 100 may be used as a separate embodiment.
  • the user equipment may be, for example, the user equipment 11 in FIG. 5
  • the service device may be, for example, the service device 31 in FIG. 5
  • the network device may be, for example, the network device 21 in FIG. 5 .
  • network device 22 or network device 23 may be, for example, the network device 21 in FIG. 5 .
  • the method 100 may, for example, include the following S101 to S106:
  • a user equipment sends a first packet to a network device, where the first packet belongs to an application.
  • the first packet may be a packet generated by the user equipment and sent to the service device and corresponding to an application installed on the user equipment, and the destination address of the first packet matches the address of the service device corresponding to the application.
  • the first message may be a data message or a control message.
  • the fact that the first packet belongs to an application means that the first packet may be automatically generated by an application installed on the user equipment, or may be triggered and generated based on an operation performed by the user on the client corresponding to the application installed on the user equipment.
  • the user equipment sends the first packet to the network device
  • the network device may be any network device on the path that the packet on the user equipment goes to the service device, for example, the network shown in FIG. 5 may be used.
  • Network device 21 in the scene may be any network device on the path that the packet on the user equipment goes to the service device, for example, the network shown in FIG. 5 may be used.
  • Network device 21 in the scene may be any network device on the path that the packet on the user equipment goes to the service device, for example, the network shown in FIG. 5 may be used.
  • Network device 21 in the scene may be any network device on the path that the packet on the user equipment goes to the service device, for example, the network shown in FIG. 5 may be used.
  • the network device acquires dynamic information corresponding to the first packet, where the dynamic information is used to represent the dynamic of the application.
  • the dynamic information corresponding to the first packet is used to represent the relevant status of the application to which the first packet belongs, including the status of the application and the status of the user equipment where the application is located.
  • Dynamic information can be embodied in two forms: the status value of the application or the status indication of the application.
  • the state value of the application may be a specific value of a relevant parameter during the running process of the application.
  • the dynamic information of the first packet may include the remaining duration of the cached video of the application; the state indication of the application may be determined according to the state value of the application Indication, used to indicate whether the network device that received the first packet needs to provide enhanced network resources for the application.
  • the dynamic information of the first packet may also include a status indication (normal or Alarm), the normal state can indicate that it is not necessary to provide enhanced network resources for the application, and the alarm state can indicate that enhanced network resources need to be provided for the application.
  • the dynamic information of the first packet may be generated by the user equipment and carried in the first packet, Then, in S102, for example, the network device may parse the first packet to obtain dynamic information carried in the first packet.
  • the client of the application communicates using the Transmission Control Protocol (English: Transmission Control Protocol, TCP)
  • the first packet may be a data acquisition request message sent by the client of the application, or the first packet may also be the client of the application
  • an acknowledgment (English: ACK) message is sent after receiving the data
  • the first message may carry dynamic information.
  • the first packet may be a UDP data packet sent by the client of the application, or the first packet may be In the TCP data packet in the TCP communication corresponding to the UDP communication, the first packet may carry dynamic information.
  • UDP User Datagram Protocol
  • the first packet may consider that the dynamic information needs to be notified to the network device only when the dynamic information indicates that the application is in an abnormal state. Therefore, the dynamic information is carried in the first packet. However, when the dynamic information indicates that the application is in a normal state, it is considered that there is no need to inform the network device of the dynamic information, so the dynamic information is not carried in the first packet.
  • 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.
  • the first packet can carry the dynamic information through the Service Status Option (English: Service Status Option) field, and the Service Status Option field can be carried in the application-aware version 6 Internet Protocol network of the first packet. (English: Application-aware Internet Protocol version 6Networking, referred to as: APN6) option header.
  • 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 indicates that the type of the Option field is Service-Status Option; the Option Length field may be, for example, 1 byte, and the value of the Option Length field indicates that the Option
  • the length occupied by the Value field; the length of the Option Value field is variable, and at least one sub-TLV field can carry at least one piece of dynamic information. For example, each sub-TLV field in the Option Value field carries one piece of dynamic information.
  • each sub-TLV field in the Option Value field may include: Type field, sub-Type field, Length field, and Value field, where the Type field may be, for example, 2 bytes, which is used to indicate that the piece of dynamic information belongs to
  • the sub-Type field can be, for example, 1 byte, which is used to indicate the subtype of the piece of dynamic information in the category to which it belongs, and together with the Type field to indicate the specific type of the piece of dynamic information
  • the Length field can be, for example, 1 byte, with Indicates the length of the Value field
  • the length of the Value field is variable and is used to carry the specific content of the piece of dynamic information.
  • the classification method for dynamic information includes but is not limited to: the value of the Type field can be 0x0000 ⁇ 0x001F, representing a general type, and the subtype represented by the value of the subType field can include: delay, jitter, bandwidth, etc.,
  • the value of the Type field can be 0x0020 to 0x2020, representing an application type, such as a video application, and the subtypes represented by the value of the subType field can include: Cache duration, etc.
  • the application type can support 8192 specific types;
  • the value of the Type field can be 0x2021 ⁇ 0xEFFF: representing a specific application, such as the glory of the king, the subtype represented by the value of the subType field can include: The end-to-end delay, air interface delay, etc., this specific application can support 53215 specific types;
  • the value of the Type field can be 0xF000 ⁇ 0xFFFF, representing the type of private application or experimental
  • each sub-TLV field in the Option Value field may also include: a Type field, a Length field, and a Value field, where the Type field may be, for example, 3 bytes, which is the same as the sub-TLV field shown in Figure 7b.
  • the Type field may be, for example, 3 bytes, which is the same as the sub-TLV field shown in Figure 7b.
  • the sub-TLV field shown in Fig. 7c may enable the network device to have better processing performance for the sub-TLV field.
  • the Value field carries the dynamic information corresponding to the first packet.
  • the format of the Value field may be shown in Figure 8a, for example, where the Value field may include: 1-bit E flag bit (indicating enhanced (English: Enhanced) ) or early warning (English: Early warning)) and a 31-bit reserved field.
  • the format of the Value field may be different according to the dynamic information.
  • the format of the Value field can be as shown in Figure 8b, including: reserved field, resolution level (English: Resolution Level) and video bit rate (also called bit rate, English: Bitrate, Unit: Megabits per second (English: Mbps)).
  • the format of the Value field may be as shown in Figure 8c, including: a reserved field and the remaining duration of the buffered video (English: Remaining Time of buffered Video), wherein the buffered video's The unit of the remaining duration is milliseconds (English: millisecond, abbreviated as: ms); for another example, for the remaining data amount of the cached video, the format of the Value field can be as shown in Figure 8d, including: the reserved field and the remaining data of the cached video Data volume (English: Remaining Size of buffered Video), wherein the unit of the remaining data volume of the cached video is kilobytes (English: kilobyte, abbreviation: KB); for another example, the remaining data volume of the cached video accounts for the cached video The percentage of the space, the format of the Value field can be as shown in Figure 8e, including: the reserved field and the percentage of the remaining data of the cached video in the cache space (
  • the format of the Value field may be as shown in Figure 8f, including: the reserved field and the end-to-end delay (English: End-to-End Delay, or It is called round trip time (English: Round Trip Time, abbreviation: RTT), unit: microsecond (English: microsecond, abbreviation: us)); for another example, for the end-to-end delay jitter from user equipment to service equipment, the Value field
  • the format can be shown in Figure 8g, including: reserved field and end-to-end delay jitter (English: End-to-End Jitter, also known as RTT, unit: us); another example, for user equipment to service
  • the format of the Value field can be shown in Figure 8h, including: T field, D field, reserved field and end-to-end rate (English: End-to-End Rate), where the T field is The value can represent the unit of the end-to-end rate.
  • the value of the D field can represent the
  • the end-to-end rate is the uplink rate or the downlink rate, such as: 0 for uplink and 1 for downlink.
  • the dynamic information of the first packet may be generated by a network device.
  • the network device may be a broadband network gateway (English: Broadband Network Gateway, BNG for short) or a customer-side device (English: Customer Premise Equipment, short: CPE) between the user equipment and the service device.
  • S102 may include: the network device generates dynamic information corresponding to the first packet according to the first packet.
  • the process of generating the dynamic information corresponding to the first packet by the network device 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, Specifically, the network device may determine, according to the application feature information carried in the first packet, the flow to which the first packet belongs, and determine the packets in the flow; then, obtain the information of each packet received in the flow.
  • Historical parameters and based on the historical parameters through machine learning, artificial intelligence (English: Artificial Intelligence, referred to as: AI) or deep packet inspection (English: Deep Packet Inspection, referred to: DPI) and other technologies to generate the dynamic information of the flow.
  • AI Artificial Intelligence
  • DPI Deep Packet Inspection
  • the network device can obtain not only the dynamic information corresponding to the first packet, but also the application feature information used to characterize the corresponding packet.
  • information and dynamic information determine the processing method for the first packet, for example, determine the forwarding path 1 and forwarding path 2 corresponding to the application according to the application feature information, and determine the 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 forwarding path 1.
  • the application feature information may be carried in the first packet.
  • the network device can also obtain application requirement information that is used to characterize the network requirements of the application, and the network device can implement dynamic path calculation based on the application requirement information and the application feature information. The information and dynamic information determine how the first packet is processed.
  • the network device determines network resource information corresponding to the first packet according to the dynamic information.
  • the network device determines the foregoing network resource information according to dynamic information and application conditions.
  • the application condition includes application characteristic information and/or application requirement information.
  • 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 feature information in the application conditions; In this case, the network device in S103 may determine the network resource information according to the dynamic information and the application feature information and application requirement information in the application conditions.
  • the network device when the network to which the network device belongs, or when the network device mainly transmits packets 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 according to the dynamic information of the application and the application requirement information. resource information.
  • the network device can determine the network resource information according to the dynamic information and application feature information, or can also determine the network resource information according to the dynamic information, application feature information and application requirement information.
  • the network resource information includes one or more of the following information: service quality level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency.
  • service quality level may be, for example, a quality of service (English: Quality of Service, QoS for short) level or an SLA level.
  • the network device may save the corresponding threshold, and S103 may specifically include: the network device determines the first report according to the comparison between the state value of the application and the threshold.
  • the threshold can be a fixed value pre-configured statically or dynamically on the network device, or a variable value that is continuously adjusted and updated during the operation of the network device, or generated through technologies such as machine learning, big data, or AI.
  • the dynamic information includes the remaining duration of the cached video
  • the network resource information includes the forwarding path as an example for description. It is assumed 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.
  • video application 1 runs on five user equipments, and the five user equipments belong to: users 1 to 5 respectively. The five user equipments are connected to network device A respectively, and the service of video application 1 The device is connected to network device B.
  • the remaining duration of the cached video is 1 second (English: second, abbreviated as: s); user 2 carries dynamic information, and the remaining duration of the cached video is 5s; user 3 carries dynamic information, The remaining duration of the cached video is 10s; user 4 carries dynamic information, and the remaining duration of the cached video is 30s; user 5 does not carry dynamic information.
  • switch to use path 1 that is, the path from network device A to network device B through network device C
  • switch to use path 3 that is, network device A passes through network device E, network Device F, the path from network device G to network device B
  • the threshold can be used as a parameter for path delay switching.
  • the network device uses 6s and 12s as the threshold.
  • Switch to use path 1 when the remaining duration of the cached video in the dynamic information is less than 6s, Switch to use path 1; when the remaining duration of the cached video in the dynamic information is greater than 12s, switch to use path 2 (ie, the path from network device A to network device B through network device D).
  • the remaining duration of the cached video at T1 is 20s
  • the remaining duration of the cached video at T2 is 10s
  • the remaining duration of the cached video at T3 is 3s
  • the remaining duration of the cached video at T4 is 8s
  • the remaining duration of the cached video at time T5 is 30s.
  • the threshold can also be used as a parameter for the actual switching of the path.
  • the network device uses 6s and 12s as the threshold.
  • use path 2 For the traffic with the remaining duration of the cached video in the dynamic information less than 6s, use path 2 for transmission; for the traffic with the remaining duration of the cached video in the dynamic information greater than or equal to 6s and less than 12s, use path 4 (that is, network device A in turn It is transmitted through the path from network device H, network device I to network device B); for the traffic with the remaining duration of the cached video in the dynamic information greater than or equal to 12s or the traffic without dynamic information, use path 3 for transmission. Then, the traffic sent by video application 1 on user 1 and user 2 is transmitted using path 2, the traffic sent by video application 1 on user 3 is transmitted using path 4, and the traffic sent by video application 1 on user 4 and user 5 is transmitted using path 3 to transmit.
  • the threshold can also be used as a parameter for path delay switching or a parameter for actual path switching.
  • the threshold uses the percentage of the remaining data of the cached video in the cache space (hereinafter referred to as the "proportion") as dynamic information, taking the format shown in Figure 8e as an example .
  • user 1 carries dynamic information and the proportion is 3%; user 2 carries dynamic information and the proportion is 10%; user 3 carries dynamic information and the proportion is 30%; user 4 carries dynamic information and the proportion is 80%; User 5 does not carry dynamic information.
  • the network device uses 5%, 15%, 50%, and 90% as the thresholds, for the traffic that accounts for less than 5% of the dynamic information, use path 1 for transmission; for the proportion of dynamic information greater than or equal to 5% and For traffic less than 15%, use path 2 for transmission; for traffic that accounts for more than or equal to 15% and less than 50% of dynamic information, use path 5 (that is, the path from network device A to network device B through network device J) For transmission; for the traffic that accounts for more than or equal to 50% and less than 90% of the dynamic information, use path 4 for transmission; for the traffic that accounts for more than 90% of the dynamic information or the traffic that does not carry dynamic information, use the path 3 to transmit.
  • the traffic from video application 1 on user 1 is transmitted using route 1
  • the traffic from video application 1 on user 2 is transmitted using route 2
  • the traffic from video application 1 on user 3 is transmitted using route 5
  • the traffic from user 4 on user 4 is transmitted using route 5.
  • the traffic sent by video application 1 is transmitted using path 4, and the traffic sent by video application 1 on user 5 is transmitted using path 3.
  • S103 may specifically include: the network device determines the network resource information corresponding to the first packet according to the state indication of the application.
  • application 1 is provided with forwarding services of two QoS levels in the network: best effort (English: Best Effort, BE for short) and expedited forwarding (English: Expedited Forwarding, EF for short).
  • best effort English: Best Effort, BE for short
  • expedited forwarding English: Expedited Forwarding, EF for short.
  • 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, The traffic sent by user 2's application 1 carries dynamic information and the E flag is 0, and the traffic sent by user 3's application 1 does not carry dynamic information. Then, the traffic of user 1's application 1 will use the EF level with priority. For traffic using the BE level, traffic from user 2's application 1, user 3's application 1, and other traffic are transmitted in the network.
  • the dynamic information includes the end-to-end delay
  • the network resource information includes the BE high-bandwidth network slice A and the ultra-low-latency low-bandwidth network slice B as an example for description.
  • the delay-sensitive battle game 1 assuming that the battle game 1 uses the dynamic information shown in Figure 8a, if the end-to-end delay is greater than 100ms, the dynamic information is carried in the sent message and the E flag in the dynamic information is taken The value is 1; if the end-to-end delay is less than 80ms and greater than or equal to 50ms, the outgoing packet carries dynamic information and the E flag in the dynamic information is 0; when the end-to-end delay is less than 50ms, the The outgoing packets do not carry dynamic information.
  • the network device determines that the E flag bit in the dynamic information corresponding to the received packet 1 is 1, it uses network fragment B for transmission; if the network device determines that the E flag bit in the dynamic information corresponding to the received packet 2 is 0 or When the received packet 3 does not carry dynamic information, the network fragment A is used for transmission. Then, the battle game 1 includes three users: users 1 to 3, and the end-to-end delays of the three users are 35ms, 90ms, and 125ms, respectively.
  • the situation that the dynamic information is carried in the packets 1 to 3 of the users 1 to 3 may be: the traffic sent by the battle game 1 on the user 1 does not carry the dynamic information, and the traffic sent by the battle game 1 on the user 2 carries the dynamic information and E The value of the flag bit is 0, the traffic sent by the game 1 on user 3 carries dynamic information and the value of the E flag is 1; the traffic processing of each user by the network device can be as follows: the network device sends the data to the game 1 on user 1. The traffic from user 2 is transmitted by network segment A, the traffic sent by the network device to the battle game 1 on user 2 is transmitted by network segment A, and the traffic sent by the network device to the battle game 1 on user 3 is transmitted by network segment B.
  • the network device can determine the corresponding network resource information according to each piece of dynamic information, so that based on the The first packet is processed by the determined pieces of network resource information.
  • the network device can Corresponding network resource information is determined, and one network resource information corresponding to the at least two pieces of dynamic information is determined according to a preset rule (eg, selecting a better processing method), and the first packet is processed based on the determined network resource information.
  • the network device sends a second packet according to the network resource information, where the second packet belongs to the application.
  • the second packet may be the first packet, that is, S104 is that the network device sends the first packet according to the determined network resource information. a message.
  • each subsequent network device can obtain dynamic information from the first packet, determine corresponding network resource information according to the dynamic information, and send the first packet based on the determined network resource information until the first packet is The message is sent to the service device.
  • the second packet may be obtained by the network device updating the first packet, and the updated first packet (ie, the second packet) includes network resource information.
  • each subsequent network device can obtain the corresponding network resource information from the second message, so as to send the second message based on the determined network resource information, until the second message is sent to the service device, There is no need to determine corresponding network resource information based on dynamic information on each network device, which saves network resources and improves traffic processing efficiency.
  • the second packet may be that the network device updates the first packet. obtained from the message, the updated first message (ie, the second message) includes the generated dynamic information.
  • each subsequent network device can obtain dynamic information from the second packet, determine corresponding network resource information according to the dynamic information, and send the second packet based on the determined network resource information until the second packet is The message is sent to the service device.
  • the network device may also determine the network resource information according to the generated dynamic information, and the second packet may be obtained by the network device updating the first packet, and the updated first packet (ie the second packet) ) includes network resource information.
  • the updated first message (that is, the second message) may also include dynamic information.
  • each subsequent network device can obtain the corresponding network resource information from the second message, so as to send the second message based on the determined network resource information, until the second message is sent to the service device, There is no need to determine corresponding network resource information based on dynamic information on each network device, which saves network resources and improves traffic processing efficiency.
  • the network device may also determine whether the generated dynamic information representation is in an abnormal state, and if it is in an abnormal state, the second packet may be obtained by the network device by updating the first packet, and the updated The first packet (that is, the second packet) includes network resource information and/or dynamic information; if it is in a normal state, the second packet is the first packet, that is, the first packet is not processed, and the The received first packet is used as the second packet in S104 to perform corresponding processing.
  • the network device sends the second packet according to the network resource information, and if the next hop of the network device is still a network device instead of a service device, S104 may be that the network device sends the second packet 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 message to the service device.
  • the network device may process the second packet according to the network resource information corresponding to the dynamic information, for example, select the corresponding QoS level, Network resources such as forwarding paths or network fragments, and process the second packet according to the selected network resources.
  • the network device may also 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 obtaining the policy entry according to the network resource information corresponding to the dynamic information may, for example, be: the network device updates the policy entry according to the network resource information corresponding to the dynamic information, and obtains the updated policy entry.
  • the policy entry may be a QoS level matching table, a forwarding table, a routing table, a tunnel table, a network fragment selection table, etc. locally set by the network device.
  • the network device may use the query result to process the second packet after querying the relevant entry according to the second packet, such as processing the second packet by using the QoS level, forwarding path or network fragment included in the query result.
  • the network device may also be based on dynamic information or network resource information corresponding to the dynamic information , mark the QoS-related fields in the second packet.
  • AS Autonomous System
  • the QoS-related fields include but are not limited to: IPv6 Differentiated Services Code Point (English: Differentiated Services Code Point, DSCP for short) or flow type (English: Traffic Class, short for short) : TC) field, the fourth version of the Internet Protocol (English: Internet Protocol version 4, referred to as: IPv4) type of service (English: Type of Service, referred to as: ToS) field, Multiprotocol Label Switching (English: Multiprotocol Label Switching, referred to as: : MPLS) experimental purpose (English: Experimental Use, referred to as: EXP) field (also known as TC field), virtual local area network (English: Virtual Local Area Network, referred to as: VLAN) priority code point (English: Priority Code Point, Abbreviation: PCP) field, etc.
  • the network device in the AS domain can process the second packet according to the QoS-related fields; however, when the second packet enters the next AS domain, the border device in the next AS domain needs to use the dynamic information or the corresponding dynamic information
  • the network resource information re-marks the QoS-related field, so that the network device in the next AS domain can accurately forward the second packet according to the value of the re-marked QoS-related field.
  • the second packet can determine the corresponding QoS level, forwarding path and/or network fragment according to the value of the QoS-related field, so as to use the determined QoS level, forwarding path and/or The network fragment processes the second packet.
  • the service device receives the second packet and generates a third packet, where the third packet includes the dynamic information.
  • the dynamic information reflecting the state of the application on the client of the user equipment can also affect the service equipment to the user.
  • the message sent by the service device to the user equipment is the third message.
  • the manner of carrying the dynamic information in the third message may refer to the formats shown in FIGS. 7a-7c and 8a-8h. I won't go into details here.
  • the service device sends the third packet to the user equipment.
  • the service device may send the third packet to the user equipment via at least one network device.
  • each network device that the third packet passes through may process the third packet according to the dynamic information carried in the third packet.
  • network resource information so as to process the third packet according to the network resource information.
  • the network device through which the message corresponding to the application passes can perceive the state of the application according to the dynamic information corresponding to the message, and provide different network services accordingly, and dynamically optimize the message of the application.
  • the network can allocate multiple levels of network resources. Different levels of network resources correspond to, but are not limited to, different forwarding paths, different QoS levels, the radio channel and/or radio frequency, etc.
  • Network devices can process and forward traffic using different levels of network resources based on dynamic information.
  • network resources can be divided into two levels: basic and enhanced. For the traffic of applications in the normal state, the network resources of the basic level are used for transmission; for the traffic of applications in the alarm state, the network resources of the enhanced level are used for transmission.
  • the QoS level can be set to BE, and the forwarding path with the minimum number of hops can be set;
  • the QoS level can be set to EF, and the low-latency forwarding path or network sharding.
  • the user equipment, service equipment, and network equipment in the above method 100 may be collectively referred to as communication equipment.
  • the operations performed when the communication equipment is a user equipment, the operations performed when the communication equipment is a network equipment, and the communication equipment are service equipment.
  • the operations performed at the time can be independently implemented as separate embodiments, and the above description is only an interactive description for the purpose of clarifying and completing the description of the technical solution.
  • the dynamic information reflecting the current state of the application can be carried in the message sent to the service device, which provides a prerequisite for the subsequent network device to properly process the message.
  • the service device which provides a prerequisite for the subsequent network device to properly process the message.
  • dynamic information reflecting the application state can be sensed, and packets can be processed reasonably based on the dynamic information, so that the application can bring better QoE to users.
  • the dynamic information that reflects the application state can be carried in the message sent to the user device, so that the network device through which the message from the service device to the user device passes can perceive the current state of the application, so that the application can bring the application to the user.
  • QoE Quality of Service
  • the dynamic information that affects the QoE brought by the application to the user is considered in the processing of the packet, that is, the network device first obtains the dynamic information used to represent the state of the application to which the received packet belongs, and determines according to the dynamic information.
  • the network resource information corresponding to the packet so that the network device can process the packet based on the determined network resource information.
  • the network device that receives the message corresponding to the application can perceive the dynamic information of the application and process the message in a targeted manner based on the dynamic information.
  • the dynamic information of the application is considered in the message processing process so that the application can provide The user brings better QoE, which can improve the use experience brought by the application to the user, and make the control of the application more precise.
  • an embodiment of the present application further provides a packet processing apparatus 1000, where the apparatus 1000 has the network device 21, the network device 22, or the network device 23 in the embodiment shown in FIG. 5, or the implementation shown in FIG. 9. Any function of network device A in the example.
  • the apparatus 1000 may include: an acquisition unit 1001 and a determination unit 1002 .
  • the obtaining unit 1001 is configured to obtain dynamic information corresponding to a message, where the dynamic information represents a state corresponding to an application to which the message belongs.
  • the obtaining unit 1001 may execute S102 shown in FIG. 6 .
  • the determining unit 1002 is configured to determine network resource information corresponding to the packet according to the dynamic information.
  • the determining unit 1002 may execute S103 shown in FIG. 6 .
  • the determining unit 1002 is specifically configured to: determine the network resource information according to the dynamic information and application conditions, where the application conditions include application feature information and/or application requirement information, and The application feature information is used to characterize the attributes of the application, and the application requirement information is used to characterize the network requirements of the application.
  • the message includes the dynamic information.
  • the obtaining unit 1001 is specifically configured to: generate the dynamic information according to the message.
  • the apparatus 1000 may further include: a first updating unit.
  • the first updating unit is configured to update the message, where the message includes the dynamic information.
  • the apparatus 1000 may further include: a second updating unit.
  • the second update unit is configured to update the message, where the message includes the network resource information.
  • the network resource information includes one or more of the following: service quality level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency.
  • the apparatus 1000 may further include: a sending unit.
  • the sending unit is configured to send the message according to the network resource information.
  • the sending unit may perform S104 shown in FIG. 6 .
  • the apparatus 1000 may further include: an obtaining unit and a processing unit.
  • the obtaining unit is configured to obtain the policy entry according to the network resource information;
  • the processing unit is configured to process the message corresponding to the application according to the policy entry.
  • the dynamic information includes a state value of the application, or a state indication of the application, where the state indication is used to instruct the network device to provide enhanced network resources for the application.
  • the message carries the dynamic information through a service status option field, where the service status option field may be carried in an APN6 option header of the message.
  • the above-mentioned units with the same function but with different serial numbers in the naming may be a unit capable of realizing the function.
  • the above-mentioned obtaining unit 1001 and the obtaining unit may be the same unit having the obtaining function.
  • the packet processing apparatus 1000 shown in FIG. 10 may be a network device in the embodiment shown in FIG. 6 . Therefore, for various specific embodiments of the packet processing apparatus 1000, please refer to the corresponding The related introduction of the method 100 is not repeated in this embodiment.
  • an embodiment of the present application further provides a packet processing apparatus 1100, where the apparatus 1100 has the user equipment 11, network equipment 21, network equipment 22, network equipment 23, or service equipment 31 in the embodiment shown in FIG. 5 above. , or any function of network equipment A to network equipment J, user equipment, or service equipment in the embodiment shown in FIG. 9 .
  • the apparatus 1100 may include: an obtaining unit 1101 , a generating unit 1102 and a sending unit 1103 .
  • the obtaining unit 1101 is configured to obtain dynamic information, where the dynamic information is used to represent the state corresponding to the 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 dynamic information corresponding to S105 shown in FIG. 6 . The situation of obtaining dynamic information from the second packet; if the communication device is a user equipment, the obtaining unit 1101 corresponds to the situation that the first packet shown in S101 in FIG. 6 includes dynamic information.
  • the generating unit 1102 is 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 equipment, the generating unit 1102 may execute S101 shown in FIG. 6 .
  • the sending unit 1103 is configured to send the first packet. If the communication device is a network device, the first message sent by the sending unit 1103 corresponds to the second message in S104 shown in FIG. 6; if the communication device is a service device, the sending unit 1103 sends The first packet corresponds to the third packet in S106 shown in FIG. 6 ; if the communication device is a user equipment, the first packet sent by the sending unit 1103 corresponds to the first packet shown in S101 in FIG. 6 . message.
  • the communication equipment may include user equipment, network equipment or service equipment.
  • the communication device is a network device or a service device
  • the obtaining unit 1101 may include: a receiving subunit and an obtaining subunit.
  • the receiving subunit is configured to receive a second packet, the second packet belongs to the application; the obtaining subunit is configured to obtain the dynamic information according to the second packet.
  • the communication device is the network device, and the generating unit 1102 is specifically configured to: update the second packet to obtain the first packet.
  • 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
  • the generating unit 1102 specifically is used for: in response to the second packet including the dynamic information, carrying the dynamic information in a packet corresponding to the application sent to the user equipment, where the packet corresponding to the application includes the first a message.
  • the dynamic information includes a state value of the application, or a state indication of the application, where the state indication is used to instruct the network device to provide enhanced network resources for the application.
  • the first packet carries the dynamic information through a service status option field, where the service status option field may be carried in an APN6 option header of the first packet.
  • the packet processing apparatus 1100 shown in FIG. 11 may be user equipment, network equipment, or service equipment in the embodiment shown in FIG. 6 . Therefore, various specific embodiments of the packet processing apparatus 1100 are Reference may be made to the related introduction of the method 100 corresponding to FIG. 6 , which is not repeated in this embodiment.
  • an embodiment of the present application provides a network device 1200 .
  • the network device 1200 may be the network device in any of the foregoing embodiments, for example, may be 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 foregoing embodiments.
  • 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 an apparatus with a hardware structure, and can be used to implement the functional modules in the packet processing apparatus 1000 shown in FIG. 10 .
  • the obtaining unit 1001 and the determining unit 1002 in the message processing apparatus 1000 shown in FIG. 10 can be implemented by calling the code in the memory 1203 by the at least one processor 1201 .
  • the network device 1200 may also be used to implement the functions of the network device in any of the foregoing embodiments.
  • processor 1201 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the program of this application.
  • CPU central processing unit
  • NP network processor
  • ASIC application-specific integrated circuit
  • the bus system 1202 described above may include a path to transfer information between the above described components.
  • the above-mentioned communication interface 1204 is used to communicate with other devices or communication networks.
  • the above-mentioned memory 1203 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types of storage devices that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • Types of dynamic storage devices which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by Any other medium accessed by the computer, but not limited to this.
  • the memory can exist independently and be connected to the processor through a bus.
  • the memory can also be integrated with the processor.
  • the memory 1203 is used for storing the application program code for executing the solution of the present application, and the execution is controlled by the processor 1201 .
  • the processor 1201 is used to execute the application program code stored in the memory 1203, so as to realize the functions in the method of the present patent.
  • the processor 1201 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 12 .
  • the network device 1200 may include multiple processors, for example, the processor 1201 and the processor 1207 in FIG. 12 .
  • Each of these processors can 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 (eg, computer program instructions).
  • the communication device 1200 provided by the present application may also be shown in FIG. 12 .
  • the communication device 1200 may be a user equipment, a network device, or a service device in any of the foregoing embodiments, for example, may be a user device, a network device, or a service device in the embodiment shown in FIG. 5 or 9, and the communication device 1200 may implement the above The function of the user equipment, network equipment or service equipment in the embodiment.
  • the communication device 1200 includes 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 by an embodiment of the present application.
  • 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 in the embodiment shown in FIG. 9 . device A.
  • the network device 1300 includes: a main control board 1310 and an interface board 1330 .
  • the main control board 1310 is also called the main processing unit (main processing unit, MPU) or the route processor card (route processor card).
  • the main control board 1310 controls and manages various components in the network device 1300, including route calculation, Equipment maintenance, protocol processing functions.
  • the main control board 1310 includes: a central processing unit 1311 and a memory 1312 .
  • the interface board 1330 is also referred to as a line processing unit (LPU), a line card or a service board.
  • the interface board 1330 is used to provide various service interfaces and realize data packet forwarding.
  • the service interface includes, but is not limited to, an Ethernet interface, a POS (Packet over SONET/SDH) interface, etc.
  • the Ethernet interface is, for example, a flexible Ethernet service interface (Flexible Ethernet Clients, FlexE Clients).
  • the interface board 1330 includes: a central processing unit 1331 , a network processor 1332 , a forwarding table entry memory 1334 and a physical interface card (ph8sical interface card, PIC) 1333 .
  • the central processing unit 1331 on the interface board 1330 is used to control and manage the interface board 1330 and communicate with the central processing unit 1311 on the main control board 1310 .
  • the network processor 1332 is used to implement packet forwarding processing.
  • the network processor 1332 may be in the form of a forwarding chip.
  • the processing of the uplink packet includes: processing of the incoming interface of the packet, and searching of the forwarding table; processing of the downlink packet: searching of the forwarding table, and so on.
  • the physical interface card 1333 is used to realize the interconnection function of the physical layer, the original traffic enters the interface board 1330 through this, and the processed packets are sent from the physical interface card 1333 .
  • the physical interface card 1333 includes at least one physical interface, and the physical interface is also called a physical port.
  • the physical interface card 1333 corresponds to the FlexE physical interface in the system architecture.
  • the physical interface card 1333 also called a daughter card, can be installed on the interface board 1330, and is responsible for converting the optoelectronic signal into a message, and after checking the validity of the message, it is forwarded to the network processor 1332 for processing.
  • the central processor 1331 of the interface board 1330 can also perform the functions of the network processor 1332 , such as implementing software forwarding based on a general-purpose CPU, so that the network processor 1332 is not required in the physical interface card 1333 .
  • the network device 1300 includes multiple interface boards.
  • the network device 1300 further includes an interface board 1340 .
  • the interface board 1340 includes a central processing unit 1341 , a network processor 1342 , a forwarding table entry storage 1344 and a physical interface card 1343 .
  • the network device 1300 further includes a switch fabric board 1320 .
  • the switch fabric unit 1320 may also be referred to as a switch fabric unit (switch fabric unit, SFU).
  • SFU switch fabric unit
  • the switching network board 1320 is used to complete data exchange between the interface boards.
  • the interface board 1330 and the interface board 1340 may communicate through the switch fabric board 1320 .
  • the main control board 1310 and the interface board 1330 are coupled.
  • the main control board 1310 , the interface board 1330 , the interface board 1340 , and the switch fabric board 1320 are connected to the system backplane through a system bus to realize intercommunication.
  • an inter-process communication (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 through the IPC channel.
  • IPC inter-process communication
  • the network device 1300 includes a control plane and a forwarding plane
  • the control plane includes the main control board 1310 and the central processing unit 1331
  • the forwarding plane includes various components that perform forwarding, such as the forwarding entry storage 1334, the physical interface card 1333 and the network processing device 1332.
  • the control plane performs functions such as routers, generating forwarding tables, processing signaling and protocol packets, configuring and maintaining device status, etc.
  • the control plane delivers the generated forwarding tables to the forwarding plane.
  • the network processor 1332 based on the control plane
  • the delivered forwarding table is forwarded to the packet received by the physical interface card 1333 by looking up the table.
  • the forwarding table issued by the control plane may be stored in the forwarding table entry storage 1334 .
  • the control plane and forwarding plane may be completely separate and not on the same device.
  • the network processor 1332 can trigger the physical interface card 1333 to receive the packet.
  • the central processing unit 1311 may acquire dynamic information corresponding to the packet, and determine network resource information according to the dynamic information.
  • the sending unit and the like in the message processing apparatus 1000 and the communication interface 1204 in the network device 1200 may be equivalent to the physical interface card 1333 or the physical interface card 1343 in the network device 1300; the obtaining unit in the message processing apparatus 1000 1001 , the determining unit 1002 , etc., and the processor 1201 in the network device 1200 may be equivalent to the central processing unit 1311 or the central processing unit 1331 in the network device 1300 .
  • the operations on the interface board 1340 in the embodiments of the present application are the same as the operations on the interface board 1330, and for brevity, details are not repeated here.
  • the network device 1300 in this embodiment may correspond to the packet processing apparatus or network device in each of the foregoing 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 of the packet processing apparatus 1000 or the network device 1200 and/or the various steps implemented in the foregoing method embodiments will not be repeated here.
  • main control boards there may be one or more main control boards, and when there are more than one main control board, it may include an active main control board and a backup main control board.
  • a network device may have at least one switching network board, and the switching network board realizes data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those in a centralized architecture.
  • the form of the network device can also be that there is only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on this board.
  • the central processing unit on the board can be combined into a central processing unit on this board to perform the functions of the two superimposed, the data exchange and processing capacity of this form of equipment is low (for example, low-end switches or routers and other networks. equipment).
  • the specific architecture used depends on the specific networking deployment scenario.
  • each of the above network devices or network devices may be implemented as virtualized devices.
  • the virtualization device may be a virtual machine (English: Virtual Machine, VM) running a program for sending a message, and the virtual machine is deployed on a hardware device (for example, a physical server).
  • a virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment.
  • the virtual machine can be configured as each network device in FIG. 5 or FIG. 9 .
  • each network device or network device may be implemented based on a general physical server combined with a Network Functions Virtualization (NFV) technology.
  • NFV Network Functions Virtualization
  • Each network device or network device is a virtual host, a virtual router or a virtual switch.
  • the communication device 1300 provided by the present application may also be shown in FIG. 13 .
  • the communication device 1300 may be user equipment, network equipment, or service equipment in any of the foregoing embodiments, for example, may be the user equipment, network equipment, or service equipment in the embodiment shown in FIG. 5 or 9, and the communication device 1300 may implement the above The function of the user equipment, network equipment or service equipment in the embodiment.
  • the communication device 1300 includes: a main control board 1310 and an interface board 1330 .
  • the embodiment of the present application also provides a chip, including a processor and an interface circuit, the interface circuit is used to receive instructions and transmit them to the processor; the processor, for example, may be a specific type of the message processing device in the embodiment of the present application
  • the implementation form can be used to execute the above packet processing method.
  • the processor is coupled to a memory, and the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the chip system enables the method in any of the foregoing method embodiments.
  • the number of processors in the chip system may be one or more.
  • the processor can be implemented by hardware or by software.
  • the processor may be a logic circuit, an integrated circuit, or the like.
  • the processor may be a general-purpose processor implemented by reading software codes stored in memory.
  • the memory may be integrated with the processor, or may be provided separately from the processor, which is not limited in this application.
  • the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be provided on different chips.
  • the setting method of the processor is not particularly limited.
  • the system-on-chip may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC), It can also be a central processing unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), or a microcontroller (microcontroller).
  • controller unit, MCU it can also be a programmable logic device (PLD) or other integrated chips.
  • 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 used to generate a message corresponding to the application, and send the message to the service device 1403 through the network device 1402;
  • the network device 1402 is used to execute the above method 100;
  • the The service device 1403 is configured to receive the message, and carry the dynamic information in the message corresponding to the application sent to the user equipment 1401 .
  • embodiments of the present application also provide a computer-readable storage medium, where program codes or instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer can execute any of the above embodiments shown in FIG. 6 .
  • embodiments of the present application also provide a computer program product, which, when running on a computer, enables the computer to execute the method of any one of the foregoing method 100 implementations.
  • determining B based on A does not mean that B is only determined according to A, and B can also be determined according to A and/or other information.

Abstract

Disclosed in embodiments of the present application are a packet processing method and a related device. A network device first obtains dynamic information corresponding to a received packet, the dynamic information representing a state corresponding to an application to which the packet belongs; the network device determines, according to the dynamic information, network resource information corresponding to the packet, so that the network device can process the packet on the basis of the determined network resource information. Therefore, by means of the method, the network device receiving the packet corresponding to the application can perceive the dynamic information of the application, and perform targeted processing on the packet on the basis of the dynamic information; the dynamic information of the application is considered in the packet processing process, so that the application can bring better quality of experience to a user, use experience brought by the application to the user can be improved, and control for the application is more accurate.

Description

一种报文处理方法及相关设备A message processing method and related equipment
本申请要求于2020年12月18日提交中国国家知识产权局、申请号为202011511178.4、申请名称为“一种报文处理方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011511178.4 and the application title "A message processing method and related equipment" filed with the State Intellectual Property Office of China on December 18, 2020, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请涉及通信技术领域,尤其涉及一种报文处理方法及相关设备。The present application relates to the field of communication technologies, and in particular, to a message processing method and related equipment.
背景技术Background technique
随着通信技术的发展,层出不穷的应用给用户的工作和生活带来了便利。目前,用户设备上的应用在运行过程中,无法给用户带来较好的体验质量(quality of experience,QoE),这将影响用户对应用所提供业务的质量和性能的主观感受。因此,亟待提供一种技术方案,能够为使用应用的用户提供更佳的使用体验。With the development of communication technology, endless applications have brought convenience to users' work and life. At present, the application on the user equipment cannot bring a better quality of experience (QoE) to the user during the running process, which will affect the user's subjective perception of the quality and performance of the service provided by the application. Therefore, there is an urgent need to provide a technical solution that can provide a better user experience for users using the application.
发明内容SUMMARY OF THE INVENTION
本申请提供了一种报文处理方法及相关设备,接收应用对应报文的各设备能够感知到该应用的动态信息,并基于该动态信息对该报文进行针对性的处理,使得该应用能够给用户带来较好的QoE,提高该应用给用户带来的使用体验。The present application provides a message processing method and related equipment. Each device receiving a message corresponding to an application can perceive the dynamic information of the application, and perform targeted processing of the message based on the dynamic information, so that the application can Bring better QoE to users and improve the experience of the application to users.
第一方面,本申请提供了一种报文处理方法,该方法例如可以包括:网络设备获取报文对应的动态信息,该动态信息表征该报文所属应用对应的状态,那么,网络设备即可根据该动态信息,确定该报文对应的网络资源信息,以实现网络设备基于所确定的网络资源信息对该报文进行处理。可见,通过该方法,接收应用对应报文的网络设备能够感知到该应用的动态信息,并基于该动态信息对该报文进行针对性的处理,报文处理过程中考虑该应用的动态信息使得该应用能够给用户带来较好的QoE,从而能够提高该应用给用户带来的使用体验,使得对应用的控制更加精准。In a first aspect, the present application provides a method for processing a message. For example, the method may include: a network device obtains dynamic information corresponding to a message, and the dynamic information represents a state corresponding to an application to which the message belongs. Then, the network device can According to the dynamic information, network resource information corresponding to the packet is determined, so that the network device can process the packet based on the determined network resource information. It can be seen that, through this method, the network device that receives the message corresponding to the application can perceive the dynamic information of the application, and process the message in a targeted manner based on the dynamic information, and the dynamic information of the application is considered in the message processing process. The application can bring a better QoE to the user, thereby improving the use experience brought by the application to the user, and making the control of the application more precise.
其中,动态信息可以包括所述应用的状态值,例如,动态信息可以为下述信息中的至少一个:应用的分辨率等级、应用的视频码率、应用已缓存视频的剩余时长、应用已缓存视频的剩余数据量、应用已缓存视频的剩余数据量占总缓存空间的比例或者应用已缓存视频的剩余时长占视频总时长的比例。或者,动态信息也可以包括所述应用的状态指示,应用的状态指示用于指示所述网络设备为所述应用提供增强网络资源,例如,动态信息可以为下述信息中的至少一个:应用已缓存视频的剩余时长属于正常状态、告警状态或其他状态,应用已缓存视频的剩余数据量属于正常状态、告警状态或其他状态,应用已缓存视频的剩余数据量占总缓存空间的比例属于正常状态、告警状态或其他状态,应用已缓存视频的剩余时长占视频总时长的比例属于正常状态、告警状态或其他状态。再或者,动态信息也可以体现应用相关的状态,包括但不限于:该应用相关的设备的相关参数或相关参数对应的状态指示,例如,动态信息可以为下述信息中的至少一个:应用所在的用户设备到应用的服务设备的端到端时延、应用所在的用户设备到服务设备的端到端时延抖动或应用所在的用户设备到服务设备的端到端速率;又例如,动态信息也可以是上述任意信息对应的状态指示,如,应用所在的用户设备到服务设备的端到端速率属于正常状态、告警状态或其他状态。The dynamic information may include the state value of the application. For example, the dynamic information may be at least one of the following information: the resolution level of the application, the video bit rate of the application, the remaining duration of the application's cached video, the application's cached video The remaining data amount of the video, the ratio of the remaining data amount of the application's cached video to the total cache space, or the ratio of the remaining duration of the application's cached video to the total video duration. Alternatively, the dynamic information may also include a state indication of the application, and the state indication of the application is used to instruct the network device to provide enhanced network resources for the application. For example, the dynamic information may be at least one of the following information: the application has The remaining duration of the cached video is in the normal state, the alarm state or other states, the remaining data volume of the application's cached video is in the normal state, the alarm state or other states, and the ratio of the remaining data volume of the application's cached video to the total cache space is in the normal state , alarm status, or other status, the ratio of the remaining duration of the application's cached video to the total video duration belongs to the normal status, alarm status, or other status. Alternatively, the dynamic information can also reflect the state related to the application, including but not limited to: the related parameters of the device related to the application or the state indication corresponding to the related parameters. For example, the dynamic information can be at least one of the following information: where the application is located The end-to-end delay from the user equipment where the application is located to the service device of the application, the end-to-end delay jitter from the user equipment where the application is located to the service device, or the end-to-end rate from the user equipment where the application is located to the service device; another example, dynamic information It may also be a state indication corresponding to any of the above information, for example, the 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.
其中,网络资源信息包括但不限于以下一项或多项:服务质量等级、转发路径、带宽、网络分片、无线信道或无线频率。其中,服务质量等级例如可以是服务质量(英文:Quality of Service,简称:QoS)级别或服务等级协议(英文:Service Level Agreement,简称:SLA)等级。例如,网络资源信息包括转发路径,则,该网络设备确定网络资源信息后,该网络设备即可根据该网络资源信息中的转发路径发送报文;又例如,网络资源信息包括网络分片,则,该网络设备确定网络资源信息后,该网络设备即可在该网络资源信息中的网络分片中处理该报文。Wherein, the network resource information includes but is not limited to one or more of the following: service quality level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency. The service quality level may be, for example, a quality of service (English: Quality of Service, referred to as: QoS) level or a service level agreement (English: Service Level Agreement, referred to as: SLA) level. For example, if the network resource information includes a forwarding path, after the network device determines the network resource information, the network device can send a packet according to the forwarding path in the network resource information; for another example, if the network resource information includes network fragments, then , after the network device determines the network resource information, the network device can process the packet in the network segment in the network resource information.
在一种可能的实现方式中,网络设备根据所述动态信息,确定所述报文对应的网络资源信息,例如可以包括:网络设备根据所述动态信息和应用条件确定所述网络资源信息,其中,应用条件可以包括应用特征信息和/或应用要求信息,应用特征信息用于表征应用的属性,应用要求信息用于表征应用对网络的要求。当该网络设备所属的网络,或该网络设备主要传输同一类应用的报文时,网络设备可以仅根据应用的动态信息确定网络资源信息,或根据应用的动态信息和应用要求信息确定网络资源信息。当该网络传输的报文跟多个应用相关时,则网络设备可以根据动态信息和应用特征信息,或者也可以根据动态信息、应用特征信息和应用要求信息确定网络资源信息。这样,接收应用对应报文的网络设备能够感知到该应用的应用条件以及动态信息,并基于该应用条件以及动态信息对该报文进行针对性的处理,使得该应用能够给用户带来较好的QoE,从而实现对应用更加精准的控制。In a possible implementation manner, the network device determines the network resource information corresponding to the packet according to the dynamic information, for example, it may include: the network device determines the network resource information according to the dynamic information and application conditions, wherein , the application condition may include application characteristic information and/or application requirement information, the application characteristic information is used to characterize the attributes of the application, and the application requirement information is used to characterize the requirement of the application on the network. When the network to which the network device belongs, or when the network device mainly transmits packets 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 can determine the network resource information according to the dynamic information and application feature information, or can also determine the network resource information according to the dynamic information, application feature information and application requirement information. In this way, the network device that receives the message corresponding to the application can perceive the application condition and dynamic information of the application, and perform targeted processing of the message based on the application condition and dynamic information, so that the application can bring better benefits to the user. high QoE, so as to achieve more precise control of the application.
在一种可能的实现方式中,当该应用对应的客户端或者用户设备具有生成动态信息的能力时,该动态信息可以是用户设备生成并携带在该报文中的,即,该报文可以包括动态信息。那么,该网络设备获取该报文对应的动态信息,例如可以是网络设备解析该报文,获取该报文中携带的动态信息。In a possible implementation manner, when the client or user equipment corresponding to the application has the ability to generate dynamic information, the dynamic information may be generated by the user equipment and carried in the message, that is, the message may be Include dynamic information. Then, the network device obtains the dynamic information corresponding to the packet, for example, the network device may parse the packet to obtain the dynamic information carried in the packet.
在另一种可能的实现方式中,该报文的动态信息可以是网络设备生成的。如当该应用对应的客户端和用户设备不具有生成动态信息的能力时,可以由网络设备来生成上述动态信息。例如该网络设备可以是用户设备和服务设备之间的宽带网络网关(英文:Broadband Network Gateway,简称:BNG)或客户侧设备(英文:Customer Premise Equipment,简称:CPE)。那么,网络设备获取该报文对应的动态信息,例如可以是:网络设备根据该报文,生成该报文对应的动态信息。网络设备根据该报文生成该报文对应的动态信息的过程,可以包括:网络设备对所接收的报文进行逐流检测,识别出与该报文属于相同流的报文,具体可以为:网络设备根据该报文中携带的应用特征信息,确定该报文所属的流,并确定该流中的报文;接着,获取该流中所接收的各报文的历史参数,并基于该历史参数通过机器学习、人工智能(英文:Artificial Intelligence,简称:AI)或深度报文检测(英文:Deep Packet Inspection,简称:DPI)等技术生成该流的动态信息。该实现方式下,网络设备在获取到该报文对应的动态信息之后,还可以更新该报文,更新后该报文中包括所获取到的动态信息。In another possible implementation manner, the dynamic information of the packet may be generated by a network device. For example, when the client and user equipment corresponding to the application do not have the ability to generate dynamic information, the above dynamic information may be generated by a network device. For example, the network device may be a broadband network gateway (English: Broadband Network Gateway, BNG for short) or a client-side device (English: Customer Premise Equipment, short: CPE) between the user equipment and the service device. Then, the network device obtains the dynamic information corresponding to the packet, for example, the network device may generate dynamic information corresponding to the packet according to the packet. The process of generating the dynamic information corresponding to the message by the network device according to the message may include: the network device performs flow-by-flow detection on the received message, and identifies the message that belongs to the same flow as the message, which may be specifically: The network device determines the flow to which the message belongs according to the application feature information carried in the message, and determines the messages in the flow; then, obtains the historical parameters of each message received in the flow, and based on the history The parameters generate dynamic information of the flow through technologies such as machine learning, artificial intelligence (English: Artificial Intelligence, AI for short) or deep packet inspection (English: Deep Packet Inspection, short for DPI). In this implementation manner, after acquiring the dynamic information corresponding to the packet, the network device may also update the packet, and the updated packet includes the acquired dynamic information.
在一种可能的实现方式中,在网络设备确定网络资源信息后,还可以对该报文进行更新,更新后该报文中可以包括所确定的网络资源信息,更新后的该报文中还可以包括动态信息。这样,后续每个网络设备均可以从更新后该报文中获取对应的网络资源信息,从而 基于获取的网络资源信息发送该报文,直到将该报文发送到服务设备,无需在每个网络设备上均基于动态信息确定对应的网络资源信息,节约了网络资源,提高了流量处理效率。In a possible implementation manner, after the network device determines the network resource information, the packet may also be updated. After the update, the packet may include the determined network resource information, and the updated packet also includes Dynamic information can be included. In this way, each subsequent network device can obtain the corresponding network resource information from the updated message, so as to send the message based on the obtained network resource information, until the message is sent to the service device, without the need for each network The device determines the corresponding network resource information based on dynamic information, which saves network resources and improves traffic processing efficiency.
在一种可能的实现方式中,网络设备可以根据动态信息对应的网络资源信息,对该报文进行处理,例如,基于该报文中的动态信息或网络资源信息选择对应的QoS级别、转发路径或网络分片等网络资源,按照选定的网络资源对该报文进行处理。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 the corresponding QoS level and forwarding path based on the dynamic information or network resource information in the packet or network resources such as network fragmentation, and process the packet according to the selected network resources.
在另一种可能的实现方式中,网络设备还可以根据动态信息对应的网络资源信息,获得策略表项,从而根据所述策略表项处理该报文。网络设备根据动态信息对应的网络资源信息获得策略表项例如可以是:网络设备根据动态信息对应的网络资源信息对策略表项进行更新,获得更新后的策略表项。其中,策略表项可以是网络设备本地设置的QoS级别匹配表、转发表、路由表、隧道表、网络分片选择表等。网络设备可以根据该报文查询相关表项后,使用查询结果处理该报文,如使用查询结果中包括的QoS级别、转发路径或网络分片等对该报文进行处理。In another possible implementation manner, the network device may also 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 obtaining the policy entry according to the network resource information corresponding to the dynamic information may, for example, be: the network device updates the policy entry according to the network resource information corresponding to the dynamic information, and obtains the updated policy entry. The policy entry may be a QoS level matching table, a forwarding table, a routing table, a tunnel table, a network fragment selection table, etc. locally set by the network device. The network device can use the query result to process the packet after querying the relevant entry according to the packet, such as processing the packet by using the QoS level, forwarding path or network fragment included in the query result.
在又一种可能的实现方式中,如果网络设备为一个自治系统(英文:Autonomous System,简称:AS)域的边界设备,则,该网络设备还可以根据动态信息或动态信息对应的网络资源信息,对该报文中的QoS相关字段进行标记,QoS相关字段包括但不限于:IPv6的区分服务编码点(英文:Differentiated Services Code Point,简称:DSCP)或流类型(英文:Traffic Class,简称:TC)字段、第四版互联网协议(英文:Internet Protocol version 4,简称:IPv4)的服务类型(英文:Type of Service,简称:ToS)字段、多协议标签交换(英文:Multiprotocol Label Switching,简称:MPLS)的实验用途(英文:Experimental Use,简称:EXP)字段(又称TC字段)、虚拟局域网(英文:Virtual Local Area Network,简称:VLAN)的优先级编码点(英文:Priority Code Point,简称:PCP)字段等。该AS域内的网络设备可以根据QoS相关字段对该报文进行处理;但是,当该报文进入下一个AS域时,下一个AS域的边界设备需要根据动态信息或动态信息对应的网络资源信息对该QoS相关字段进行重标记,以便该下一个AS域内网络设备根据重标记后QoS相关字段的取值对第二报文的准确转发。该报文在一个AS域的各个网络设备上,可以根据QoS相关字段的取值确定相应的QoS级别、转发路径和/或网络分片,从而使用所确定的QoS级别、转发路径和/或网络分片对该报文进行处理。In another possible implementation manner, if the network device is a boundary device of an autonomous system (English: Autonomous System, AS) domain for short, the network device may also be based on dynamic information or network resource information corresponding to the dynamic information , mark the QoS-related fields in the message. The QoS-related fields include but are not limited to: IPv6 Differentiated Services Code Point (English: Differentiated Services Code Point, referred to as: DSCP) or flow type (English: Traffic Class, referred to as: TC) field, Internet Protocol version 4 (English: Internet Protocol version 4, referred to as: IPv4) type of service (English: Type of Service, referred to as: ToS) field, Multiprotocol Label Switching (English: Multiprotocol Label Switching, referred to as: MPLS) experimental use (English: Experimental Use, referred to as: EXP) field (also known as TC field), virtual local area network (English: Virtual Local Area Network, referred to as: VLAN) priority code point (English: Priority Code Point, referred to as: VLAN). : PCP) field, etc. The network device in the AS domain can process the packet according to the QoS related fields; however, when the packet enters the next AS domain, the border device in the next AS domain needs to use the dynamic information or the network resource information corresponding to the dynamic information. The QoS related field is remarked, so that the network device in the next AS domain can accurately forward the second packet according to the value of the remarked QoS related field. On each network device in an AS domain, the packet can determine the corresponding QoS level, forwarding path and/or network fragment according to the value of the QoS-related fields, so as to use the determined QoS level, forwarding path and/or network Fragmentation processes the packet.
第二方面,本申请提供了一种报文处理方法,该方法例如可以包括:通信设备获得动态信息,该动态信息用于表征应用对应的状态;接着,该通信设备生成第一报文,该第一报文中包括所述动态信息;那么,该通信设备发送第一报文。其中,该通信设备例如可以是用户设备、网络设备或服务设备,用户设备和服务设备均与该应用对应,例如,用户设备上安装该用户对应的客户端,服务设备能够为该应用提供相应的服务。可见,通过该方法,通信设备能够获得应用的动态信息并将该动态信息携带在报文中发送到网络中,让网络中的其他设备能够感知到该应用的动态信息,并基于该动态信息对该报文进行针对性的处理,报文处理过程中考虑该应用的动态信息使得该应用能够给用户带来较好的QoE,从而能够提高该应用给用户带来的使用体验,使得对应用的控制更加精准。In a second aspect, the present application provides a message processing method. For example, the method may include: a communication device obtains dynamic information, where the dynamic information is used to represent a state corresponding to an application; then, the communication device generates a first message, the The first message includes the dynamic information; then, the communication device sends the first message. The communication device may be, for example, user equipment, network equipment, or service equipment. Both the user equipment and the service equipment correspond to the application. For example, if a client corresponding to the user is installed on the user equipment, the service equipment can provide the application with corresponding Serve. It can be seen that through this method, the communication device can obtain the dynamic information of the application and send the dynamic information to the network with the dynamic information carried in the message, so that other devices in the network can perceive the dynamic information of the application, and based on the dynamic information The packet is processed in a targeted manner, and the dynamic information of the application is considered in the packet processing process, so that the application can bring better QoE to the user, thereby improving the use experience brought by the application to the user, and making the application more user-friendly. Control is more precise.
在一种可能的实现方式中,如果通信设备为网络设备或服务设备,则,通信设备获得 动态信息,例如可以包括:通信设备接收属于所述应用的第二报文,根据该第二报文获得所述动态信息。In a possible implementation manner, if the communication device is a network device or a service device, the communication device obtains dynamic information, for example, it may include: the communication device receives a second packet belonging to the application, according to the second packet Obtain the dynamic information.
作为一个示例,如果通信设备为所述网络设备,则,通信设备根据该第二报文获得所述动态信息包括:通信设备从第二报文中获取动态信息(即,第二报文中包括动态信息),或者,通信设备根据第二报文生成动态信息。如果第二报文中包括动态信息,那么,通信设备生成的第一报文可以是第二报文,也可以是更新第二报文获得的第一报文(如在第二报文中添加网络资源信息);如果第二报文中不包括动态信息,那么,通信设备生成的第一报文可以是更新第二报文得到的,如在第二报文中添加动态信息获得第一报文。As an example, if the communication device is the network device, obtaining the dynamic information according to the second packet by the communication device includes: the communication device acquires dynamic information from the second packet (that is, the second packet includes dynamic information), or the communication device generates dynamic information according to the second message. If the second packet includes dynamic information, the first packet generated by the communication device may be the second packet, or may be the first packet obtained by updating the second packet (for example, adding the second packet to the second packet). network resource information); if the second packet does not include dynamic information, the first packet generated by the communication device may be obtained by updating the second packet, such as adding dynamic information to the second packet to obtain the first packet arts.
作为另一个示例,如果通信设备为所述服务设备,则,第二报文为用户设备发送的报文,所述第二报文包括所述动态信息,通信设备根据该第二报文获得所述动态信息包括:通信设备从第二报文中获取动态信息。那么,通信设备生成第一报文,例如可以包括:响应于第二报文包括动态信息,服务设备在向用户设备发送的所述应用对应的报文中携带所述动态信息,其中,该应用对应的报文包括所述第一报文。这样,服务设备向用户设备发送报文所经过的网络设备也可以感知到该应用的状态,从而基于所接收的报文中的动态信息对该应用的报文进行合理的处理。As another example, if 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 communication device obtains the information according to the second packet. The dynamic information includes: the communication device obtains the dynamic information from the second message. Then, generating the first packet by the communication device may, for example, include: in response to the second packet including dynamic information, the service device carries the dynamic information in the packet corresponding to the application sent to the user equipment, wherein the application The corresponding message includes the first message. In this way, the network device through which the service device sends the message to the user equipment can also perceive the state of the application, so as to reasonably process the message of the application based on the dynamic information in the received message.
在第一方面或第二方面提供的方法中,该报文可以通过服务状态选项(英文:Service Status Option)字段携带动态信息,该Service Status Option字段可以携带在该报文的应用感知的第六版互联网协议网络(英文:Application-aware Internet Protocol version 6Networking,简称:APN6)选项头中。其中,Service Status Option字段可以包括:选项类型(英文:Option Type)字段、选项长度(英文:Option Length)字段和选项值(英文:Option Value)字段。其中,Option Type字段例如可以为1字节,Option Type字段的值标识了该Option字段的类型是Service-Status Option;Option Length字段例如也可以是1字节,该Option Length字段的值表示了Option Value字段所占长度;Option Value字段的长度是可变的,可以通过至少一个子类型长度值(英文:sub Type Length Value,简称:sub-TLV)字段承载至少一个动态信息,例如,Option Value字段中的每个sub-TLV字段承载一条动态信息。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 the application-aware sixth field of the message. Version 6Networking (English: Application-aware Internet Protocol version 6Networking, referred to as: APN6) option header. 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 indicates that the type of the Option field is Service-Status Option; the Option Length field may be, for example, 1 byte, and the value of the Option Length field indicates that the Option The length occupied by the Value field; the length of the Option Value field is variable, and at least one dynamic information can be carried by at least one sub-type length value (English: sub Type Length Value, referred to as: sub-TLV) field, for example, the Option Value field Each sub-TLV field in the sub-TLV field carries a piece of dynamic information.
第三方面,本申请还提供了一种报文处理装置,该装置应用于网络设备。该装置例如可以包括获取单元和确定单元。其中,获取单元,用于获取报文对应的动态信息,所述动态信息表征所述报文所属应用对应的状态;确定单元,用于根据所述动态信息,确定所述报文对应的网络资源信息。In a third aspect, the present application further provides a message processing apparatus, which is applied to network equipment. The apparatus may, for example, comprise an acquisition unit and a determination unit. The obtaining unit is configured to obtain dynamic information corresponding to the message, where the dynamic information represents the state corresponding to the application to which the message belongs; the determining unit is configured to determine the network resource corresponding to the message according to the dynamic information information.
在一种可能的实现方式中,所述确定单元,具体用于:根据所述动态信息和应用条件确定所述网络资源信息,所述应用条件包括应用特征信息和/或应用要求信息,所述应用特征信息用于表征所述应用的属性,所述应用要求信息用于表征所述应用对网络的要求。In a possible implementation manner, the determining unit is specifically configured to: determine the network resource information according to the dynamic information and application conditions, where the application conditions include application feature information and/or application requirement information, the The application characteristic information is used to characterize the attributes of the application, and the application requirement information is used to characterize the network requirement of the application.
在一种可能的实现方式中,所述报文包括所述动态信息。In a possible implementation manner, the message includes the dynamic information.
在另一种可能的实现方式中,所述获取单元,具体用于:根据所述报文,生成所述动态信息。该实现方式中,所述装置还可以包括:第一更新单元。该第一更新单元,用于更新所述报文,所述报文包括所述动态信息。In another possible implementation manner, the obtaining unit is specifically configured to: generate the dynamic information according to the message. In this implementation manner, the apparatus may further include: a first updating unit. The first updating unit is configured to update the message, where the message includes the dynamic information.
在一种可能的实现方式中,所述装置还可以包括:第二更新单元。其中,该第二更新 单元,用于更新所述报文,所述报文包括所述网络资源信息。In a possible implementation manner, the apparatus may further include: a second updating unit. Wherein, the second update unit is configured to update the message, and the message includes the network resource information.
其中,所述网络资源信息包括以下一项或多项:服务质量等级、转发路径、带宽、网络分片、无线信道或无线频率。Wherein, the network resource information includes one or more of the following: service quality level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency.
在一种可能的实现方式中,所述装置还可以包括:发送单元。该发送单元,用于根据所述网络资源信息发送所述报文。In a possible implementation manner, the apparatus may further include: a sending unit. The sending unit is configured to send the message according to the network resource information.
在一种可能的实现方式中,该装置还可以包括:获得单元和处理单元。其中,获得单元,用于根据所述网络资源信息获得策略表项;处理单元,用于根据所述策略表项处理所述应用对应的报文。In a possible implementation manner, the apparatus may further include: an obtaining unit and a processing unit. Wherein, the obtaining unit is configured to obtain the policy entry according to the network resource information; the processing unit is configured to process the message corresponding to the application according to the policy entry.
在一种可能的实现方式中,所述动态信息包括所述应用的状态值,或所述应用的状态指示,所述状态指示用于指示所述网络设备为所述应用提供增强网络资源。In a possible implementation manner, the dynamic information includes a state value of the application, or a state indication of the application, where the state indication is used to instruct the network device to provide enhanced network resources for the application.
在一种可能的实现方式中,所述报文通过服务状态选项字段携带所述动态信息,其中,服务状态选项字段可以携带在所述报文的APN6选项头中。In a possible implementation manner, the message carries the dynamic information through a service status option field, where the service status option field may be carried in an APN6 option header of the message.
需要说明的是,该第三方面提供的报文处理装置用于执行上述第一方面提及的相关操作,其具体实现方式以及达到的效果,均可以参见上述第一方面的相关描述,在此不再赘述。It should be noted that, the message processing apparatus provided in the third aspect is used to perform the relevant operations mentioned in the first aspect. For the specific implementation manner and the effect achieved, reference may be made to the relevant description of the first aspect. No longer.
第四方面,本申请还提供了一种报文处理装置,该装置应用于通信设备。该装置例如可以包括:获得单元、生成单元和发送单元。其中,获得单元,用于获得动态信息,所述动态信息用于表征应用对应的状态;生成单元,用于生成第一报文,所述第一报文中包括所述动态信息;发送单元,用于发送所述第一报文。In a fourth aspect, the present application further provides a message processing apparatus, which is applied to a communication device. The apparatus may include, for example, an obtaining unit, a generating unit and a sending unit. Wherein, an obtaining unit is used to obtain dynamic information, and the dynamic information is used to represent a state corresponding to an application; a generating unit is used to generate a first message, and the first message includes the dynamic information; a sending unit, for sending the first message.
其中,通信设备可以包括用户设备、网络设备或服务设备。Wherein, the communication equipment may include user equipment, network equipment or service equipment.
在一种可能的实现方式中,所述通信设备为网络设备或服务设备,所述获得单元可以包括:接收子单元和获得子单元。其中,接收子单元,用于接收第二报文,所述第二报文属于所述应用;获得子单元,用于根据所述第二报文获得所述动态信息。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. Wherein, the receiving subunit is configured to receive a second packet, the second packet belongs to the application; 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: update the second packet to obtain the first packet.
作为另一个示例,所述通信设备为所述服务设备,所述第二报文为所述用户设备发送的报文,所述第二报文包括所述动态信息,所述生成单元,具体用于:响应于所述第二报文包括所述动态信息,在向所述用户设备发送的所述应用对应的报文中携带所述动态信息,所述应用对应的报文包括所述第一报文。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 specifically uses In: in response to the second packet including the dynamic information, carrying the dynamic information in a packet corresponding to the application sent to the user equipment, where the packet corresponding to the application includes the first message.
在一种可能的实现方式中,所述动态信息包括所述应用的状态值,或所述应用的状态指示,所述状态指示用于指示所述网络设备为所述应用提供增强网络资源。In a possible implementation manner, the dynamic information includes a state value of the application, or a state indication of the application, where the state indication is used to instruct the network device to provide enhanced network resources for the application.
在一种可能的实现方式中,所述第一报文通过服务状态选项字段携带所述动态信息,其中,服务状态选项字段可以携带在所述第一报文的APN6选项头中。In a possible implementation manner, the first packet carries the dynamic information 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 used to perform the relevant operations mentioned in the second aspect above. For the specific implementation manner and the effect achieved, reference may be made to the relevant description of the second aspect above. No longer.
第五方面,本申请还提供了一种网络设备,包括:存储器和处理器。其中,存储器用 于存储程序代码或指令;处理器用于运行程序代码或指令,使得网络设备执行以上第一方面提供的方法。In a fifth aspect, the present application further provides a network device, including: a memory and a processor. Wherein, the memory is used to store program codes or instructions; the processor is used to run the program codes or instructions, so that the network device executes the method provided in the first aspect above.
第六方面,本申请还提供了一种通信设备,包括:存储器和处理器。其中,存储器用于存储程序代码或指令;处理器用于运行程序代码或指令,使得通信设备执行以上第二方面提供的方法。In a sixth aspect, the present application further provides a communication device, including: a memory and a processor. The memory is used for storing program codes or instructions; the processor is used for running the program codes or instructions, so that the communication device executes the method provided in 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 configured to generate a message corresponding to the application, and send the message to the service device through the network device; the network device is configured to execute the method provided in the first aspect above; the A service device, configured to receive the message, and carry the dynamic information in a message corresponding to the application sent to the user equipment.
第八方面,本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质中存储有程序代码或指令,当其在计算机上运行时,使得计算机执行以上第一方面或第二方面提供的任意一种可能的实现方式中提供的方法。In an eighth aspect, the embodiments of the present application further provide a computer-readable storage medium, where program codes or instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer executes the first aspect or the second aspect above. A method provided in any possible implementation manner provided by the aspect.
第九方面,本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在网络设备上运行时,使得网络设备执行第一方面或第二方面的任意一种可能的实现方式中提供的方法。In a ninth aspect, the embodiments of the present application further provide a computer program product, which, when the computer program product runs on a network device, enables the network device to perform any one of the possible implementations of the first aspect or the second aspect. Methods.
第十方面,本申请提供了一种芯片,包括存储器和处理器,存储器用于存储计算机程序,处理器用于从存储器中调用并运行该计算机程序,以执行上述第一方面或第二方面中的方法。In a tenth aspect, the present application provides a chip, including a memory and a processor, the memory is used for storing a computer program, and the processor is used for calling and running the computer program from the memory to execute the above-mentioned first aspect or the second aspect. method.
可选地,上述芯片仅包括处理器,处理器用于读取并执行存储器中存储的计算机程序,当计算机程序被执行时,处理器执行上述第一方面或第二方面中的方法。Optionally, the above chip only includes a processor, and the processor is configured to read and execute the computer program stored in the memory, and when the computer program is executed, the processor executes the method in the first aspect or the second aspect.
附图说明Description of drawings
图1为本申请中应用感知标识选项字段的格式示意图;1 is a schematic diagram of the format of the application perception identification option field in this application;
图2a为本申请中应用感知标识选项字段中的选项值字段的一格式示意图;2a is a schematic diagram of a format of the option value field in the application-aware identification option field in the application;
图2b为本申请中应用感知标识选项字段中的选项值字段的另一格式示意图;2b is a schematic diagram of another format of the option value field in the application-aware identification option field in the application;
图2c为本申请中应用感知标识选项字段中的选项值字段的又一格式示意图;Fig. 2c is another format schematic diagram of the option value field in the application-aware identification option field in the application;
图3为本申请中应用参数信息选项字段的格式示意图;Fig. 3 is the format schematic diagram of application parameter information option field in this application;
图4a为本申请中应用参数信息选项字段中的选项值字段的一格式示意图;4a is a schematic diagram of a format of the option value field in the application parameter information option field in the application;
图4b为本申请中应用参数信息选项字段中的选项值字段的另一格式示意图;Fig. 4b is another format schematic diagram of the option value field in the application parameter information option field in this application;
图4c为本申请中应用参数信息选项字段中的选项值字段的又一格式示意图;Fig. 4c is another format schematic diagram of the option value field in the application parameter information option field in this application;
图4d为本申请中应用参数信息选项字段中的选项值字段的再一格式示意图;4d is a schematic diagram of yet another format of the option value field in the application parameter information option field in the application;
图5为本申请中一网络场景的结构示意图;5 is a schematic structural diagram of a network scenario in the application;
图6为本申请提供的一种报文处理方法100的流程示意图;FIG. 6 is a schematic flowchart of a message processing method 100 provided by the present application;
图7a为本申请中服务状态选项字段的格式示意图;Figure 7a is a schematic diagram of the format of the service status option field in this application;
图7b为本申请中服务状态选项字段中子TLV字段的一格式示意图;7b is a schematic diagram of a format of the sub-TLV field in the service status option field in the application;
图7c为本申请中服务状态选项字段中子TLV字段的另一格式示意图;7c is a schematic diagram of another format of the sub-TLV field in the service status option field in this application;
图8a为本申请中服务状态选项字段中子TLV字段的Value字段一格式示意图;Figure 8a is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
图8b为本申请中服务状态选项字段中子TLV字段的Value字段一格式示意图;Figure 8b is a schematic diagram of the format of the Value field of the sub-TLV field in the service status option field in the application;
图8c为本申请中服务状态选项字段中子TLV字段的Value字段一格式示意图;Figure 8c is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in this application;
图8d为本申请中服务状态选项字段中子TLV字段的Value字段一格式示意图;8d is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
图8e为本申请中服务状态选项字段中子TLV字段的Value字段一格式示意图;8e is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
图8f为本申请中服务状态选项字段中子TLV字段的Value字段一格式示意图;Figure 8f is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
图8g为本申请中服务状态选项字段中子TLV字段的Value字段一格式示意图;8g is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
图8h为本申请中服务状态选项字段中子TLV字段的Value字段一格式示意图;8h is a schematic diagram of a format of the Value field of the sub-TLV field in the service status option field in the application;
图9为本申请中一网络场景的结构示意图;9 is a schematic structural diagram of a network scenario in the application;
图10为本申请提供的一种报文处理装置1000的结构示意图;FIG. 10 is a schematic structural diagram of a message processing apparatus 1000 provided by the present application;
图11为本申请提供的一种报文处理装置1100的结构示意图;FIG. 11 is a schematic structural diagram of a message processing apparatus 1100 provided by the present application;
图12为本申请提供的一种网络设备1200或通信设备1200的结构示意图;FIG. 12 is a schematic structural diagram of a network device 1200 or a communication device 1200 provided by this application;
图13为本申请提供的一种网络设备1300或通信设备1300的结构示意图;FIG. 13 is a schematic structural diagram of a network device 1300 or a communication device 1300 provided by this application;
图14为本申请提供的一种网络系统1400的结构示意图。FIG. 14 is a schematic structural diagram of a network system 1400 provided by this application.
具体实施方式Detailed ways
用户设备上的应用在运行的过程中,由该用户设备连接的网络设备对用户设备上该用户使用的应用进行接入控制,为用户提供对应的网络服务。但是,目前网络设备对用户设备上运行应用的控制无法给用户带来的较好的QoE。During the running process of the application on the user equipment, the network device connected to the user equipment performs access control on the application used by the user on the user equipment, and provides corresponding network services for the user. However, at present, the control of the application running on the user equipment by the network equipment cannot bring better QoE to the user.
通过对应用运行过程的研究发现,用户设备上的应用在运行过程中的一些指标,会影响该应用给用户带来的QoE,从而影响用户对应用所提供业务的质量和性能的主观感受。例如,对于视频直播、点播类应用,用户设备上该应用的客户端缓存中剩余的视频时长或缓存中剩余的数据量,可以影响是否发生卡顿事件,卡顿事件的发生会给用户带来较差的QoE;又例如,对于对战游戏、云游戏等应用,用户设备上该应用的客户端所测量出的端到端往返时间(round-trip time,RTT)时延,可以决定是否发生误操作,误操作的发生会给用户带来较差的QoE。Through the research on the application running process, it is found that some indicators of the application on the user equipment during the running process will affect the QoE brought by the application to the user, thereby affecting the user's subjective perception of the quality and performance of the service provided by the application. For example, for live video and VOD applications, the remaining video duration in the client cache of the application on the user device or the amount of data remaining in the cache can affect whether a stuck event occurs, and the occurrence of a stuck event will bring users Poor QoE; for example, for applications such as battle games and cloud games, the end-to-end round-trip time (RTT) delay measured by the client of the application on the user device can determine whether an error occurs. Operation, the occurrence of misoperation will bring poor QoE to users.
基于此,本申请提供了一种报文处理方法,对报文的处理考虑影响应用给用户带来的QoE的参数(下文中记作动态信息),该方法例如可以包括:网络设备先获取所接收报文对应的动态信息,该动态信息表征该报文所属应用对应的状态;接着,网络设备根据动态信息确定该报文对应的网络资源信息,这样,网络设备即可基于所确定的网络资源信息对该报文进行处理。可见,通过本申请提供的方法,接收应用对应报文的网络设备能够感知到该应用的动态信息,并基于该动态信息对该报文进行针对性的处理,报文处理过程中考虑该应用的动态信息使得该应用能够给用户带来较好的QoE,从而能够提高该应用给用户带来的使用体验,使得对应用的控制更加精准。Based on this, the present application provides a packet processing method. The packet processing considers parameters that affect the QoE brought by the application to the user (hereinafter referred to as dynamic information). For example, the method may include: the network device first obtains the Receive dynamic information corresponding to the message, the dynamic information representing the state corresponding to the 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 be based on the determined network resource information information to process the message. It can be seen that, through the method provided in this application, the network device that receives the message corresponding to the application can perceive the dynamic information of the application, and process the message in a targeted manner based on the dynamic information. The dynamic information enables the application to bring better QoE to the user, thereby improving the use experience brought by the application to the user, and making the control of the application more precise.
为便于理解本申请,以下先对本申请涉及的一些概念的含义进行解释。In order to facilitate the understanding of the present application, the meanings of some concepts involved in the present application are explained below.
动态信息:用于表征应用的状态或应用的相关状态,可以反映应用运行过程中的情况。其中,表征应用的状态的动态信息可以包括但不限于:该应用运行过程中的相关参数或相关参数对应的状态指示,例如,动态信息可以为下述信息中的至少一个:应用的分辨率等级、应用的视频码率、应用已缓存视频的剩余时长、应用已缓存视频的剩余数据量、应用已缓存视频的剩余数据量占总缓存空间的比例或者应用已缓存视频的剩余时长占视频总时 长的比例;又例如,动态信息也可以是上述任意信息对应的状态指示,如,应用已缓存视频的剩余时长属于正常状态、告警状态或其他状态。表征应用相关状态的动态信息可以包括但不限于:该应用相关的设备的相关参数或相关参数对应的状态指示,例如,动态信息可以为下述信息中的至少一个:应用所在的用户设备到应用的服务设备的端到端时延、应用所在的用户设备到服务设备的端到端时延抖动或应用所在的用户设备到服务设备的端到端速率;又例如,动态信息也可以是上述任意信息对应的状态指示,如,应用所在的用户设备到服务设备的端到端速率属于正常状态、告警状态或其他状态。Dynamic information: It is used to represent the state of the application or the related state of the application, which can reflect the situation during the running of the application. Wherein, the dynamic information representing the state of the application may include, but is not limited to: the relevant parameters in the running process of the application or the state indication corresponding to the relevant parameters, for example, the dynamic information may be at least one of the following information: the resolution level of the application , the video bit rate of the application, the remaining duration of the application's cached video, the remaining data volume of the application's cached video, the ratio of the remaining data volume of the application's cached video to the total cache space, or the remaining duration of the application's cached video to the total video duration For another example, the dynamic information may also be a state indication corresponding to any of the above information, for example, the remaining duration of the application's cached video belongs to a normal state, an alarm state, or other states. The dynamic information representing the application-related state may include, but is not limited to: the relevant parameters of the device related to the application or the state indication corresponding to the relevant parameters. For example, the dynamic information may be at least one of the following information: the user equipment where the application is located to the application The end-to-end delay of the service device where the application is located, the end-to-end delay jitter from the user equipment where the application is located to the service device, or the end-to-end rate from the user equipment where the application is located to the service device; for example, the dynamic information can also be any of the above The state indication corresponding to the information, for example, the end-to-end rate from the user equipment where the application is located to the service equipment belongs to the normal state, the alarm state or other states.
资源条件:包括对应用进行控制所考虑的信息的集合,应用对应的报文所经过的网络设备基于资源条件对该报文进行相应的处理。资源条件可以包括下述信息中的至少一个:动态信息、应用特征信息或应用要求信息。其中,应用特征信息以及应用要求信息均可以称为应用条件。Resource condition: It includes a set of information considered in controlling the application, and the network device through which the packet corresponding to the application passes through the packet is processed accordingly based on the resource condition. The resource condition may include at least one of the following information: dynamic information, application feature information, or application requirement information. The application characteristic information and the application requirement information may be referred to as application conditions.
应用特征信息:用于表征应用的属性。例如,应用特征信息可以包括下述信息中的全部或部分:应用的标识(英文:Application Identity,简称:APP ID)、用户的标识(英文:User ID)、应用的流标识(英文:Flow ID)和服务等级。其中,APP ID用于唯一标识具体的应用,该应用可以是运营商提供的应用(如:咪咕),也可以是应用提供商(英文:Over The Top,简称:OTT)提供的应用(如:王者荣耀);User ID用于标识该应用所属的用户;Flow ID用于标识该应用发出业务报文属于的业务流或者会话;服务等级用于体现该应用发出的业务报文所要求的网络性能,例如可以是服务等级协议(英文:Service Level Agreement,简称:SLA)的等级或SLA数值。此外,应用特征信息还可以包括网络性能参数。作为一个示例,应用对应的报文中可以通过图1所示的应用感知标识选项(英文:Application-aware ID Option)字段携带应用特征信息,其中,Application-aware ID Option字段中包括:选项类型(英文:Option Type)字段、选项长度(英文:Option Length)字段和选项值(英文:Option Value)字段,选项类型字段用于指示该选项字段为Application-aware ID Option字段,即,该选项字段中的选项值字段的取值为应用特征信息;选项长度类型用于指示该选项字段的长度;选项值字段的取值为应用特征信息。图1所示的Application-aware ID Option字段中的选项值字段,例如可以如图2a所示,包括APP ID字段、User ID字段、Flow ID字段和SLA等级;又例如可以如图2b所示,包括APP ID字段、User ID字段、Flow ID字段、SLA等级以及其他网络性能参数(英文:Arguments)字段;再例如还可以如图2c所示,包括定位符地址(英文:Locator Address)字段、功能标识(英文:Function ID)字段以及Arguments字段。Application characteristic information: attributes used to characterize the application. For example, the application feature information may include all or part of the following information: application identification (English: Application Identity, referred to as: APP ID), user identification (English: User ID), application flow identification (English: Flow ID ) and service level. Among them, the APP ID is used to uniquely identify a specific application. The application can be an application provided by an operator (such as Migu), or an application provided by an application provider (English: Over The Top, referred to as: OTT) (such as : King of Glory); User ID is used to identify the user to which the application belongs; Flow ID is used to identify the service flow or session to which the service message sent by the application belongs; Service level is used to reflect the network required by the service message sent by the application The performance, for example, may be a level of a service level agreement (English: Service Level Agreement, SLA for short) or a SLA value. In addition, the application characteristic information may also include network performance parameters. As an example, the application-aware identification option (English: Application-aware ID Option) field shown in FIG. 1 may carry application feature information in the message corresponding to the application, where the Application-aware ID Option field includes: option type ( English: Option Type) field, option length (English: Option Length) field and option value (English: Option Value) field, the option type field is used to indicate that the option field is the Application-aware ID Option field, that is, in the option field The value of the option value field is application feature information; the option length type is used to indicate the length of the option field; the value of the option value field is application feature information. The option value field in the Application-aware ID Option field shown in Figure 1, for example, can be shown in Figure 2a, including the APP ID field, the User ID field, the Flow ID field, and the SLA level; for example, it can be shown in Figure 2b, Including APP ID field, User ID field, Flow ID field, SLA level and other network performance parameter (English: Arguments) fields; another example can also be shown in Figure 2c, including Locator Address (English: Locator Address) field, function Identification (English: Function ID) field and Arguments field.
应用要求信息:用于表征应用对网络的需求。应用要求信息可以包括但不限于:应用对带宽、时延、时延抖动、丢包率等网络性能的需求。作为一个示例,应用对应的报文中可以通过图3所示的应用参数信息选项(英文:Service-para Option)字段携带应用要求信息,其中,Service-para Option字段中包括:Option Type字段、Option Length字段和Option Value字段,Option Type字段用于指示该选项字段为Service-para Option字段,即,该选项字段中的选项值字段的取值为应用要求信息;Option Length类型用于指示该选项字段的长度;Option Value字段的取值为应用要求信息。图3所示的Service-para Option字段中的 Option Value字段,例如可以如图4a所示,包括Type字段、Length字段、类类型(英文:Class Type)字段、预留(英文:Reserved)字段和带宽(英文:Bandwidth)字段;又例如可以如图4b所示,包括Type字段、Length字段、Reserved字段和时延(英文:Delay)字段;再例如还可以如图4c所示,包括Type字段、Length字段、Reserved字段和时延抖动(英文:Delay Variation)字段;又例如还可以如图4d所示,包括Type字段、Length字段、Reserved字段和丢包率(英文:Packet Loss Ratio)字段。Application Requirement Information: Used to characterize the application's requirements for the network. The application requirement information may include but is not limited to: application requirements for network performance such as bandwidth, delay, delay jitter, and packet loss rate. As an example, the message corresponding to the application may carry the application requirement information through the application parameter information option (English: Service-para Option) field shown in FIG. 3 , wherein the Service-para Option field includes: Option Type field, Option Length field and Option Value field. The Option Type field is used to indicate that the option field is a Service-para Option field, that is, the value of the option value field in the option field is the application requirement information; the Option Length type is used to indicate the option field. The length of the Option Value field is the application requirement information. The Option Value field in the Service-para Option field shown in FIG. 3, for example, as shown in FIG. 4a, includes a Type field, a Length field, a class type (English: Class Type) field, a reserved (English: Reserved) field and Bandwidth (English: Bandwidth) field; for example, as shown in Figure 4b, including Type field, Length field, Reserved field, and Delay (English: Delay) field; for another example, as shown in Figure 4c, including Type field, The Length field, the Reserved field, and the Delay Variation (English: Delay Variation) field; another example, as shown in Figure 4d, includes the Type field, the Length field, the Reserved field, and the Packet Loss Ratio (English: Packet Loss Ratio) field.
其中,如果应用对应的报文为第六版互联网协议(英文:Internet Protocol Version 6,简称:IPv6)报文,那么,应用特征信息和应用要求信息具体可以携带在IPv6报文头的流标签(英文:Flow Label)字段、逐跳选项头(英文:Hop-by-Hop Options Header,简称:HBH)或目的选项头(英文:Destination Options Header,简称:DOH)中。如果应用对应的报文为第六版互联网协议的分段路由(英文:Segment Routing-Internet Protocol Version 6,简称:SRv6)报文,那么,应用特征信息和应用要求信息除了可以携带在该报文的IPv6报文头的上述位置以外,还可以携带在该SRv6报文的分段路由头(英文:Segment Routing Header,简称:SRH)字段中,具体可以携带在SRH中的SRH标签(英文:Tag)字段、SRH类型长度值(英文:Type Length Value,简称:TLV)字段或SRH中每个段标识(英文:Segment Identifier,简称:SID)的变量(英文:Arguments,简称:Args)字段中。上述在报文中携带应用特征信息和应用要求信息的方式仅是示例性的,本申请中对如何在应用对应的报文中携带该应用的应用特征信息和应用要求信息不作具体限定。Among them, if the message corresponding to the application is the Internet Protocol Version 6 (English: Internet Protocol Version 6, referred to as: IPv6) message, then the application feature information and application requirement information can be specifically carried in the flow label ( English: Flow Label) field, Hop-by-Hop Options Header (English: Hop-by-Hop Options Header, Abbreviation: HBH) or Destination Options Header (English: Destination Options Header, Abbreviation: DOH). If the packet corresponding to the application is a Segment Routing-Internet Protocol Version 6 (English: Segment Routing-Internet Protocol Version 6, abbreviated: SRv6) packet, then the application feature information and application requirement information can be carried in the packet in addition to In addition to the above-mentioned positions of the IPv6 packet header, it can also be carried in the segment routing header (English: Segment Routing Header, SRH) field of the SRv6 packet, specifically the SRH tag (English: Tag ) field, the SRH Type Length Value (English: Type Length Value, referred to as: TLV) field or the variable (English: Arguments, referred to as: Args) field of each segment identifier (English: Segment Identifier, referred to as: SID) in the SRH. The above manner of carrying the application feature information and application requirement information in the message is only exemplary, and this application does not specifically limit how to carry the application feature information and application requirement information of the application in the message corresponding to the application.
网络资源信息与资源条件对应,用于为报文提供对应处理,如使用网络资源转发报文等。网络资源信息例如可以包括以下一项或多项:服务质量等级、转发路径、带宽、网络分片、无线信道或无线频率。如果网络资源信息为服务质量等级,则,接收报文的网络设备可以根据报文的资源条件,确定报文的服务质量等级,从而将该报文入队到该服务质量等级对应的队列中;如果网络资源信息为转发路径,则,接收报文的网络设备可以根据报文的资源条件,确定报文的转发路径,从而将该报文按照所确定的转发路径进行转发;如果网络资源信息为带宽,则,接收报文的网络设备可以根据报文的资源条件,确定报文的带宽,从而该报文可以以所确定的带宽进行转发;如果网络资源信息为网络分片,则,接收报文的网络设备可以根据报文的资源条件,确定报文的网络分片,从而将该报文在所确定的网络分片中转发。如果网络资源信息包括服务质量等级和网络分片,则,接收报文的网络设备可以根据报文的资源条件,确定报文的服务质量等级和网络分片,从而将该报文入队到该服务质量等级对应的队列中,并将该报文在所确定的网络分片中转发。如果网络资源信息包括服务质量等级、转发路径、带宽、网络分片、无线信道和无线频率,则,接收报文的网络设备可以根据报文的资源条件,确定报文的服务质量等级、转发路径、带宽、网络分片无线信道和无线频率,从而该报文入队到该服务质量等级对应的队列中,按照所确定的转发路径、带宽、网络分片、无线信道和无线频率进行转发。其中,服务质量等级包括但不限于SLA等级。The network resource information corresponds to resource conditions, and is used to provide corresponding processing for packets, such as forwarding packets using network resources. The network resource information may include, for example, one or more of the following: quality of service level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency. If the network resource information is the service quality level, the network device that receives the message can determine the service quality level of the message according to the resource conditions of the message, so as to enqueue the message into the queue corresponding to the service quality level; If the network resource information is the forwarding path, the network device receiving the packet can determine the forwarding path of the packet according to the resource conditions of the packet, so as to forward the packet according to the determined forwarding path; if the network resource information is bandwidth, the network device receiving the packet can determine the bandwidth of the packet according to the resource conditions of the packet, so that the packet can be forwarded with the determined bandwidth; if the network resource information is a network fragment, then the packet receiving The network device that sends the message can determine the network fragment of the message according to the resource conditions of the message, so as to forward the message in the determined network fragment. If the network resource information includes the service quality level and network fragmentation, the network device receiving the packet can determine the service quality level and network fragmentation of the packet according to the resource conditions of the packet, so as to enqueue the packet to the In the queue corresponding to the quality of service level, the packet is forwarded in the determined network segment. If the network resource information includes QoS level, forwarding path, bandwidth, network fragmentation, wireless channel and wireless frequency, the network device receiving the packet can determine the QoS level and forwarding path of the packet according to the resource conditions of the packet. , bandwidth, network fragmentation wireless channel and wireless frequency, so that the packet is queued into the queue corresponding to the quality of service level, and forwarded according to the determined forwarding path, bandwidth, network fragmentation, wireless channel and wireless frequency. Wherein, the service quality level includes but is not limited to the SLA level.
举例来说,本申请可以适用于图5所示的网络场景中,该网络场景中可以包括:用户设备11、网络设备21、网络设备22、网络设备23和服务设备31,其中,用户设备11上 安装应用A,服务设备31能够为用户提供应用A的相应服务。用户设备11和服务设备31之间可以通过至少一个网络设备进行连接,例如,用户设备11和服务设备31之间可以通过网络设备21和网络设备22连接;又例如,用户设备11和服务设备31之间也可以通过网络设备23连接。网络设备21和网络设备22可以是直连的也可以通过其他设备间接连接的。以用户操作用户设备11上的应用A,使得用户设备11通过网络设备21和网络设备22向服务设备31发送报文1为例,本申请提供的报文处理过程可以包括:S11,用户设备11向网络设备21发送报文1,该报文1中包括动态信息1和应用特征信息2;S12,网络设备21根据报文1中的动态信息1和应用特征信息2,确定SLA等级1;S13,网络设备21将报文1入队到SLA等级1对应的队列1中,对队列1中报文的处理能够满足SLA等级1的需求;S14,网络设备21从队列1将报文1发送到网络设备22;S15,网络设备22根据报文1中的动态信息1和应用特征信息2,确定SLA等级1;S16,网络设备22将报文1入队到SLA等级1对应的队列1’中,对队列1’中报文的处理能够满足SLA等级1的需求;S17,网络设备22从队列1’将报文1发送到服务设备31;S18;服务设备31从报文1中获取动态信息1,并在发往用户设备11的报文2中添加该动态信息1,获得报文3;S19,服务设备31向网络设备23发送报文3;S20,网络设备23根据报文3中的动态信息1,确定SLA等级2;S21,网络设备23将报文3入队到SLA等级2对应的队列2中,对队列2中报文的处理能够满足SLA等级2的需求;S22,网络设备23从队列2将报文3发送到用户设备11。这样,在报文的处理过程中,考虑了应用的动态信息,使得该应用能够给用户带来较好的QoE,从而能够提高该应用给用户带来的使用体验,实现对应用更加精准的控制。For example, the present application can be applied to the network scenario shown in FIG. 5 . The network scenario may include: user equipment 11 , network equipment 21 , network equipment 22 , network equipment 23 and service equipment 31 , where user equipment 11 After installing the application A, the service device 31 can provide the corresponding service of the application A for the user. The user equipment 11 and the service device 31 may be connected through at least one network device, for example, the user equipment 11 and the service device 31 may be connected through the network device 21 and the network device 22; for example, the user equipment 11 and the service device 31 They can also be connected through the network device 23 . The network device 21 and the network device 22 may be directly connected or indirectly connected through other devices. Taking the user operating the application A on the user equipment 11 to make the user equipment 11 send the message 1 to the service device 31 through the network device 21 and the network device 22 as an example, the message processing process provided in this application may include: S11, the user equipment 11 Send a message 1 to the network device 21, where the message 1 includes dynamic information 1 and application feature information 2; S12, the network device 21 determines the SLA level 1 according to the dynamic information 1 and application feature information 2 in the message 1; S13 , the network device 21 queues the packet 1 into the queue 1 corresponding to the SLA level 1, and the processing of the packets in the queue 1 can meet the requirements 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 the SLA level 1 according to the dynamic information 1 and the application feature information 2 in the packet 1; S16, the network device 22 enqueues the packet 1 into the queue 1' corresponding to the SLA level 1 , the processing of the packets in the queue 1' can meet the requirements of SLA level 1; S17, the network device 22 sends the packet 1 from the queue 1' to the service device 31; S18; The service device 31 obtains dynamic information from the packet 1 1, and add the dynamic information 1 in the message 2 sent to the user equipment 11 to obtain the message 3; S19, the service device 31 sends the message 3 to the network device 23; S20, the network device 23 according to the message 3 Dynamic information 1, determine SLA level 2; S21, network device 23 enqueues packet 3 into queue 2 corresponding to SLA level 2, and the processing of the packets in queue 2 can meet the requirements of SLA level 2; S22, network device 23 sends the packet 3 to the user equipment 11 from the queue 2 . In this way, in the process of packet processing, the dynamic information of the application is considered, so that the application can bring better QoE to the user, thereby improving the user experience of the application and realizing more precise control of the application. .
本申请中,用户设备,是指能够安装应用的客户端以实现为用户提供该应用相关服务的任意设备,例如,可以是手机、电脑等设备。服务设备,是指能够为用户设备上的某个应用或某些应用提供对应服务的设备,例如,可以是网络云化引擎(英文:Network Cloud Engine,简称:NCE)或服务器等。网络设备,是指具有报文转发功能的设备,例如,可以是路由器、交换机、转发器、防火墙等设备。需要说明的是,本申请中的各种设备,在本申请中不作具体限定。In this application, user equipment refers to any device that can install a client of an application to provide users with services related to the application, for example, it may be a mobile phone, a computer and other devices. A service device refers to a device that can provide a corresponding service for an application or some applications on a user device, for example, it can be a network cloud engine (English: Network Cloud Engine, NCE for short) or a server. A network device refers to a device with a packet forwarding function, such as a router, a switch, a repeater, and a firewall. It should be noted that the various devices in this application are not specifically limited in this application.
为便于理解本申请提供的报文处理方法,下面将结合附图对该方法进行说明。In order to facilitate the understanding of the message processing method provided by the present application, the method will be described below with reference to the accompanying drawings.
图6为本申请提供的一种报文处理方法100的流程示意图。该方法100为了更加清楚的介绍本申请,以用户设备、网络设备和服务设备之间交互的方式进行描述,但是,方法100中每个设备执行的操作均可以作为一个单独的实施例。以图5示出的网络场景的结构为例,用户设备例如可以是图5中用户设备11,服务设备例如可以是图5中的服务设备31,网络设备例如可以是图5中的网络设备21、网络设备22或网络设备23。FIG. 6 is a schematic flowchart of a packet processing method 100 provided by the present application. In order to introduce the present application more clearly, the method 100 is described in the way of interaction among user equipment, network equipment and service equipment, but the operations performed by each device in the method 100 may be used as a separate 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 device may be, for example, the service device 31 in FIG. 5 , and the network device may be, for example, the network device 21 in FIG. 5 . , network device 22 or network device 23 .
具体实现时,该方法100例如可以包括下述S101~S106:During specific implementation, the method 100 may, for example, include the following S101 to S106:
S101,用户设备向网络设备发送第一报文,第一报文属于应用。S101, a user equipment sends a first packet to a network device, where the first packet belongs to an application.
其中,第一报文可以是用户设备生成并需要向服务设备发送的、与该用户设备上安装的应用对应的报文,第一报文的目的地址与该应用对应的服务设备的地址匹配。该第一报文可以是数据报文也可以是控制报文。第一报文属于应用是指:该第一报文可以是用户设 备上安装的应用自动生成的,也可以是基于用户对用户设备上安装的应用对应的客户端进行操作触发生成的。The first packet may be a packet generated by the user equipment and sent to the service device and corresponding to an application installed on the user equipment, and the destination address of the first packet matches the address of the service device corresponding to the application. The first message may be a data message or a control message. The fact that the first packet belongs to an application means that the first packet may be automatically generated by an application installed on the user equipment, or may be triggered and generated based on an operation performed by the user on the client corresponding to the application installed on the user equipment.
具体实现时,用户设备向网络设备发送第一报文,该网络设备可以是用户设备上的报文去往服务设备的路径上所经过的任意一个网络设备,例如可以是图5所示的网络场景中的网络设备21。In specific implementation, the user equipment sends the first packet to the network device, and the network device may be any network device on the path that the packet on the user equipment goes to the service device, for example, the network shown in FIG. 5 may be used. Network device 21 in the scene.
S102,网络设备获取第一报文对应的动态信息,该动态信息用于表征所述应用的动态。S102, the network device acquires dynamic information corresponding to the first packet, where the dynamic information is used to represent the dynamic of the application.
第一报文对应的动态信息,用于表征第一报文所属应用的相关状态,包括应用的状态以及应用所在用户设备的状态。动态信息可以以两种形式体现:应用的状态值或应用的状态指示。其中,应用的状态值可以是应用运行过程中相关参数的具体数值,例如,第一报文的动态信息可以包括应用已缓存视频的剩余时长;应用的状态指示可以是根据应用的状态值确定的指示,用于指示接收到第一报文的网络设备是否需要为该应用提供增强网络资源,例如,第一报文的动态信息也可以包括应用已缓存视频的剩余时长对应的状态指示(正常或告警),正常状态可以表征无需为该应用提供增强网络资源,告警状态可以表征需要为该应用提供增强网络资源。The dynamic information corresponding to the first packet is used to represent the relevant status of the application to which the first packet belongs, including the status of the application and the status of the user equipment where the application is located. Dynamic information can be embodied in two forms: the status value of the application or the status indication of the application. The state value of the application may be a specific value of a relevant parameter during the running process of the application. For example, the dynamic information of the first packet may include the remaining duration of the cached video of the application; the state indication of the application may be determined according to the state value of the application Indication, used to indicate whether the network device that received the first packet needs to provide enhanced network resources for the application. For example, the dynamic information of the first packet may also include a status indication (normal or Alarm), the normal state can indicate that it is not necessary to provide enhanced network resources for the application, and the alarm state can indicate that enhanced network resources need to be provided for the application.
在一种可能的实现方式中,当该应用对应的客户端或者用户设备具有生成动态信息的能力时,该第一报文的动态信息可以是用户设备生成并携带在第一报文中的,那么,S102例如可以是网络设备解析第一报文,获取第一报文中携带的动态信息。如果应用的客户端使用传输控制协议(英文:Transmission Control Protocol,TCP)通信,第一报文可以是应用的客户端发出的数据获取请求消息,或者,第一报文也可以是应用的客户端接收到数据后发出的确认(英文:ACK)消息时,第一报文中可以携带动态信息。如果应用的客户端使用用户数据报协议(英文:User Datagram Protocol,简称:UDP)通信,第一报文可以是应用的客户端在发送的UDP数据包,或者,第一报文也可以是在该UDP通信对应的TCP通信中的TCP数据包,第一报文中可以携带动态信息。In a possible implementation manner, when the client or user equipment corresponding to the application has the ability to generate dynamic information, the dynamic information of the first packet may be generated by the user equipment and carried in the first packet, Then, in S102, for example, the network device may parse the first packet to obtain dynamic information carried in the first packet. If the client of the application communicates using the Transmission Control Protocol (English: Transmission Control Protocol, TCP), the first packet may be a data acquisition request message sent by the client of the application, or the first packet may also be the client of the application When an acknowledgment (English: ACK) message is sent after receiving the data, the first message may carry dynamic information. If the client of the application communicates using the User Datagram Protocol (English: User Datagram Protocol, UDP for short), the first packet may be a UDP data packet sent by the client of the application, or the first packet may be In the TCP data packet in the TCP communication corresponding to the UDP communication, 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 indicates that the application is in an abnormal state. Therefore, the dynamic information is carried in the first packet. However, when the dynamic information indicates that the application is in a normal state, it is considered that there is no need to inform the network device of the dynamic information, so the dynamic information is not carried in the first packet. Alternatively, 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.
具体实现时,该第一报文可以通过服务状态选项(英文:Service Status Option)字段携带该动态信息,该Service Status Option字段可以携带在该第一报文的应用感知的第六版互联网协议网络(英文:Application-aware Internet Protocol version 6Networking,简称:APN6)选项头中。如图7a所示,Service Status Option字段可以包括:Option Type字段、Option Length字段和Option Value字段。其中,Option Type字段例如可以为1字节,Option Type字段的值标识了该Option字段的类型是Service-Status Option;Option Length字段例如也可以是1字节,该Option Length字段的值表示了Option Value字段所占长度;Option Value字段的长度是可变的,可以通过至少一个子TLV字段承载至少一个动态信息,例如,Option Value字段中的每个子TLV字段承载一条动态信息。During specific implementation, the first packet can carry the dynamic information through the Service Status Option (English: Service Status Option) field, and the Service Status Option field can be carried in the application-aware version 6 Internet Protocol network of the first packet. (English: Application-aware Internet Protocol version 6Networking, referred to as: APN6) option header. As shown in Figure 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 indicates that the type of the Option field is Service-Status Option; the Option Length field may be, for example, 1 byte, and the value of the Option Length field indicates that the Option The length occupied by the Value field; the length of the Option Value field is variable, and at least one sub-TLV field can carry at least one piece of dynamic information. For example, each sub-TLV field in the Option Value field carries one piece of dynamic information.
如图7b所示,Option Value字段中的每个子TLV字段可以包括:Type字段、子Type字段、Length字段和Value字段,其中,Type字段例如可以为2字节,用于表示该条动态信息所属的分类;子Type字段例如可以为1字节,用于表示该条动态在所属分类中的子类型,和Type字段共同表示该条动态信息的具体类型;Length字段例如可以为1字节,用于表示Value字段的长度;Value字段的长度是可变的,用于承载该条动态信息的具体内容。例如,对于动态信息的分类方式包括但不限于:Type字段的取值可以为0x0000~0x001F,代表通用类型,子Type字段的取值所表征的子类型可以包括:时延、抖动、带宽等,该通用类型下可以支持32*256=8192种具体类型;Type字段的取值可以为0x0020~0x2020,代表一种应用类型,如视频应用,子Type字段的取值所表征的子类型可以包括:缓存时长等,该应用类型可以支持8192种具体类型;Type字段的取值可以为0x2021~0xEFFF:代表一款特定应用,如王者荣耀,子Type字段的取值所表征的子类型可以包括:端到端的时延、空口时延等,该特定应用可以支持53215种具体类型;Type字段的取值可以为0xF000~0xFFFF,代表私有应用或实验用途类型,如企业内部IT应用、研发系统,子Type字段的取值所表征的子类型可以包括:时延、抖动、带宽等,该私有应用或实验用途类型可以支持4096种具体类型。As shown in Figure 7b, each sub-TLV field in the Option Value field may include: Type field, sub-Type field, Length field, and Value field, where the Type field may be, for example, 2 bytes, which is used to indicate that the piece of dynamic information belongs to The sub-Type field can be, for example, 1 byte, which is used to indicate the subtype of the piece of dynamic information in the category to which it belongs, and together with the Type field to indicate the specific type of the piece of dynamic information; the Length field can be, for example, 1 byte, with Indicates the length of the Value field; the length of the Value field is variable and is used to carry the specific content of the piece of dynamic information. For example, the classification method for dynamic information includes but is not limited to: the value of the Type field can be 0x0000~0x001F, representing a general type, and the subtype represented by the value of the subType field can include: delay, jitter, bandwidth, etc., This general type can support 32*256=8192 specific types; the value of the Type field can be 0x0020 to 0x2020, representing an application type, such as a video application, and the subtypes represented by the value of the subType field can include: Cache duration, etc., the application type can support 8192 specific types; the value of the Type field can be 0x2021~0xEFFF: representing a specific application, such as the glory of the king, the subtype represented by the value of the subType field can include: The end-to-end delay, air interface delay, etc., this specific application can support 53215 specific types; the value of the Type field can be 0xF000~0xFFFF, representing the type of private application or experimental use, such as enterprise internal IT application, R&D system, sub-type The subtypes represented by the value of the field may include: delay, jitter, bandwidth, etc., and the private application or experimental use type may support 4096 specific types.
或者,如图7c所示,Option Value字段中的每个子TLV字段也可以包括:Type字段、Length字段和Value字段,其中,Type字段例如可以为3字节,与图7b所示的子TLV字段格式相比,仅将图7b所示的子TLV字段中的Type字段与Sub Type字段合并为一个Type字段。相比图7b所示的子TLV字段的格式,图7c所示的子TLV字段可能使得网络设备对该子TLV字段具有更优的处理性能。Alternatively, as shown in Figure 7c, each sub-TLV field in the Option Value field may also include: a Type field, a Length field, and a Value field, where the Type field may be, for example, 3 bytes, which is the same as the sub-TLV field shown in Figure 7b. Compared with the format, only the Type field and the Sub Type field in the sub-TLV field shown in FIG. 7b are combined into one Type field. Compared with the format of the sub-TLV field shown in Fig. 7b, the sub-TLV field shown in Fig. 7c may enable the network device to have better processing performance for the sub-TLV field.
对于图7b或图7c所示的子TLV字段,Value字段承载第一报文对应的动态信息。For the sub-TLV field shown in FIG. 7b or FIG. 7c, the Value field carries the dynamic information corresponding to the first packet.
一种情况下,如果动态信息为应用的状态指示,那么,该Value字段的格式例如可以参见图8a所示,其中,该Value字段可以包括:1比特的E标志位(表示增强(英文:Enhanced)或预警(英文:Early warning))和31比特的预留字段。例如,当E标志位=1时,可以表示该应用希望网络为其提供更好的网络服务,以避免应用的QoE发生劣化;当E标志位=0时,可以表示该应用当前不需要网络对其特殊对待。In one case, if the dynamic information is the status indication of the application, the format of the Value field may be shown in Figure 8a, for example, where the Value field may include: 1-bit E flag bit (indicating enhanced (English: Enhanced) ) or early warning (English: Early warning)) and a 31-bit reserved field. For example, when the E flag bit = 1, it can indicate that the application expects the network to provide it with better network services to avoid deterioration of the QoE of the application; when the E flag bit = 0, it can indicate that the application currently does not require network pairing its special treatment.
另一种情况下,如果动态信息为应用的状态值,那么,该Value字段的格式可以根据动态信息的不同而不同。例如,对于视频属性的动态信息,Value字段的格式可以如图8b所示,包括:预留字段、分辨率等级(英文:Resolution Level)和视频码率(也称为比特率,英文:Bitrate,单位:兆比特每秒(英文:Mbps))。又例如,对于已缓存视频的剩余时长,Value字段的格式可以如图8c所示,包括:预留字段和已缓存视频的剩余时长(英文:Remaining Time of buffered Video),其中,已缓存视频的剩余时长的单位为毫秒(英文:millisecond,简称:ms);再例如,对于已缓存视频的剩余数据量,Value字段的格式可以如图8d所示,包括:预留字段和已缓存视频的剩余数据量(英文:Remaining Size of buffered Video),其中,已缓存视频的剩余数据量的单位为千字节(英文:kilobyte,简称:KB);又例如,对于已缓存视频的剩余数据量占缓存空间的百分比,Value字段的格式可以如图8e所示,包括:预留字段和已缓存视频的剩余数据量占缓存空间的百分比(英文:Capacity  Ratio)。再例如,对于用户设备到服务设备的端到端时延,Value字段的格式可以如图8f所示,包括:预留字段和端到端时延(英文:End-to-End Delay,也可以称为往返时间(英文:Round Trip Time,简称:RTT),单位:微秒(英文:microsecond,简称:us));又例如,对于用户设备到服务设备的端到端时延抖动,Value字段的格式可以如图8g所示,包括:预留字段和端到端时延抖动(英文:End-to-End Jitter,也可以称为RTT,单位:us);又例如,对于用户设备到服务设备的端到端速率,Value字段的格式可以如图8h所示,包括:T字段、D字段、预留字段和端到端速率(英文:End-to-End Rate),其中,T字段的取值可以表示该端到端速率的单位,如:0代表千比特每秒(英文:Kbps),1代表Mbps,2代表吉比特每秒(英文:Gbps),D字段的取值可以表征该端到端速率是上行速率或下行速率,如:0代表上行,1代表下行。In another case, 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 the dynamic information of video attributes, the format of the Value field can be as shown in Figure 8b, including: reserved field, resolution level (English: Resolution Level) and video bit rate (also called bit rate, English: Bitrate, Unit: Megabits per second (English: Mbps)). For another example, for the remaining duration of the buffered video, the format of the Value field may be as shown in Figure 8c, including: a reserved field and the remaining duration of the buffered video (English: Remaining Time of buffered Video), wherein the buffered video's The unit of the remaining duration is milliseconds (English: millisecond, abbreviated as: ms); for another example, for the remaining data amount of the cached video, the format of the Value field can be as shown in Figure 8d, including: the reserved field and the remaining data of the cached video Data volume (English: Remaining Size of buffered Video), wherein the unit of the remaining data volume of the cached video is kilobytes (English: kilobyte, abbreviation: KB); for another example, the remaining data volume of the cached video accounts for the cached video The percentage of the space, the format of the Value field can be as shown in Figure 8e, including: the reserved field and the percentage of the remaining data of the cached video in the cache space (English: Capacity Ratio). For another example, for the end-to-end delay from the user equipment to the service equipment, the format of the Value field may be as shown in Figure 8f, including: the reserved field and the end-to-end delay (English: End-to-End Delay, or It is called round trip time (English: Round Trip Time, abbreviation: RTT), unit: microsecond (English: microsecond, abbreviation: us)); for another example, for the end-to-end delay jitter from user equipment to service equipment, the Value field The format can be shown in Figure 8g, including: reserved field and end-to-end delay jitter (English: End-to-End Jitter, also known as RTT, unit: us); another example, for user equipment to service The end-to-end rate of the device, the format of the Value field can be shown in Figure 8h, including: T field, D field, reserved field and end-to-end rate (English: End-to-End Rate), where the T field is The value can represent the unit of the end-to-end rate. For example, 0 represents kilobits per second (English: Kbps), 1 represents Mbps, and 2 represents gigabits per second (English: Gbps). The value of the D field can represent the The end-to-end rate is the uplink rate or the downlink rate, such as: 0 for uplink and 1 for downlink.
在另一种可能的实现方式中,第一报文的动态信息可以是网络设备生成的。如当该应用对应的客户端和用户设备不具有生成动态信息的能力时,可以由网络中的设备来生成上述动态信息。例如该网络设备可以是用户设备和服务设备之间的宽带网络网关(英文:Broadband Network Gateway,简称:BNG)或客户侧设备(英文:Customer Premise Equipment,简称:CPE)。那么,S102可以包括:网络设备根据第一报文,生成该第一报文对应的动态信息。网络设备根据第一报文生成第一报文对应的动态信息的过程,可以包括:网络设备对所接收的报文进行逐流检测,识别出与该第一报文属于相同流的报文,具体可以为:网络设备根据第一报文中携带的应用特征信息,确定该第一报文所属的流,并确定该流中的报文;接着,获取该流中所接收的各报文的历史参数,并基于该历史参数通过机器学习、人工智能(英文:Artificial Intelligence,简称:AI)或深度报文检测(英文:Deep Packet Inspection,简称:DPI)等技术生成该流的动态信息。In another possible implementation manner, the dynamic information of the first packet may be generated by a network device. For example, when the client and user equipment corresponding to the application do not have the ability to generate dynamic information, the above dynamic information may be generated by a device in the network. For example, the network device may be a broadband network gateway (English: Broadband Network Gateway, BNG for short) or a customer-side device (English: Customer Premise Equipment, short: CPE) between the user equipment and the service device. Then, S102 may include: the network device generates dynamic information corresponding to the first packet according to the first packet. The process of generating the dynamic information corresponding to the first packet by the network device 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, Specifically, the network device may determine, according to the application feature information carried in the first packet, the flow to which the first packet belongs, and determine the packets in the flow; then, obtain the information of each packet received in the flow. Historical parameters, and based on the historical parameters through machine learning, artificial intelligence (English: Artificial Intelligence, referred to as: AI) or deep packet inspection (English: Deep Packet Inspection, referred to: DPI) and other technologies to generate the dynamic information of the flow.
需要说明的是,网络设备接收到第一报文后,除了可以获取到第一报文对应的动态信息,还可以获取到用于表征该报文对应的应用特征信息,网络设备可以基于应用特征信息和动态信息,确定对第一报文的处理方式,例如,根据应用特征信息确定该应用对应的转发路径1和转发路径2,根据动态信息从转发路径1和转发路径2中确定转发路径1,按照转发路径1转发第一报文。该应用特征信息例如可以携带在第一报文中。或者,网络设备还可以获取到用于表征应用对网络要求的应用要求信息,网络设备可以基于应用要求信息和应用特征信息实现动态算路,从而,网络设备可以在动态算路结果中基于应用特征信息和动态信息确定对第一报文的处理方式。It should be noted that, after receiving the first packet, the network device can obtain not only the dynamic information corresponding to the first packet, but also the application feature information used to characterize the corresponding packet. information and dynamic information, determine the processing method for the first packet, for example, determine the forwarding path 1 and forwarding path 2 corresponding to the application according to the application feature information, and determine the 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 forwarding path 1. For example, the application feature information may be carried in the first packet. Alternatively, the network device can also obtain application requirement information that is used to characterize the network requirements of the application, and the network device can implement dynamic path calculation based on the application requirement information and the application feature information. The information and dynamic information determine how the first packet is processed.
S103,网络设备根据动态信息,确定该第一报文对应的网络资源信息。S103: The network device determines network resource information corresponding to the first packet according to the dynamic information.
可选的,网络设备根据动态信息和应用条件确定上述网络资源信息。其中,应用条件包括应用特征信息和/或应用要求信息。Optionally, the network device determines the foregoing network resource information according to dynamic information and application conditions. Wherein, the application condition includes application characteristic information and/or application requirement information.
一种情况下,S103中网络设备可以根据动态信息,确定网络资源信息;另一种情况下,S103中网络设备可以根据动态信息和应用条件中的应用特征信息,确定网络资源信息;又一种情况下,S103中网络设备可以根据动态信息以及应用条件中的应用特征信息和应用要求信息,确定网络资源信息。其中,当该网络设备所属的网络,或该网络设备主要传输同一类应用的报文时,网络设备可以仅根据应用的动态信息确定网络资源信息,或根据应用 的动态信息和应用要求信息确定网络资源信息。当该网络传输的报文跟多个应用相关时,则网络设备可以根据动态信息和应用特征信息,或者也可以根据动态信息、应用特征信息和应用要求信息确定网络资源信息。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 feature information in the application conditions; In this case, the network device in S103 may determine the network resource information according to the dynamic information and the application feature information and application requirement information in the application conditions. Wherein, when the network to which the network device belongs, or when the network device mainly transmits packets 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 according to the dynamic information of the application and the application requirement information. resource information. When the message transmitted by the network is related to multiple applications, the network device can determine the network resource information according to the dynamic information and application feature information, or can also determine the network resource information according to the dynamic information, application feature information and application requirement information.
网络资源信息包括以下信息中一项或多项:服务质量等级、转发路径、带宽、网络分片、无线信道或无线频率。其中,服务质量等级例如可以是服务质量(英文:Quality of Service,简称:QoS)级别或SLA等级。The network resource information includes one or more of the following information: service quality level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency. The service quality level may be, for example, a quality of service (English: Quality of Service, QoS for short) level or an SLA level.
在一种可能的实现方式中,如果动态信息为应用的状态值,那么,网络设备可以保存对应的阈值,S103具体可以包括:网络设备根据应用的状态值和阈值的比较,确定该第一报文对应的网络资源信息。其中,阈值可以是网络设备上预先静态或动态配置的固定值,也可以是网络设备运行过程中不断调整和更新的可变值,还可以是通过机器学习、大数据或AI等技术生成的。In a possible implementation manner, if the dynamic information is the state value of the application, the network device may save the corresponding threshold, and S103 may specifically include: the network device determines the first report according to the comparison between the state value of the application and the threshold. Corresponding network resource information. The threshold can be a fixed value pre-configured statically or dynamically on the network device, or a variable value that is continuously adjusted and updated during the operation of the network device, or generated through technologies such as machine learning, big data, or AI.
作为一个示例,以动态信息包括已缓存视频的剩余时长,网络资源信息包括转发路径为例进行说明。假设视频应用1使用已缓存视频的剩余时长作为动态信息,以图8c所示的格式为例。在图9所示的网络中,视频应用1运行于五个用户设备,这五个用户设备分别归属于:用户1~5,五个用户设备分别连接到网络设备A上,视频应用1的服务设备连接在网络设备B上。假设用户1携带了动态信息,已缓存视频的剩余时长为1秒(英文:second,简称:s);用户2携带了动态信息,已缓存视频的剩余时长为5s;用户3携带了动态信息,已缓存视频的剩余时长为10s;用户4携带了动态信息,已缓存视频的剩余时长为30s;用户5没有携带动态信息。As an example, the dynamic information includes the remaining duration of the cached video, and the network resource information includes the forwarding path as an example for description. It is assumed 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 , video application 1 runs on five user equipments, and the five user equipments belong to: users 1 to 5 respectively. The five user equipments are connected to network device A respectively, and the service of video application 1 The device is connected to network device B. Assuming that user 1 carries dynamic information, the remaining duration of the cached video is 1 second (English: second, abbreviated as: s); user 2 carries dynamic information, and the remaining duration of the cached video is 5s; user 3 carries dynamic information, The remaining duration of the cached video is 10s; user 4 carries dynamic information, and the remaining duration of the cached video is 30s; user 5 does not carry dynamic information.
针对单阈值的场景,假设网络设备使用6s作为阈值,如果一条流量的动态信息中已缓存视频的剩余时长小于6s,切换使用路径1(即网络设备A经过网络设备C到网络设备B的路径)传输该流量;如果一条流量的动态信息中已缓存视频的剩余时长大于或等于6s,或者该流量中的报文没有携带动态信息,切换使用路径3(即网络设备A依次经过网络设备E、网络设备F、网络设备G到网络设备B的路径)传输该流量。那么,用户1和用户2上视频应用1发出的流量使用路径1进行传输,用户3、用户4和用户5上视频应用1发出的流量使用路径3进行传输。For the single-threshold scenario, assuming that the network device uses 6s as the threshold, if the remaining duration of the cached video in the dynamic information of a traffic is less than 6s, switch to use path 1 (that is, the path from network device A to network device B through network device C) Transmit the traffic; if the remaining duration of the cached video in the dynamic information of a traffic is greater than or equal to 6s, or the packets in the traffic do not carry dynamic information, switch to use path 3 (that is, network device A passes through network device E, network Device F, the path from network device G to network device B) transmits the traffic. Then, the traffic sent by video application 1 on user 1 and user 2 is transmitted using path 1, and the traffic sent by video application 1 on user 3, user 4, and user 5 is transmitted using path 3.
针对双阈值的场景,一种情况下,阈值可以作为路径延迟切换的参数,例如,网络设备使用6s、12s作为阈值,针对一条流量,当动态信息中已缓存视频的剩余时长低于6s时,切换使用路径1;当动态信息中已缓存视频的剩余时长大于12s时,切换使用路径2(即网络设备A经过网络设备D到网络设备B的路径)。假设用户1携带动态信息,T1时刻已缓存视频的剩余时长为20s,T2时刻已缓存视频的剩余时长为10s,T3时刻已缓存视频的剩余时长为3s,T4时刻已缓存视频的剩余时长为8s,T5时刻已缓存视频的剩余时长为30s。那么,在T1~T2以及T2~T3时段,由于T1时刻已缓存视频的剩余时长20s大于12s,且T1~T2以及T2~T3时段已缓存视频的剩余时长均未小于6s,所以,使用路径2对视频应用1进行传输;在T3时刻,由于已缓存视频的剩余时长3s小于6s,所以,切换到路径1对视频应用1进行传输;在T3~T4以及T4~T5时段,T1~T2以及T2~T3时段已缓存视频的剩余时长均未大于12s,所以,使用路径1对视频应用1进行传输;在T5时刻,由于已缓 存视频的剩余时长30s大于12s,所以,切换到路径2对视频应用1进行传输。另一种情况下,阈值也可以作为路径实际切换的参数,例如,网络设备使用6s、12s作为阈值。针对动态信息中已缓存视频的剩余时长小于6s的流量,使用路径2进行传输;针对动态信息中已缓存视频的剩余时长大于或等于6s且小于12s的流量,使用路径4(即网络设备A依次经过网络设备H、网络设备I到网络设备B的路径)进行传输;针对动态信息中已缓存视频的剩余时长大于或等于12s的流量或没有携带动态信息的流量,使用路径3进行传输。那么,用户1和用户2上视频应用1发出的流量使用路径2进行传输,用户3上视频应用1发出的流量使用路径4进行传输,用户4和用户5上视频应用1发出的流量使用路径3进行传输。For the dual-threshold scenario, in one case, the threshold can be used as a parameter for path delay switching. For example, the network device uses 6s and 12s as the threshold. For a traffic, when the remaining duration of the cached video in the dynamic information is less than 6s, Switch to use path 1; when the remaining duration of the cached video in the dynamic information is greater than 12s, switch to use path 2 (ie, the path from network device A to network device B through network device D). Assuming that user 1 carries dynamic information, the remaining duration of the cached video at T1 is 20s, the remaining duration of the cached video at T2 is 10s, the remaining duration of the cached video at T3 is 3s, and the remaining duration of the cached video at T4 is 8s , the remaining duration of the cached video at time T5 is 30s. Then, in the T1-T2 and T2-T3 periods, since the remaining duration of the cached video at T1 is greater than 20s, and the remaining duration of the cached video in the T1-T2 and T2-T3 periods is not less than 6s, path 2 is used. Transmit video application 1; at time T3, since the remaining duration of the cached video 3s is less than 6s, switch to path 1 to transmit video application 1; in the T3~T4 and T4~T5 periods, T1~T2 and T2 The remaining duration of the cached video in the ~T3 period is not greater than 12s, so use path 1 to transmit video application 1; at T5 time, since the remaining duration of the cached video 30s is greater than 12s, so switch to path 2 for video application 1 to transmit. In another case, the threshold can also be used as a parameter for the actual switching of the path. For example, the network device uses 6s and 12s as the threshold. For the traffic with the remaining duration of the cached video in the dynamic information less than 6s, use path 2 for transmission; for the traffic with the remaining duration of the cached video in the dynamic information greater than or equal to 6s and less than 12s, use path 4 (that is, network device A in turn It is transmitted through the path from network device H, network device I to network device B); for the traffic with the remaining duration of the cached video in the dynamic information greater than or equal to 12s or the traffic without dynamic information, use path 3 for transmission. Then, the traffic sent by video application 1 on user 1 and user 2 is transmitted using path 2, the traffic sent by video application 1 on user 3 is transmitted using path 4, and the traffic sent by video application 1 on user 4 and user 5 is transmitted using path 3 to transmit.
针对多阈值的场景,阈值同样可以作为路径延迟切换的参数或路径实际切换的参数。以多阈值作为路径实时切换的参数为例,假设视频应用1使用已缓存视频的剩余数据量占缓存空间的百分比(以下简称“占比”)作为动态信息,以图8e所示的格式为例。假设用户1携带了动态信息且占比为3%;用户2携带了动态信息且占比为10%;用户3携带了动态信息且占比为30%;用户4携带了动态信息且占比为80%;用户5没有携带动态信息。如果网络设备使用5%、15%、50%、90%作为阈值,针对动态信息中的占比小于5%的流量,使用路径1进行传输;针对动态信息中的占比大于或等于5%且小于15%的流量,使用路径2进行传输;针对动态信息中的占比大于或等于15%且小于50%的流量,使用路径5(即网络设备A经过网络设备J到网络设备B的路径)进行传输;针对动态信息中的占比大于或等于50%且小于90%的流量,使用路径4进行传输;针对动态信息中的占比大于90%的流量或者没有携带动态信息的流量,使用路径3进行传输。那么,用户1上视频应用1发出的流量使用路径1进行传输,用户2上视频应用1发出的流量使用路径2进行传输,用户3上视频应用1发出的流量使用路径5进行传输,用户4上视频应用1发出的流量使用路径4进行传输,用户5上视频应用1发出的流量使用路径3进行传输。For a multi-threshold scenario, the threshold can also be used as a parameter for path delay switching or a parameter for actual path switching. Taking multiple thresholds as parameters for real-time switching of paths as an example, it is assumed that video application 1 uses the percentage of the remaining data of the cached video in the cache space (hereinafter referred to as the "proportion") as dynamic information, taking the format shown in Figure 8e as an example . Suppose user 1 carries dynamic information and the proportion is 3%; user 2 carries dynamic information and the proportion is 10%; user 3 carries dynamic information and the proportion is 30%; user 4 carries dynamic information and the proportion is 80%; User 5 does not carry dynamic information. If the network device uses 5%, 15%, 50%, and 90% as the thresholds, for the traffic that accounts for less than 5% of the dynamic information, use path 1 for transmission; for the proportion of dynamic information greater than or equal to 5% and For traffic less than 15%, use path 2 for transmission; for traffic that accounts for more than or equal to 15% and less than 50% of dynamic information, use path 5 (that is, the path from network device A to network device B through network device J) For transmission; for the traffic that accounts for more than or equal to 50% and less than 90% of the dynamic information, use path 4 for transmission; for the traffic that accounts for more than 90% of the dynamic information or the traffic that does not carry dynamic information, use the path 3 to transmit. Then, the traffic from video application 1 on user 1 is transmitted using route 1, the traffic from video application 1 on user 2 is transmitted using route 2, the traffic from video application 1 on user 3 is transmitted using route 5, and the traffic from user 4 on user 4 is transmitted using route 5. The traffic sent by video application 1 is transmitted using path 4, and the traffic sent by video application 1 on user 5 is transmitted using path 3.
在另一个可能的实现方式中,如果动态信息为应用的状态指示,那么,S103具体可以包括:网络设备根据应用的状态指示,确定该第一报文对应的网络资源信息。In another possible implementation manner, if the dynamic information is the state indication of the application, then S103 may specifically include: the network device determines the network resource information corresponding to the first packet according to the state indication of the application.
作为一个示例,假设网络中为应用1提供两种QoS级别的转发服务:尽力而为(英文:Best Effort,简称:BE)、加速转发(英文:Expedited Forwarding,简称:EF)。当网络设备确定所获取的动态信息中的E标志位为1的报文1时,对报文1使用EF级别,进行优先传输;当网络设备确定所获取的动态信息中的E标志位为0的报文2或没有携带动态信息的报文3时,对报文2和报文3使用BE级别,进行正常传输。如果网络中有应用1的流量和其他流量,且应用1包含三个用户:用户1、用户2和用户3,假设用户1的应用1发出的流量中携带了动态信息并且E标志位为1,用户2的应用1发出的流量中,携带了动态信息并且E标志位为0,用户3的应用1发出的流量中没有携带动态信息,那么,用户1的应用1的流量将使用EF级别,优先于使用BE级别的流量用户2的应用1发出的流量、用户3的应用1发出的流量以及其他流量在网络中被传输。As an example, it is assumed that application 1 is provided with forwarding services of two QoS levels in the network: best effort (English: Best Effort, BE for short) and expedited forwarding (English: Expedited Forwarding, EF for short). When the network device determines that the E flag bit in the acquired dynamic information is 1, the EF level is used for the packet 1, and the transmission is prioritized; when the network device determines that the E flag bit in the acquired dynamic information is 0 If the packet 2 or packet 3 does not carry dynamic information, the BE level is used for packet 2 and packet 3 for normal transmission. If there are traffic of application 1 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, The traffic sent by user 2's application 1 carries dynamic information and the E flag is 0, and the traffic sent by user 3's application 1 does not carry dynamic information. Then, the traffic of user 1's application 1 will use the EF level with priority. For traffic using the BE level, traffic from user 2's application 1, user 3's application 1, and other traffic are transmitted in the network.
作为又一个示例,以动态信息包括端到端时延,网络资源信息包括BE大带宽网络分片A、超低时延小带宽网络分片B为例进行说明。针对时延敏感的对战游戏1,假设对战 游戏1使用图8a所示的动态信息,如果端到端时延大于100ms时,在发出的报文中携带动态信息并且动态信息中的E标志位取值为1;如果端到端时延小于80ms并且大于或等于50ms时,在发出的报文中携带动态信息并且动态信息中E标志位取值为0;在端到端时延小于50ms时,发出的报文中不携带动态信息。如果网络设备确定所接收的报文1对应的动态信息中E标志位为1时,使用网络分片B传输;如果网络设备确定所接收的报文2对应的动态信息中E标志位为0或者所接收报文3中不携带动态信息时,使用网络分片A传输。那么,对战游戏1包含三个用户:用户1~3,三个用户端到端时延分别为35ms、90ms、125ms。此时,用户1~3的报文1~3中携带动态信息的情况可以为:用户1上对战游戏1发出的流量不携带动态信息,用户2上对战游戏1发出的流量携带动态信息且E标志位取值为0,用户3上对战游戏1发出的流量携带动态信息且E标志位取值为1;网络设备对各用户的流量处理分别可以为:网络设备对用户1上对战游戏1发出的流量使用网络分片A传输,网络设备对用户2上对战游戏1发出的流量使用网络分片A传输,网络设备对用户3上对战游戏1发出的流量使用网络分片B传输。As another example, the dynamic information includes the end-to-end delay, and the network resource information includes the BE high-bandwidth network slice A and the ultra-low-latency low-bandwidth network slice B as an example for description. For the delay-sensitive battle game 1, assuming that the battle game 1 uses the dynamic information shown in Figure 8a, if the end-to-end delay is greater than 100ms, the dynamic information is carried in the sent message and the E flag in the dynamic information is taken The value is 1; if the end-to-end delay is less than 80ms and greater than or equal to 50ms, the outgoing packet carries dynamic information and the E flag in the dynamic information is 0; when the end-to-end delay is less than 50ms, the The outgoing packets do not carry dynamic information. If the network device determines that the E flag bit in the dynamic information corresponding to the received packet 1 is 1, it uses network fragment B for transmission; if the network device determines that the E flag bit in the dynamic information corresponding to the received packet 2 is 0 or When the received packet 3 does not carry dynamic information, the network fragment A is used for transmission. Then, the battle game 1 includes three users: users 1 to 3, and the end-to-end delays of the three users are 35ms, 90ms, and 125ms, respectively. At this time, the situation that the dynamic information is carried in the packets 1 to 3 of the users 1 to 3 may be: the traffic sent by the battle game 1 on the user 1 does not carry the dynamic information, and the traffic sent by the battle game 1 on the user 2 carries the dynamic information and E The value of the flag bit is 0, the traffic sent by the game 1 on user 3 carries dynamic information and the value of the E flag is 1; the traffic processing of each user by the network device can be as follows: the network device sends the data to the game 1 on user 1. The traffic from user 2 is transmitted by network segment A, the traffic sent by the network device to the battle game 1 on user 2 is transmitted by network segment A, and the traffic sent by the network device to the battle game 1 on user 3 is transmitted by network segment 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 can determine the corresponding network resource information according to each piece of dynamic information, so that based on the The first packet is processed by the determined pieces of network resource information. Or, when the first packet corresponds to multiple pieces of dynamic information, but there are at least two pieces of dynamic information in the multiple pieces of dynamic information that correspond to the same type of network resource information on the network device, then the network device can Corresponding network resource information is determined, and one network resource information corresponding to the at least two pieces of dynamic information is determined according to a preset rule (eg, selecting a better processing method), and the first packet is processed based on the determined network resource information.
S104,网络设备根据网络资源信息发送第二报文,所述第二报文属于所述应用。S104, the network device sends a second packet according to the network resource information, where the second packet belongs to the application.
作为一个示例,如果网络设备所接收的第一报文中包括动态信息,一种情况下,第二报文可以为第一报文,即,S104为网络设备根据所确定的网络资源信息发送第一报文。这样,后续每个网络设备均可以从第一报文中获取动态信息,根据动态信息确定对应的网络资源信息,从而基于所确定的网络资源信息发送该第一报文,直到将所述第一报文发送到服务设备。另一种情况下,第二报文可以是网络设备更新第一报文获得的,更新后的第一报文(即第二报文)中包括网络资源信息。这样,后续每个网络设备均可以从第二报文中获取对应的网络资源信息,从而基于所确定的网络资源信息发送该第二报文,直到将所述第二报文发送到服务设备,无需在每个网络设备上均基于动态信息确定对应的网络资源信息,节约了网络资源,提高了流量处理效率。As an example, if the first packet received by the network device includes dynamic information, in one case, the second packet may be the first packet, that is, S104 is that the network device sends the first packet according to the determined network resource information. a message. In this way, each subsequent network device can obtain dynamic information from the first packet, determine corresponding network resource information according to the dynamic information, and send the first packet based on the determined network resource information until the first packet is The message is sent to the service device. In another case, the second packet may be obtained by the network device updating the first packet, and the updated first packet (ie, the second packet) includes network resource information. In this way, each subsequent network device can obtain the corresponding network resource information from the second message, so as to send the second message based on the determined network resource information, until the second message is sent to the service device, There is no need to determine corresponding network resource information based on dynamic information on each network device, which saves network resources and improves traffic processing efficiency.
作为另一个示例,如果网络设备所接收的第一报文中不包括动态信息,网络设备根据第一报文生成动态信息,那么,一种情况下,第二报文可以是网络设备更新第一报文获得的,更新后的第一报文(即第二报文)中包括生成的动态信息。这样,后续每个网络设备均可以从第二报文中获取动态信息,根据动态信息确定对应的网络资源信息,从而基于所确定的网络资源信息发送该第二报文,直到将所述第二报文发送到服务设备。另一种情况下,网络设备还可以根据所生成的动态信息确定网络资源信息,第二报文可以是网络设备更新第一报文获得的,更新后的第一报文(即第二报文)中包括网络资源信息。需要说明 的是,为了后续网络设备以及服务设备能够合理的处理所接收的报文,该更新后的第一报文(即第二报文)中还可以包括动态信息。这样,后续每个网络设备均可以从第二报文中获取对应的网络资源信息,从而基于所确定的网络资源信息发送该第二报文,直到将所述第二报文发送到服务设备,无需在每个网络设备上均基于动态信息确定对应的网络资源信息,节约了网络资源,提高了流量处理效率。又一种情况下,网络设备还可以判断所生成的动态信息表征是否属于非正常状态,如果处于非正常状态,则,第二报文可以是网络设备更新第一报文获得的,更新后的第一报文(即第二报文)中包括网络资源信息和/或动态信息;如果处于正常状态,则,第二报文为第一报文,即,不对第一报文进行处理,直接将所接收的第一报文作为S104中的第二报文进行相应的处理。As another example, if the first packet received by the network device does not include dynamic information, and the network device generates dynamic information according to the first packet, then, in one case, the second packet may be that the network device updates the first packet. obtained from the message, the updated first message (ie, the second message) includes the generated dynamic information. In this way, each subsequent network device can obtain dynamic information from the second packet, determine corresponding network resource information according to the dynamic information, and send the second packet based on the determined network resource information until the second packet is The message is sent to the service device. In another case, the network device may also determine the network resource information according to the generated dynamic information, and the second packet may be obtained by the network device updating the first packet, and the updated first packet (ie the second packet) ) includes network resource information. It should be noted that, in order for the subsequent network device and the service device to properly process the received message, the updated first message (that is, the second message) may also include dynamic information. In this way, each subsequent network device can obtain the corresponding network resource information from the second message, so as to send the second message based on the determined network resource information, until the second message is sent to the service device, There is no need to determine corresponding network resource information based on dynamic information on each network device, which saves network resources and improves traffic processing efficiency. In another case, the network device may also determine whether the generated dynamic information representation is in an abnormal state, and if it is in an abnormal state, the second packet may be obtained by the network device by updating the first packet, and the updated The first packet (that is, the second packet) includes network resource information and/or dynamic information; if it is in a normal state, the second packet is the first packet, that is, the first packet is not processed, and the The received first packet is used as the second packet in S104 to perform corresponding processing.
其中,网络设备根据网络资源信息发送第二报文,如果该网络设备的下一跳仍然为网络设备而非服务设备,则,S104可以是该网络设备向下一跳网络设备发送该第二报文;如果该网络设备的下一跳仍然为服务设备,则,S104可以是该网络设备向服务设备发送该第二报文。Wherein, the network device sends the second packet according to the network resource information, and if the next hop of the network device is still a network device instead of a service device, S104 may be that the network device sends the second packet 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 message to the service device.
在一种可能的实现方式中,网络设备可以根据动态信息对应的网络资源信息,对第二报文进行处理,例如,基于第二报文中的动态信息或网络资源信息选择对应的QoS级别、转发路径或网络分片等网络资源,按照选定的网络资源对第二报文进行处理。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 the corresponding QoS level, Network resources such as forwarding paths or network fragments, and process the second packet according to the selected network resources.
在另一种可能的实现方式中,网络设备还可以根据动态信息对应的网络资源信息,获得策略表项,从而根据所述策略表项处理该第二报文。网络设备根据动态信息对应的网络资源信息获得策略表项例如可以是:网络设备根据动态信息对应的网络资源信息对策略表项进行更新,获得更新后的策略表项。其中,策略表项可以是网络设备本地设置的QoS级别匹配表、转发表、路由表、隧道表、网络分片选择表等。网络设备可以根据第二报文查询相关表项后,使用查询结果处理该第二报文,如使用查询结果中包括的QoS级别、转发路径或网络分片等对第二报文进行处理。In another possible implementation manner, the network device may also 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 obtaining the policy entry according to the network resource information corresponding to the dynamic information may, for example, be: the network device updates the policy entry according to the network resource information corresponding to the dynamic information, and obtains the updated policy entry. The policy entry may be a QoS level matching table, a forwarding table, a routing table, a tunnel table, a network fragment selection table, etc. locally set by the network device. The network device may use the query result to process the second packet after querying the relevant entry according to the second packet, such as processing the second packet by using the QoS level, forwarding path or network fragment included in the query result.
在又一种可能的实现方式中,如果网络设备为一个自治系统(英文:Autonomous System,简称:AS)域的边界设备,则,该网络设备还可以根据动态信息或动态信息对应的网络资源信息,对第二报文中的QoS相关字段进行标记,QoS相关字段包括但不限于:IPv6的区分服务编码点(英文:Differentiated Services Code Point,简称:DSCP)或流类型(英文:Traffic Class,简称:TC)字段、第四版互联网协议(英文:Internet Protocol version 4,简称:IPv4)的服务类型(英文:Type of Service,简称:ToS)字段、多协议标签交换(英文:Multiprotocol Label Switching,简称:MPLS)的实验用途(英文:Experimental Use,简称:EXP)字段(又称TC字段)、虚拟局域网(英文:Virtual Local Area Network,简称:VLAN)的优先级编码点(英文:Priority Code Point,简称:PCP)字段等。该AS域内的网络设备可以根据QoS相关字段对第二报文进行处理;但是,当该第二报文进入下一个AS域时,下一个AS域的边界设备需要根据动态信息或动态信息对应的网络资源信息对该QoS相关字段进行重标记,以便该下一个AS域内网络设备根据重标记后QoS相关字段的取值对第二报文的准确转发。第二报文在一个AS域的各个网络设备上,可以根据QoS相关字段的取值确定相应的QoS级别、转发路径和/或网络分片,从而使用所确定的QoS级 别、转发路径和/或网络分片对第二报文进行处理。In another possible implementation manner, if the network device is a boundary device of an autonomous system (English: Autonomous System, AS) domain for short, the network device may also be based on dynamic information or network resource information corresponding to the dynamic information , mark the QoS-related fields in the second packet. The QoS-related fields include but are not limited to: IPv6 Differentiated Services Code Point (English: Differentiated Services Code Point, DSCP for short) or flow type (English: Traffic Class, short for short) : TC) field, the fourth version of the Internet Protocol (English: Internet Protocol version 4, referred to as: IPv4) type of service (English: Type of Service, referred to as: ToS) field, Multiprotocol Label Switching (English: Multiprotocol Label Switching, referred to as: : MPLS) experimental purpose (English: Experimental Use, referred to as: EXP) field (also known as TC field), virtual local area network (English: Virtual Local Area Network, referred to as: VLAN) priority code point (English: Priority Code Point, Abbreviation: PCP) field, etc. The network device in the AS domain can process the second packet according to the QoS-related fields; however, when the second packet enters the next AS domain, the border device in the next AS domain needs to use the dynamic information or the corresponding dynamic information The network resource information re-marks the QoS-related field, so that the network device in the next AS domain can accurately forward the second packet according to the value of the re-marked QoS-related field. On each network device in an AS domain, the second packet can determine the corresponding QoS level, forwarding path and/or network fragment according to the value of the QoS-related field, so as to use the determined QoS level, forwarding path and/or The network fragment processes the second packet.
S105,服务设备接收所述第二报文,并生成第三报文,所述第三报文包括所述动态信息。S105. The service device receives the second packet and generates a third packet, where the third packet includes the dynamic information.
考虑到用户设备向服务设备发送流量所经过的路径和服务设备向用户设备发送流量所经过的路径可能不同,而体现应用在用户设备的客户端上的状态的动态信息也能够影响服务设备向用户设备发送流量所经过的网络设备对该应用流量的处理,所以,当服务设备接收到包括动态信息的第二报文时,服务设备还可以在向用户设备发送的所述应用对应的报文中携带该动态信息,这样,服务设备向用户设备发送报文所经过的网络设备也可以感知到该应用的状态,从而基于所接收的报文中的动态信息对该应用的报文进行合理的处理。Considering that the path through which the user equipment sends traffic to the service device and the path through which the service device sends traffic to the user equipment may be different, the dynamic information reflecting the state of the application on the client of the user equipment can also affect the service equipment to the user. The processing of the application traffic by the network device through which the device sends traffic. Therefore, when the service device receives the second packet including dynamic information, the service device can also send the user equipment to the application corresponding to the packet. Carrying the dynamic information, in this way, the network device through which the service device sends the message to the user equipment can also perceive the state of the application, so as to reasonably process the message of the application based on the dynamic information in the received message .
该方法100中以服务设备向用户设备发送报文为第三报文为例,该第三报文中携带动态信息的方式可以参见图7a~图7c以及图8a~图8h所示的格式,这里不再赘述。In the method 100, it is taken as an example that the message sent by the service device to the user equipment is the third message. The manner of carrying the dynamic information in the third message may refer to the formats shown in FIGS. 7a-7c and 8a-8h. I won't go into details here.
S106,服务设备向用户设备发送所述第三报文。S106, the service device sends the third packet to the user equipment.
其中,服务设备可以经过至少一个网络设备向用户设备发送第三报文。其中,第三报文所经过的各个网络设备可以根据第三报文中携带的动态信息对第三报文进行处理,例如,根据第三报文中携带的动态信息确定第三报文对应的网络资源信息,从而根据网络资源信息对第三报文进行处理。第三报文所经过的各个网络设备对第三报文的处理可以参见上述S103以及S104中网络设备对第一报文或第二报文的处理方式的描述,在此不再赘述。The service device may send the third packet to the user equipment via at least one network device. Wherein, each network device that the third packet passes through may process the third packet according to the dynamic information carried in the third packet. network resource information, so as to process the third packet according to the network resource information. For the processing of the third packet by each network device through which the third packet passes, reference may be made to the description of the manner in which the network device processes the first packet or the second packet in S103 and S104, which will not be repeated here.
这样,应用对应的报文所经过的网络设备,可以根据报文对应的动态信息,感知应用的状态,并据此提供不同的网络服务,对该应用的报文进行动态优化。针对一款、一类或所有应用的流量,网络可以为其分配多个级别的网络资源,不同级别的网络资源对应但不限于不同的转发路径、不同的QoS级别、不同的网络分片、不同的无线信道和/或无线频率等。网络设备可以根据动态信息,为流量使用不同级别的网络资源进行处理和转发。例如,可以将网络资源划分出基础和增强两个级别,针对正常状态的应用的流量,使用基础级别的网络资源进行传输;针对告警状态的应用的流量,使用增强级别的网络资源进行传输。其中,基础级别的网络资源,例如可以将QoS级别设置为BE,以及设置最小跳数的转发路径;增强级别的网络资源,例如可以将QoS级别设置为EF,以及设置低时延的转发路径或网络分片。In this way, the network device through which the message corresponding to the application passes can perceive the state of the application according to the dynamic information corresponding to the message, and provide different network services accordingly, and dynamically optimize the message of the application. For the traffic of one type, one type or all applications, the network can allocate multiple levels of network resources. Different levels of network resources correspond to, but are not limited to, different forwarding paths, different QoS levels, the radio channel and/or radio frequency, etc. Network devices can process and forward traffic using different levels of network resources based on dynamic information. For example, network resources can be divided into two levels: basic and enhanced. For the traffic of applications in the normal state, the network resources of the basic level are used for transmission; for the traffic of applications in the alarm state, the network resources of the enhanced level are used for transmission. Among them, for basic network resources, for example, the QoS level can be set to BE, and the forwarding path with the minimum number of hops can be set; for the enhanced network resources, for example, the QoS level can be set to EF, and the low-latency forwarding path or network sharding.
需要说明的是,上述方法100中的用户设备、服务设备以及网络设备,可以统称为通信设备,通信设备为用户设备时执行的操作、通信设备为网络设备时执行的操作以及通信设备为服务设备时执行的操作均可以作为单独的实施例单独实施,上述描述仅是为了技术方案的说明更加清楚和完成而进行的交互式的描述。对于用户设备,可以在向服务设备发送的报文中携带体现应用当前状态的动态信息,为后续网络设备对报文的合理处理提供了前提。对于网络设备,能够感知到体现应用状态的动态信息,并基于动态信息合理的处理报文,使得该应用能够给用户带来较好的QoE。对于服务设备,能够在向用户设备发送的报文中携带体现应用状态的动态信息,让服务设备到用户设备的报文所经过的网络设备感知到应用的当前状态,使得该应用给用户带来较好的QoE成为可能。It should be noted that the user equipment, service equipment, and network equipment in the above method 100 may be collectively referred to as communication equipment. The operations performed when the communication equipment is a user equipment, the operations performed when the communication equipment is a network equipment, and the communication equipment are service equipment. The operations performed at the time can be independently implemented as separate embodiments, and the above description is only an interactive description for the purpose of clarifying and completing the description of the technical solution. For the user equipment, the dynamic information reflecting the current state of the application can be carried in the message sent to the service device, which provides a prerequisite for the subsequent network device to properly process the message. For network devices, dynamic information reflecting the application state can be sensed, and packets can be processed reasonably based on the dynamic information, so that the application can bring better QoE to users. For the service device, the dynamic information that reflects the application state can be carried in the message sent to the user device, so that the network device through which the message from the service device to the user device passes can perceive the current state of the application, so that the application can bring the application to the user. Better QoE is possible.
可见,通过该方法100,对报文的处理考虑影响应用给用户带来的QoE的动态信息, 即,网络设备先获取用于表征所接收报文所属应用的状态的动态信息,根据动态信息确定该报文对应的网络资源信息,这样,网络设备即可基于所确定的网络资源信息对该报文进行处理。可见,接收应用对应报文的网络设备能够感知到该应用的动态信息,并基于该动态信息对该报文进行针对性的处理,报文处理过程中考虑该应用的动态信息使得该应用能够给用户带来较好的QoE,从而能够提高该应用给用户带来的使用体验,使得对应用的控制更加精准。It can be seen that, through the method 100, the dynamic information that affects the QoE brought by the application to the user is considered in the processing of the packet, that is, the network device first obtains the dynamic information used to represent the state of the application to which the received packet belongs, and determines according to the dynamic information. The network resource information corresponding to the packet, so that the network device can process the packet based on the determined network resource information. It can be seen that the network device that receives the message corresponding to the application can perceive the dynamic information of the application and process the message in a targeted manner based on the dynamic information. The dynamic information of the application is considered in the message processing process so that the application can provide The user brings better QoE, which can improve the use experience brought by the application to the user, and make the control of the application more precise.
相应的,本申请实施例还提供了一种报文处理装置1000,该装置1000具有上述图5所示的实施例中网络设备21、网络设备22或网络设备23,或者图9所示的实施例中的网络设备A的任意功能。如图10所示。该装置1000可以包括:获取单元1001和确定单元1002。Correspondingly, an embodiment of the present application further provides a packet processing apparatus 1000, where the apparatus 1000 has the network device 21, the network device 22, or the network device 23 in the embodiment shown in FIG. 5, or the implementation shown in FIG. 9. Any function of network device A in the example. As shown in Figure 10. The apparatus 1000 may include: an acquisition unit 1001 and a determination unit 1002 .
获取单元1001,用于获取报文对应的动态信息,所述动态信息表征所述报文所属应用对应的状态。所述获取单元1001可以执行图6所示的S102。The obtaining unit 1001 is configured to obtain dynamic information corresponding to a message, where the dynamic information represents a state corresponding to an application to which the message belongs. The obtaining unit 1001 may execute S102 shown in FIG. 6 .
确定单元1002,用于根据所述动态信息,确定所述报文对应的网络资源信息。所述确定单元1002可以执行图6所示的S103。The determining unit 1002 is configured to determine network resource information corresponding to the packet according to the dynamic information. The determining unit 1002 may execute S103 shown in FIG. 6 .
在一种可能的实现方式中,所述确定单元1002,具体用于:根据所述动态信息和应用条件确定所述网络资源信息,所述应用条件包括应用特征信息和/或应用要求信息,所述应用特征信息用于表征所述应用的属性,所述应用要求信息用于表征所述应用对网络的要求。In a possible implementation manner, the determining unit 1002 is specifically configured to: determine the network resource information according to the dynamic information and application conditions, where the application conditions include application feature information and/or application requirement information, and The application feature information is used to characterize the attributes of the application, and the application requirement information is used to characterize the network requirements of the application.
在一种可能的实现方式中,所述报文包括所述动态信息。In a possible implementation manner, the message includes the dynamic information.
在另一种可能的实现方式中,所述获取单元1001,具体用于:根据所述报文,生成所述动态信息。该实现方式中,所述装置1000还可以包括:第一更新单元。该第一更新单元,用于更新所述报文,所述报文包括所述动态信息。In another possible implementation manner, the obtaining unit 1001 is specifically configured to: generate the dynamic information according to the message. In this implementation manner, the apparatus 1000 may further include: a first updating unit. The first updating unit is configured to update the message, where the message includes the dynamic information.
在一种可能的实现方式中,所述装置1000还可以包括:第二更新单元。其中,该第二更新单元,用于更新所述报文,所述报文包括所述网络资源信息。In a possible implementation manner, the apparatus 1000 may further include: a second updating unit. Wherein, the second update unit is configured to update the message, where the message includes the network resource information.
其中,所述网络资源信息包括以下一项或多项:服务质量等级、转发路径、带宽、网络分片、无线信道或无线频率。Wherein, the network resource information includes one or more of the following: service quality level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency.
在一种可能的实现方式中,所述装置1000还可以包括:发送单元。该发送单元,用于根据所述网络资源信息发送所述报文。所述发送单元可以执行图6所示的S104。In a possible implementation manner, the apparatus 1000 may further include: a sending unit. The sending unit is configured to send the message according to the network resource information. The sending unit may perform S104 shown in FIG. 6 .
在一种可能的实现方式中,该装置1000还可以包括:获得单元和处理单元。其中,获得单元,用于根据所述网络资源信息获得策略表项;处理单元,用于根据所述策略表项处理所述应用对应的报文。In a possible implementation manner, the apparatus 1000 may further include: an obtaining unit and a processing unit. Wherein, the obtaining unit is configured to obtain the policy entry according to the network resource information; the processing unit is configured to process the message corresponding to the application according to the policy entry.
在一种可能的实现方式中,所述动态信息包括所述应用的状态值,或所述应用的状态指示,所述状态指示用于指示所述网络设备为所述应用提供增强网络资源。In a possible implementation manner, the dynamic information includes a state value of the application, or a state indication of the application, where the state indication is used to instruct the network device to provide enhanced network resources for the application.
在一种可能的实现方式中,所述报文通过服务状态选项字段携带所述动态信息,其中,服务状态选项字段可以携带在所述报文的APN6选项头中。In a possible implementation manner, the message carries the dynamic information through a service status option field, where the service status option field may be carried in an APN6 option header of the message.
需要说明的是,上述功能相同但命名中序号不同的单元,可以是一个能够实现该功能 的单元,例如,上述获取单元1001和获得单元可以是同一个具有获取功能的单元。It should be noted that the above-mentioned units with the same function but with different serial numbers in the naming may be a unit capable of realizing the function. For example, the above-mentioned obtaining unit 1001 and the obtaining unit may be the same unit having the obtaining function.
需要说明的是,图10所示的报文处理装置1000可以是图6所示的实施例中的网络设备,因此,报文处理装置1000的各种具体实施例方式,可以参见图6对应的方法100的相关介绍,本实施例不再赘述。It should be noted that the packet processing apparatus 1000 shown in FIG. 10 may be a network device in the embodiment shown in FIG. 6 . Therefore, for various specific embodiments of the packet processing apparatus 1000, please refer to the corresponding The related introduction of the method 100 is not repeated in this embodiment.
相应的,本申请实施例还提供了一种报文处理装置1100,该装置1100具有上述图5所示的实施例中用户设备11、网络设备21、网络设备22、网络设备23或服务设备31,或者图9所示的实施例中的网络设备A~网络设备J、用户设备或服务设备的任意功能。如图11所示。该装置1100可以包括:获得单元1101、生成单元1102和发送单元1103。Correspondingly, an embodiment of the present application further provides a packet processing apparatus 1100, where the apparatus 1100 has the user equipment 11, network equipment 21, network equipment 22, network equipment 23, or service equipment 31 in the embodiment shown in FIG. 5 above. , or any function of network equipment A to network equipment J, user equipment, or service equipment in the embodiment shown in FIG. 9 . As shown in Figure 11. The apparatus 1100 may include: an obtaining unit 1101 , a generating unit 1102 and a sending unit 1103 .
获得单元1101,用于获得动态信息,所述动态信息用于表征应用对应的状态。如果通信设备为网络设备,则,所述获得单元1101可以执行图6所示的S102;如果通信设备为服务设备,则,所述获得单元1101获得动态信息对应于图6中S105中所示的从第二报文中获得动态信息的情况;如果通信设备为用户设备,则,所述获得单元1101对应于图6中S101所示的第一报文中包括动态信息的情况。The obtaining unit 1101 is configured to obtain dynamic information, where the dynamic information is used to represent the state corresponding to the 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 dynamic information corresponding to S105 shown in FIG. 6 . The situation of obtaining dynamic information from the second packet; if the communication device is a user equipment, the obtaining unit 1101 corresponds to the situation that the first packet shown in S101 in FIG. 6 includes dynamic information.
生成单元1102,用于生成第一报文,所述第一报文中包括所述动态信息。如果通信设备为网络设备,则,所述生成单元1102生成的第一报文对应于图6中S104所示的第二报文;如果通信设备为服务设备,则,所述生成单元1102可以执行图6所示的S105;如果通信设备为用户设备,则,所述生成单元1102可以执行图6所示的S101。The generating unit 1102 is 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 equipment, the generating unit 1102 may execute S101 shown in FIG. 6 .
发送单元1103,用于发送所述第一报文。如果通信设备为网络设备,则,所述发送单元1103发送第一报文对应于图6所示的S104中的第二报文;如果通信设备为服务设备,则,所述发送单元1103发送的第一报文对应于图6所示的S106中的第三报文;如果通信设备为用户设备,则,所述发送单元1103发送的第一报文对应于图6中S101所示的第一报文。The sending unit 1103 is configured to send the first packet. If the communication device is a network device, the first message sent by the sending unit 1103 corresponds to the second message in S104 shown in FIG. 6; if the communication device is a service device, the sending unit 1103 sends The first packet corresponds to the third packet in S106 shown in FIG. 6 ; if the communication device is a user equipment, the first packet sent by the sending unit 1103 corresponds to the first packet shown in S101 in FIG. 6 . message.
其中,通信设备可以包括用户设备、网络设备或服务设备。Wherein, the communication equipment may include user equipment, network equipment or service equipment.
在一种可能的实现方式中,所述通信设备为网络设备或服务设备,所述获得单元1101可以包括:接收子单元和获得子单元。其中,接收子单元,用于接收第二报文,所述第二报文属于所述应用;获得子单元,用于根据所述第二报文获得所述动态信息。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. Wherein, the receiving subunit is configured to receive a second packet, the second packet belongs to the application; the obtaining subunit is configured to obtain the dynamic information according to the second packet.
作为一个示例,所述通信设备为所述网络设备,所述生成单元1102,具体用于:更新所述第二报文,获得所述第一报文。As an example, the communication device is the network device, and the generating unit 1102 is specifically configured to: update the second packet to obtain the first packet.
作为另一个示例,所述通信设备为所述服务设备,所述第二报文为所述用户设备发送的报文,所述第二报文包括所述动态信息,所述生成单元1102,具体用于:响应于所述第二报文包括所述动态信息,在向所述用户设备发送的所述应用对应的报文中携带所述动态信息,所述应用对应的报文包括所述第一报文。As another example, the communication device is the service device, the second packet is a packet sent by the user equipment, and the second packet includes the dynamic information, the generating unit 1102, specifically is used for: in response to the second packet including the dynamic information, carrying the dynamic information in a packet corresponding to the application sent to the user equipment, where the packet corresponding to the application includes the first a message.
在一种可能的实现方式中,所述动态信息包括所述应用的状态值,或所述应用的状态指示,所述状态指示用于指示所述网络设备为所述应用提供增强网络资源。In a possible implementation manner, the dynamic information includes a state value of the application, or a state indication of the application, where the state indication is used to instruct the network device to provide enhanced network resources for the application.
在一种可能的实现方式中,所述第一报文通过服务状态选项字段携带所述动态信息,其中,服务状态选项字段可以携带在所述第一报文的APN6选项头中。In a possible implementation manner, the first packet carries the dynamic information through a service status option field, where the service status option field may be carried in an APN6 option header of the first packet.
需要说明的是,图11所示的报文处理装置1100可以是图6所示的实施例中的用户设 备、网络设备或服务设备,因此,报文处理装置1100的各种具体实施例方式,可以参见图6对应的方法100的相关介绍,本实施例不再赘述。It should be noted that the packet processing apparatus 1100 shown in FIG. 11 may be user equipment, network equipment, or service equipment in the embodiment shown in FIG. 6 . Therefore, various specific embodiments of the packet processing apparatus 1100 are Reference may be made to the related introduction of the method 100 corresponding to FIG. 6 , which is not repeated in this embodiment.
参见图12,本申请实施例提供了一种网络设备1200。该网络设备1200可以是上述任一实施例中的网络设备,例如可以是图5或9所示实施例中的网络设备,网络设备1200可以实现上述实施例中网络设备的功能。该网络设备1200包括至少一个处理器1201,总线系统1202,存储器1203以及至少一个通信接口1204。Referring to FIG. 12 , an embodiment of the present application provides a network device 1200 . The network device 1200 may be the network device in any of the foregoing embodiments, for example, may be 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 foregoing embodiments. The network device 1200 includes at least one processor 1201 , a bus system 1202 , a memory 1203 and at least one communication interface 1204 .
该网络设备1200是一种硬件结构的装置,可以用于实现图10所示的报文处理装置1000中的功能模块。例如,本领域技术人员可以想到图10所示的报文处理装置1000中的获取单元1001和确定单元1002可以通过该至少一个处理器1201调用存储器1203中的代码来实现。The network device 1200 is an apparatus with a hardware structure, and can be used to implement the functional modules in the packet processing apparatus 1000 shown in FIG. 10 . For example, those skilled in the art can think that the obtaining unit 1001 and the determining unit 1002 in the message processing apparatus 1000 shown in FIG. 10 can be implemented by calling the code in the memory 1203 by the at least one processor 1201 .
可选的,该网络设备1200还可用于实现上述任一实施例中网络设备的功能。Optionally, the network device 1200 may also be used to implement the functions of the network device in any of the foregoing embodiments.
可选的,上述处理器1201可以是一个通用中央处理器(central processing unit,CPU),网络处理器(network processor,NP),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。Optionally, the above-mentioned processor 1201 may be a general-purpose central processing unit (central processing unit, CPU), network processor (network processor, NP), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC) , or one or more integrated circuits used to control the execution of the program of this application.
上述总线系统1202可包括一通路,在上述组件之间传送信息。The bus system 1202 described above may include a path to transfer information between the above described components.
上述通信接口1204,用于与其他设备或通信网络通信。The above-mentioned communication interface 1204 is used to communicate with other devices or communication networks.
上述存储器1203可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The above-mentioned memory 1203 can be a read-only memory (read-only memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (random access memory, RAM) or other types of storage devices that can store information and instructions. Types of dynamic storage devices, which can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical storage, CD-ROM storage (including compact discs, laser discs, compact discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being accessed by Any other medium accessed by the computer, but not limited to this. The memory can exist independently and be connected to the processor through a bus. The memory can also be integrated with the processor.
其中,存储器1203用于存储执行本申请方案的应用程序代码,并由处理器1201来控制执行。处理器1201用于执行存储器1203中存储的应用程序代码,从而实现本专利方法中的功能。Wherein, the memory 1203 is used for storing the application program code for executing the solution of the present application, and the execution is controlled by the processor 1201 . The processor 1201 is used to execute the application program code stored in the memory 1203, so as to realize the functions in the method of the present patent.
在具体实现中,作为一种实施例,处理器1201可以包括一个或多个CPU,例如图12中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 1201 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 12 .
在具体实现中,作为一种实施例,该网络设备1200可以包括多个处理器,例如图12中的处理器1201和处理器1207。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the network device 1200 may include multiple processors, for example, the processor 1201 and the processor 1207 in FIG. 12 . Each of these processors can 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 (eg, computer program instructions).
本申请提供的通信设备1200也可以参见图12所示。该通信设备1200可以是上述任一实施例中的用户设备、网络设备或服务设备,例如可以是图5或9所示实施例中的用户设备、网络设备或服务设备,通信设备1200可以实现上述实施例中用户设备、网络设备或服 务设备的功能。该通信设备1200包括至少一个处理器1201,总线系统1202,存储器1203以及至少一个通信接口1204。The communication device 1200 provided by the present application may also be shown in FIG. 12 . The communication device 1200 may be a user equipment, a network device, or a service device in any of the foregoing embodiments, for example, may be a user device, a network device, or a service device in the embodiment shown in FIG. 5 or 9, and the communication device 1200 may implement the above The function of the user equipment, network equipment or service equipment in the embodiment. The communication device 1200 includes at least one processor 1201 , a bus system 1202 , a memory 1203 and at least one communication interface 1204 .
图13是本申请实施例提供的另一种网络设备1300的结构示意图,网络设备1300例如可以是图5所示实施例中的网络设备21,或者也可以是图9所示实施例中的网络设备A。FIG. 13 is a schematic structural diagram of another network device 1300 provided by an embodiment of the present application. 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 in the embodiment shown in FIG. 9 . device A.
网络设备1300包括:主控板1310和接口板1330。The network device 1300 includes: a main control board 1310 and an interface board 1330 .
主控板1310也称为主处理单元(main processing unit,MPU)或路由处理卡(route processor card),主控板1310对网络设备1300中各个组件的控制和管理,包括路由计算、设备管理、设备维护、协议处理功能。主控板1310包括:中央处理器1311和存储器1312。The main control board 1310 is also called the main processing unit (main processing unit, MPU) or the route processor card (route processor card). The main control board 1310 controls and manages various components in the network device 1300, including route calculation, Equipment maintenance, protocol processing functions. The main control board 1310 includes: a central processing unit 1311 and a memory 1312 .
接口板1330也称为线路接口单元卡(line processing unit,LPU)、线卡(line card)或业务板。接口板1330用于提供各种业务接口并实现数据包的转发。业务接口包括而不限于以太网接口、POS(Packet over SONET/SDH)接口等,以太网接口例如是灵活以太网业务接口(Flexible Ethernet Clients,FlexE Clients)。接口板1330包括:中央处理器1331、网络处理器1332、转发表项存储器1334和物理接口卡(ph8sical interface card,PIC)1333。The interface board 1330 is also referred to as a line processing unit (LPU), a line card or a service board. The interface board 1330 is used to provide various service interfaces and realize data packet forwarding. The service interface includes, but is not limited to, an Ethernet interface, a POS (Packet over SONET/SDH) interface, etc. The Ethernet interface is, for example, a flexible Ethernet service interface (Flexible Ethernet Clients, FlexE Clients). The interface board 1330 includes: a central processing unit 1331 , a network processor 1332 , a forwarding table entry memory 1334 and a physical interface card (ph8sical interface card, PIC) 1333 .
接口板1330上的中央处理器1331用于对接口板1330进行控制管理并与主控板1310上的中央处理器1311进行通信。The central processing unit 1331 on the interface board 1330 is used to control and manage the interface board 1330 and communicate with the central processing unit 1311 on the main control board 1310 .
网络处理器1332用于实现报文的转发处理。网络处理器1332的形态可以是转发芯片。具体而言,上行报文的处理包括:报文入接口的处理,转发表查找;下行报文的处理:转发表查找等等。The network processor 1332 is used to implement packet forwarding processing. The network processor 1332 may be in the form of a forwarding chip. Specifically, the processing of the uplink packet includes: processing of the incoming interface of the packet, and searching of the forwarding table; processing of the downlink packet: searching of the forwarding table, and so on.
物理接口卡1333用于实现物理层的对接功能,原始的流量由此进入接口板1330,以及处理后的报文从该物理接口卡1333发出。物理接口卡1333包括至少一个物理接口,物理接口也称物理口,物理接口卡1333对应于系统架构中的FlexE物理接口。物理接口卡1333也称为子卡,可安装在接口板1330上,负责将光电信号转换为报文并对报文进行合法性检查后转发给网络处理器1332处理。在一些实施例中,接口板1330的中央处理器1331也可执行网络处理器1332的功能,比如基于通用CPU实现软件转发,从而物理接口卡1333中不需要网络处理器1332。The physical interface card 1333 is used to realize the interconnection function of the physical layer, the original traffic enters the interface board 1330 through this, and the processed packets are sent from the physical interface card 1333 . The physical interface card 1333 includes at least one physical interface, and the physical interface is also called a physical port. The physical interface card 1333 corresponds to the FlexE physical interface in the system architecture. The physical interface card 1333, also called a daughter card, can be installed on the interface board 1330, and is responsible for converting the optoelectronic signal into a message, and after checking the validity of the message, it is forwarded to the network processor 1332 for processing. In some embodiments, the central processor 1331 of the interface board 1330 can also perform the functions of the network processor 1332 , such as implementing software forwarding based on a general-purpose CPU, so that the network processor 1332 is not required in the physical interface card 1333 .
可选地,网络设备1300包括多个接口板,例如网络设备1300还包括接口板1340,接口板1340包括:中央处理器1341、网络处理器1342、转发表项存储器1344和物理接口卡1343。Optionally, the network device 1300 includes multiple interface boards. For example, the network device 1300 further includes an interface board 1340 . The interface board 1340 includes a central processing unit 1341 , a network processor 1342 , a forwarding table entry storage 1344 and a physical interface card 1343 .
可选地,网络设备1300还包括交换网板1320。交换网板1320也可以称为交换网板单元(switch fabric unit,SFU)。在网络设备有多个接口板1330的情况下,交换网板1320用于完成各接口板之间的数据交换。例如,接口板1330和接口板1340之间可以通过交换网板1320通信。Optionally, the network device 1300 further includes a switch fabric board 1320 . The switch fabric unit 1320 may also be referred to as a switch fabric unit (switch fabric unit, SFU). In the case that the network device has multiple interface boards 1330, the switching network board 1320 is used to complete data exchange between the interface boards. For example, the interface board 1330 and the interface board 1340 may communicate through the switch fabric board 1320 .
主控板1310和接口板1330耦合。例如。主控板1310、接口板1330和接口板1340,以及交换网板1320之间通过系统总线与系统背板相连实现互通。在一种可能的实现方式中,主控板1310和接口板1330之间建立进程间通信协议(inter-process communication,IPC)通道,主控板1310和接口板1330之间通过IPC通道进行通信。The main control board 1310 and the interface board 1330 are coupled. E.g. The main control board 1310 , the interface board 1330 , the interface board 1340 , and the switch fabric board 1320 are connected to the system backplane through a system bus to realize intercommunication. In a possible implementation manner, an inter-process communication (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 through the IPC channel.
在逻辑上,网络设备1300包括控制面和转发面,控制面包括主控板1310和中央处理 器1331,转发面包括执行转发的各个组件,比如转发表项存储器1334、物理接口卡1333和网络处理器1332。控制面执行路由器、生成转发表、处理信令和协议报文、配置与维护设备的状态等功能,控制面将生成的转发表下发给转发面,在转发面,网络处理器1332基于控制面下发的转发表对物理接口卡1333收到的报文查表转发。控制面下发的转发表可以保存在转发表项存储器1334中。在一些实施例中,控制面和转发面可以完全分离,不在同一设备上。Logically, the network device 1300 includes a control plane and a forwarding plane, the control plane includes the main control board 1310 and the central processing unit 1331, and the forwarding plane includes various components that perform forwarding, such as the forwarding entry storage 1334, the physical interface card 1333 and the network processing device 1332. The control plane performs functions such as routers, generating forwarding tables, processing signaling and protocol packets, configuring and maintaining device status, etc. The control plane delivers the generated forwarding tables to the forwarding plane. On the forwarding plane, the network processor 1332 based on the control plane The delivered forwarding table is forwarded to the packet received by the physical interface card 1333 by looking up the table. The forwarding table issued by the control plane may be stored in the forwarding table entry storage 1334 . In some embodiments, the control plane and forwarding plane may be completely separate and not on the same device.
如果网络设备1300被配置为网络设备21,网络处理器1332可以触发物理接口卡1333接收报文。中央处理器1311可以获取报文对应的动态信息,并根据动态信息确定网络资源信息。If the network device 1300 is configured as the network device 21, the network processor 1332 can trigger the physical interface card 1333 to receive the packet. The central processing unit 1311 may acquire dynamic information corresponding to the packet, and determine network resource information according to the dynamic information.
应理解,报文处理装置1000中的发送单元等、以及网络设备1200中的通信接口1204可以相当于网络设备1300中的物理接口卡1333或物理接口卡1343;报文处理装置1000中的获取单元1001、确定单元1002等、以及网络设备1200中的处理器1201可以相当于网络设备1300中的中央处理器1311或中央处理器1331。It should be understood that the sending unit and the like in the message processing apparatus 1000 and the communication interface 1204 in the network device 1200 may be equivalent to the physical interface card 1333 or the physical interface card 1343 in the network device 1300; the obtaining unit in the message processing apparatus 1000 1001 , the determining unit 1002 , etc., and the processor 1201 in the network device 1200 may be equivalent to the central processing unit 1311 or the central processing unit 1331 in the network device 1300 .
应理解,本申请实施例中接口板1340上的操作与接口板1330的操作一致,为了简洁,不再赘述。应理解,本实施例的网络设备1300可对应于上述各个方法实施例中的报文处理装置或网络设备,该网络设备1300中的主控板1310、接口板1330和/或接口板1340可以实现上述各个方法实施例中的报文处理装置1000或网络设备1200中所具有的功能和/或所实施的各种步骤,为了简洁,在此不再赘述。It should be understood that the operations on the interface board 1340 in the embodiments of the present application are the same as the operations on the interface board 1330, and for brevity, details are not repeated here. It should be understood that the network device 1300 in this embodiment may correspond to the packet processing apparatus or network device in each of the foregoing 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 For the sake of brevity, the functions of the packet processing apparatus 1000 or the network device 1200 and/or the various steps implemented in the foregoing method embodiments will not be repeated here.
应理解,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,网络设备的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,网络设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的网络设备的数据接入和处理能力要大于集中式架构的设备。可选地,网络设备的形态也可以是只有一块板卡,即没有交换网板,接口板和主控板的功能集成在该一块板卡上,此时接口板上的中央处理器和主控板上的中央处理器在该一块板卡上可以合并为一个中央处理器,执行两者叠加后的功能,这种形态设备的数据交换和处理能力较低(例如,低端交换机或路由器等网络设备)。具体采用哪种架构,取决于具体的组网部署场景。It should be understood that there may be one or more main control boards, and when there are more than one main control board, it may include an active main control board and a backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. There may be no switch fabric boards, or there may be one or more boards. When there are multiple boards, load sharing and redundancy backup can be implemented together. Under the centralized forwarding architecture, the network device does not need to switch the network board, and the interface board is responsible for the processing function of the service data of the entire system. Under the distributed forwarding architecture, a network device may have at least one switching network board, and the switching network board realizes data exchange between multiple interface boards, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices in a distributed architecture are greater than those in a centralized architecture. Optionally, the form of the network device can also be that there is only one board, that is, there is no switching network board, and the functions of the interface board and the main control board are integrated on this board. The central processing unit on the board can be combined into a central processing unit on this board to perform the functions of the two superimposed, the data exchange and processing capacity of this form of equipment is low (for example, low-end switches or routers and other networks. equipment). The specific architecture used depends on the specific networking deployment scenario.
在一些可能的实施例中,上述各网络设备或网络设备可以实现为虚拟化设备。例如,虚拟化设备可以是运行有用于发送报文功能的程序的虚拟机(英文:Virtual Machine,VM),虚拟机部署在硬件设备上(例如,物理服务器)。虚拟机指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。可以将虚拟机配置为图5或图9中的各网络设备。例如,可以基于通用的物理服务器结合网络功能虚拟化(Network Functions Virtualization,NFV)技术来实现各网络设备或网络设备。各网络设备或网络设备为虚拟主机、虚拟路由器或虚拟交换机。本领域技术人员通过阅读本申请即可结合NFV技术在通 用物理服务器上虚拟出具有上述功能的各网络设备或网络设备,此处不再赘述。In some possible embodiments, each of the above network devices or network devices may be implemented as virtualized devices. For example, the virtualization device may be a virtual machine (English: Virtual Machine, VM) running a program for sending a message, and the virtual machine is deployed on a hardware device (for example, a physical server). A virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. The virtual machine can be configured as each network device in FIG. 5 or FIG. 9 . For example, each network device or network device may be implemented based on a general physical server combined with a Network Functions Virtualization (NFV) technology. Each network device or network device is a virtual host, a virtual router or a virtual switch. Those skilled in the art can virtualize each network device or network device with the above functions on a general physical server in combination with NFV technology by reading this application, which will not be repeated here.
应理解,上述各种产品形态的网络设备,分别具有上述方法实施例中各网络设备或网络设备的任意功能,此处不再赘述。It should be understood that the network devices in the above-mentioned various product forms respectively have the network devices or any functions of the network devices in the foregoing method embodiments, and details are not described herein again.
本申请提供的通信设备1300也可以参见图13所示。该通信设备1300可以是上述任一实施例中的用户设备、网络设备或服务设备,例如可以是图5或9所示实施例中的用户设备、网络设备或服务设备,通信设备1300可以实现上述实施例中用户设备、网络设备或服务设备的功能。该通信设备1300包括:主控板1310和接口板1330。The communication device 1300 provided by the present application may also be shown in FIG. 13 . The communication device 1300 may be user equipment, network equipment, or service equipment in any of the foregoing embodiments, for example, may be the user equipment, network equipment, or service equipment in the embodiment shown in FIG. 5 or 9, and the communication device 1300 may implement the above The function of the user equipment, network equipment or service equipment in the embodiment. The communication device 1300 includes: a main control board 1310 and an interface board 1330 .
本申请实施例还提供了一种芯片,包括处理器和接口电路,接口电路,用于接收指令并传输至处理器;处理器,例如可以是本申请实施例中报文处理装置的一种具体实现形式,可以用于执行上述报文处理方法。其中,所述处理器与存储器耦合,所述存储器用于存储程序或指令,当所述程序或指令被所述处理器执行时,使得该芯片系统实现上述任一方法实施例中的方法。The embodiment of the present application also provides a chip, including a processor and an interface circuit, the interface circuit is used to receive instructions and transmit them to the processor; the processor, for example, may be a specific type of the message processing device in the embodiment of the present application The implementation form can be used to execute the above packet processing method. The processor is coupled to a memory, and the memory is used to store programs or instructions, and when the programs or instructions are executed by the processor, the chip system enables the method in any of the foregoing method embodiments.
可选地,该芯片系统中的处理器可以为一个或多个。该处理器可以通过硬件实现也可以通过软件实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等。当通过软件实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现。Optionally, the number of processors in the chip system may be one or more. The processor can 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 codes stored in memory.
可选地,该芯片系统中的存储器也可以为一个或多个。该存储器可以与处理器集成在一起,也可以和处理器分离设置,本申请并不限定。示例性的,存储器可以是非瞬时性处理器,例如只读存储器ROM,其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请对存储器的类型,以及存储器与处理器的设置方式不作具体限定。Optionally, there may also be one or more memories in the chip system. The memory may be integrated with the processor, or may be provided separately from the processor, which is not limited in this application. Exemplarily, the memory can be a non-transitory processor, such as a read-only memory ROM, which can be integrated with the processor on the same chip, or can be provided on different chips. The setting method of the processor is not particularly limited.
示例性的,该芯片系统可以是现场可编程门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。Exemplarily, the system-on-chip may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC), It can also be a central processing unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), or a microcontroller (microcontroller). controller unit, MCU), it can also be a programmable logic device (PLD) or other integrated chips.
此外,本申请实施例还提供了一种网络系统1400,参见图14。该网络系统1400可以包括:用户设备1401、网络设备1402和服务设备1403。其中,用户设备1401,用于生成应用对应的报文,并将所述报文经过所述网络设备1402发送给所述服务设备1403;所述网络设备1402,用于执行以上方法100;所述服务设备1403,用于接收所述报文,并在向所述用户设备1401发送的所述应用对应的报文中携带所述动态信息。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 used to generate a message corresponding to the application, and send the message to the service device 1403 through the network device 1402; the network device 1402 is used to execute the above method 100; the The service device 1403 is configured to receive the message, and carry the dynamic information in the message corresponding to the application sent to the user equipment 1401 .
此外,本申请实施例还提供了一种计算机可读存储介质,计算机可读存储介质中存储有程序代码或指令,当其在计算机上运行时,使得计算机执行以上图6所示实施例中任意一种实现方式下的方法。In addition, the embodiments of the present application also provide a computer-readable storage medium, where program codes or instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium runs on a computer, the computer can execute any of the above embodiments shown in FIG. 6 . A method under an implementation.
此外,本申请实施例还提供了一种计算机程序产品,当其在计算机上运行时,使得计算机执行前述方法100中任意一种实现方式的方法。In addition, the embodiments of the present application also provide a computer program product, which, when running on a computer, enables the computer to execute the method of any one of the foregoing method 100 implementations.
应理解,本申请实施例中提到的“基于根据A确定B”并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。It should be understood that "determining B based on A" mentioned in the embodiments of the present application does not mean that B is only determined according to A, and B can also be determined according to A and/or other information.
本申请中提到的“第一报文”等名称中的“第一”只是用来做名字标识,并不代表顺序上的第一。该规则同样适用于“第二”等。The "first" in the names such as the "first message" mentioned in this application is only used for name identification, and does not represent the first in the sequence. The same rule applies to "second" etc.
通过以上的实施方式的描述可知,本领域的技术人员可以清楚地了解到上述实施例方法中的全部或部分步骤可借助软件加通用硬件平台的方式来实现。基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如只读存储器(英文:read-only memory,ROM)/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者诸如路由器等网络通信设备)执行本申请各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that all or part of the steps in the methods of the above embodiments can be implemented by means of software plus a general hardware platform. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, and the computer software product can be stored in a storage medium, such as read-only memory (English: read-only memory, ROM)/RAM, magnetic disk, An optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network communication device such as a router) to execute the methods described in various embodiments or some parts of the embodiments of the present application.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例和设备实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的设备及系统实施例仅仅是示意性的,其中作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。The various embodiments in this specification are described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiments and device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for related parts. The device and system embodiments described above are only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
以上所述仅是本申请的优选实施方式,并非用于限定本申请的保护范围。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请的前提下,还可以作出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the present application, several improvements and modifications can also be made, and these improvements and modifications should also be regarded as the protection scope of the present application.

Claims (20)

  1. 一种报文处理方法,其特征在于,包括:A message processing method, comprising:
    网络设备获取报文对应的动态信息,所述动态信息表征所述报文所属应用对应的状态;The network device obtains dynamic information corresponding to the message, where the dynamic information represents the state corresponding to the application to which the message belongs;
    所述网络设备根据所述动态信息,确定所述报文对应的网络资源信息。The network device determines network resource information corresponding to the packet according to the dynamic information.
  2. 根据权利要求1所述的方法,其特征在于,所述网络设备根据所述动态信息,确定所述报文对应的网络资源信息,包括:The method according to claim 1, wherein the network device determines the network resource information corresponding to the packet according to the dynamic information, comprising:
    所述网络设备根据所述动态信息和应用条件确定所述网络资源信息,所述应用条件包括应用特征信息和/或应用要求信息,所述应用特征信息用于表征所述应用的属性,所述应用要求信息用于表征所述应用对网络的要求。The network device determines the network resource information according to the dynamic information and application conditions, the application conditions include application characteristic information and/or application requirement information, the application characteristic information is used to characterize the attributes of the application, the The application requirement information is used to characterize the requirement of the application to the network.
  3. 根据权利要求1或2所述的方法,其特征在于,所述报文包括所述动态信息。The method according to claim 1 or 2, wherein the message includes the dynamic information.
  4. 根据权利要求1或2所述的方法,其特征在于,所述网络设备获取报文对应的动态信息,包括:The method according to claim 1 or 2, wherein the network device obtains the dynamic information corresponding to the message, comprising:
    所述网络设备根据所述报文,生成所述动态信息。The network device generates the dynamic information according to the message.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    所述网络设备更新所述报文,所述报文包括所述动态信息。The network device updates the message, and the message includes the dynamic information.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    所述网络设备更新所述报文,所述报文包括所述网络资源信息。The network device updates the message, and the message includes the network resource information.
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述网络资源信息包括以下一项或多项:服务质量等级、转发路径、带宽、网络分片、无线信道或无线频率。The method according to any one of claims 1 to 6, wherein the network resource information includes one or more of the following: quality of service level, forwarding path, bandwidth, network slice, wireless channel or wireless frequency.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    所述网络设备根据所述网络资源信息发送所述报文。The network device sends the message according to the network resource information.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, wherein the method further comprises:
    所述网络设备根据所述网络资源信息获得策略表项;obtaining, by the network device, a policy entry according to the network resource information;
    所述网络设备根据所述策略表项处理所述应用对应的报文。The network device processes the packet corresponding to the application according to the policy entry.
  10. 根据权利要求1至9任一项所述的方法,所述动态信息包括所述应用的状态值,或所述应用的状态指示,所述状态指示用于指示所述网络设备为所述应用提供增强网络资源。The method according to any one of claims 1 to 9, wherein the dynamic information includes a state value of the application, or a state indication of the application, and the state indication is used to instruct the network device to provide the application with Enhance network resources.
  11. 一种报文处理方法,其特征在于,包括:A message processing method, comprising:
    通信设备获得动态信息,所述动态信息用于表征应用对应的状态;The communication device obtains dynamic information, where the dynamic information is used to represent the state corresponding to the application;
    所述通信设备生成第一报文,所述第一报文中包括所述动态信息;generating, by the communication device, a first message, where the first message includes the dynamic information;
    所述通信设备发送所述第一报文。The communication device sends the first message.
  12. 根据权利要求11所述的方法,其特征在于,所述通信设备为网络设备或服务设备,所述通信设备获得动态信息,包括:The method according to claim 11, wherein the communication device is a network device or a service device, and the communication device obtains dynamic information, comprising:
    所述通信设备接收第二报文,所述第二报文属于所述应用;the communication device receives a second message, the second message belongs to the application;
    所述通信设备根据所述第二报文获得所述动态信息。The communication device obtains the dynamic information according to the second message.
  13. 根据权利要求12所述的方法,其特征在于,所述通信设备为所述网络设备,所述通信设备生成第一报文,包括:The method according to claim 12, wherein the communication device is the network device, and the communication device generates the first packet, comprising:
    所述通信设备更新所述第二报文,获得所述第一报文。The communication device updates the second message to obtain the first message.
  14. 根据权利要求12所述的方法,其特征在于,所述通信设备为所述服务设备,所述第二报文为所述用户设备发送的报文,所述第二报文包括所述动态信息,所述通信设备生成第一报文,包括:The method according to claim 12, wherein the communication device is the service device, the second packet is a packet sent by the user equipment, and the second packet includes the dynamic information , the communication device generates a first message, including:
    响应于所述第二报文包括所述动态信息,所述服务设备在向所述用户设备发送的所述应用对应的报文中携带所述动态信息,所述应用对应的报文包括所述第一报文。In response to the second packet including the dynamic information, the service device carries the dynamic information in a packet corresponding to the application sent to the user equipment, where the packet corresponding to the application includes the first message.
  15. 根据权利要求1至14任一项所述的方法,其特征在于,所述报文通过服务状态选项字段携带所述动态信息。The method according to any one of claims 1 to 14, wherein the message carries the dynamic information through a service status option field.
  16. 根据权利要求15所述的方法,其特征在于,所述服务状态选项字段携带在所述报文的应用感知的IPv6网络APN6选项头中。The method according to 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 for storing instructions;
    所述处理器,用于执行所述存储器中的所述指令,使得所述网络设备执行权利要求1-10或15、16任一项所述的方法。The processor is configured to execute the instructions in the memory, so that the network device executes the method according to any one of claims 1-10 or 15 and 16.
  18. 一种通信设备,其特征在于,所述通信设备包括:处理器和存储器;A communication device, characterized in that the communication device comprises: a processor and a memory;
    所述存储器,用于存储指令;the memory for storing instructions;
    所述处理器,用于执行所述存储器中的所述指令,使得所述通信设备执行权利要求11-16任一项所述的方法。The processor is configured to execute the instructions in the memory, so that the communication device executes the method of any one of claims 11-16.
  19. 一种网络系统,其特征在于,所述网络系统包括:用户设备、网络设备和服务设备;A network system, characterized in that the network system includes: user equipment, network equipment and service equipment;
    其中,所述用户设备,用于生成应用对应的报文,并将所述报文经过所述网络设备发送给所述服务设备;Wherein, the user equipment is used to generate a message corresponding to the application, and send the message to the service device through the network device;
    所述网络设备,用于执行权利要求1-10或15、16任一项所述的方法;The network device is configured to execute the method of any one of claims 1-10 or 15 and 16;
    所述服务设备,用于接收所述报文,并在向所述用户设备发送的所述应用对应的报文中携带所述动态信息。The service device is configured to receive the message, and carry the dynamic information in a message corresponding to the application sent to the user equipment.
  20. 一种计算机程序产品,其特征在于,包括计算机程序,所述计算机程序被处理器执行时实现权利要求1-16任一项所述的方法。A computer program product, characterized in that it comprises a computer program, which implements the method of any one of claims 1-16 when the computer program is executed by a processor.
PCT/CN2021/139054 2020-12-18 2021-12-17 Packet processing method and related device WO2022127895A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011511178.4A CN114650233A (en) 2020-12-18 2020-12-18 Message processing method and related equipment
CN202011511178.4 2020-12-18

Publications (1)

Publication Number Publication Date
WO2022127895A1 true WO2022127895A1 (en) 2022-06-23

Family

ID=81990978

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139054 WO2022127895A1 (en) 2020-12-18 2021-12-17 Packet processing method and related device

Country Status (2)

Country Link
CN (1) CN114650233A (en)
WO (1) WO2022127895A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115412605A (en) * 2022-08-02 2022-11-29 中国电信股份有限公司 Network message sending method and network equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118083A (en) * 2013-01-21 2013-05-22 北京交通大学 Method and device of transmitting service messages
WO2016049875A1 (en) * 2014-09-30 2016-04-07 Tencent Technology (Shenzhen) Company Limited Device and method for capturing, sharing and watching video messages
CN108934079A (en) * 2017-05-27 2018-12-04 华为技术有限公司 Resource regulating method, terminal device and network side equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118083A (en) * 2013-01-21 2013-05-22 北京交通大学 Method and device of transmitting service messages
WO2016049875A1 (en) * 2014-09-30 2016-04-07 Tencent Technology (Shenzhen) Company Limited Device and method for capturing, sharing and watching video messages
CN108934079A (en) * 2017-05-27 2018-12-04 华为技术有限公司 Resource regulating method, terminal device and network side equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115412605A (en) * 2022-08-02 2022-11-29 中国电信股份有限公司 Network message sending method and network equipment

Also Published As

Publication number Publication date
CN114650233A (en) 2022-06-21

Similar Documents

Publication Publication Date Title
US8599830B2 (en) Method and system for network aware virtual machines
US9571382B2 (en) Method, controller, and system for processing data packet
EP3737016A1 (en) Data transmission method, apparatus and system
US20220182315A1 (en) Service Packet Transmission Method and Device
US11949576B2 (en) Technologies for out-of-order network packet management and selective data flow splitting
CN107534981B (en) Resource reallocation
JP2005537764A (en) Mechanism for providing QoS in a network using priority and reserve bandwidth protocols
US11165716B2 (en) Data flow processing method and device
JP3639792B2 (en) Network system and communication bandwidth control method thereof
US20220278904A1 (en) Method, Apparatus, and System for Sending Packet and Receiving Packet to Perform OAM
US9800479B2 (en) Packet processing method, forwarder, packet processing device, and packet processing system
US20220286409A1 (en) Method and apparatus for configuring quality of service policy for service, and computing device
WO2022127895A1 (en) Packet processing method and related device
WO2022048418A1 (en) Method, device and system for forwarding message
WO2022111372A1 (en) Message transmission method and apparatus, device, and computer-readable storage medium
Lebrun Reaping the benefits of ipv6 segment routing
CN115766605A (en) Network congestion control method, device and system
JP2020017903A (en) Communication system, communication control method, and communication device
CN113765865A (en) Message processing method, device and system
CN113595920A (en) Network congestion control method and equipment
WO2022166465A1 (en) Message processing method and related apparatus
US11805071B2 (en) Congestion control processing method, packet forwarding apparatus, and packet receiving apparatus
EP4195763A1 (en) Packet processing method and related device
CN113316769A (en) Method for using event priority based on rule feedback in network function virtualization
Sathyanarayana et al. Design, Implementation, and Evaluation of Host-based In-band Network Telemetry for TCP

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21905821

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21905821

Country of ref document: EP

Kind code of ref document: A1