WO2021197253A1 - Service message transmission method and related device - Google Patents

Service message transmission method and related device Download PDF

Info

Publication number
WO2021197253A1
WO2021197253A1 PCT/CN2021/083549 CN2021083549W WO2021197253A1 WO 2021197253 A1 WO2021197253 A1 WO 2021197253A1 CN 2021083549 W CN2021083549 W CN 2021083549W WO 2021197253 A1 WO2021197253 A1 WO 2021197253A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
service type
server identifier
traffic forwarding
correspondence
Prior art date
Application number
PCT/CN2021/083549
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 WO2021197253A1 publication Critical patent/WO2021197253A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0205Traffic management, e.g. flow control or congestion control at the air interface

Definitions

  • This application relates to the field of communication technology, and in particular to a method for transmitting service messages and related equipment.
  • the terminal can request service messages from the application server through the WiFi network.
  • the traffic forwarding device in the WiFi network can transmit service messages according to several priorities. Among them, when the WiFi network is congested, the traffic forwarding device preferentially transmits the service message corresponding to the highest priority.
  • service messages of different service types have different tolerances to congestion.
  • the traffic forwarding device can configure different transmission priorities for service messages according to the service type of the service message. For example, the service message of the game service has a relatively low tolerance for network congestion, and the traffic forwarding device may configure a relatively high transmission priority for the service message of the game service. For another example, the service message of the download service has a relatively high tolerance for network congestion, and the traffic forwarding device can configure a relatively low transmission priority for the service message of the download service.
  • the existing method for configuring the transmission priority of service messages is not only slow in execution speed, but also has poor performance, resulting in poor transmission performance of service messages.
  • the embodiments of the present application provide a service message transmission method and related equipment to solve the problem of poor performance of the existing mechanism for configuring service message transmission priority.
  • an embodiment of the present application provides a service message transmission method, the method includes: a traffic forwarding device receives a service request from a terminal, the service request includes a first server identifier, and the first server identifier Used to distinguish the first application server from other application servers.
  • the first application server is the application server from which the terminal requests the service; the traffic forwarding device determines the first service request according to the first server identifier. Service type; the traffic forwarding device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
  • the terminal can access the WiFi network through the traffic forwarding device.
  • the terminal can run various application programs (application, APP), and each APP can communicate with the application server corresponding to the APP through the WiFi network to realize the transmission of service messages.
  • the traffic forwarding device supports the configuration of air interface resources, the forwarding of service packets, and the transmission priority of the configured air interface resources.
  • Air interface resource transmission priority refers to the air interface resource transmission priority of service packets, and can also be described as the transmission priority of service packets.
  • business messages can be defined as different business types, and there is a certain correspondence between the business types and the transmission priority of the business messages.
  • the terminal may send a service request to the traffic forwarding device to request the traffic forwarding device to allocate air interface resources and configure the transmission priority of the air interface resources.
  • the service request may include the server identification of the application server corresponding to the corresponding APP.
  • the traffic forwarding device can read the server identifier from the service request, and then can determine the service type of the service request according to the server identifier. After that, the traffic forwarding device determines the transmission priority corresponding to the service request according to the correspondence between the service type and the priority, and further, transmits the service message corresponding to the service request according to the determined priority.
  • the traffic forwarding device does not need to parse the content of the service message, and can determine the service type corresponding to the service request based on the server identifier, so that the service type corresponding to the service request can be quickly determined, thereby improving the transmission of the service message performance.
  • the traffic forwarding device determining the first service type of the service request according to the first server identifier includes: the traffic forwarding device determining whether the first correspondence relationship with the first service type is included in the first correspondence A service type corresponding to a server identifier, the first correspondence relationship includes at least one correspondence relationship between a server identifier and a service type; if the first correspondence relationship includes a service type corresponding to the first server identifier, the traffic The forwarding device determines the service type corresponding to the first server identifier as the first service type; if the first correspondence does not include the service type corresponding to the first server identifier, the traffic forwarding device The first service type is determined according to the attribute information of the service packet corresponding to the service request, where the attribute information includes the length of each service packet corresponding to the service request and the interval time between service packets.
  • the first correspondence includes at least one correspondence between a server identifier and a service type.
  • Each set of correspondences in the first correspondence may be established in an implementation scenario where the service request to which the corresponding server identifier belongs is issued for the first time.
  • the traffic forwarding device can determine that the first correspondence does not include The service type corresponding to the first server identifier.
  • the traffic forwarding device may determine the first service type according to the attribute information of the service packet corresponding to the service request.
  • the traffic forwarding device can determine that the first correspondence is with the first The service type corresponding to the server ID.
  • the attribute information refers to the length of all business messages involved in the complete business process corresponding to the business request, and the length of the interval between each business message.
  • the length of each service message in the business process corresponding to any service type and the interval time between each service message are usually unchanged. Therefore, this application can determine the service type according to the attribute information of the service message.
  • the traffic forwarding device can determine the service type corresponding to the service request according to the attributes of the service message in the entire business process, so that the determination process of the service type is not affected by the structure and content of the service message, and the determination method is stable and applicable Wide sex.
  • the traffic forwarding device determines the first service type according to the attribute information of the service message corresponding to the service request, including: the traffic forwarding device parses the attribute information according to a preset analysis rule Obtain the first service type.
  • the traffic forwarding device may generate the characteristic information of the service request according to the attribute information, and then input the characteristic information into a preset analysis model to obtain the first service type.
  • the method further includes: establishing, by the traffic forwarding device, a correspondence between the first server identifier and the first service type; The traffic forwarding device sends the corresponding relationship between the first server identifier and the first service type to the network service device, so that the network service device updates the first corresponding relationship.
  • the first correspondence can be maintained on the network service device side.
  • the traffic forwarding device determines the first service type according to the attribute information, it can send the corresponding relationship between the first server identifier and the first service type to the network service device side, so that the network service device side can update the first corresponding relationship in time .
  • the network service equipment can be any equipment that provides network resources, and equipment used to manage network equipment, including network management servers, network engines, optical line terminal (OLT) equipment, and so on.
  • the traffic forwarding device determines the first service type according to the attribute information of the service message corresponding to the service request, including: the traffic forwarding device sends the attribute information to the network service device The traffic forwarding device receives the first service type from the network service device.
  • the above analysis model may be set in a network service device.
  • the traffic forwarding device may send the attribute information to the network service device, so that the network service device determines the first service type according to the attribute information.
  • the traffic forwarding device determining whether the first correspondence includes a service type corresponding to the first server identifier includes: the traffic forwarding device sends the first server identifier to the network Service device, so that the network service device searches for the service type corresponding to the first server identifier in the first correspondence relationship; the traffic forwarding device receives the first service from the network service device Type or response information, where the response information indicates that the first correspondence does not include the service type corresponding to the first server identifier. Since the first correspondence is maintained on the network service device side, in some embodiments, the traffic forwarding device may send the first server identifier to the network service device, so that the network service device can search for the first server in the first correspondence relationship. Identifies the corresponding business type.
  • the traffic forwarding device can perform subsequent operations according to the query result fed back from the network service device. Not detailed here. It can be seen that with this implementation method, the process of determining the service type does not require complicated calculation and analysis, and the speed of determining the service type can be accelerated, thereby improving the performance of identifying the service type, and further improving the performance of service message transmission.
  • the method before the traffic forwarding device sends the first server identifier to the network service device, the method further includes: the traffic forwarding device determining whether the second correspondence relationship includes the first server identifier Corresponding service type, the second correspondence is the correspondence between the server identifier maintained by the traffic forwarding device and the service type, and the second correspondence includes part of the information in the first correspondence; if the first correspondence is The second correspondence includes the service type corresponding to the first server identifier, and the traffic forwarding device determines the service type corresponding to the first server identifier as the first service type; if the second correspondence Does not include the service type corresponding to the first server identifier, and the traffic forwarding device sends the first server identifier to the network service device.
  • the traffic forwarding device may maintain a second correspondence relationship, for example, and the second correspondence relationship includes a correspondence relationship between at least one server identifier and a service type.
  • the traffic forwarding device usually has a small storage space, so the information in the second correspondence is part of the information in the first correspondence. Based on this, the traffic forwarding device may first determine whether the second correspondence relationship includes the service type corresponding to the first server identifier after receiving the service request. If the second correspondence includes the service type corresponding to the first server identifier, the traffic forwarding device may determine the priority according to the service type, and then transmit the service message corresponding to the service request according to the priority.
  • the traffic forwarding device sends the first server identifier to the network service device, so that the network service device searches for the first server identifier corresponding to the first server identifier in the first corresponding relationship Business type. This saves time in determining the type of business.
  • the method further includes: the traffic forwarding device receives the correspondence between the second server identifier from the network service device and the second service type; the traffic forwarding device is based on the second server identifier The corresponding relationship with the second service type updates the second corresponding relationship. Wherein, if the traffic forwarding device maintains the second corresponding relationship, in some embodiments, the traffic forwarding device may receive the new corresponding relationship broadcast by the network service device, and further, update the second corresponding relationship according to the received new corresponding relationship.
  • an embodiment of the present application provides a service packet transmission method, the method includes: a network service device receives a first server identifier from a traffic forwarding device, and the first server identifier is used to transfer a first application
  • the server is distinguished from other application servers, the first server identifier is included in the service request received by the traffic forwarding device, the first application server is the application server of the terminal requesting the service; the network service device determines the first A service type corresponding to the first server identifier in a corresponding relationship, the first corresponding relationship includes at least one corresponding relationship between a server identifier and a service type; if the first corresponding relationship includes a corresponding relationship with the first server identifier Corresponding to the service type, the network service device sends the service type as the first service type to the traffic forwarding device, so that the traffic forwarding device transmits the service according to the priority corresponding to the first service type Request the corresponding business message.
  • the service type there is a certain correspondence between the service type and the transmission priority of
  • the network service device may search for the service type corresponding to the first server identifier in the first correspondence relationship, and then, after finding the service type corresponding to the first server identifier, send the service type to The traffic forwarding device, so that the traffic forwarding device determines the transmission priority corresponding to the service request according to the correspondence between the service type and the priority, and further, transmits the service message corresponding to the service request according to the determined priority.
  • the network device maintains the correspondence between the server identifier and the service type, and uses the correspondence to determine the subsequent service type, so that the process of determining the service type does not require complicated calculation and analysis, and the speed of determining the service type can be accelerated, thereby Improve the performance of identifying service types, thereby improving the performance of service message transmission.
  • the method further includes: the network service device receives a second server identifier from the traffic forwarding device, where the second server identifier is used to distinguish the second application server from other application servers; The network service device determines the service type corresponding to the second server identifier in the first correspondence; if the first correspondence does not include the service type corresponding to the second server identifier, the network The service device sends response information to the traffic forwarding device, where the response information is used to trigger the traffic forwarding device to determine the second service type according to the second server identifier.
  • each set of correspondences in the first correspondence may be established in the implementation scenario where the service request to which the corresponding server identifies the service is issued for the first time. Based on this, when the first correspondence does not include the service type corresponding to the second server identifier, the network service device can trigger the traffic forwarding device to determine the second service type according to the second server identifier.
  • the method further includes: the network service device receiving the second server identifier and the second server identifier from the traffic forwarding device Correspondence of the second service type; the network service device updates the first correspondence according to the correspondence between the second server identifier and the second service type.
  • the network service equipment end can update the first correspondence in time.
  • the network service device after the network service device sends response information to the traffic forwarding device, it further includes: the network service device receives attribute information from the traffic forwarding device, and the attribute information includes all The second server identifies the length of each service message corresponding to the service request and the interval time between service messages; the network service device parses the attribute information according to a preset analysis rule to obtain the second service type; The network service device sends the second service type to the traffic forwarding device.
  • the network service device can determine the service type corresponding to the service request according to the attributes of the service message in the entire business process of the service request, so that the determination process of the service type is not affected by the structure and content of the service message, and the determination method is stable And the applicability is wide.
  • it further includes: the network service device is connected to the network service device, and other traffic forwarding devices other than the traffic forwarding device broadcast the second server identifier and the second Correspondence of business types.
  • an embodiment of the present application also provides a traffic forwarding device, which includes functional modules for executing the method steps in the first aspect and the implementation manners of the first aspect.
  • an embodiment of the present application also provides a network service device, which includes functional modules for executing the method steps in the second aspect and the implementation manners of the second aspect.
  • an embodiment of the present application provides a traffic forwarding device, including a transceiver, a processor, and a memory.
  • the transceiver, the processor, and the memory may be connected through a bus system.
  • the transceiver is used to perform data transmission and reception with network service equipment and terminals.
  • the memory is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the memory to implement the first aspect or any one of the possible design methods of the first aspect.
  • an embodiment of the present application provides a network service device, including a transceiver, a processor, and a memory.
  • the transceiver, the processor, and the memory may be connected through a bus system.
  • the transceiver is used to send and receive data with the traffic forwarding device.
  • the memory is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the memory to implement the second aspect or any one of the possible design methods of the second aspect.
  • the present application provides a computer-readable storage medium having instructions stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute the first aspect, the second aspect, and the first aspect Any possible design or method in any possible design of the second aspect.
  • the network equipment involved in the embodiments of the present application can determine the service type corresponding to the service request according to the attributes of the service message in the entire service process, so that the process of determining the service type is not affected by the structure of the service message. And the influence of content, the determination method is stable and widely applicable.
  • the network device maintains the corresponding relationship between the server identifier and the service type, and uses the corresponding relationship to determine the subsequent service type, so that the process of determining the service type does not require complicated calculation and analysis, which can speed up the determination of the service type, thereby improving the identification service Type of performance, thereby improving the performance of service message transmission.
  • FIG. 1 is a schematic diagram of the structure of the WiFi network architecture 10 provided by the present application.
  • FIG. 2 is a method flowchart of the service message transmission method 100 provided by this application.
  • FIG. 3 is a method flowchart of the service message transmission method 200 provided by the present application.
  • FIG. 3A is an exemplary signaling interaction diagram of step S202 in the embodiment illustrated in FIG. 3;
  • FIG. 3B is an exemplary signaling interaction diagram of step S204 in the embodiment illustrated in FIG. 3;
  • FIG. 3C is another exemplary signaling interaction diagram of step S204 in the embodiment illustrated in FIG. 3;
  • FIG. 4 is a schematic structural diagram of the WiFi network architecture 20 provided by the present application.
  • FIG. 5A is a signaling interaction diagram of the corresponding relationship creation method 300 provided by the present application.
  • FIG. 5B is a signaling interaction diagram of the service message transmission method 400 provided by this application.
  • FIG. 6A is a schematic diagram of an exemplary composition of the traffic forwarding device 60 provided by this application.
  • FIG. 6B is a schematic diagram of an exemplary structure of the traffic forwarding device 61 provided by this application.
  • FIG. 7A is a schematic diagram of an exemplary composition of the network service device 70 provided by this application.
  • FIG. 7B is a schematic diagram of an exemplary structure of the network service device 71 provided by this application.
  • FIG. 1 illustrates a WiFi network architecture 10.
  • the WiFi network architecture 10 includes a terminal 11, a traffic forwarding device 12 and a network service device 13.
  • the network service device 13 may be used to provide network resources and the like to the terminal 11.
  • the traffic forwarding device 12 may be used to provide the terminal 11 with an interface for accessing a WiFi network, and configure and manage traffic resources requested by the terminal 11 for services. After the terminal 11 accesses the WiFi network through the traffic forwarding device 12, it can perform business access through the WiFi network.
  • the terminal 11 may be any device that supports wireless network connection, including: smart phones, tablet computers, smart home equipment, industrial control equipment, vehicle equipment, and so on.
  • the terminal 11 may include but is not limited to carrying Or other operating system electronic devices.
  • the terminal 11 can run various application programs (application, APP), for example, a game APP, a reading APP, a multimedia APP, and so on.
  • Each APP can communicate with the application server corresponding to the APP through the WiFi network to realize the transmission of service messages.
  • a certain game APP can transmit game messages on a WiFi network and an application server corresponding to the game APP.
  • a certain multimedia APP can transmit audio and video messages with the application server corresponding to the multimedia APP.
  • the traffic forwarding device 12 may be any device that supports air interface resource configuration and service message forwarding, including routers, switches, optical network terminal (ONT) devices, and the like.
  • an optical line terminal (OLT) device may also be used as a traffic forwarding device.
  • the traffic forwarding device 12 may configure air interface resources for the service request and the priority of the air interface resource transmission. After that, the traffic forwarding device 12 may use the configured air interface resources to transmit the service requested by the service. Message.
  • the traffic forwarding device 12 can also be used to convert optical signals into Ethernet signals, configure network bandwidth, and can also provide an Ethernet interface for the terminal 11, etc.
  • the network service device 13 may be any device that provides network resources, and a device used to manage network devices, including a network management server, a network engine, and the like. In other embodiments, the network service device 13 may also include an OLT device. The network service device 13 can configure network resources for the terminal 11 through the traffic forwarding device 12. The network service device 13 may also maintain the air interface resource information of the traffic forwarding device 12 and so on.
  • the terminal 11 when any APP installed by the terminal 11 is running, the terminal 11 sends a service request to the traffic forwarding device 12.
  • the service request is used to request the traffic forwarding device 12 to allocate air interface resources, and the allocated air interface resources are used to transmit the APP and the corresponding Business packets between application servers.
  • the service request may include the internet protocol (IP) address of the terminal 11, the IP address of the application server, the communication port number of the terminal 11, and the communication port number of the application server.
  • IP internet protocol
  • the traffic forwarding device 12 can configure the air interface resources and the priority of the air interface resource transmission for the terminal 11 and the application server according to the information in the service request.
  • the air interface resource may be referred to as the "service connection” or "service channel” of the service request.
  • service connection or "traffic channel” is referred to below in this specification, which essentially refers to the air interface resources described in this embodiment.
  • the air interface resource can be set to different priorities according to the service type of the service message transmitted by the air interface resource.
  • the priority is used to indicate the order in which service packets of the air interface resource are transmitted in a network congestion scenario. For example, in a network congestion scenario, service packets transmitted by air interface resources with the highest priority are transmitted preferentially.
  • the priority of the air interface resource can also be described as the transmission priority of the service message.
  • the priority of the air interface resource may be defined as 4 levels, for example.
  • the service messages involved in this application can be defined as different service types.
  • the service types include game service, download service, video service, file service, etc.
  • the priority of the air interface resource (also referred to as the priority of the service message) usually has a certain corresponding relationship with the service type of the service message. For example, the game business corresponds to the highest priority.
  • the traffic forwarding device 12 may set the priority of the air interface resources according to the service type.
  • the traffic forwarding device determines the service type of the service message by identifying the content of the service message. In this implementation manner, the traffic forwarding device identifies the content of the service message according to the pre-stored identification rule. However, the identification rules pre-stored by the traffic forwarding device are defined by each APP. If the corresponding APP update causes the identification rule to change or a new APP appears, the traffic forwarding device will not be able to determine the service type of the corresponding APP corresponding to the service request, and therefore, the corresponding service cannot be set. The transmission priority of the message.
  • the traffic forwarding device identifies the service type according to the initial N service packets of the service request, where N is, for example, a positive integer greater than 0 and less than 200.
  • N is, for example, a positive integer greater than 0 and less than 200.
  • the traffic forwarding device needs to collect the initial N business packets before performing the identification operation, and the speed of determining the priority is relatively slow.
  • the traffic forwarding device can only transmit the initial N business packets according to the lowest priority. It can be seen that the existing methods have poor performance in determining the service type, which in turn leads to poor transmission performance of the service message.
  • the embodiment of the application provides a service message transmission method and related equipment, wherein the traffic forwarding device determines the service type of the service request according to the server identifier corresponding to the service request, and then the traffic forwarding device corresponds to the determined service type The priority of transmitting the service message corresponding to the service request.
  • the traffic forwarding device can not only quickly determine the service type corresponding to the service request, thereby improving the performance of determining the service type, and in turn, can improve the transmission performance of the service message.
  • the present application provides an embodiment of a service message transmission method.
  • the service message transmission method 100 (hereinafter referred to as the method 100) provided by the present application is applied to the traffic forwarding device 12, and includes the following steps:
  • Step S101 The traffic forwarding device receives a service request from the terminal.
  • the traffic forwarding device may be any of the following devices: routers, switches, ONT devices, and OLT devices, for example.
  • the terminal may be, for example, a user equipment (UE) that accesses a WiFi network through a traffic forwarding device, such as a mobile phone, a tablet computer, a notebook computer, and the like.
  • UE user equipment
  • the service request is used by the terminal to request a service from the first application server.
  • the first application server is an application server corresponding to an APP on the terminal.
  • the service request includes a first server identifier, and the first server identifier is used to distinguish the first application server from other application servers.
  • the first server identifier may be, for example, the IP address of the first application server, or the universally unique identifier (UUID) of the first application server.
  • UUID universally unique identifier
  • Step S102 The traffic forwarding device determines the first service type of the service request according to the first server identifier.
  • the devices involved in the WiFi network architecture can establish and maintain the corresponding relationship between the server ID and the service type. Furthermore, after the traffic forwarding device obtains the first server ID, it can determine the service type corresponding to the service request according to the first server ID, and obtain The first type of business.
  • the device involved in the WiFi network architecture may not maintain the first service type corresponding to the first server identifier.
  • the devices involved in the WiFi network architecture can establish a corresponding relationship between the first server identifier and the first service type, and maintain the corresponding relationship between the first server identifier and the first service type.
  • the service request in step S101 is a service request that has already occurred in the WiFi network architecture
  • the corresponding relationship between the first server identifier and the first service type has been maintained in the devices involved in the WiFi network architecture
  • the traffic forwarding device can be based on the first server identifier Determine the first type of business.
  • this step please refer to the description below in this specification for details, which will not be described in detail here.
  • Step S103 The traffic forwarding device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
  • the traffic forwarding device may obtain the priority corresponding to the first service type, and then transmit the service message corresponding to the service request according to the obtained priority.
  • the device involved in the WiFi network structure may establish a corresponding relationship between the service type and the server identifier of the application server. Furthermore, after receiving the service request, the traffic forwarding device obtains the server identifier from the service request, where the server identifier indicates the application server corresponding to the service request. After that, the traffic forwarding device can obtain the service type corresponding to the server identifier, thereby obtaining the service type corresponding to the service request. Then, the traffic forwarding device obtains the priority corresponding to the service type, and further, the traffic forwarding device can transmit the service message corresponding to the service request according to the priority.
  • the traffic forwarding device after the traffic forwarding device receives the service request, it does not need to parse the content of the service message, and can determine the service type corresponding to the service request based on the server identifier, so that the service type corresponding to the service request can be quickly determined In turn, the transmission performance of service messages can be improved.
  • Fig. 3 shows a method flow chart of a service message transmission method.
  • the service message transmission method 200 (hereinafter referred to as the method 200) includes the following steps:
  • Step S201 The traffic forwarding device receives a service request from the terminal.
  • step S101 is similar to step S101 illustrated in method 100.
  • step S101 in method 100 please refer to the description of step S101 in method 100, which will not be repeated here.
  • the user triggers the operation of the game APP "WGame” installed on the terminal side.
  • the "W Game” APP sends a service request to the traffic forwarding device, and the service request contains the IP address "IP001" of the "W Game Server".
  • the IP address of the "W game server” is, for example, the first server identifier.
  • Step S202 The traffic forwarding device determines whether the service type corresponding to the first server identifier is included in the first correspondence, if it does, execute step S203; if it does not, execute step S204.
  • the first correspondence includes at least one correspondence between a server identifier and a service type.
  • the realization form of the first correspondence is shown in Table 1.
  • Table 1 illustrates four sets of exemplary correspondences.
  • the "server identification” is, for example, the IP address of each application service.
  • each IP address corresponds to the service type in the same row of the IP address.
  • "IP address 1" and "video service” have a corresponding relationship, and can also be expressed as the service type corresponding to "IP address 1" is "video service”.
  • "IP address 2" has a corresponding relationship with "download service”, that is, the service type corresponding to "IP address 2" is "download service”.
  • the correspondence between other IP addresses and service types in Table 1 is the same, and this application will not list them one by one here.
  • Table 1 is only a schematic example, and should not constitute a limitation to the first correspondence described in this application.
  • the server identifiers in Table 1 are not limited to IP addresses, and the first correspondence may also include more or fewer correspondences. No more details here.
  • each set of correspondences in the first correspondence may be established in the implementation scenario where the corresponding server identifies the service request to which it belongs for the first time.
  • the correspondence between "IP address 3" and "game service” in Table 1 is established in a scenario where a service request containing "IP address 3" first appeared in the network architecture. Based on this, when the service request is the first service request that appears in the network structure, the corresponding relationship between the first server identifier and the service type is not stored in the first correspondence, and the traffic forwarding device can determine that the first correspondence is not in the first correspondence. Contains the service type corresponding to the first server identifier.
  • the traffic forwarding device may determine A service type corresponding to a server identifier.
  • the first correspondence may be maintained on the network service device side.
  • the functions of the network service device are as described in the foregoing embodiment, and will not be repeated here.
  • the network service device when the traffic forwarding device is any one of a router, an ONT, or an OLT, the network service device may be a network management server. In other embodiments, when the traffic forwarding device is a router or an ONT, the network service device may be an OLT or a network management server.
  • an exemplary signaling interaction process in this step may include the following steps:
  • Step S2021 The traffic forwarding device sends the first server identifier to the network service device.
  • the traffic forwarding device sends "IP001" to the network service device.
  • step S2022 the network service device determines whether the first correspondence relationship includes the service type corresponding to the first server identifier, if it does, execute step S2023; if it does not include it, execute step S2024.
  • the network service device may, for example, traverse the first correspondence relationship, and if the first server identifier is found in the first correspondence relationship through the traversal, read the service type corresponding to the first server identifier. If the first server identifier is not found in the first correspondence through traversal, it means that the first correspondence does not include the correspondence between the first server identifier and the service type.
  • the network service device may traverse the column corresponding to the “server identification” in Table 1, for example. If the column contains "IP001”, the network service device can read the service type corresponding to "IP001", and then the network service device can perform step S2023. If the column does not contain "IP001", the network service device can perform step S2024.
  • Step S2023 The network service device sends the service type to the traffic forwarding device.
  • the traffic forwarding device may perform step S203.
  • Step S2024 The network service device responds to the traffic forwarding device.
  • the response information is used to indicate that the first correspondence relationship does not include the service type corresponding to the first server identifier.
  • the traffic forwarding device may perform step S204.
  • the traffic forwarding device may maintain a second correspondence relationship, for example, and the second correspondence relationship includes a correspondence relationship between at least one server identifier and a service type. Before step S2021, the traffic forwarding device may determine whether the second correspondence relationship includes the service type corresponding to the first server identifier, and if the second correspondence relationship includes the service type corresponding to the first server identifier, the traffic forwarding device performs step S203 . If the second correspondence does not include the service type corresponding to the first server identifier, the traffic forwarding device executes step S2021.
  • the traffic forwarding device usually has a small storage space, so the information in the second correspondence is part of the information in the first correspondence.
  • the second correspondence includes 80 sets of correspondences, and the first correspondence includes 2000 sets of correspondences.
  • the correspondence in the second correspondence is established by the traffic forwarding device.
  • the correspondence in the second correspondence is received by the traffic forwarding device from the network service device.
  • Step S203 The traffic forwarding device determines the service type corresponding to the first server identifier as the first service type.
  • the service type corresponding to the IP address “IP001” of the “W game server” is, for example, “game service”.
  • the traffic forwarding device determines the game service as the first service type.
  • Step S204 The traffic forwarding device determines the first service type according to the attribute information of the service message corresponding to the service request.
  • the attribute information may include the length of each service message corresponding to the service request and the interval time between service messages.
  • the traffic forwarding device or the network service device may establish the corresponding relationship between the first server identifier and the first service type. It is understandable that the content or structure of the business message may be changed, but the length of each business message in the business process corresponding to any service type and the interval time between each business message are usually unchanged. Based on this, in the embodiment of the present application, the traffic forwarding device or the network service device may determine the service type corresponding to the corresponding service request according to the above-mentioned attribute information of the service packet.
  • the traffic forwarding device can collect the attribute information related to the complete business process corresponding to the service request, including the length of all business packets involved in the complete business process, and the interval between each business message duration. After that, the traffic forwarding device can generate the characteristic information of the service request according to the attribute information.
  • the characteristic information includes, for example, the length, quantity, and proportion of the longest business message, the length, quantity, and proportion of the shortest business message, and the length and proportion of different intervals.
  • the traffic forwarding device may determine the service type corresponding to the service request according to the above-mentioned characteristic information to obtain the first service type.
  • the traffic forwarding device may input the above-mentioned characteristic information into a preset analysis model to obtain the first service type.
  • the preset analysis model can be obtained through machine learning in advance.
  • the foregoing implementation manner of determining the service type according to the attribute information of the service message is only a schematic description, and does not constitute a limitation to the embodiment of the present application.
  • the information on which the service type is determined may be more or less, or the service type may be directly obtained according to the attribute information. There is no restriction here.
  • the above analysis model may be set in a traffic forwarding device.
  • the traffic forwarding device is used to perform the operation of determining the first service type.
  • the above analysis model may be set in a network service device.
  • the network service device is used to perform the operation of determining the first service type.
  • this step can be implemented in the following two exemplary implementation manners.
  • Implementation method 1 The analysis model is set in the traffic forwarding device
  • the first exemplary signaling interaction process in this step may include the following steps:
  • Step S2041 The traffic forwarding device parses the attribute information according to a preset analysis rule to obtain the first service type.
  • the preset analysis rules include the above-mentioned rule for generating feature information of the service request based on the attribute information and the above-mentioned analysis model.
  • the implementation process for the traffic forwarding device to parse the attribute information to obtain the first service type is described in detail in the foregoing embodiment, and will not be repeated here.
  • this embodiment may also include:
  • Step S2042 The traffic forwarding device establishes a corresponding relationship between the first server identifier and the first service type.
  • the traffic forwarding device may add the correspondence between the first server identifier and the first service type to the second correspondence to update the second correspondence. Correspondence.
  • the traffic forwarding device when the traffic forwarding device adds the correspondence between the first server identifier and the first service type to the second correspondence, the traffic forwarding device may also delete the earliest added correspondence in the second correspondence. .
  • Step S2043 The traffic forwarding device sends the corresponding relationship between the first server identifier and the first service type to the network service device.
  • Step S2044 The network service device updates the first correspondence.
  • the network service device may add the correspondence between the first server identifier and the first service type to the first correspondence to obtain the updated first correspondence.
  • the network service device may also broadcast the corresponding relationship between the first server identifier and the first service type to other traffic forwarding devices connected to the network service device, so that other traffic forwarding devices can update corresponding traffic forwarding devices.
  • Other traffic forwarding devices refer to traffic forwarding devices other than the traffic forwarding device connected to the network service device.
  • Implementation method 2 The analysis model is set in the network service equipment
  • the second exemplary signaling interaction process in this step may include the following steps:
  • Step S2045 The traffic forwarding device sends the attribute information to the network service device.
  • the attribute information is as described in the above embodiment.
  • Step S2046 The network service device parses the attribute information according to a preset analysis rule to obtain the first service type.
  • the implementation process for the network service device to obtain the first service type according to the attribute information is similar to step S2041 illustrated in FIG. 3B, and will not be described in detail here.
  • the network service device may establish a correspondence between the first server identifier and the first service type, and then update the first correspondence according to the correspondence between the first server identifier and the first service type.
  • Step S2047 The network service device sends the first service type to the traffic forwarding device.
  • the network service device may also broadcast the correspondence between the first server identifier and the first service type to the traffic forwarding device connected to the network service device.
  • the traffic forwarding device broadcast may update the second correspondence relationship according to the correspondence relationship between the first server identifier and the first service type.
  • the network service device may also receive the second server identifier from other traffic forwarding devices. After that, the network service device searches for the service type corresponding to the second server identifier from the first correspondence relationship. Exemplarily, if the network service device does not find the service type corresponding to the second server identifier in the first correspondence, the network service device may send response information to the corresponding traffic forwarding device to trigger the corresponding traffic forwarding device to determine with the second server Identifies the corresponding second service type. In this embodiment, the network service device may determine the correspondence between the second server identifier and the second service type, or receive the correspondence between the second server identifier and the second service type from other traffic forwarding devices.
  • the network service device may, for example, also broadcast the correspondence between the second server identifier and the second service type to the traffic forwarding device.
  • the traffic forwarding device may also update the second correspondence relationship according to the correspondence relationship between the second server identifier and the second service type. Not detailed here.
  • Step S205 The traffic forwarding device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
  • the network device involved in the embodiments of the present application determines the service type corresponding to the service request according to the attributes of the service message in the entire service process, so that the service type determination process is not affected by the structure and content of the service message, and the determination method Stable and wide applicability.
  • the network device maintains the corresponding relationship between the server identifier and the service type, and uses the corresponding relationship to determine the subsequent service type, so that the process of determining the service type does not require complicated calculation and analysis, which can speed up the determination of the service type, thereby improving the identification service Type of performance, thereby improving the performance of service message transmission.
  • FIG. 4 shows a WiFi network architecture 20.
  • the network architecture 20 includes a mobile phone 21, a router 22, an ONT device 23, an OLT device 24, and a network management server 25.
  • the mobile phone 21 can access the ONT device 23, the OLT device 24, and the network management server 25 through the router 22 to provide a WiFi network.
  • the network management server 25 may be responsible for managing and configuring network resources and the like.
  • the OLT device 24 may be responsible for sending Ethernet data to the ONT device 23 in a broadcast manner, and allocating bandwidth for the ONT device 23.
  • the OLT device 24 is used as a network service device for description.
  • the ONT device 23 can be used to convert optical signals into Ethernet signals, and can also configure air interface resources for the mobile phone 21, and forward service packets of the mobile phone 21, and so on.
  • the ONT device 23 is used as a traffic forwarding device for description.
  • the router 22 can expand the coverage of the network signal provided by the ONT device 11 and serve as a wireless access point to connect your mobile phone 21 to the network.
  • the mobile phone 21 can install multiple APPs, for example. When each APP is running, the mobile phone 21 sends a service request to the ONT device 23, for example.
  • the following embodiments take the game APP "W Game" as an example for description.
  • the WiFi network architecture 20 shown in FIG. 4 is only a schematic illustration, and does not constitute a limitation on the WiFi network architecture 20. In other embodiments, the WiFi network architecture 20 may also include more or fewer devices.
  • the two implementation scenarios include a scenario in which a corresponding relationship between a server identifier and a service type is created, and a scenario in which a service type is determined according to the corresponding relationship.
  • FIG. 5A illustrates a signaling interaction diagram of a method 300 for creating a correspondence relationship.
  • the method 300 for example, the service type cannot be determined according to the first correspondence.
  • the method 300 includes the following steps:
  • step S301 the ONT device 23 receives the first service request sent by the mobile phone 21.
  • the first service request is, for example, a request sent by the game APP "W Game", and the first service request includes, for example, the IP address "IP001" of the W game server. This request is used to request service messages from the W game server.
  • step S302 the ONT device 23 sends the IP address "IP001" to the OLT device 24.
  • the corresponding relationship between the server identifier and the service type is not maintained in the ONT device 23, so the ONT device 23 should send “IP001” to the OLT device 24.
  • the ONT device 23 may maintain the corresponding relationship between the server identifier and the service type. In this embodiment, the ONT device 23 should search for the service type corresponding to "IP001" in the corresponding relationship maintained locally. After the service type corresponding to "IP001" is not found in the corresponding relationship maintained locally, the ONT device 23 executes the steps S302. No more details here.
  • step S303 the OLT device 24 searches for the service type corresponding to "IP001" in the first correspondence.
  • step S304 after the service type corresponding to “IP001” is not found, the OLT device 24 sends response information to the ONT device 23.
  • the response information is used to indicate that the service type corresponding to "IP001" is not included in the first correspondence.
  • the first service request is the first service request in the WiFi network architecture 20 that includes "IP001", so the first correspondence does not include “IP001” and the service type corresponding to "IP001".
  • step S305 the ONT device 23 collects the attribute information involved in the complete business process of the "W game".
  • the ONT device 23 maintains a preset analysis model.
  • the attribute information includes the business message involved in the complete business process of the "W game” and the interval time between each business message.
  • step S306 the ONT device 23 extracts the characteristic information of the "W game” service message.
  • the characteristic information includes the length, quantity, and proportion of the longest business message, the length, quantity, and proportion of the shortest business message, and the length and proportion of different interval durations.
  • step S307 the ONT device 23 inputs the characteristic information into the analysis model, and obtains that the service type requested by the first service is a game service.
  • the preset analysis model may be maintained in the OLT device 24.
  • the ONT device 23 may send the collected information to the OLT device 24.
  • the OLT device 24 performs the operations involved in step S306 and step S307 in this embodiment. No more details here.
  • step S308 the ONT device 23 sends the correspondence between IP001 and the game service to the OLT device 24.
  • step S309 the OLT device 24 adds the correspondence between IP001 and the game service to the first correspondence.
  • the OLT device 24 may also broadcast the correspondence between IP001 and game services to the ONT device connected to the OLT device 24. No more details here.
  • FIG. 5B illustrates a signaling interaction diagram of a service packet transmission method 400.
  • the service message transmission method 400 (hereinafter referred to as the method 400) includes the following steps:
  • step S401 the ONT device 23 receives the second service request sent by the mobile phone 21.
  • the second service request is still, for example, a request sent by the game APP "WGame".
  • the second service request contains the IP address "IP001".
  • step S402 the ONT device 23 sends the IP address "IP001" to the OLT device 24.
  • step S403 the OLT device 24 searches for the service type corresponding to "IP001" in the first correspondence to obtain the game service.
  • the correspondence between IP001 and the game service is stored in the first correspondence. Furthermore, the OLT device 24 can determine that the service type corresponding to IP001 is a game service according to the first correspondence.
  • the ONT device 23 may locally determine that the service type corresponding to IP001 is a game service. Furthermore, the ONT device 23 can directly execute step S405. No more details here.
  • step S404 the OLT device 24 sends the game service to the ONT device 23.
  • step S405 the ONT device 23 obtains the priority corresponding to the game service, and obtains the highest priority.
  • step S406 the ONT device 23 transmits the service message corresponding to the second service request according to the highest priority.
  • FIG. 5A and FIG. 5B are only schematic illustrations, and do not constitute a limitation on the service packet transmission method of the present application.
  • the operations performed by the ONT device 23 may be performed by the router 22, and the operations performed by the OLT device 24 may be performed by the network management server 25.
  • the operations performed by each device may also be different from the description of FIG. 5A and FIG. 5B. There is no restriction here.
  • the network device involved in the embodiments of the present application determines the service type corresponding to the service request according to the attributes of the service message in the entire service process, so that the service type determination process is not affected by the structure and content of the service message, and the determination method Stable and wide applicability.
  • the network device maintains the corresponding relationship between the server identifier and the service type, and uses the corresponding relationship to determine the subsequent service type, so that the process of determining the service type does not require complicated calculation and analysis, which can speed up the determination of the service type, thereby improving the identification service Type of performance, thereby improving the performance of service message transmission.
  • the foregoing traffic forwarding device may implement corresponding functions through software modules.
  • the traffic forwarding device 60 may include a receiving unit 601, a determining unit 602, and a transmitting unit 603.
  • the traffic forwarding device 60 can be used to perform the operations of the traffic forwarding device in Figs. 2 to 3C and the operation of the ONT device 23 in Figs. 5A and 5B.
  • the receiving unit 601 may be configured to receive a service request from a terminal, the service request includes a first server identifier, and the first server identifier is used to distinguish the first application server from other application servers.
  • the application server is an application server from which the terminal requests services.
  • the determining unit 602 may be configured to determine the first service type of the service request according to the first server identifier.
  • the transmission unit 603 may be configured to transmit the service message corresponding to the service request according to the priority corresponding to the first service type.
  • the traffic forwarding device after the traffic forwarding device receives the service request, it does not need to parse the content of the service message, and can determine the service type corresponding to the service request based on the server identifier, so that the service type corresponding to the service request can be quickly determined, and then , Can improve the transmission performance of business messages.
  • the determining unit 602 may be specifically configured to determine whether the first correspondence relationship includes a service type corresponding to the first server identifier, and the first correspondence relationship includes at least one correspondence relationship between a server identifier and a service type; if The first corresponding relationship includes the service type corresponding to the first server identifier, and the service type corresponding to the first server identifier is determined as the first service type; if the first corresponding relationship does not Contains the service type corresponding to the first server identifier, and determines the first service type according to the attribute information of the service message corresponding to the service request, and the attribute information includes each service message corresponding to the service request And the length of the interval between business packets.
  • the traffic forwarding device 60 further includes a parsing unit.
  • the parsing unit is configured to parse the attribute information according to a preset parsing rule to obtain the first service type.
  • the traffic forwarding device 60 further includes an establishment unit and a sending unit.
  • the establishing unit is used to establish the corresponding relationship between the first server identifier and the first service type.
  • the sending unit is configured to send the corresponding relationship between the first server identifier and the first service type to a network service device, so that the network service device updates the first corresponding relationship.
  • the sending unit is further configured to send the attribute information to the network service device.
  • the receiving unit 601 is further configured to receive the first service type from the network service device.
  • the sending unit is further configured to send the first server identifier to a network service device, so that the network service device searches for a service type corresponding to the first server identifier in the first correspondence relationship.
  • the receiving unit 601 is further configured to receive the first service type or response information from the network service device, where the response information indicates that the first correspondence does not include the service type corresponding to the first server identifier .
  • the determining unit 602 is further configured to determine whether the second correspondence relationship includes the service type corresponding to the first server identifier, and the second correspondence relationship is the relationship between the server identifier and the service type maintained by the traffic forwarding device.
  • the second corresponding relationship includes part of the information in the first corresponding relationship; if the second corresponding relationship includes the service type corresponding to the first server identifier, it will be related to the first server identifier
  • the corresponding service type is determined as the first service type.
  • the traffic forwarding device 60 further includes an update unit.
  • the receiving unit 601 is further configured to receive the correspondence between the second server identifier and the second service type from the network service device.
  • the updating unit may be configured to update the second correspondence relationship according to the correspondence relationship between the second server identifier and the second service type.
  • the receiving unit 601 and the sending unit may be implemented by a transceiver, and other units such as the determining unit 602 and the transmission unit 603 may be implemented by a processor.
  • the traffic forwarding device 61 may include a processor 611, a transceiver 612, and a memory 613.
  • the memory 613 may be used to store programs/codes pre-installed when the traffic forwarding device 61 leaves the factory, and may also store codes used for execution by the processor 611.
  • the traffic forwarding device 61 in the embodiment of the present application may correspond to the traffic forwarding device in FIGS. 2 to 3C and the ONT device 23 in FIGS. 5A and 5B.
  • the transceiver 612 is used to perform the transmission and reception of various data performed by the traffic forwarding device described in FIG. 2 to FIG. 3C, and the transmission and reception of data of the ONT device 23 in FIG. 5A and FIG.
  • the foregoing network service device may implement corresponding functions through software modules.
  • the network service device 70 may include a receiving unit 701 and a determining unit 702.
  • the network service device 70 can be used to perform the operations of the network service device in FIGS. 3A to 3C and the operation of the OLT device 24 in FIGS. 5A and 5B.
  • the receiving unit 701 may be configured to receive a first server identifier from the traffic forwarding device, where the first server identifier is used to distinguish the first application server from other application servers, and the first server identifier is included in the In the service request received by the traffic forwarding device, the first application server is the application server of the terminal requesting the service.
  • the determining unit 702 may be configured to determine the service type corresponding to the first server identifier in the first correspondence, and the first correspondence includes at least one correspondence between the server identifier and the service type.
  • the network device maintains the correspondence between the server identifier and the service type, and uses the correspondence to determine the subsequent service type, so that the process of determining the service type does not require complicated calculation and analysis, and can speed up the determination of the service type. , Thereby improving the performance of identifying service types, and thereby improving the performance of service message transmission.
  • the network service device 70 further includes a sending unit.
  • the sending unit may be configured to send the service type as the first service type to the traffic forwarding device if the first correspondence relationship includes the service type corresponding to the first server identifier, so that the traffic is forwarded
  • the device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
  • the sending unit may be further configured to respond to the traffic forwarding device with response information if the service type corresponding to the first server identifier is not included in the first correspondence, and the response information is used to trigger the The traffic forwarding device determines the first service type according to the first server identifier.
  • the network service device 70 further includes an update unit.
  • the receiving unit 701 is further configured to receive the correspondence between the first server identifier and the first service type from the traffic forwarding device.
  • the updating unit may be configured to update the first correspondence relationship according to the correspondence relationship between the first server identifier and the first service type.
  • the network service device 70 further includes a parsing unit.
  • the receiving unit 701 is further configured to receive attribute information from the traffic forwarding device, where the attribute information includes the length of each service packet corresponding to the service request and the interval time between service packets.
  • the parsing unit may be configured to parse the attribute information according to a preset parsing rule to obtain the first service type.
  • the sending unit is further configured to send the first service type to the traffic forwarding device.
  • the sending unit may be further configured to broadcast the correspondence between the first server identifier and the first service type to other traffic forwarding devices other than the traffic forwarding device connected to the network service device.
  • the receiving unit 701 and the sending unit may be implemented by a transceiver, and other units such as the determining unit 702 may be implemented by a processor.
  • the network service device 71 may include a processor 711, a transceiver 712, and a memory 713.
  • the memory 713 may be used to store programs/codes pre-installed when the network service device 71 leaves the factory, and may also store codes used when the processor 711 is executed.
  • the network service device 71 in the embodiment of the present application may correspond to the network service device in FIGS. 3A to 3C, and the OLT device 24 in FIGS. 5A and 5B.
  • the transceiver 712 is used to perform the transmission and reception of various data performed by the network service device in FIG. 3A to FIG. 3C, and the data transmission and reception of the OLT device 24 in FIG. 5A and FIG.
  • the network service device described in 3C performs other processing besides data transceiving, and the OLT device 24 in FIG. 5A and FIG. 5B performs other processing other than data transceiving. I won't repeat them here.
  • FIGS. 3A to 3C For specific content, reference may be made to FIGS. 3A to 3C, and the description of related parts in FIGS. 5A and 5B, which will not be repeated here.
  • the embodiments of the present application also respectively provide a computer storage medium, wherein the computer storage medium set in any device can store a program, and when the program is executed, it can be implemented including diagrams 2 to 3C, and some or all of the steps in each embodiment of the service message transmission method provided in FIGS. 5A and 5B.
  • the storage medium in any device can be a magnetic disk, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc.
  • the transceiver may be a wired transceiver, a wireless transceiver or a combination thereof.
  • the wired transceiver may be an Ethernet interface, for example.
  • the Ethernet interface can be an optical interface, an electrical interface, or a combination thereof.
  • the wireless transceiver may be, for example, a wireless local area network transceiver, a cellular network transceiver, or a combination thereof.
  • the processor may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.
  • the processor may further include a hardware chip.
  • the above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
  • the memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as read-only memory (read-only memory). memory, ROM), flash memory (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory may also include a combination of the above types of memories.
  • Figures 6B and 7B may also include a bus interface.
  • the bus interface may include any number of interconnected buses and bridges. Specifically, one or more processors represented by a processor and various circuits of a memory represented by a memory are linked together.
  • the bus interface can also link various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein.
  • the bus interface provides the interface.
  • the transceiver provides a unit for communicating with various other devices on the transmission medium.
  • the processor is responsible for managing the bus architecture and general processing, and the memory can store messages used by the processor when performing operations.
  • the various illustrative logic units and circuits described in the embodiments of this application can be implemented by general-purpose processors, digital signal processors, application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, Discrete gates or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions.
  • the general-purpose processor may be a microprocessor.
  • the general-purpose processor may also be any traditional processor, controller, microcontroller, or state machine.
  • the processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration. accomplish.
  • the steps of the method or algorithm described in the embodiments of the present application can be directly embedded in hardware, a software unit executed by a processor, or a combination of the two.
  • the software unit can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other storage medium in the art.
  • the storage medium may be connected to the processor, so that the processor can read information from the storage medium, and can store and write information to the storage medium.
  • the storage medium may also be integrated into the processor.
  • the processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a device.
  • the processor and the storage medium may also be provided in different components in the device.
  • the size of the sequence number of each process does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic, rather than the implementation process of the embodiment. Constitute any limitation.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or message.
  • the center transmits to another website, computer, server, or message center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a message storage device such as a server or a message center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present application relates to the technical field of communications. Disclosed are a service message transmission method and a related device. The method comprises: a traffic forwarding device receives a service request from a terminal, and then determines a first service type of the service request according to a first server identifier, and thus the traffic forwarding device transmits a service message according to the priority corresponding to the first service type. The first server identifier is used for distinguishing a first application server from other application servers, and the first application server is a server for the service requested by the terminal. Hence, a service type determining process in embodiments of the present application does not require complex computational analysis, so that the speed for determining a service type is quick, the service type identification performance is improved, and thus the service message transmission performance is improved.

Description

业务报文传输方法及相关设备Business message transmission method and related equipment
本申请要求于2020年4月3日提交中国国家知识产权局、申请号为202010258101.4、发明名称为“业务报文传输方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China, the application number is 202010258101.4, and the invention title is "Business message transmission method and related equipment" on April 3, 2020, the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种业务报文传输方法及相关设备。This application relates to the field of communication technology, and in particular to a method for transmitting service messages and related equipment.
背景技术Background technique
在WiFi网络的场景下,终端可以通过WiFi网络从应用服务器请求业务报文。根据WiFi通信协议的定义,WiFi网络中的流量转发设备可以按照若干个优先级传输业务报文。其中,在WiFi网络产生拥塞时,流量转发设备优先传输对应最高优先级的业务报文。In the scenario of the WiFi network, the terminal can request service messages from the application server through the WiFi network. According to the definition of the WiFi communication protocol, the traffic forwarding device in the WiFi network can transmit service messages according to several priorities. Among them, when the WiFi network is congested, the traffic forwarding device preferentially transmits the service message corresponding to the highest priority.
实际实现中,不同业务类型的业务报文对于拥塞的容忍程度不同,相应的,流量转发设备可以根据业务报文的业务类型,为业务报文配置不同的传输优先级。例如,游戏业务的业务报文对于网络拥塞的容忍程度相对较低,流量转发设备可以为游戏业务的业务报文配置相对较高的传输优先级。再如,下载业务的业务报文对于网络拥塞的容忍程度相对较高,流量转发设备可以为下载业务的业务报文配置相对较低的传输优先级。In actual implementation, service messages of different service types have different tolerances to congestion. Accordingly, the traffic forwarding device can configure different transmission priorities for service messages according to the service type of the service message. For example, the service message of the game service has a relatively low tolerance for network congestion, and the traffic forwarding device may configure a relatively high transmission priority for the service message of the game service. For another example, the service message of the download service has a relatively high tolerance for network congestion, and the traffic forwarding device can configure a relatively low transmission priority for the service message of the download service.
然而,现有配置业务报文传输优先级的方法,不仅执行速度慢,而且性能不佳,从而导致业务报文的传输性能不佳。However, the existing method for configuring the transmission priority of service messages is not only slow in execution speed, but also has poor performance, resulting in poor transmission performance of service messages.
发明内容Summary of the invention
本申请实施例提供了一种业务报文传输方法及相关设备,以解决现有配置业务报文传输优先级的机制性能差的问题。The embodiments of the present application provide a service message transmission method and related equipment to solve the problem of poor performance of the existing mechanism for configuring service message transmission priority.
第一方面,本申请实施例提供了一种业务报文传输方法,所述方法包括:流量转发设备接收来自于终端的业务请求,所述业务请求包括第一服务器标识,所述第一服务器标识用于将第一应用服务器与其他应用服务器进行区分,所述第一应用服务器是所述终端请求业务的应用服务器;所述流量转发设备根据所述第一服务器标识确定所述业务请求的第一业务类型;所述流量转发设备根据所述第一业务类型对应的优先级传输所述业务请求对应的业务报文。In the first aspect, an embodiment of the present application provides a service message transmission method, the method includes: a traffic forwarding device receives a service request from a terminal, the service request includes a first server identifier, and the first server identifier Used to distinguish the first application server from other application servers. The first application server is the application server from which the terminal requests the service; the traffic forwarding device determines the first service request according to the first server identifier. Service type; the traffic forwarding device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
其中,终端可以通过流量转发设备接入WiFi网络。终端可以运行各类应用程序(application,APP),各APP可以通过WiFi网络与该APP对应的应用服务器进行通信,以实现业务报文的传输。流量转发设备支持空口资源配置、业务报文的转发、以及所配置空口资源的传输优先级。“空口资源的传输优先级”是指该空口资源传输业务报文的优先级,也可以描述为业务报文的传输优先级。实际实现中,业务报文可以被定义为不同业务类型,业务类型与业务报文的传输优先级存在一定对应关系。Among them, the terminal can access the WiFi network through the traffic forwarding device. The terminal can run various application programs (application, APP), and each APP can communicate with the application server corresponding to the APP through the WiFi network to realize the transmission of service messages. The traffic forwarding device supports the configuration of air interface resources, the forwarding of service packets, and the transmission priority of the configured air interface resources. "Air interface resource transmission priority" refers to the air interface resource transmission priority of service packets, and can also be described as the transmission priority of service packets. In actual implementation, business messages can be defined as different business types, and there is a certain correspondence between the business types and the transmission priority of the business messages.
示例性的,任意APP运行时,终端可以向流量转发设备发送业务请求,以请求流量转发设备分配空口资源及配置该空口资源的传输优先级。该业务请求可以包括相应APP对应 的应用服务器的服务器标识。进而,本申请中,流量转发设备可以从业务请求中读取服务器标识,然后,能够根据该服务器标识确定该业务请求的业务类型。之后,流量转发设备根据业务类型与优先级的对应关系,确定该业务请求对应的传输优先级,进而,按照所确定的优先级传输该业务请求对应的业务报文。Exemplarily, when any APP is running, the terminal may send a service request to the traffic forwarding device to request the traffic forwarding device to allocate air interface resources and configure the transmission priority of the air interface resources. The service request may include the server identification of the application server corresponding to the corresponding APP. Furthermore, in this application, the traffic forwarding device can read the server identifier from the service request, and then can determine the service type of the service request according to the server identifier. After that, the traffic forwarding device determines the transmission priority corresponding to the service request according to the correspondence between the service type and the priority, and further, transmits the service message corresponding to the service request according to the determined priority.
可见,采用本实现方式,流量转发设备无需解析业务报文的内容,根据服务器标识即可确定业务请求对应业务类型,从而能够快速确定业务请求对应的业务类型,进而,能够提高业务报文的传输性能。It can be seen that with this implementation method, the traffic forwarding device does not need to parse the content of the service message, and can determine the service type corresponding to the service request based on the server identifier, so that the service type corresponding to the service request can be quickly determined, thereby improving the transmission of the service message performance.
一种可选的设计中,所述流量转发设备根据所述第一服务器标识确定所述业务请求的第一业务类型,包括:所述流量转发设备确定第一对应关系中是否包含与所述第一服务器标识对应的业务类型,所述第一对应关系包含至少一条服务器标识与业务类型的对应关系;若所述第一对应关系中包含与所述第一服务器标识对应的业务类型,所述流量转发设备将与所述第一服务器标识对应的业务类型确定为所述第一业务类型;若所述第一对应关系中不包含与所述第一服务器标识对应的业务类型,所述流量转发设备根据所述业务请求对应业务报文的属性信息,确定所述第一业务类型,所述属性信息包括所述业务请求对应的每个业务报文的长度以及业务报文之间的间隔时长。In an alternative design, the traffic forwarding device determining the first service type of the service request according to the first server identifier includes: the traffic forwarding device determining whether the first correspondence relationship with the first service type is included in the first correspondence A service type corresponding to a server identifier, the first correspondence relationship includes at least one correspondence relationship between a server identifier and a service type; if the first correspondence relationship includes a service type corresponding to the first server identifier, the traffic The forwarding device determines the service type corresponding to the first server identifier as the first service type; if the first correspondence does not include the service type corresponding to the first server identifier, the traffic forwarding device The first service type is determined according to the attribute information of the service packet corresponding to the service request, where the attribute information includes the length of each service packet corresponding to the service request and the interval time between service packets.
本申请中,第一对应关系包含至少一条服务器标识与业务类型的对应关系。第一对应关系中的每组对应关系,可以是相应服务器标识所属业务请求首次发出的实施场景中建立的。基于此,当业务请求是WiFi网络结构中第一次出现的业务请求时,第一对应关系中未存储第一服务器标识与业务类型的对应关系,流量转发设备可以确定第一对应关系中不包含与第一服务器标识对应的业务类型。本实施例中,流量转发设备可以根据该业务请求对应业务报文的属性信息确定第一业务类型。当业务请求是WiFi网络结构中第二次及以上出现的业务请求时,第一对应关系中已存储第一服务器标识与业务类型的对应关系,流量转发设备可以确定第一对应关系中与第一服务器标识对应的业务类型。In this application, the first correspondence includes at least one correspondence between a server identifier and a service type. Each set of correspondences in the first correspondence may be established in an implementation scenario where the service request to which the corresponding server identifier belongs is issued for the first time. Based on this, when the service request is the first service request that appears in the WiFi network structure, the corresponding relationship between the first server identifier and the service type is not stored in the first correspondence, and the traffic forwarding device can determine that the first correspondence does not include The service type corresponding to the first server identifier. In this embodiment, the traffic forwarding device may determine the first service type according to the attribute information of the service packet corresponding to the service request. When the service request is the second or later service request in the WiFi network structure, the corresponding relationship between the first server identifier and the service type has been stored in the first correspondence, and the traffic forwarding device can determine that the first correspondence is with the first The service type corresponding to the server ID.
其中,属性信息是指:业务请求对应的完整业务流程涉及的所有业务报文的长度,以及各业务报文之间的间隔时长。任意业务类型对应的业务流程中各业务报文的长度以及各业务报文之间的间隔时长通常不变,所以,本申请可以根据业务报文的属性信息确定业务类型。采用本实现方式,流量转发设备可以根据整个业务流程中业务报文的属性,确定业务请求对应的业务类型,使得业务类型的确定过程不受业务报文结构和内容的影响,确定方式稳定且适用性广。Among them, the attribute information refers to the length of all business messages involved in the complete business process corresponding to the business request, and the length of the interval between each business message. The length of each service message in the business process corresponding to any service type and the interval time between each service message are usually unchanged. Therefore, this application can determine the service type according to the attribute information of the service message. With this implementation method, the traffic forwarding device can determine the service type corresponding to the service request according to the attributes of the service message in the entire business process, so that the determination process of the service type is not affected by the structure and content of the service message, and the determination method is stable and applicable Wide sex.
一种可选的设计中,所述流量转发设备根据所述业务请求对应业务报文的属性信息确定所述第一业务类型,包括:所述流量转发设备按照预设解析规则解析所述属性信息得到所述第一业务类型。一些实施例中,流量转发设备可以根据属性信息生成业务请求的特征信息,然后,将上述特征信息输入预设的分析模型中,得到第一业务类型。采用本实现方式,使得业务类型的确定过程不受业务报文结构和内容的影响,确定方式稳定且适用性广。In an optional design, the traffic forwarding device determines the first service type according to the attribute information of the service message corresponding to the service request, including: the traffic forwarding device parses the attribute information according to a preset analysis rule Obtain the first service type. In some embodiments, the traffic forwarding device may generate the characteristic information of the service request according to the attribute information, and then input the characteristic information into a preset analysis model to obtain the first service type. With this implementation method, the process of determining the service type is not affected by the structure and content of the service message, and the determination method is stable and has wide applicability.
一种可选的设计中,所述流量转发设备得到所述第一业务类型之后,还包括:所述流量转发设备建立所述第一服务器标识与所述第一业务类型的对应关系;所述流量转发设备将所述第一服务器标识与所述第一业务类型的对应关系发送到网络服务设备,以使所述网络服务设备更新所述第一对应关系。本申请中,第一对应关系可以维护在网络服务设备端。基于此,当流量转发设备根据属性信息确定第一业务类型之后,可以将第一服务器标识与 第一业务类型的对应关系发送到网络服务设备端,以使网络服务设备端及时更新第一对应关系。其中,网络服务设备可以是任意提供网络资源的设备,以及用于管理网络设备的设备,包括网管服务器、网络引擎、光线路终端(optical line terminal,OLT)设备等。In an optional design, after the traffic forwarding device obtains the first service type, the method further includes: establishing, by the traffic forwarding device, a correspondence between the first server identifier and the first service type; The traffic forwarding device sends the corresponding relationship between the first server identifier and the first service type to the network service device, so that the network service device updates the first corresponding relationship. In this application, the first correspondence can be maintained on the network service device side. Based on this, after the traffic forwarding device determines the first service type according to the attribute information, it can send the corresponding relationship between the first server identifier and the first service type to the network service device side, so that the network service device side can update the first corresponding relationship in time . Among them, the network service equipment can be any equipment that provides network resources, and equipment used to manage network equipment, including network management servers, network engines, optical line terminal (OLT) equipment, and so on.
一种可选的设计中,所述流量转发设备根据所述业务请求对应业务报文的属性信息确定所述第一业务类型,包括:所述流量转发设备将所述属性信息发送到网络服务设备;所述流量转发设备接收来自于所述网络服务设备的所述第一业务类型。另一些实施例中,上述分析模型可以设置在网络服务设备中。相应的,流量转发设备可以将属性信息发送到网络服务设备,以使网络服务设备根据属性信息确定第一业务类型。采用本实现方式,使得业务类型的确定过程不受业务报文结构和内容的影响,确定方式稳定且适用性广。In an alternative design, the traffic forwarding device determines the first service type according to the attribute information of the service message corresponding to the service request, including: the traffic forwarding device sends the attribute information to the network service device The traffic forwarding device receives the first service type from the network service device. In other embodiments, the above analysis model may be set in a network service device. Correspondingly, the traffic forwarding device may send the attribute information to the network service device, so that the network service device determines the first service type according to the attribute information. With this implementation method, the process of determining the service type is not affected by the structure and content of the service message, and the determination method is stable and has wide applicability.
一种可选的设计中,所述流量转发设备确定第一对应关系中是否包含与所述第一服务器标识对应的业务类型,包括:所述流量转发设备将所述第一服务器标识发送到网络服务设备,以使所述网络服务设备在所述第一对应关系中查找与所述第一服务器标识对应的业务类型;所述流量转发设备接收来自于所述网络服务设备的所述第一业务类型或者响应信息,所述响应信息指示所述第一对应关系中不包含与所述第一服务器标识对应的业务类型。由于第一对应关系维护在网络服务设备端,所以,一些实施例中,流量转发设备可以将第一服务器标识发送到网络服务设备,以使网络服务设备在第一对应关系中查找与第一服务器标识对应的业务类型。之后,流量转发设备可以根据网络服务设备端反馈的查询结果,执行后续操作。此处不详述。可见,采用本实现方式,确定业务类型的过程无需复杂计算分析,能够加快确定业务类型的速度,从而提高识别业务类型的性能,进而提高业务报文传输的性能。In an alternative design, the traffic forwarding device determining whether the first correspondence includes a service type corresponding to the first server identifier includes: the traffic forwarding device sends the first server identifier to the network Service device, so that the network service device searches for the service type corresponding to the first server identifier in the first correspondence relationship; the traffic forwarding device receives the first service from the network service device Type or response information, where the response information indicates that the first correspondence does not include the service type corresponding to the first server identifier. Since the first correspondence is maintained on the network service device side, in some embodiments, the traffic forwarding device may send the first server identifier to the network service device, so that the network service device can search for the first server in the first correspondence relationship. Identifies the corresponding business type. After that, the traffic forwarding device can perform subsequent operations according to the query result fed back from the network service device. Not detailed here. It can be seen that with this implementation method, the process of determining the service type does not require complicated calculation and analysis, and the speed of determining the service type can be accelerated, thereby improving the performance of identifying the service type, and further improving the performance of service message transmission.
一种可选的设计中,所述流量转发设备将所述第一服务器标识发送到网络服务设备之前,还包括:所述流量转发设备确定第二对应关系中是否包含与所述第一服务器标识对应的业务类型,所述第二对应关系是所述流量转发设备维护的服务器标识与业务类型的对应关系,所述第二对应关系包括所述第一对应关系中的部分信息;若所述第二对应关系中包含与所述第一服务器标识对应的业务类型,所述流量转发设备将与所述第一服务器标识对应的业务类型确定为所述第一业务类型;若所述第二对应关系中不包含与所述第一服务器标识对应的业务类型,所述流量转发设备将所述第一服务器标识发送到所述网络服务设备。In an optional design, before the traffic forwarding device sends the first server identifier to the network service device, the method further includes: the traffic forwarding device determining whether the second correspondence relationship includes the first server identifier Corresponding service type, the second correspondence is the correspondence between the server identifier maintained by the traffic forwarding device and the service type, and the second correspondence includes part of the information in the first correspondence; if the first correspondence is The second correspondence includes the service type corresponding to the first server identifier, and the traffic forwarding device determines the service type corresponding to the first server identifier as the first service type; if the second correspondence Does not include the service type corresponding to the first server identifier, and the traffic forwarding device sends the first server identifier to the network service device.
另一种实施例中,流量转发设备端例如可以维护第二对应关系,第二对应关系包括至少一个服务器标识与业务类型的对应关系。然而,流量转发设备通常存储空间较小,所以,第二对应关系中的信息是第一对应关系中的部分信息。基于此,流量转发设备可以在接收到业务请求之后,先确定第二对应关系中是否包含与第一服务器标识对应的业务类型。若第二对应关系中包含与第一服务器标识对应的业务类型,流量转发设备可以根据业务类型确定优先级,之后,按照优先级传输业务请求对应的业务报文。若第二对应关系中不包含与第一服务器标识对应的业务类型,流量转发设备将第一服务器标识发送到网络服务设备,以使网络服务设备在第一对应关系中查找与第一服务器标识对应的业务类型。这样能够节省确定业务类型的时间。In another embodiment, the traffic forwarding device may maintain a second correspondence relationship, for example, and the second correspondence relationship includes a correspondence relationship between at least one server identifier and a service type. However, the traffic forwarding device usually has a small storage space, so the information in the second correspondence is part of the information in the first correspondence. Based on this, the traffic forwarding device may first determine whether the second correspondence relationship includes the service type corresponding to the first server identifier after receiving the service request. If the second correspondence includes the service type corresponding to the first server identifier, the traffic forwarding device may determine the priority according to the service type, and then transmit the service message corresponding to the service request according to the priority. If the second corresponding relationship does not include the service type corresponding to the first server identifier, the traffic forwarding device sends the first server identifier to the network service device, so that the network service device searches for the first server identifier corresponding to the first server identifier in the first corresponding relationship Business type. This saves time in determining the type of business.
一种可选的设计中,还包括:所述流量转发设备接收来自于所述网络服务设备的第二服务器标识与第二业务类型的对应关系;所述流量转发设备根据所述第二服务器标识与所述第二业务类型的对应关系更新所述第二对应关系。其中,若流量转发设备端维护第二对 应关系,一些实施例中,流量转发设备可以接收网络服务设备广播的新的对应关系,进而,根据所接收的新的对应关系更新第二对应关系。In an optional design, the method further includes: the traffic forwarding device receives the correspondence between the second server identifier from the network service device and the second service type; the traffic forwarding device is based on the second server identifier The corresponding relationship with the second service type updates the second corresponding relationship. Wherein, if the traffic forwarding device maintains the second corresponding relationship, in some embodiments, the traffic forwarding device may receive the new corresponding relationship broadcast by the network service device, and further, update the second corresponding relationship according to the received new corresponding relationship.
第二方面,本申请实施例提供了一种业务报文传输方法,所述方法包括:网络服务设备接收来自于流量转发设备的第一服务器标识,所述第一服务器标识用于将第一应用服务器与其他应用服务器进行区分,所述第一服务器标识包含于所述流量转发设备接收的业务请求中,所述第一应用服务器是所述终端请求业务的应用服务器;所述网络服务设备确定第一对应关系中与所述第一服务器标识对应的业务类型,所述第一对应关系包含至少一条服务器标识与业务类型的对应关系;若所述第一对应关系中包含与所述第一服务器标识对应的业务类型,所述网络服务设备将所述业务类型作为第一业务类型发送到所述流量转发设备,以使所述流量转发设备根据所述第一业务类型对应的优先级传输所述业务请求对应的业务报文。其中,业务类型与业务报文的传输优先级存在一定对应关系。In a second aspect, an embodiment of the present application provides a service packet transmission method, the method includes: a network service device receives a first server identifier from a traffic forwarding device, and the first server identifier is used to transfer a first application The server is distinguished from other application servers, the first server identifier is included in the service request received by the traffic forwarding device, the first application server is the application server of the terminal requesting the service; the network service device determines the first A service type corresponding to the first server identifier in a corresponding relationship, the first corresponding relationship includes at least one corresponding relationship between a server identifier and a service type; if the first corresponding relationship includes a corresponding relationship with the first server identifier Corresponding to the service type, the network service device sends the service type as the first service type to the traffic forwarding device, so that the traffic forwarding device transmits the service according to the priority corresponding to the first service type Request the corresponding business message. Among them, there is a certain correspondence between the service type and the transmission priority of the service message.
其中,网络服务设备和第一对应关系的实现如第一方面所述,此处不再赘述。网络服务设备接收第一服务器标识之后,可以在第一对应关系中查找与第一服务器标识对应的业务类型,然后,在查找到第一服务器标识对应的业务类型之后,将所述业务类型发送到流量转发设备,以使流量转发设备根据业务类型与优先级的对应关系,确定该业务请求对应的传输优先级,进而,按照所确定的优先级传输该业务请求对应的业务报文。采用本实现方式,网络设备维护服务器标识与业务类型的对应关系,并且将该对应关系用于后续业务类型的确定,使得确定业务类型的过程无需复杂计算分析,能够加快确定业务类型的速度,从而提高识别业务类型的性能,进而提高业务报文传输的性能。The implementation of the network service device and the first correspondence is as described in the first aspect, and will not be repeated here. After receiving the first server identifier, the network service device may search for the service type corresponding to the first server identifier in the first correspondence relationship, and then, after finding the service type corresponding to the first server identifier, send the service type to The traffic forwarding device, so that the traffic forwarding device determines the transmission priority corresponding to the service request according to the correspondence between the service type and the priority, and further, transmits the service message corresponding to the service request according to the determined priority. With this implementation method, the network device maintains the correspondence between the server identifier and the service type, and uses the correspondence to determine the subsequent service type, so that the process of determining the service type does not require complicated calculation and analysis, and the speed of determining the service type can be accelerated, thereby Improve the performance of identifying service types, thereby improving the performance of service message transmission.
一种可选的设计中,还包括:所述网络服务设备接收来自于所述流量转发设备的第二服务器标识,所述第二服务器标识用于将第二应用服务器与其他应用服务器进行区分;所述网络服务设备确定所述第一对应关系中与所述第二服务器标识对应的业务类型;若所述第一对应关系中不包含与所述第二服务器标识对应的业务类型,所述网络服务设备向所述流量转发设备发送响应信息,所述响应信息用于触发所述流量转发设备根据所述第二服务器标识确定第二业务类型。其中,第一对应关系中的每组对应关系,可以是相应服务器标识所属业务请求首次发出的实施场景中建立的。基于此,当第一对应关系中不包含与第二服务器标识对应的业务类型时,网络服务设备可以触发流量转发设备根据第二服务器标识确定第二业务类型。In an optional design, the method further includes: the network service device receives a second server identifier from the traffic forwarding device, where the second server identifier is used to distinguish the second application server from other application servers; The network service device determines the service type corresponding to the second server identifier in the first correspondence; if the first correspondence does not include the service type corresponding to the second server identifier, the network The service device sends response information to the traffic forwarding device, where the response information is used to trigger the traffic forwarding device to determine the second service type according to the second server identifier. Wherein, each set of correspondences in the first correspondence may be established in the implementation scenario where the service request to which the corresponding server identifies the service is issued for the first time. Based on this, when the first correspondence does not include the service type corresponding to the second server identifier, the network service device can trigger the traffic forwarding device to determine the second service type according to the second server identifier.
一种可选的设计中,所述网络服务设备向所述流量转发设备发送响应信息之后,还包括:所述网络服务设备接收来自于所述流量转发设备的所述第二服务器标识和所述第二业务类型的对应关系;所述网络服务设备根据所述第二服务器标识和所述第二业务类型的对应关系更新所述第一对应关系。采用本实现方式,网络服务设备端能够及时更新第一对应关系。In an optional design, after the network service device sends response information to the traffic forwarding device, the method further includes: the network service device receiving the second server identifier and the second server identifier from the traffic forwarding device Correspondence of the second service type; the network service device updates the first correspondence according to the correspondence between the second server identifier and the second service type. By adopting this implementation manner, the network service equipment end can update the first correspondence in time.
一种可选的设计中,所述网络服务设备向所述流量转发设备发送响应信息之后,还包括:所述网络服务设备接收来自于所述流量转发设备的属性信息,所述属性信息包括所述第二服务器标识所属业务请求对应的每个业务报文的长度以及业务报文之间的间隔时长;所述网络服务设备按照预设解析规则解析所述属性信息得到所述第二业务类型;所述网络服务设备将所述第二业务类型发送到所述流量转发设备。采用本实现方式,网络服务设备能够根据业务请求整个业务流程中业务报文的属性,确定业务请求对应的业务类型,使得 业务类型的确定过程不受业务报文结构和内容的影响,确定方式稳定且适用性广。In an optional design, after the network service device sends response information to the traffic forwarding device, it further includes: the network service device receives attribute information from the traffic forwarding device, and the attribute information includes all The second server identifies the length of each service message corresponding to the service request and the interval time between service messages; the network service device parses the attribute information according to a preset analysis rule to obtain the second service type; The network service device sends the second service type to the traffic forwarding device. With this implementation method, the network service device can determine the service type corresponding to the service request according to the attributes of the service message in the entire business process of the service request, so that the determination process of the service type is not affected by the structure and content of the service message, and the determination method is stable And the applicability is wide.
一种可选的设计中,还包括:所述网络服务设备向所述网络服务设备连接的,除所述流量转发设备之外的其他流量转发设备广播所述第二服务器标识和所述第二业务类型的对应关系。In an optional design, it further includes: the network service device is connected to the network service device, and other traffic forwarding devices other than the traffic forwarding device broadcast the second server identifier and the second Correspondence of business types.
第三方面,本申请实施例还提供了一种流量转发设备,该设备包括用于执行第一方面及第一方面各实现方式的中方法步骤的功能模块。In a third aspect, an embodiment of the present application also provides a traffic forwarding device, which includes functional modules for executing the method steps in the first aspect and the implementation manners of the first aspect.
第四方面,本申请实施例还提供了一种网络服务设备,该设备包括用于执行第二方面及第二方面各实现方式的中方法步骤的功能模块。In a fourth aspect, an embodiment of the present application also provides a network service device, which includes functional modules for executing the method steps in the second aspect and the implementation manners of the second aspect.
第五方面,本申请实施例提供了一种流量转发设备,包括收发器,处理器以及存储器。其中,收发器、处理器以及所述存储器之间可以通过总线系统相连。该收发器用于执行与网络服务设备和终端之间数据的收发。该存储器用于存储程序、指令或代码,所述处理器用于执行所述存储器中的程序、指令或代码,完成第一方面或第一方面的任意一种可能的设计中的方法。In a fifth aspect, an embodiment of the present application provides a traffic forwarding device, including a transceiver, a processor, and a memory. Wherein, the transceiver, the processor, and the memory may be connected through a bus system. The transceiver is used to perform data transmission and reception with network service equipment and terminals. The memory is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the memory to implement the first aspect or any one of the possible design methods of the first aspect.
第六方面,本申请实施例提供了一种网络服务设备,包括收发器,处理器以及存储器。其中,收发器、处理器以及所述存储器之间可以通过总线系统相连。该收发器用于执行与流量转发设备之间数据的收发。该存储器用于存储程序、指令或代码,所述处理器用于执行所述存储器中的程序、指令或代码,完成第二方面或第二方面的任意一种可能的设计中的方法。In a sixth aspect, an embodiment of the present application provides a network service device, including a transceiver, a processor, and a memory. Wherein, the transceiver, the processor, and the memory may be connected through a bus system. The transceiver is used to send and receive data with the traffic forwarding device. The memory is used to store programs, instructions or codes, and the processor is used to execute the programs, instructions or codes in the memory to implement the second aspect or any one of the possible design methods of the second aspect.
第七方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面、第二方面、第一方面任意可能的设计中或第二方面任意可能的设计中的方法。In a seventh aspect, the present application provides a computer-readable storage medium having instructions stored in the computer-readable storage medium, which when run on a computer, cause the computer to execute the first aspect, the second aspect, and the first aspect Any possible design or method in any possible design of the second aspect.
为解决现有技术存在的问题,本申请实施例涉及的网络设备,能够根据整个业务流程中业务报文的属性,确定业务请求对应的业务类型,使得业务类型的确定过程不受业务报文结构和内容的影响,确定方式稳定且适用性广。另外,网络设备维护服务器标识与业务类型的对应关系,并且将该对应关系用于后续业务类型的确定,使得确定业务类型的过程无需复杂计算分析,能够加快确定业务类型的速度,从而提高识别业务类型的性能,进而提高业务报文传输的性能。In order to solve the problems in the prior art, the network equipment involved in the embodiments of the present application can determine the service type corresponding to the service request according to the attributes of the service message in the entire service process, so that the process of determining the service type is not affected by the structure of the service message. And the influence of content, the determination method is stable and widely applicable. In addition, the network device maintains the corresponding relationship between the server identifier and the service type, and uses the corresponding relationship to determine the subsequent service type, so that the process of determining the service type does not require complicated calculation and analysis, which can speed up the determination of the service type, thereby improving the identification service Type of performance, thereby improving the performance of service message transmission.
附图说明Description of the drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, for those of ordinary skill in the art, without creative work , You can also obtain other drawings based on these drawings.
图1是本申请提供的WiFi网络架构10的结构示意图;FIG. 1 is a schematic diagram of the structure of the WiFi network architecture 10 provided by the present application;
图2是本申请提供的业务报文传输方法100的方法流程图;FIG. 2 is a method flowchart of the service message transmission method 100 provided by this application;
图3是本申请提供的业务报文传输方法200的方法流程图;FIG. 3 is a method flowchart of the service message transmission method 200 provided by the present application;
图3A是图3示意的实施例中步骤S202的示例性信令交互图;FIG. 3A is an exemplary signaling interaction diagram of step S202 in the embodiment illustrated in FIG. 3;
图3B是图3示意的实施例中步骤S204的一种示例性信令交互图;FIG. 3B is an exemplary signaling interaction diagram of step S204 in the embodiment illustrated in FIG. 3;
图3C是图3示意的实施例中步骤S204的另一种示例性信令交互图;FIG. 3C is another exemplary signaling interaction diagram of step S204 in the embodiment illustrated in FIG. 3;
图4是本申请提供的WiFi网络架构20的结构示意图;FIG. 4 is a schematic structural diagram of the WiFi network architecture 20 provided by the present application;
图5A是本申请提供的对应关系创建方法300的信令交互图;FIG. 5A is a signaling interaction diagram of the corresponding relationship creation method 300 provided by the present application;
图5B是本申请提供的业务报文传输方法400的信令交互图;FIG. 5B is a signaling interaction diagram of the service message transmission method 400 provided by this application;
图6A为本申请提供的流量转发设备60的示例性组成示意图;FIG. 6A is a schematic diagram of an exemplary composition of the traffic forwarding device 60 provided by this application;
图6B为本申请提供的流量转发设备61的示例性结构示意图;FIG. 6B is a schematic diagram of an exemplary structure of the traffic forwarding device 61 provided by this application;
图7A为本申请提供的网络服务设备70的示例性组成示意图;FIG. 7A is a schematic diagram of an exemplary composition of the network service device 70 provided by this application;
图7B为本申请提供的网络服务设备71的示例性结构示意图。FIG. 7B is a schematic diagram of an exemplary structure of the network service device 71 provided by this application.
具体实施方式Detailed ways
下面结合本申请中的附图,对本申请的技术方案进行清楚地描述。The technical solution of the present application will be clearly described below in conjunction with the drawings in the present application.
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,尽管在以下实施例中可能采用术语第一、第二等来描述某一类对象,但所述对象不应限于这些术语。这些术语仅用来将该类对象的具体对象进行区分。例如,以下实施例中可能采用术语第一、第二等来描述业务类型,但本申请涉及的业务类型不应限于这些术语。这些术语仅用来将不同的业务类型进行区分。The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also Including plural expressions, unless the context clearly indicates to the contrary. It should also be understood that although the terms first, second, etc. may be used in the following embodiments to describe a certain type of object, the object should not be limited to these terms. These terms are only used to distinguish specific objects of this class of objects. For example, in the following embodiments, the terms first, second, etc. may be used to describe service types, but the service types involved in this application should not be limited to these terms. These terms are only used to distinguish different business types.
以下对本申请的实施场景进行示例性描述。The following is an exemplary description of the implementation scenario of the present application.
图1示意了一种WiFi网络架构10,WiFi网络架构10包括终端11、流量转发设备12和网络服务设备13。其中,网络服务设备13可以用于向终端11提供网络资源等。流量转发设备12可以用于向终端11提供接入WiFi网络的接口,以及配置和管理终端11个业务请求的流量资源等。终端11通过流量转发设备12接入WiFi网络之后,可以通过该WiFi网络进行业务访问。FIG. 1 illustrates a WiFi network architecture 10. The WiFi network architecture 10 includes a terminal 11, a traffic forwarding device 12 and a network service device 13. Among them, the network service device 13 may be used to provide network resources and the like to the terminal 11. The traffic forwarding device 12 may be used to provide the terminal 11 with an interface for accessing a WiFi network, and configure and manage traffic resources requested by the terminal 11 for services. After the terminal 11 accesses the WiFi network through the traffic forwarding device 12, it can perform business access through the WiFi network.
其中,终端11可以是任意支持无线网络连接的设备,包括:智能手机、平板电脑、智能家居设备、工业控制设备、车辆设备等等。本申请中,终端11可以是包括但不限于搭载
Figure PCTCN2021083549-appb-000001
或者其它操作系统的电子设备。此外,终端11可以运行各类应用程序(application,APP),例如,游戏APP、阅读APP、多媒体APP等。各APP可以通过WiFi网络与该APP对应的应用服务器进行通信,以实现业务报文的传输。例如,某游戏APP可以WiFi网络与该游戏APP对应的应用服务器进行游戏报文的传输。再如,某多媒体APP可以与该多媒体APP对应的应用服务器进行音视频报文的传输。
Among them, the terminal 11 may be any device that supports wireless network connection, including: smart phones, tablet computers, smart home equipment, industrial control equipment, vehicle equipment, and so on. In this application, the terminal 11 may include but is not limited to carrying
Figure PCTCN2021083549-appb-000001
Or other operating system electronic devices. In addition, the terminal 11 can run various application programs (application, APP), for example, a game APP, a reading APP, a multimedia APP, and so on. Each APP can communicate with the application server corresponding to the APP through the WiFi network to realize the transmission of service messages. For example, a certain game APP can transmit game messages on a WiFi network and an application server corresponding to the game APP. For another example, a certain multimedia APP can transmit audio and video messages with the application server corresponding to the multimedia APP.
流量转发设备12可以是任意支持空口资源配置,以及业务报文转发的设备,包括路由器、交换机、光网络终端(optic network terminal,ONT)设备等。另一些实施例中,光线路终端(optical line terminal,OLT)设备也可以用作流量转发设备。流量转发设备12可以在接收到终端11的业务请求之后,为该业务请求配置空口资源以及该空口资源传输的优先级,之后,流量转发设备12可以使用所配置的空口资源传输该业务请求的业务报文。另外,一些实施例中,流量转发设备12还可以用于将光信号转换为以太网信号,以及配置网络带宽,还可以为终端11提供以太网接口等。The traffic forwarding device 12 may be any device that supports air interface resource configuration and service message forwarding, including routers, switches, optical network terminal (ONT) devices, and the like. In other embodiments, an optical line terminal (OLT) device may also be used as a traffic forwarding device. After receiving the service request from the terminal 11, the traffic forwarding device 12 may configure air interface resources for the service request and the priority of the air interface resource transmission. After that, the traffic forwarding device 12 may use the configured air interface resources to transmit the service requested by the service. Message. In addition, in some embodiments, the traffic forwarding device 12 can also be used to convert optical signals into Ethernet signals, configure network bandwidth, and can also provide an Ethernet interface for the terminal 11, etc.
网络服务设备13可以是任意提供网络资源的设备,以及用于管理网络设备的设备,包括网管服务器、网络引擎等。另一些实施例中,网络服务设备13还可以包括OLT设备。网络服务设备13可以通过流量转发设备12为终端11配置网络资源。网络服务设备13还可以维护流量转发设备12的空口资源信息等。The network service device 13 may be any device that provides network resources, and a device used to manage network devices, including a network management server, a network engine, and the like. In other embodiments, the network service device 13 may also include an OLT device. The network service device 13 can configure network resources for the terminal 11 through the traffic forwarding device 12. The network service device 13 may also maintain the air interface resource information of the traffic forwarding device 12 and so on.
实际实现中,终端11安装的任意APP运行时,终端11向流量转发设备12发送业务 请求,该业务请求用于请求流量转发设备12分配空口资源,所分配的空口资源用于传输该APP与相应应用服务器之间的业务报文。该业务请求可以包括终端11的网际协议(internet protocol,IP)地址、应用服务器的IP地址、终端11的通信端口号以及应用服务器的通信端口号。之后,流量转发设备12可以根据业务请求中的信息,为终端11和应用服务器配置空口资源以及该空口资源传输的优先级。该空口资源可以被称为该业务请求的“业务连接”或者“业务信道”。本说明书下文涉及到术语“业务连接”或者“业务信道”,实质上均指本实施例所述的空口资源。In actual implementation, when any APP installed by the terminal 11 is running, the terminal 11 sends a service request to the traffic forwarding device 12. The service request is used to request the traffic forwarding device 12 to allocate air interface resources, and the allocated air interface resources are used to transmit the APP and the corresponding Business packets between application servers. The service request may include the internet protocol (IP) address of the terminal 11, the IP address of the application server, the communication port number of the terminal 11, and the communication port number of the application server. After that, the traffic forwarding device 12 can configure the air interface resources and the priority of the air interface resource transmission for the terminal 11 and the application server according to the information in the service request. The air interface resource may be referred to as the "service connection" or "service channel" of the service request. The term "service connection" or "traffic channel" is referred to below in this specification, which essentially refers to the air interface resources described in this embodiment.
其中,按照WiFi通信协议的定义,根据空口资源所传输业务报文的业务类型,空口资源可以被设置为不同的优先级。该优先级用于指示在网络拥塞场景下,该空口资源的业务报文被传输的次序。例如,在网络拥塞场景下,优先级最高的空口资源所传输的业务报文,被优先传输。可见,本申请中,空口资源的优先级,也可以描述为业务报文的传输优先级。一些实施例中,空口资源的优先级例如可以被定义为4级。Among them, according to the definition of the WiFi communication protocol, the air interface resource can be set to different priorities according to the service type of the service message transmitted by the air interface resource. The priority is used to indicate the order in which service packets of the air interface resource are transmitted in a network congestion scenario. For example, in a network congestion scenario, service packets transmitted by air interface resources with the highest priority are transmitted preferentially. It can be seen that in this application, the priority of the air interface resource can also be described as the transmission priority of the service message. In some embodiments, the priority of the air interface resource may be defined as 4 levels, for example.
本申请涉及的业务报文可以被定义为不同业务类型,业务类型例如包括游戏业务、下载业务、视频业务、文件业务等。空口资源的优先级(也称为业务报文的优先级),通常与业务报文的业务类型存在一定的对应关系。例如,游戏业务对应最高优先级。流量转发设备12在配置空口资源的过程中,可以根据业务类型设置空口资源的优先级。The service messages involved in this application can be defined as different service types. For example, the service types include game service, download service, video service, file service, etc. The priority of the air interface resource (also referred to as the priority of the service message) usually has a certain corresponding relationship with the service type of the service message. For example, the game business corresponds to the highest priority. In the process of configuring the air interface resources, the traffic forwarding device 12 may set the priority of the air interface resources according to the service type.
一种现有的实现方式中,流量转发设备通过识别业务报文的内容确定业务报文的业务类型。本实现方式中,流量转发设备根据预存储的识别规则识别业务报文的内容。然而,流量转发设备预存储的识别规则由各APP定义,若相应APP更新使得识别规则变更或者出现新的APP,流量转发设备将无法确定相应APP对应业务请求的业务类型,进而,无法设置相应业务报文的传输优先级。另一种现有的实现方式中,流量转发设备根据业务请求初始的N个业务报文识别业务类型,N例如是大于0小于200的正整数。本实现方式中,流量转发设备需要先采集初始的N个业务报文,然后才能执行识别操作,确定优先级的速度较慢。而且流量转发设备只能按照最低优先级传输初始的N个业务报文。可见,现有方法确定业务类型的性能均不佳,进而导致业务报文的传输性能不佳。In an existing implementation manner, the traffic forwarding device determines the service type of the service message by identifying the content of the service message. In this implementation manner, the traffic forwarding device identifies the content of the service message according to the pre-stored identification rule. However, the identification rules pre-stored by the traffic forwarding device are defined by each APP. If the corresponding APP update causes the identification rule to change or a new APP appears, the traffic forwarding device will not be able to determine the service type of the corresponding APP corresponding to the service request, and therefore, the corresponding service cannot be set. The transmission priority of the message. In another existing implementation manner, the traffic forwarding device identifies the service type according to the initial N service packets of the service request, where N is, for example, a positive integer greater than 0 and less than 200. In this implementation manner, the traffic forwarding device needs to collect the initial N business packets before performing the identification operation, and the speed of determining the priority is relatively slow. Moreover, the traffic forwarding device can only transmit the initial N business packets according to the lowest priority. It can be seen that the existing methods have poor performance in determining the service type, which in turn leads to poor transmission performance of the service message.
本申请实施例提供了一种业务报文传输方法及相关设备,其中,流量转发设备根据业务请求对应的服务器标识,确定所述业务请求的业务类型,之后,流量转发设备按照所确定业务类型对应的优先级,传输所述业务请求对应的业务报文。这样,在接收到业务请求之后,流量转发设备不仅能够快速确定业务请求对应的业务类型,从而提高确定业务类型的性能,进而,能够提高业务报文的传输性能。The embodiment of the application provides a service message transmission method and related equipment, wherein the traffic forwarding device determines the service type of the service request according to the server identifier corresponding to the service request, and then the traffic forwarding device corresponds to the determined service type The priority of transmitting the service message corresponding to the service request. In this way, after receiving the service request, the traffic forwarding device can not only quickly determine the service type corresponding to the service request, thereby improving the performance of determining the service type, and in turn, can improve the transmission performance of the service message.
应理解,本申请实施例还可以适用于面向未来的其他通信技术。本申请描述的系统架构、设备以及业务场景是为了更加清楚的说明本申请的技术方案,并不构成对本申请提供的技术方案的限定,本领域普通技术人员可知,随着系统架构的演变和新业务场景的出现,本申请提供的技术方案对于类似的技术问题,同样适用。It should be understood that the embodiments of the present application may also be applicable to other future-oriented communication technologies. The system architecture, equipment, and business scenarios described in this application are intended to illustrate the technical solutions of this application more clearly, and do not constitute a limitation on the technical solutions provided in this application. Those of ordinary skill in the art will know that as the system architecture evolves and new With the emergence of business scenarios, the technical solutions provided in this application are equally applicable to similar technical problems.
示例性的,结合所述WiFi网络架构10,本申请提供了业务报文传输方法的一种实施例。参见图2,本申请提供的业务报文传输方法100(以下简称方法100)应用于流量转发设备12,包括如下步骤:Exemplarily, in conjunction with the WiFi network architecture 10, the present application provides an embodiment of a service message transmission method. Referring to FIG. 2, the service message transmission method 100 (hereinafter referred to as the method 100) provided by the present application is applied to the traffic forwarding device 12, and includes the following steps:
步骤S101,流量转发设备接收来自于终端的业务请求。Step S101: The traffic forwarding device receives a service request from the terminal.
其中,流量转发设备例如可以是以下任一设备:路由器、交换机、ONT设备、OLT设 备。终端例如可以是通过流量转发设备接入WiFi网络的用户设备(user equipment,UE),例如手机、平板电脑、笔记本电脑等。Among them, the traffic forwarding device may be any of the following devices: routers, switches, ONT devices, and OLT devices, for example. The terminal may be, for example, a user equipment (UE) that accesses a WiFi network through a traffic forwarding device, such as a mobile phone, a tablet computer, a notebook computer, and the like.
业务请求用于终端向第一应用服务器请求业务。第一应用服务器是所述终端上的一个APP对应的应用服务器。业务请求中包括第一服务器标识,第一服务器标识用于将第一应用服务器与其他应用服务器进行区分。第一服务器标识例如可以是第一应用服务器的IP地址,或者第一应用服务器的通用唯一识别码(universally unique identifier,UUID)等。应理解,业务请求中还可以包含其他信息,详见上述实施例对业务请求的描述,此处不详述。The service request is used by the terminal to request a service from the first application server. The first application server is an application server corresponding to an APP on the terminal. The service request includes a first server identifier, and the first server identifier is used to distinguish the first application server from other application servers. The first server identifier may be, for example, the IP address of the first application server, or the universally unique identifier (UUID) of the first application server. It should be understood that the service request may also include other information. For details, refer to the description of the service request in the foregoing embodiment, which is not described in detail here.
步骤S102,流量转发设备根据第一服务器标识确定业务请求的第一业务类型。Step S102: The traffic forwarding device determines the first service type of the service request according to the first server identifier.
本申请中,WiFi网络架构涉及的设备可以建立并维护服务器标识与业务类型的对应关系,进而,流量转发设备获取第一服务器标识之后,可以根据第一服务器标识确定业务请求对应的业务类型,得到第一业务类型。In this application, the devices involved in the WiFi network architecture can establish and maintain the corresponding relationship between the server ID and the service type. Furthermore, after the traffic forwarding device obtains the first server ID, it can determine the service type corresponding to the service request according to the first server ID, and obtain The first type of business.
示例性,当步骤S101中的业务请求是WiFi网络架构中的第一次出现的业务请求,WiFi网络架构涉及的设备可能未维护与第一服务器标识对应的第一业务类型。WiFi网络架构涉及的设备可以建立第一服务器标识与第一业务类型的对应关系,并维护第一服务器标识与第一业务类型的对应关系。当步骤S101中的业务请求是WiFi网络架构中已出现过的业务请求,WiFi网络架构涉及的设备中已维护第一服务器标识与第一业务类型的对应关系,流量转发设备可以根据第一服务器标识确定第一业务类型。本步骤的相关实施例,详见本说明书下文的介绍,此处不详述。Exemplarily, when the service request in step S101 is the first service request in the WiFi network architecture, the device involved in the WiFi network architecture may not maintain the first service type corresponding to the first server identifier. The devices involved in the WiFi network architecture can establish a corresponding relationship between the first server identifier and the first service type, and maintain the corresponding relationship between the first server identifier and the first service type. When the service request in step S101 is a service request that has already occurred in the WiFi network architecture, the corresponding relationship between the first server identifier and the first service type has been maintained in the devices involved in the WiFi network architecture, and the traffic forwarding device can be based on the first server identifier Determine the first type of business. For related embodiments of this step, please refer to the description below in this specification for details, which will not be described in detail here.
步骤S103,流量转发设备根据第一业务类型对应的优先级传输业务请求对应的业务报文。Step S103: The traffic forwarding device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
根据上述关于业务类型的描述可知,业务类型与优先级存在对应关系。基于此,在确定第一业务类型之后,流量转发设备可以获取第一业务类型对应的优先级,之后,按照所获取的优先级传输业务请求对应的业务报文。According to the above description of service types, there is a corresponding relationship between service types and priorities. Based on this, after the first service type is determined, the traffic forwarding device may obtain the priority corresponding to the first service type, and then transmit the service message corresponding to the service request according to the obtained priority.
本实施例中,WiFi网络结构涉及的设备可以将业务类型和应用服务器的服务器标识建立对应关系。进而,流量转发设备在接收到业务请求之后,从业务请求中获取服务器标识,该服务器标识指示该业务请求对应的应用服务器。之后,流量转发设备可以获取该服务器标识对应的业务类型,从而得到该业务请求对应的业务类型。然后,流量转发设备得到该业务类型对应的优先级,进而,流量转发设备可以按照该优先级传输该业务请求对应的业务报文。In this embodiment, the device involved in the WiFi network structure may establish a corresponding relationship between the service type and the server identifier of the application server. Furthermore, after receiving the service request, the traffic forwarding device obtains the server identifier from the service request, where the server identifier indicates the application server corresponding to the service request. After that, the traffic forwarding device can obtain the service type corresponding to the server identifier, thereby obtaining the service type corresponding to the service request. Then, the traffic forwarding device obtains the priority corresponding to the service type, and further, the traffic forwarding device can transmit the service message corresponding to the service request according to the priority.
由此可见,采用本申请的实现方式,流量转发设备接收到业务请求之后,无需解析业务报文的内容,根据服务器标识即可确定业务请求对应业务类型,从而能够快速确定业务请求对应的业务类型,进而,能够提高业务报文的传输性能。It can be seen that with the implementation of this application, after the traffic forwarding device receives the service request, it does not need to parse the content of the service message, and can determine the service type corresponding to the service request based on the server identifier, so that the service type corresponding to the service request can be quickly determined In turn, the transmission performance of service messages can be improved.
以下结合示例对方法100的具体实施过程进行介绍。The specific implementation process of the method 100 will be introduced below in conjunction with examples.
图3示出了业务报文传输方法的方法流程图。业务报文传输方法200(以下简称方法200)包括如下步骤:Fig. 3 shows a method flow chart of a service message transmission method. The service message transmission method 200 (hereinafter referred to as the method 200) includes the following steps:
步骤S201,流量转发设备接收来自于终端的业务请求。Step S201: The traffic forwarding device receives a service request from the terminal.
本步骤与方法100中示意的步骤S101类似,详细信息可参考方法100中步骤S101的描述,此处不再赘述。This step is similar to step S101 illustrated in method 100. For detailed information, please refer to the description of step S101 in method 100, which will not be repeated here.
示例性的,用户触发终端侧安装的游戏APP“W游戏”运行。“W游戏”APP向流量转发设备发送业务请求,该业务请求中包含“W游戏服务器”的IP地址“IP001”。本实施例中,“W游戏服务器”的IP地址例如是第一服务器标识。Exemplarily, the user triggers the operation of the game APP "WGame" installed on the terminal side. The "W Game" APP sends a service request to the traffic forwarding device, and the service request contains the IP address "IP001" of the "W Game Server". In this embodiment, the IP address of the "W game server" is, for example, the first server identifier.
步骤S202,流量转发设备确定第一对应关系中是否包含与第一服务器标识对应的业务类型,若包含,执行步骤S203;若不包含,执行步骤S204。Step S202: The traffic forwarding device determines whether the service type corresponding to the first server identifier is included in the first correspondence, if it does, execute step S203; if it does not, execute step S204.
其中,第一对应关系包含至少一条服务器标识与业务类型的对应关系。示例性的,第一对应关系的实现形式如表1所示。Wherein, the first correspondence includes at least one correspondence between a server identifier and a service type. Exemplarily, the realization form of the first correspondence is shown in Table 1.
表1Table 1
服务器标识Server ID 业务类型business type
IP地址1IP address 1 视频业务Video business
IP地址2IP address 2 下载业务Download business
IP地址3IP address 3 游戏业务Game business
IP地址4IP address 4 视频业务Video business
其中,表1示意了四组示例性对应关系,本实施例中,“服务器标识”例如是各应用服务的IP地址。“服务器标识”对应的列中,每一个IP地址与所述IP地址同一行的业务类型呈对应关系。例如,“IP地址1”与“视频业务”呈对应关系,也可以表达为与“IP地址1”对应的业务类型是“视频业务”。再如,“IP地址2”与“下载业务”呈对应关系,也即与“IP地址2”对应的业务类型是“下载业务”。表1中其他IP地址与业务类型的对应关系同理,本申请此处不再一一列举。Among them, Table 1 illustrates four sets of exemplary correspondences. In this embodiment, the "server identification" is, for example, the IP address of each application service. In the column corresponding to the "server identification", each IP address corresponds to the service type in the same row of the IP address. For example, "IP address 1" and "video service" have a corresponding relationship, and can also be expressed as the service type corresponding to "IP address 1" is "video service". For another example, "IP address 2" has a corresponding relationship with "download service", that is, the service type corresponding to "IP address 2" is "download service". The correspondence between other IP addresses and service types in Table 1 is the same, and this application will not list them one by one here.
可以理解的是,表1仅是示意性示例,不应对本申请所述的第一对应关系构成限制。在另一些实现方式中,表1中的服务器标识不限于IP地址,且第一对应关系中还可以包括更多或者更少的对应关系。此处不再详述。It can be understood that Table 1 is only a schematic example, and should not constitute a limitation to the first correspondence described in this application. In other implementation manners, the server identifiers in Table 1 are not limited to IP addresses, and the first correspondence may also include more or fewer correspondences. No more details here.
需要指出的是,第一对应关系中的每组对应关系,可以是相应服务器标识所属业务请求首次发出的实施场景中建立的。例如,表1中“IP地址3”与“游戏业务”的对应关系,是包含“IP地址3”的业务请求在网络架构中首次出现的场景中建立的。基于此,当所述业务请求是网络结构中第一次出现的业务请求时,第一对应关系中未存储第一服务器标识与业务类型的对应关系,流量转发设备可以确定第一对应关系中不包含与第一服务器标识对应的业务类型。当所述业务请求是网络结构中第二次及以上出现的业务请求时,第一对应关系中已存储第一服务器标识与业务类型的对应关系,流量转发设备可以确定第一对应关系中与第一服务器标识对应的业务类型。相关实施例详见下文描述。It should be pointed out that each set of correspondences in the first correspondence may be established in the implementation scenario where the corresponding server identifies the service request to which it belongs for the first time. For example, the correspondence between "IP address 3" and "game service" in Table 1 is established in a scenario where a service request containing "IP address 3" first appeared in the network architecture. Based on this, when the service request is the first service request that appears in the network structure, the corresponding relationship between the first server identifier and the service type is not stored in the first correspondence, and the traffic forwarding device can determine that the first correspondence is not in the first correspondence. Contains the service type corresponding to the first server identifier. When the service request is the second or later service request in the network structure, the corresponding relationship between the first server identifier and the service type has been stored in the first corresponding relationship, and the traffic forwarding device may determine A service type corresponding to a server identifier. Related embodiments are described in detail below.
一些实施例中,第一对应关系可以维护在网络服务设备端。网络服务设备的功能如上述实施例所述,此处不再赘述。此外,一些实施例中,当流量转发设备是路由器、ONT、OLT中任一时,网络服务设备可以是网管服务器。另一些实施例中,当流量转发设备是路由器或ONT时,网络服务设备可以是OLT或者网管服务器。In some embodiments, the first correspondence may be maintained on the network service device side. The functions of the network service device are as described in the foregoing embodiment, and will not be repeated here. In addition, in some embodiments, when the traffic forwarding device is any one of a router, an ONT, or an OLT, the network service device may be a network management server. In other embodiments, when the traffic forwarding device is a router or an ONT, the network service device may be an OLT or a network management server.
基于此,本申请提供了本步骤的一种可能的实现方式。示例性的,如图3A所示,本步骤的一种示例性信令交互过程可以包括以下步骤:Based on this, this application provides a possible implementation of this step. Exemplarily, as shown in FIG. 3A, an exemplary signaling interaction process in this step may include the following steps:
步骤S2021,流量转发设备将第一服务器标识发送到网络服务设备。Step S2021: The traffic forwarding device sends the first server identifier to the network service device.
示例性的,流量转发设备将“IP001”发送到网络服务设备。Exemplarily, the traffic forwarding device sends "IP001" to the network service device.
步骤S2022,网络服务设备确定第一对应关系中是否包含与第一服务器标识对应的业 务类型,若包含,执行步骤S2023;若不包含,执行步骤S2024。In step S2022, the network service device determines whether the first correspondence relationship includes the service type corresponding to the first server identifier, if it does, execute step S2023; if it does not include it, execute step S2024.
其中,网络服务设备例如可以遍历第一对应关系,若通过遍历在第一对应关系中查找到第一服务器标识,读取第一服务器标识对应的业务类型。若通过遍历在第一对应关系中未查找到第一服务器标识,说明第一对应关系中不包含第一服务器标识与业务类型的对应关系。The network service device may, for example, traverse the first correspondence relationship, and if the first server identifier is found in the first correspondence relationship through the traversal, read the service type corresponding to the first server identifier. If the first server identifier is not found in the first correspondence through traversal, it means that the first correspondence does not include the correspondence between the first server identifier and the service type.
示例性的,网络服务设备接收到“W游戏服务器”的IP地址“IP001”之后,例如可以遍历表1中的“服务器标识”对应的列。若该列中包含“IP001”,网络服务设备可以读取与“IP001”对应的业务类型,之后,网络服务设备可以执行步骤S2023。若该列中不包含“IP001”,网络服务设备可以执行步骤S2024。Exemplarily, after receiving the IP address “IP001” of the “W game server”, the network service device may traverse the column corresponding to the “server identification” in Table 1, for example. If the column contains "IP001", the network service device can read the service type corresponding to "IP001", and then the network service device can perform step S2023. If the column does not contain "IP001", the network service device can perform step S2024.
步骤S2023,网络服务设备将业务类型发送到流量转发设备。Step S2023: The network service device sends the service type to the traffic forwarding device.
进而,流量转发设备可以执行步骤S203。Furthermore, the traffic forwarding device may perform step S203.
步骤S2024,网络服务设备向流量转发设备响应信息。Step S2024: The network service device responds to the traffic forwarding device.
其中,响应信息用于指示第一对应关系中不包含与第一服务器标识对应的业务类型。The response information is used to indicate that the first correspondence relationship does not include the service type corresponding to the first server identifier.
进而,流量转发设备可以执行步骤S204。Furthermore, the traffic forwarding device may perform step S204.
需要指出的是,图3A示意的实施例是本申请一种可选的实现方式。另一种实施例中,流量转发设备端例如可以维护第二对应关系,第二对应关系包括至少一个服务器标识与业务类型的对应关系。在步骤S2021之前,流量转发设备可以确定第二对应关系中是否包含与第一服务器标识对应的业务类型,若第二对应关系中包含与第一服务器标识对应的业务类型,流量转发设备执行步骤S203。若第二对应关系中不包含与第一服务器标识对应的业务类型,流量转发设备执行步骤S2021。It should be pointed out that the embodiment illustrated in FIG. 3A is an optional implementation manner of the present application. In another embodiment, the traffic forwarding device may maintain a second correspondence relationship, for example, and the second correspondence relationship includes a correspondence relationship between at least one server identifier and a service type. Before step S2021, the traffic forwarding device may determine whether the second correspondence relationship includes the service type corresponding to the first server identifier, and if the second correspondence relationship includes the service type corresponding to the first server identifier, the traffic forwarding device performs step S203 . If the second correspondence does not include the service type corresponding to the first server identifier, the traffic forwarding device executes step S2021.
示例性的,流量转发设备通常存储空间较小,所以,第二对应关系中的信息是第一对应关系中的部分信息。例如,第二对应关系中包含80组对应关系,第一对应关系中包含2000组对应关系。一些实施例中,第二对应关系中的对应关系由流量转发设备建立。另一些实施例中,第二对应关系中的对应关系是流量转发设备从网络服务设备接收的。Exemplarily, the traffic forwarding device usually has a small storage space, so the information in the second correspondence is part of the information in the first correspondence. For example, the second correspondence includes 80 sets of correspondences, and the first correspondence includes 2000 sets of correspondences. In some embodiments, the correspondence in the second correspondence is established by the traffic forwarding device. In other embodiments, the correspondence in the second correspondence is received by the traffic forwarding device from the network service device.
步骤S203,流量转发设备将与第一服务器标识对应的业务类型确定为第一业务类型。Step S203: The traffic forwarding device determines the service type corresponding to the first server identifier as the first service type.
示例性,“W游戏服务器”的IP地址“IP001”对应的业务类型例如是“游戏业务”,本实施例中,流量转发设备将游戏业务确定为第一业务类型。For example, the service type corresponding to the IP address “IP001” of the “W game server” is, for example, “game service”. In this embodiment, the traffic forwarding device determines the game service as the first service type.
步骤S204,流量转发设备根据业务请求对应业务报文的属性信息,确定第一业务类型。Step S204: The traffic forwarding device determines the first service type according to the attribute information of the service message corresponding to the service request.
其中,属性信息可以包括业务请求对应的每个业务报文的长度以及业务报文之间的间隔时长。Wherein, the attribute information may include the length of each service message corresponding to the service request and the interval time between service messages.
根据步骤S202所述,若第一对应关系中不包含与第一服务器标识对应的业务类型,流量转发设备或者网络服务设备可以建立第一服务器标识与第一业务类型的对应关系。可以理解的是,业务报文的内容或者结构可能会变更,但是任意业务类型对应的业务流程中各业务报文的长度以及各业务报文之间的间隔时长,通常不变。基于此,本申请实施例中,流量转发设备或者网络服务设备可以根据业务报文的上述属性信息,确定相应业务请求对应的业务类型。According to step S202, if the first corresponding relationship does not include the service type corresponding to the first server identifier, the traffic forwarding device or the network service device may establish the corresponding relationship between the first server identifier and the first service type. It is understandable that the content or structure of the business message may be changed, but the length of each business message in the business process corresponding to any service type and the interval time between each business message are usually unchanged. Based on this, in the embodiment of the present application, the traffic forwarding device or the network service device may determine the service type corresponding to the corresponding service request according to the above-mentioned attribute information of the service packet.
示例性的,以流量转发设备为例,流量转发设备可以采集业务请求对应的完整业务流程涉及的属性信息,包括完整业务流程涉及的所有业务报文的长度,以及各业务报文之间的间隔时长。之后,流量转发设备可以根据属性信息生成业务请求的特征信息。特征信息 例如包括长度最长的业务报文的长度、数量和占比,长度最短的业务报文的长度、数量和占比,不同间隔时长的长度和占比等。然后,流量转发设备可以根据上述特征信息确定业务请求对应的业务类型,得到第一业务类型。一些实施例中,流量转发设备可以将上述特征信息输入预设的分析模型中,得到第一业务类型。预设的分析模型可以预先通过机器学习得到。Exemplarily, taking the traffic forwarding device as an example, the traffic forwarding device can collect the attribute information related to the complete business process corresponding to the service request, including the length of all business packets involved in the complete business process, and the interval between each business message duration. After that, the traffic forwarding device can generate the characteristic information of the service request according to the attribute information. The characteristic information includes, for example, the length, quantity, and proportion of the longest business message, the length, quantity, and proportion of the shortest business message, and the length and proportion of different intervals. Then, the traffic forwarding device may determine the service type corresponding to the service request according to the above-mentioned characteristic information to obtain the first service type. In some embodiments, the traffic forwarding device may input the above-mentioned characteristic information into a preset analysis model to obtain the first service type. The preset analysis model can be obtained through machine learning in advance.
可以理解的是,上述根据业务报文的属性信息确定业务类型的实现方式,仅是示意性描述,不构成对本申请实施例的限制。另一些实施例中,确定业务类型所依据的信息可以更多或者更少,或者,可以根据属性信息直接得到的业务类型。此处不限制。It is understandable that the foregoing implementation manner of determining the service type according to the attribute information of the service message is only a schematic description, and does not constitute a limitation to the embodiment of the present application. In other embodiments, the information on which the service type is determined may be more or less, or the service type may be directly obtained according to the attribute information. There is no restriction here.
进一步的,一些实施例中,上述分析模型可以设置在流量转发设备中。本实施例中,流量转发设备用于执行确定第一业务类型的操作。另一些实施例中,上述分析模型可以设置在网络服务设备中。本实施例中,网络服务设备用于执行确定第一业务类型的操作。对应该两种实施例,本步骤可以采用以下两种示例性实现方式实现。Further, in some embodiments, the above analysis model may be set in a traffic forwarding device. In this embodiment, the traffic forwarding device is used to perform the operation of determining the first service type. In other embodiments, the above analysis model may be set in a network service device. In this embodiment, the network service device is used to perform the operation of determining the first service type. Corresponding to the two embodiments, this step can be implemented in the following two exemplary implementation manners.
实现方式一:分析模型设置在流量转发设备中Implementation method 1: The analysis model is set in the traffic forwarding device
如图3B所示,本步骤的第一种示例性信令交互过程可以包括以下步骤:As shown in FIG. 3B, the first exemplary signaling interaction process in this step may include the following steps:
步骤S2041,流量转发设备按照预设解析规则解析属性信息得到第一业务类型。Step S2041: The traffic forwarding device parses the attribute information according to a preset analysis rule to obtain the first service type.
其中,预设解析规则包括,上述根据属性信息生成业务请求的特征信息的规则以及上述分析模型。流量转发设备解析属性信息得到第一业务类型的实施过程,详见上述实施例的描述,此处不赘述。Wherein, the preset analysis rules include the above-mentioned rule for generating feature information of the service request based on the attribute information and the above-mentioned analysis model. The implementation process for the traffic forwarding device to parse the attribute information to obtain the first service type is described in detail in the foregoing embodiment, and will not be repeated here.
进而,本实施例还可以包括:Furthermore, this embodiment may also include:
步骤S2042,流量转发设备建立第一服务器标识与第一业务类型的对应关系。Step S2042: The traffic forwarding device establishes a corresponding relationship between the first server identifier and the first service type.
一些实施例中,流量转发设备中若维护第二对应关系,在步骤S2042之后,流量转发设备可以将第一服务器标识与第一业务类型的对应关系添加到第二对应关系中,以更新第二对应关系。In some embodiments, if the second correspondence is maintained in the traffic forwarding device, after step S2042, the traffic forwarding device may add the correspondence between the first server identifier and the first service type to the second correspondence to update the second correspondence. Correspondence.
进一步的,本实施例中,流量转发设备将第一服务器标识与第一业务类型的对应关系添加到第二对应关系中的同时,流量转发设备还可以删除第二对应关系中最早添加的对应关系。Further, in this embodiment, when the traffic forwarding device adds the correspondence between the first server identifier and the first service type to the second correspondence, the traffic forwarding device may also delete the earliest added correspondence in the second correspondence. .
步骤S2043,流量转发设备将第一服务器标识与第一业务类型的对应关系发送到网络服务设备。Step S2043: The traffic forwarding device sends the corresponding relationship between the first server identifier and the first service type to the network service device.
步骤S2044,网络服务设备更新第一对应关系。Step S2044: The network service device updates the first correspondence.
其中,网络服务设备可以将第一服务器标识与第一业务类型的对应关系添加到第一对应关系中,得到更新后的第一对应关系。The network service device may add the correspondence between the first server identifier and the first service type to the first correspondence to obtain the updated first correspondence.
此外,一些实施例中,网络服务设备还可以将第一服务器标识与第一业务类型的对应关系,向该网络服务设备连接的其他流量转发设备广播,以使其他流量转发设备更新相应流量转发设备所维护的第二对应关系。其他流量转发设备是指该网络服务设备连接的除了所述流量转发设备之外的流量转发设备。In addition, in some embodiments, the network service device may also broadcast the corresponding relationship between the first server identifier and the first service type to other traffic forwarding devices connected to the network service device, so that other traffic forwarding devices can update corresponding traffic forwarding devices. The second correspondence maintained. Other traffic forwarding devices refer to traffic forwarding devices other than the traffic forwarding device connected to the network service device.
实现方式二:分析模型设置在网络服务设备中Implementation method 2: The analysis model is set in the network service equipment
如图3C所示,本步骤的第二种示例性信令交互过程可以包括以下步骤:As shown in Figure 3C, the second exemplary signaling interaction process in this step may include the following steps:
步骤S2045,流量转发设备将属性信息发送到网络服务设备。Step S2045: The traffic forwarding device sends the attribute information to the network service device.
其中,属性信息如上述实施例所述。Wherein, the attribute information is as described in the above embodiment.
步骤S2046,网络服务设备按照预设解析规则解析属性信息得到第一业务类型。Step S2046: The network service device parses the attribute information according to a preset analysis rule to obtain the first service type.
其中,网络服务设备根据属性信息得到第一业务类型的实施过程,与图3B中示意的步骤S2041相似,此处不详述。The implementation process for the network service device to obtain the first service type according to the attribute information is similar to step S2041 illustrated in FIG. 3B, and will not be described in detail here.
另外,本实施例中,网络服务设备可以建立第一服务器标识和第一业务类型的对应关系,然后,根据第一服务器标识和第一业务类型的对应关系更新第一对应关系。In addition, in this embodiment, the network service device may establish a correspondence between the first server identifier and the first service type, and then update the first correspondence according to the correspondence between the first server identifier and the first service type.
步骤S2047,网络服务设备将第一业务类型发送到流量转发设备。Step S2047: The network service device sends the first service type to the traffic forwarding device.
一些实施例中,网络服务设备还可以将第一服务器标识和第一业务类型的对应关系,向该网络服务设备连接的流量转发设备广播。相应的,所述流量转发设备广播可以根据第一服务器标识和第一业务类型的对应关系,更新第二对应关系。In some embodiments, the network service device may also broadcast the correspondence between the first server identifier and the first service type to the traffic forwarding device connected to the network service device. Correspondingly, the traffic forwarding device broadcast may update the second correspondence relationship according to the correspondence relationship between the first server identifier and the first service type.
其他一些实施例中,网络服务设备还可以从其他流量转发设备接收第二服务器标识,之后,网络服务设备从第一对应关系中查找与第二服务器标识对应的业务类型。示例性的,若网络服务设备在第一对应关系中未查找到第二服务器标识对应的业务类型,网络服务设备可以向相应流量转发设备发送响应信息,以触发相应流量转发设备确定与第二服务器标识对应的第二业务类型。本实施例中,网络服务设备可以确定第二服务器标识和第二业务类型的对应关系,或者从其他流量转发设备接收第二服务器标识和第二业务类型的对应关系。之后,网络服务设备例如还可以将第二服务器标识和第二业务类型的对应关系,广播到所述流量转发设备。相应的,所述流量转发设备还可以根据第二服务器标识和第二业务类型的对应关系更新第二对应关系。此处不详述。In some other embodiments, the network service device may also receive the second server identifier from other traffic forwarding devices. After that, the network service device searches for the service type corresponding to the second server identifier from the first correspondence relationship. Exemplarily, if the network service device does not find the service type corresponding to the second server identifier in the first correspondence, the network service device may send response information to the corresponding traffic forwarding device to trigger the corresponding traffic forwarding device to determine with the second server Identifies the corresponding second service type. In this embodiment, the network service device may determine the correspondence between the second server identifier and the second service type, or receive the correspondence between the second server identifier and the second service type from other traffic forwarding devices. After that, the network service device may, for example, also broadcast the correspondence between the second server identifier and the second service type to the traffic forwarding device. Correspondingly, the traffic forwarding device may also update the second correspondence relationship according to the correspondence relationship between the second server identifier and the second service type. Not detailed here.
步骤S205,流量转发设备根据第一业务类型对应的优先级传输业务请求对应的业务报文。Step S205: The traffic forwarding device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
综上,本申请实施例涉及的网络设备,根据整个业务流程中业务报文的属性,确定业务请求对应的业务类型,使得业务类型的确定过程不受业务报文结构和内容的影响,确定方式稳定且适用性广。另外,网络设备维护服务器标识与业务类型的对应关系,并且将该对应关系用于后续业务类型的确定,使得确定业务类型的过程无需复杂计算分析,能够加快确定业务类型的速度,从而提高识别业务类型的性能,进而提高业务报文传输的性能。In summary, the network device involved in the embodiments of the present application determines the service type corresponding to the service request according to the attributes of the service message in the entire service process, so that the service type determination process is not affected by the structure and content of the service message, and the determination method Stable and wide applicability. In addition, the network device maintains the corresponding relationship between the server identifier and the service type, and uses the corresponding relationship to determine the subsequent service type, so that the process of determining the service type does not require complicated calculation and analysis, which can speed up the determination of the service type, thereby improving the identification service Type of performance, thereby improving the performance of service message transmission.
以下结合实例对本方案进行示例性描述。The following describes the solution exemplarily in conjunction with examples.
示例性的,图4示出了一种WiFi网络架构20。本实施例中,网络架构20包括手机21、路由器22、ONT设备23、OLT设备24和网管服务器25。其中,手机21可以通过路由器22接入ONT设备23、OLT设备24和网管服务器25用于提供WiFi网络。Exemplarily, FIG. 4 shows a WiFi network architecture 20. In this embodiment, the network architecture 20 includes a mobile phone 21, a router 22, an ONT device 23, an OLT device 24, and a network management server 25. Among them, the mobile phone 21 can access the ONT device 23, the OLT device 24, and the network management server 25 through the router 22 to provide a WiFi network.
网管服务器25可负责管理和配置网络资源等。The network management server 25 may be responsible for managing and configuring network resources and the like.
OLT设备24可负责向ONT设备23以广播方式发送以太网数据,以及为ONT设备23分配带宽等。以下实施例以OLT设备24为网络服务设备进行说明。The OLT device 24 may be responsible for sending Ethernet data to the ONT device 23 in a broadcast manner, and allocating bandwidth for the ONT device 23. In the following embodiments, the OLT device 24 is used as a network service device for description.
ONT设备23可用于将光信号转换为以太网信号,还可以为手机21配置空口资源,以及转发手机21的业务报文等。以下实施例以ONT设备23为流量转发设备进行说明。The ONT device 23 can be used to convert optical signals into Ethernet signals, and can also configure air interface resources for the mobile phone 21, and forward service packets of the mobile phone 21, and so on. In the following embodiments, the ONT device 23 is used as a traffic forwarding device for description.
路由器22可扩大ONT设备11提供的网络信号的覆盖范围,并作为无线接入点将你手机21接入网络。The router 22 can expand the coverage of the network signal provided by the ONT device 11 and serve as a wireless access point to connect your mobile phone 21 to the network.
手机21例如可以安装多个APP。每个APP运行时,手机21例如向ONT设备23发送业务请求。以下实施例以游戏APP“W游戏”为例进行说明。The mobile phone 21 can install multiple APPs, for example. When each APP is running, the mobile phone 21 sends a service request to the ONT device 23, for example. The following embodiments take the game APP "W Game" as an example for description.
可以理解的是,图4示意的WiFi网络架构20只是示意性说明,并不构成对WiFi网 络架构20的限定。在另一些实施例中,WiFi网络架构20还可以包括更多或者更少的设备等。It is understandable that the WiFi network architecture 20 shown in FIG. 4 is only a schematic illustration, and does not constitute a limitation on the WiFi network architecture 20. In other embodiments, the WiFi network architecture 20 may also include more or fewer devices.
进一步的,结合图4,以下分别从两个实施场景,对本申请技术方案进行示例性说明。所述两个实施场景包括创建服务器标识与业务类型的对应关系的场景,以及根据对应关系确定业务类型的场景。Further, with reference to FIG. 4, the technical solutions of the present application will be exemplified from two implementation scenarios. The two implementation scenarios include a scenario in which a corresponding relationship between a server identifier and a service type is created, and a scenario in which a service type is determined according to the corresponding relationship.
图5A示意了对应关系创建方法300的信令交互图。对应关系创建方法300(以下简称方法300)对应的实施场景,例如根据第一对应关系无法确定业务类型。方法300包括如下步骤:FIG. 5A illustrates a signaling interaction diagram of a method 300 for creating a correspondence relationship. For the implementation scenario corresponding to the correspondence creation method 300 (hereinafter referred to as the method 300), for example, the service type cannot be determined according to the first correspondence. The method 300 includes the following steps:
步骤S301,ONT设备23接收手机21发送的第一业务请求。In step S301, the ONT device 23 receives the first service request sent by the mobile phone 21.
其中,第一业务请求例如是游戏APP“W游戏”发送的请求,第一业务请求例如包含W游戏服务器的IP地址“IP001”。该请求用于向W游戏服务器请求业务报文。Wherein, the first service request is, for example, a request sent by the game APP "W Game", and the first service request includes, for example, the IP address "IP001" of the W game server. This request is used to request service messages from the W game server.
步骤S302,ONT设备23将IP地址“IP001”发送到OLT设备24。In step S302, the ONT device 23 sends the IP address "IP001" to the OLT device 24.
示例性的,ONT设备23中未维护服务器标识与业务类型的对应关系,所以,ONT设备23应当将“IP001”发送到OLT设备24。Exemplarily, the corresponding relationship between the server identifier and the service type is not maintained in the ONT device 23, so the ONT device 23 should send “IP001” to the OLT device 24.
需要指出的是,在其他实施例中,ONT设备23中可以维护服务器标识与业务类型的对应关系。在该实施例中,ONT设备23应当在本地维护的对应关系中查找“IP001”对应的业务类型,在本地维护的对应关系中未查找到“IP001”对应的业务类型之后,ONT设备23执行步骤S302。此处不再详述。It should be pointed out that in other embodiments, the ONT device 23 may maintain the corresponding relationship between the server identifier and the service type. In this embodiment, the ONT device 23 should search for the service type corresponding to "IP001" in the corresponding relationship maintained locally. After the service type corresponding to "IP001" is not found in the corresponding relationship maintained locally, the ONT device 23 executes the steps S302. No more details here.
步骤S303,OLT设备24在第一对应关系中查找与“IP001”对应的业务类型。In step S303, the OLT device 24 searches for the service type corresponding to "IP001" in the first correspondence.
步骤S304,在未查找到与“IP001”对应的业务类型之后,OLT设备24向ONT设备23发送响应信息。In step S304, after the service type corresponding to “IP001” is not found, the OLT device 24 sends response information to the ONT device 23.
其中,响应信息用于指示第一对应关系中不包含与“IP001”对应的业务类型。The response information is used to indicate that the service type corresponding to "IP001" is not included in the first correspondence.
本实施场景中,第一业务请求是WiFi网络架构20中首个包含“IP001”的业务请求,所以,第一对应关系中不包含“IP001”,以及“IP001”对应的业务类型。In this implementation scenario, the first service request is the first service request in the WiFi network architecture 20 that includes "IP001", so the first correspondence does not include "IP001" and the service type corresponding to "IP001".
步骤S305,ONT设备23采集“W游戏”完整业务流程涉及的属性信息。In step S305, the ONT device 23 collects the attribute information involved in the complete business process of the "W game".
本实施场景中,ONT设备23维护预设的分析模型。属性信息包括“W游戏”完整业务流程涉及的业务报文和各业务报文之间的间隔时长。In this implementation scenario, the ONT device 23 maintains a preset analysis model. The attribute information includes the business message involved in the complete business process of the "W game" and the interval time between each business message.
步骤S306,ONT设备23提取“W游戏”业务报文的特征信息。In step S306, the ONT device 23 extracts the characteristic information of the "W game" service message.
其中,该特征信息包括长度最长的业务报文的长度、数量和占比,长度最短的业务报文的长度、数量和占比,不同间隔时长的长度和占比。Among them, the characteristic information includes the length, quantity, and proportion of the longest business message, the length, quantity, and proportion of the shortest business message, and the length and proportion of different interval durations.
步骤S307,ONT设备23将特征信息输入分析模型,得到第一业务请求的业务类型是游戏业务。In step S307, the ONT device 23 inputs the characteristic information into the analysis model, and obtains that the service type requested by the first service is a game service.
需要指出的是,在其他实施例中,预设的分析模型可以维护在OLT设备24中。该实施例中,步骤S305之后,ONT设备23可以将所采集的信息发送到OLT设备24。OLT设备24执行本实施例中步骤S306和步骤S307涉及的操作。此处不再详述。It should be pointed out that in other embodiments, the preset analysis model may be maintained in the OLT device 24. In this embodiment, after step S305, the ONT device 23 may send the collected information to the OLT device 24. The OLT device 24 performs the operations involved in step S306 and step S307 in this embodiment. No more details here.
步骤S308,ONT设备23将IP001和游戏业务的对应关系发送到OLT设备24。In step S308, the ONT device 23 sends the correspondence between IP001 and the game service to the OLT device 24.
步骤S309,OLT设备24将IP001和游戏业务的对应关系添加到第一对应关系中。In step S309, the OLT device 24 adds the correspondence between IP001 and the game service to the first correspondence.
另一些实施例中,OLT设备24还可以向OLT设备24所连接的ONT设备广播IP001和游戏业务的对应关系。此处不再详述。In other embodiments, the OLT device 24 may also broadcast the correspondence between IP001 and game services to the ONT device connected to the OLT device 24. No more details here.
在图5A示意的实施例之后,图5B示意了业务报文传输方法400的信令交互图。业务报文传输方法400(以下简称方法400)包括如下步骤:After the embodiment illustrated in FIG. 5A, FIG. 5B illustrates a signaling interaction diagram of a service packet transmission method 400. The service message transmission method 400 (hereinafter referred to as the method 400) includes the following steps:
步骤S401,ONT设备23接收手机21发送的第二业务请求。In step S401, the ONT device 23 receives the second service request sent by the mobile phone 21.
本实施场景中,第二业务请求例如依然是游戏APP“W游戏”发送的请求。第二业务请求包含IP地址“IP001”。In this implementation scenario, the second service request is still, for example, a request sent by the game APP "WGame". The second service request contains the IP address "IP001".
步骤S402,ONT设备23将IP地址“IP001”发送到OLT设备24。In step S402, the ONT device 23 sends the IP address "IP001" to the OLT device 24.
步骤S403,OLT设备24在第一对应关系中查找与“IP001”对应的业务类型,得到游戏业务。In step S403, the OLT device 24 searches for the service type corresponding to "IP001" in the first correspondence to obtain the game service.
在方法300对应的实施中,IP001与游戏业务的对应关系存储在第一对应关系中。进而,OLT设备24能够根据第一对应关系确定IP001对应的业务类型是游戏业务。In the corresponding implementation of the method 300, the correspondence between IP001 and the game service is stored in the first correspondence. Furthermore, the OLT device 24 can determine that the service type corresponding to IP001 is a game service according to the first correspondence.
需要指出的是,在其他实施例中,ONT设备23中若维护服务器标识与业务类型的对应关系,ONT设备23可能在本地即可确定IP001对应的业务类型是游戏业务。进而,ONT设备23可直接执行步骤S405。此处不再详述。It should be pointed out that in other embodiments, if the corresponding relationship between the server identifier and the service type is maintained in the ONT device 23, the ONT device 23 may locally determine that the service type corresponding to IP001 is a game service. Furthermore, the ONT device 23 can directly execute step S405. No more details here.
步骤S404,OLT设备24将游戏业务发送到ONT设备23。In step S404, the OLT device 24 sends the game service to the ONT device 23.
步骤S405,ONT设备23获取游戏业务对应的优先级,得到最高优先级。In step S405, the ONT device 23 obtains the priority corresponding to the game service, and obtains the highest priority.
步骤S406,ONT设备23按照最高优先级传输第二业务请求对应的业务报文。In step S406, the ONT device 23 transmits the service message corresponding to the second service request according to the highest priority.
可以理解的是,图5A和图5B示意的方法只是示意性说明,并不构成对本申请业务报文传输方法的限定。在另一些实施例中,上述ONT设备23执行的操作,可以由路由器22执行,上述OLT设备24执行的操作,可以由网管服务器25执行。此外,根据分析模型等信息所在的设备不同,各设备执行的操作也可以不同于图5A和图5B的描述。此处不限制。It is understandable that the methods illustrated in FIG. 5A and FIG. 5B are only schematic illustrations, and do not constitute a limitation on the service packet transmission method of the present application. In other embodiments, the operations performed by the ONT device 23 may be performed by the router 22, and the operations performed by the OLT device 24 may be performed by the network management server 25. In addition, depending on the device where the analysis model and other information are located, the operations performed by each device may also be different from the description of FIG. 5A and FIG. 5B. There is no restriction here.
综上,本申请实施例涉及的网络设备,根据整个业务流程中业务报文的属性,确定业务请求对应的业务类型,使得业务类型的确定过程不受业务报文结构和内容的影响,确定方式稳定且适用性广。另外,网络设备维护服务器标识与业务类型的对应关系,并且将该对应关系用于后续业务类型的确定,使得确定业务类型的过程无需复杂计算分析,能够加快确定业务类型的速度,从而提高识别业务类型的性能,进而提高业务报文传输的性能。In summary, the network device involved in the embodiments of the present application determines the service type corresponding to the service request according to the attributes of the service message in the entire service process, so that the service type determination process is not affected by the structure and content of the service message, and the determination method Stable and wide applicability. In addition, the network device maintains the corresponding relationship between the server identifier and the service type, and uses the corresponding relationship to determine the subsequent service type, so that the process of determining the service type does not require complicated calculation and analysis, which can speed up the determination of the service type, thereby improving the identification service Type of performance, thereby improving the performance of service message transmission.
上述实施例分别从流量转发设备和网络服务设备的硬件结构,软件架构,以及各软、硬件所执行的动作的角度对本申请提供的业务报文传输方法的各方案进行了介绍。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的处理步骤,本申请不仅能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。The foregoing embodiments respectively introduce the solutions of the service message transmission method provided in this application from the perspective of the hardware structure, software structure, and actions performed by each software and hardware of the traffic forwarding device and the network service device. Those skilled in the art should easily realize that, in combination with the processing steps described in the embodiments disclosed herein, this application can not only be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the embodiments of the present application.
示例性的,上述流量转发设备可以通过软件模块来实现相应的功能。如图6A所示,流量转发设备60可以包括接收单元601、确定单元602和传输单元603。该流量转发设备60可用于执行上述图2至图3C中流量转发设备的操作,以及图5A和图5B中ONT设备23的操作。Exemplarily, the foregoing traffic forwarding device may implement corresponding functions through software modules. As shown in FIG. 6A, the traffic forwarding device 60 may include a receiving unit 601, a determining unit 602, and a transmitting unit 603. The traffic forwarding device 60 can be used to perform the operations of the traffic forwarding device in Figs. 2 to 3C and the operation of the ONT device 23 in Figs. 5A and 5B.
例如:接收单元601可以用于接收来自于终端的业务请求,所述业务请求包括第一服务器标识,所述第一服务器标识用于将第一应用服务器与其他应用服务器进行区分,所述第一应用服务器是所述终端请求业务的应用服务器。确定单元602可以用于根据所述第一 服务器标识确定所述业务请求的第一业务类型。传输单元603可以用于根据所述第一业务类型对应的优先级传输所述业务请求对应的业务报文。For example, the receiving unit 601 may be configured to receive a service request from a terminal, the service request includes a first server identifier, and the first server identifier is used to distinguish the first application server from other application servers. The application server is an application server from which the terminal requests services. The determining unit 602 may be configured to determine the first service type of the service request according to the first server identifier. The transmission unit 603 may be configured to transmit the service message corresponding to the service request according to the priority corresponding to the first service type.
可见,采用本申请的实现方式,流量转发设备接收到业务请求之后,无需解析业务报文的内容,根据服务器标识即可确定业务请求对应业务类型,从而能够快速确定业务请求对应的业务类型,进而,能够提高业务报文的传输性能。It can be seen that with the implementation of this application, after the traffic forwarding device receives the service request, it does not need to parse the content of the service message, and can determine the service type corresponding to the service request based on the server identifier, so that the service type corresponding to the service request can be quickly determined, and then , Can improve the transmission performance of business messages.
可选的,确定单元602具体可以用于确定第一对应关系中是否包含与所述第一服务器标识对应的业务类型,所述第一对应关系包含至少一条服务器标识与业务类型的对应关系;若所述第一对应关系中包含与所述第一服务器标识对应的业务类型,将与所述第一服务器标识对应的业务类型确定为所述第一业务类型;若所述第一对应关系中不包含与所述第一服务器标识对应的业务类型,根据所述业务请求对应业务报文的属性信息,确定所述第一业务类型,所述属性信息包括所述业务请求对应的每个业务报文的长度以及业务报文之间的间隔时长。Optionally, the determining unit 602 may be specifically configured to determine whether the first correspondence relationship includes a service type corresponding to the first server identifier, and the first correspondence relationship includes at least one correspondence relationship between a server identifier and a service type; if The first corresponding relationship includes the service type corresponding to the first server identifier, and the service type corresponding to the first server identifier is determined as the first service type; if the first corresponding relationship does not Contains the service type corresponding to the first server identifier, and determines the first service type according to the attribute information of the service message corresponding to the service request, and the attribute information includes each service message corresponding to the service request And the length of the interval between business packets.
可选的,流量转发设备60还包括解析单元。解析单元,用于按照预设解析规则解析所述属性信息得到所述第一业务类型。Optionally, the traffic forwarding device 60 further includes a parsing unit. The parsing unit is configured to parse the attribute information according to a preset parsing rule to obtain the first service type.
可选的,流量转发设备60还包括建立单元和发送单元。其中,建立单元用于建立所述第一服务器标识与所述第一业务类型的对应关系。发送单元用于将所述第一服务器标识与所述第一业务类型的对应关系发送到网络服务设备,以使所述网络服务设备更新所述第一对应关系。Optionally, the traffic forwarding device 60 further includes an establishment unit and a sending unit. Wherein, the establishing unit is used to establish the corresponding relationship between the first server identifier and the first service type. The sending unit is configured to send the corresponding relationship between the first server identifier and the first service type to a network service device, so that the network service device updates the first corresponding relationship.
可选的,发送单元还用于将所述属性信息发送到网络服务设备。接收单元601还用于接收来自于所述网络服务设备的所述第一业务类型。Optionally, the sending unit is further configured to send the attribute information to the network service device. The receiving unit 601 is further configured to receive the first service type from the network service device.
可选的,发送单元还用于将所述第一服务器标识发送到网络服务设备,以使所述网络服务设备在所述第一对应关系中查找与所述第一服务器标识对应的业务类型。接收单元601还用于接收来自于所述网络服务设备的所述第一业务类型或者响应信息,所述响应信息指示所述第一对应关系中不包含与所述第一服务器标识对应的业务类型。Optionally, the sending unit is further configured to send the first server identifier to a network service device, so that the network service device searches for a service type corresponding to the first server identifier in the first correspondence relationship. The receiving unit 601 is further configured to receive the first service type or response information from the network service device, where the response information indicates that the first correspondence does not include the service type corresponding to the first server identifier .
可选的,确定单元602还用于确定第二对应关系中是否包含与所述第一服务器标识对应的业务类型,所述第二对应关系是所述流量转发设备维护的服务器标识与业务类型的对应关系,所述第二对应关系包括所述第一对应关系中的部分信息;若所述第二对应关系中包含与所述第一服务器标识对应的业务类型,将与所述第一服务器标识对应的业务类型确定为所述第一业务类型。Optionally, the determining unit 602 is further configured to determine whether the second correspondence relationship includes the service type corresponding to the first server identifier, and the second correspondence relationship is the relationship between the server identifier and the service type maintained by the traffic forwarding device. Corresponding relationship, the second corresponding relationship includes part of the information in the first corresponding relationship; if the second corresponding relationship includes the service type corresponding to the first server identifier, it will be related to the first server identifier The corresponding service type is determined as the first service type.
可选的,流量转发设备60还包括更新单元。接收单元601还用于接收来自于所述网络服务设备的第二服务器标识与第二业务类型的对应关系。更新单元可以用于根据所述第二服务器标识与所述第二业务类型的对应关系更新所述第二对应关系。Optionally, the traffic forwarding device 60 further includes an update unit. The receiving unit 601 is further configured to receive the correspondence between the second server identifier and the second service type from the network service device. The updating unit may be configured to update the second correspondence relationship according to the correspondence relationship between the second server identifier and the second service type.
应理解,以上各个单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。本申请实施例中,接收单元601和发送单元可以由收发器实现,诸如确定单元602和传输单元603等其他单元可以由处理器实现。如图6B所示,流量转发设备61可以包括处理器611、收发器612和存储器613。其中,存储器613可以用于存储流量转发设备61出厂时预装的程序/代码,也可以存储用于处理器611执行时的代码等。It should be understood that the division of the above units is only a division of logical functions, and may be fully or partially integrated into one physical entity in actual implementation, or may be physically separated. In the embodiment of the present application, the receiving unit 601 and the sending unit may be implemented by a transceiver, and other units such as the determining unit 602 and the transmission unit 603 may be implemented by a processor. As shown in FIG. 6B, the traffic forwarding device 61 may include a processor 611, a transceiver 612, and a memory 613. The memory 613 may be used to store programs/codes pre-installed when the traffic forwarding device 61 leaves the factory, and may also store codes used for execution by the processor 611.
应理解,本申请实施例的流量转发设备61可对应于图2至图3C中的流量转发设备, 以及图5A和图5B中的ONT设备23。其中,收发器612用于执行图2至图3C中所述流量转发设备执行的各种数据的收发,以及图5A和图5B中ONT设备23的数据的收发,处理器611用于执行图2至图3C中所述流量转发设备除了数据收发以外的其它处理,以及图5A和图5B中ONT设备23除了数据收发以外的其它处理。在此不再赘述。It should be understood that the traffic forwarding device 61 in the embodiment of the present application may correspond to the traffic forwarding device in FIGS. 2 to 3C and the ONT device 23 in FIGS. 5A and 5B. Among them, the transceiver 612 is used to perform the transmission and reception of various data performed by the traffic forwarding device described in FIG. 2 to FIG. 3C, and the transmission and reception of data of the ONT device 23 in FIG. 5A and FIG. To the other processing of the traffic forwarding device described in FIG. 3C except for data transceiving, and the other processing of the ONT device 23 in FIG. 5A and FIG. 5B except for data transceiving. I won't repeat them here.
具体内容可以参考图2至图3C,以及图5A和图5B中相关部分的描述,此处不再赘述。For specific content, reference may be made to the description of related parts in FIGS. 2 to 3C, and FIGS. 5A and 5B, which will not be repeated here.
示例性的,上述网络服务设备可以通过软件模块来实现相应的功能。如图7A所示,网络服务设备70可以包括接收单元701和确定单元702。该网络服务设备70可用于执行上述图3A至图3C中网络服务设备的操作,以及图5A和图5B中OLT设备24的操作。Exemplarily, the foregoing network service device may implement corresponding functions through software modules. As shown in FIG. 7A, the network service device 70 may include a receiving unit 701 and a determining unit 702. The network service device 70 can be used to perform the operations of the network service device in FIGS. 3A to 3C and the operation of the OLT device 24 in FIGS. 5A and 5B.
例如:接收单元701可以用于接收来自于流量转发设备的第一服务器标识,所述第一服务器标识用于将第一应用服务器与其他应用服务器进行区分,所述第一服务器标识包含于所述流量转发设备接收的业务请求中,所述第一应用服务器是所述终端请求业务的应用服务器。确定单元702可以用于确定第一对应关系中与所述第一服务器标识对应的业务类型,所述第一对应关系包含至少一条服务器标识与业务类型的对应关系。For example, the receiving unit 701 may be configured to receive a first server identifier from the traffic forwarding device, where the first server identifier is used to distinguish the first application server from other application servers, and the first server identifier is included in the In the service request received by the traffic forwarding device, the first application server is the application server of the terminal requesting the service. The determining unit 702 may be configured to determine the service type corresponding to the first server identifier in the first correspondence, and the first correspondence includes at least one correspondence between the server identifier and the service type.
可见,采用本实现方式,网络设备维护服务器标识与业务类型的对应关系,并且将该对应关系用于后续业务类型的确定,使得确定业务类型的过程无需复杂计算分析,能够加快确定业务类型的速度,从而提高识别业务类型的性能,进而提高业务报文传输的性能。It can be seen that with this implementation method, the network device maintains the correspondence between the server identifier and the service type, and uses the correspondence to determine the subsequent service type, so that the process of determining the service type does not require complicated calculation and analysis, and can speed up the determination of the service type. , Thereby improving the performance of identifying service types, and thereby improving the performance of service message transmission.
可选的,网络服务设备70还包括发送单元。发送单元可以用于若所述第一对应关系中包含与所述第一服务器标识对应的业务类型,将所述业务类型作为第一业务类型发送到所述流量转发设备,以使所述流量转发设备根据所述第一业务类型对应的优先级传输所述业务请求对应的业务报文。Optionally, the network service device 70 further includes a sending unit. The sending unit may be configured to send the service type as the first service type to the traffic forwarding device if the first correspondence relationship includes the service type corresponding to the first server identifier, so that the traffic is forwarded The device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
可选的,发送单元还可以用于若所述第一对应关系中不包含与所述第一服务器标识对应的业务类型,向所述流量转发设备响应信息,所述响应信息用于触发所述流量转发设备根据所述第一服务器标识确定所述第一业务类型。Optionally, the sending unit may be further configured to respond to the traffic forwarding device with response information if the service type corresponding to the first server identifier is not included in the first correspondence, and the response information is used to trigger the The traffic forwarding device determines the first service type according to the first server identifier.
可选的,网络服务设备70还包括更新单元。接收单元701还用于接收来自于所述流量转发设备的所述第一服务器标识和所述第一业务类型的对应关系。更新单元可以用于根据所述第一服务器标识和所述第一业务类型的对应关系更新所述第一对应关系。Optionally, the network service device 70 further includes an update unit. The receiving unit 701 is further configured to receive the correspondence between the first server identifier and the first service type from the traffic forwarding device. The updating unit may be configured to update the first correspondence relationship according to the correspondence relationship between the first server identifier and the first service type.
可选的,网络服务设备70还包括解析单元。接收单元701还用于接收来自于所述流量转发设备的属性信息,所述属性信息包括所述业务请求对应的每个业务报文的长度以及业务报文之间的间隔时长。解析单元可以用于按照预设解析规则解析所述属性信息得到所述第一业务类型。发送单元还用于将所述第一业务类型发送到所述流量转发设备。Optionally, the network service device 70 further includes a parsing unit. The receiving unit 701 is further configured to receive attribute information from the traffic forwarding device, where the attribute information includes the length of each service packet corresponding to the service request and the interval time between service packets. The parsing unit may be configured to parse the attribute information according to a preset parsing rule to obtain the first service type. The sending unit is further configured to send the first service type to the traffic forwarding device.
可选的,发送单元还可以用于向所述网络服务设备连接的,除所述流量转发设备之外的其他流量转发设备广播所述第一服务器标识和所述第一业务类型的对应关系。Optionally, the sending unit may be further configured to broadcast the correspondence between the first server identifier and the first service type to other traffic forwarding devices other than the traffic forwarding device connected to the network service device.
应理解,以上各个单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。本申请实施例中,接收单元701和发送单元可以由收发器实现,诸如确定单元702等其他单元可以由处理器实现。如图7B所示,网络服务设备71可以包括处理器711、收发器712和存储器713。其中,存储器713可以用于存储网络服务设备71出厂时预装的程序/代码,也可以存储用于处理器711执行时的代码等。It should be understood that the division of the above units is only a division of logical functions, and may be fully or partially integrated into one physical entity in actual implementation, or may be physically separated. In the embodiment of the present application, the receiving unit 701 and the sending unit may be implemented by a transceiver, and other units such as the determining unit 702 may be implemented by a processor. As shown in FIG. 7B, the network service device 71 may include a processor 711, a transceiver 712, and a memory 713. Wherein, the memory 713 may be used to store programs/codes pre-installed when the network service device 71 leaves the factory, and may also store codes used when the processor 711 is executed.
应理解,本申请实施例的网络服务设备71可对应于图3A至图3C中的网络服务设备, 以及图5A和图5B中的OLT设备24。其中,收发器712用于执行图3A至图3C中网络服务设备执行的各种数据的收发,以及图5A和图5B中OLT设备24的数据的收发,处理器711用于执行图3A至图3C中所述网络服务设备除了数据收发以外的其它处理,以及图5A和图5B中OLT设备24除了数据收发以外的其它处理。在此不再赘述。It should be understood that the network service device 71 in the embodiment of the present application may correspond to the network service device in FIGS. 3A to 3C, and the OLT device 24 in FIGS. 5A and 5B. Among them, the transceiver 712 is used to perform the transmission and reception of various data performed by the network service device in FIG. 3A to FIG. 3C, and the data transmission and reception of the OLT device 24 in FIG. 5A and FIG. The network service device described in 3C performs other processing besides data transceiving, and the OLT device 24 in FIG. 5A and FIG. 5B performs other processing other than data transceiving. I won't repeat them here.
具体内容可以参考图3A至图3C,以及图5A和图5B中相关部分的描述,此处不再赘述。For specific content, reference may be made to FIGS. 3A to 3C, and the description of related parts in FIGS. 5A and 5B, which will not be repeated here.
具体实现中,对应流量转发设备和网络服务设备,本申请实施例还分别提供一种计算机存储介质,其中,设置在任意设备中计算机存储介质可存储有程序,该程序执行时,可实施包括图2至图3C,以及图5A和图5B提供的业务报文传输方法的各实施例中的部分或全部步骤。任意设备中的存储介质均可为磁碟、光盘、只读存储记忆体(read-only memory,ROM)或随机存储记忆体(random access memory,RAM)等。In specific implementation, corresponding to the traffic forwarding device and the network service device, the embodiments of the present application also respectively provide a computer storage medium, wherein the computer storage medium set in any device can store a program, and when the program is executed, it can be implemented including diagrams 2 to 3C, and some or all of the steps in each embodiment of the service message transmission method provided in FIGS. 5A and 5B. The storage medium in any device can be a magnetic disk, an optical disc, a read-only memory (ROM) or a random access memory (RAM), etc.
本申请中,收发器可以是有线收发器,无线收发器或其组合。有线收发器例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线收发器例如可以为无线局域网收发器,蜂窝网络收发器或其组合。处理器可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。存储器可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。In this application, the transceiver may be a wired transceiver, a wireless transceiver or a combination thereof. The wired transceiver may be an Ethernet interface, for example. The Ethernet interface can be an optical interface, an electrical interface, or a combination thereof. The wireless transceiver may be, for example, a wireless local area network transceiver, a cellular network transceiver, or a combination thereof. The processor may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP. The processor may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. The memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as read-only memory (read-only memory). memory, ROM), flash memory (flash memory), hard disk drive (HDD) or solid-state drive (SSD); the memory may also include a combination of the above types of memories.
图6B和图7B中还可以包括总线接口,总线接口可以包括任意数量的互联的总线和桥,具体由处理器代表的一个或多个处理器和存储器代表的存储器的各种电路链接在一起。总线接口还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。收发器提供用于在传输介质上与各种其他设备通信的单元。处理器负责管理总线架构和通常的处理,存储器可以存储处理器在执行操作时所使用的报文。Figures 6B and 7B may also include a bus interface. The bus interface may include any number of interconnected buses and bridges. Specifically, one or more processors represented by a processor and various circuits of a memory represented by a memory are linked together. The bus interface can also link various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are all known in the art, and therefore, will not be further described herein. The bus interface provides the interface. The transceiver provides a unit for communicating with various other devices on the transmission medium. The processor is responsible for managing the bus architecture and general processing, and the memory can store messages used by the processor when performing operations.
本领域技术任何还可以了解到本申请实施例列出的各种说明性逻辑块(illustrative logical block)和步骤(step)可以通过电子硬件、电脑软件,或两者的结合进行实现。这样的功能是通过硬件还是软件来实现取决于特定的应用和整个系统的设计要求。本领域技术人员可以对于每种特定的应用,可以使用各种方法实现所述的功能,但这种实现不应被理解为超出本申请实施例保护的范围。Anyone skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of the two. Whether such a function is implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art can use various methods to implement the described functions for each specific application, but such implementation should not be construed as going beyond the protection scope of the embodiments of the present application.
本申请实施例中所描述的各种说明性的逻辑单元和电路可以通过通用处理器,数字信号处理器,专用集成电路(ASIC),现场可编程门阵列(FPGA)或其它可编程逻辑装置,离散门或晶体管逻辑,离散硬件部件,或上述任何组合的设计来实现或操作所描述的功能。通用处理器可以为微处理器,可选地,该通用处理器也可以为任何传统的处理器、控制器、 微控制器或状态机。处理器也可以通过计算装置的组合来实现,例如数字信号处理器和微处理器,多个微处理器,一个或多个微处理器联合一个数字信号处理器核,或任何其它类似的配置来实现。The various illustrative logic units and circuits described in the embodiments of this application can be implemented by general-purpose processors, digital signal processors, application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, Discrete gates or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions. The general-purpose processor may be a microprocessor. Alternatively, the general-purpose processor may also be any traditional processor, controller, microcontroller, or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration. accomplish.
本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中,ASIC可以设置于设备中。可选地,处理器和存储媒介也可以设置于设备中的不同的部件中。The steps of the method or algorithm described in the embodiments of the present application can be directly embedded in hardware, a software unit executed by a processor, or a combination of the two. The software unit can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other storage medium in the art. Exemplarily, the storage medium may be connected to the processor, so that the processor can read information from the storage medium, and can store and write information to the storage medium. Optionally, the storage medium may also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a device. Optionally, the processor and the storage medium may also be provided in different components in the device.
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对实施例的实施过程构成任何限定。It should be understood that in the various embodiments of the present application, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, rather than the implementation process of the embodiment. Constitute any limitation.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或报文中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或报文中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、报文中心等报文存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the procedures or functions described in this application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or message. The center transmits to another website, computer, server, or message center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a message storage device such as a server or a message center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。Each part of this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although the preferred embodiments of the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, then this application is also intended to include these modifications and variations.

Claims (28)

  1. 一种业务报文传输方法,其特征在于,所述方法包括:A service message transmission method, characterized in that the method includes:
    流量转发设备接收来自于终端的业务请求,所述业务请求包括第一服务器标识,所述第一服务器标识用于将第一应用服务器与其他应用服务器进行区分,所述第一应用服务器是所述终端请求业务的应用服务器;The traffic forwarding device receives a service request from the terminal, the service request includes a first server identifier, the first server identifier is used to distinguish the first application server from other application servers, and the first application server is the The application server of the terminal requesting service;
    所述流量转发设备根据所述第一服务器标识确定所述业务请求的第一业务类型;Determining, by the traffic forwarding device, the first service type of the service request according to the first server identifier;
    所述流量转发设备根据所述第一业务类型对应的优先级传输所述业务请求对应的业务报文。The traffic forwarding device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
  2. 如权利要求1所述的方法,其特征在于,所述流量转发设备根据所述第一服务器标识确定所述业务请求的第一业务类型,包括:The method of claim 1, wherein the traffic forwarding device determining the first service type of the service request according to the first server identifier comprises:
    所述流量转发设备确定第一对应关系中是否包含与所述第一服务器标识对应的业务类型,所述第一对应关系包含至少一条服务器标识与业务类型的对应关系;Determining, by the traffic forwarding device, whether a first correspondence relationship includes a service type corresponding to the first server identifier, and the first correspondence relationship includes at least one correspondence relationship between a server identifier and a service type;
    若所述第一对应关系中包含与所述第一服务器标识对应的业务类型,所述流量转发设备将与所述第一服务器标识对应的业务类型确定为所述第一业务类型;If the first correspondence relationship includes the service type corresponding to the first server identifier, the traffic forwarding device determines the service type corresponding to the first server identifier as the first service type;
    若所述第一对应关系中不包含与所述第一服务器标识对应的业务类型,所述流量转发设备根据所述业务请求对应业务报文的属性信息,确定所述第一业务类型,所述属性信息包括所述业务请求对应的每个业务报文的长度以及业务报文之间的间隔时长。If the first correspondence does not include the service type corresponding to the first server identifier, the traffic forwarding device determines the first service type according to the attribute information of the service packet corresponding to the service request, and The attribute information includes the length of each service message corresponding to the service request and the interval time between service messages.
  3. 如权利要求2所述的方法,其特征在于,所述流量转发设备根据所述业务请求对应业务报文的属性信息确定所述第一业务类型,包括:The method of claim 2, wherein the traffic forwarding device determines the first service type according to the attribute information of the service message corresponding to the service request, comprising:
    所述流量转发设备按照预设解析规则解析所述属性信息得到所述第一业务类型。The traffic forwarding device parses the attribute information according to a preset analysis rule to obtain the first service type.
  4. 如权利要求3所述的方法,其特征在于,所述流量转发设备得到所述第一业务类型之后,还包括:The method according to claim 3, wherein after the traffic forwarding device obtains the first service type, the method further comprises:
    所述流量转发设备建立所述第一服务器标识与所述第一业务类型的对应关系;Establishing, by the traffic forwarding device, a correspondence between the first server identifier and the first service type;
    所述流量转发设备将所述第一服务器标识与所述第一业务类型的对应关系发送到网络服务设备,以使所述网络服务设备更新所述第一对应关系。The traffic forwarding device sends the correspondence between the first server identifier and the first service type to the network service device, so that the network service device updates the first correspondence.
  5. 如权利要求2所述的方法,其特征在于,所述流量转发设备根据所述业务请求对应业务报文的属性信息确定所述第一业务类型,包括:The method of claim 2, wherein the traffic forwarding device determines the first service type according to the attribute information of the service message corresponding to the service request, comprising:
    所述流量转发设备将所述属性信息发送到网络服务设备;The traffic forwarding device sends the attribute information to the network service device;
    所述流量转发设备接收来自于所述网络服务设备的所述第一业务类型。The traffic forwarding device receives the first service type from the network service device.
  6. 如权利要求2所述的方法,其特征在于,所述流量转发设备确定第一对应关系中是否包含与所述第一服务器标识对应的业务类型,包括:The method according to claim 2, wherein the determining by the traffic forwarding device whether the first correspondence includes a service type corresponding to the first server identifier comprises:
    所述流量转发设备将所述第一服务器标识发送到网络服务设备,以使所述网络服务设备在所述第一对应关系中查找与所述第一服务器标识对应的业务类型;Sending, by the traffic forwarding device, the first server identifier to a network service device, so that the network service device searches for a service type corresponding to the first server identifier in the first correspondence;
    所述流量转发设备接收来自于所述网络服务设备的所述第一业务类型或者响应信息,所述响应信息指示所述第一对应关系中不包含与所述第一服务器标识对应的业务类型。The traffic forwarding device receives the first service type or response information from the network service device, where the response information indicates that the first correspondence does not include the service type corresponding to the first server identifier.
  7. 如权利要求6所述的方法,其特征在于,所述流量转发设备将所述第一服务器标识发送到网络服务设备之前,还包括:7. The method according to claim 6, wherein before the traffic forwarding device sends the first server identifier to the network service device, the method further comprises:
    所述流量转发设备确定第二对应关系中是否包含与所述第一服务器标识对应的业务类型,所述第二对应关系是所述流量转发设备维护的服务器标识与业务类型的对应关系, 所述第二对应关系包括所述第一对应关系中的部分信息;The traffic forwarding device determines whether a second correspondence relationship includes a service type corresponding to the first server identifier, and the second correspondence relationship is a correspondence relationship between the server identifier and the service type maintained by the traffic forwarding device, and The second correspondence includes part of the information in the first correspondence;
    若所述第二对应关系中包含与所述第一服务器标识对应的业务类型,所述流量转发设备将与所述第一服务器标识对应的业务类型确定为所述第一业务类型;If the second correspondence includes the service type corresponding to the first server identifier, the traffic forwarding device determines the service type corresponding to the first server identifier as the first service type;
    若所述第二对应关系中不包含与所述第一服务器标识对应的业务类型,所述流量转发设备将所述第一服务器标识发送到所述网络服务设备。If the second correspondence does not include the service type corresponding to the first server identifier, the traffic forwarding device sends the first server identifier to the network service device.
  8. 如权利要求6所述的方法,其特征在于,还包括:The method of claim 6, further comprising:
    所述流量转发设备接收来自于所述网络服务设备的第二服务器标识与第二业务类型的对应关系;Receiving, by the traffic forwarding device, the correspondence between the second server identifier and the second service type from the network service device;
    所述流量转发设备根据所述第二服务器标识与所述第二业务类型的对应关系更新所述第二对应关系。The traffic forwarding device updates the second correspondence relationship according to the correspondence relationship between the second server identifier and the second service type.
  9. 一种业务报文传输方法,其特征在于,所述方法包括:A service message transmission method, characterized in that the method includes:
    网络服务设备接收来自于流量转发设备的第一服务器标识,所述第一服务器标识用于将第一应用服务器与其他应用服务器进行区分,所述第一服务器标识包含于所述流量转发设备接收的业务请求中,所述第一应用服务器是所述终端请求业务的应用服务器;The network service device receives a first server identifier from the traffic forwarding device, the first server identifier is used to distinguish the first application server from other application servers, and the first server identifier is included in the traffic forwarding device received In the service request, the first application server is the application server from which the terminal requests the service;
    所述网络服务设备确定第一对应关系中与所述第一服务器标识对应的业务类型,所述第一对应关系包含至少一条服务器标识与业务类型的对应关系;Determining, by the network service device, a service type corresponding to the first server identifier in a first correspondence, where the first correspondence includes at least one correspondence between a server identifier and a service type;
    若所述第一对应关系中包含与所述第一服务器标识对应的业务类型,所述网络服务设备将所述业务类型作为第一业务类型发送到所述流量转发设备,以使所述流量转发设备根据所述第一业务类型对应的优先级传输所述业务请求对应的业务报文。If the first correspondence relationship includes the service type corresponding to the first server identifier, the network service device sends the service type as the first service type to the traffic forwarding device, so that the traffic is forwarded The device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
  10. 如权利要求9所述的方法,其特征在于,还包括:The method of claim 9, further comprising:
    所述网络服务设备接收来自于所述流量转发设备的第二服务器标识,所述第二服务器标识用于将第二应用服务器与其他应用服务器进行区分;Receiving, by the network service device, a second server identifier from the traffic forwarding device, where the second server identifier is used to distinguish the second application server from other application servers;
    所述网络服务设备确定所述第一对应关系中与所述第二服务器标识对应的业务类型;Determining, by the network service device, the service type corresponding to the second server identifier in the first correspondence;
    若所述第一对应关系中不包含与所述第二服务器标识对应的业务类型,所述网络服务设备向所述流量转发设备发送响应信息,所述响应信息用于触发所述流量转发设备根据所述第二服务器标识确定第二业务类型。If the first correspondence does not include the service type corresponding to the second server identifier, the network service device sends response information to the traffic forwarding device, and the response information is used to trigger the traffic forwarding device according to The second server identifier determines the second service type.
  11. 如权利要求10所述的方法,其特征在于,所述网络服务设备向所述流量转发设备发送响应信息之后,还包括:The method according to claim 10, wherein after the network service device sends the response information to the traffic forwarding device, the method further comprises:
    所述网络服务设备接收来自于所述流量转发设备的所述第二服务器标识和所述第二业务类型的对应关系;Receiving, by the network service device, the correspondence between the second server identifier and the second service type from the traffic forwarding device;
    所述网络服务设备根据所述第二服务器标识和所述第二业务类型的对应关系更新所述第一对应关系。The network service device updates the first correspondence relationship according to the correspondence relationship between the second server identifier and the second service type.
  12. 如权利要求10所述的方法,其特征在于,所述网络服务设备向所述流量转发设备发送响应信息之后,还包括:The method according to claim 10, wherein after the network service device sends the response information to the traffic forwarding device, the method further comprises:
    所述网络服务设备接收来自于所述流量转发设备的属性信息,所述属性信息包括所述第二服务器标识所属业务请求对应的每个业务报文的长度以及业务报文之间的间隔时长;The network service device receives attribute information from the traffic forwarding device, where the attribute information includes the length of each service packet corresponding to the service request to which the second server identifier belongs and the interval time between service packets;
    所述网络服务设备按照预设解析规则解析所述属性信息得到所述第二业务类型;The network service device parses the attribute information according to a preset analysis rule to obtain the second service type;
    所述网络服务设备将所述第二业务类型发送到所述流量转发设备。The network service device sends the second service type to the traffic forwarding device.
  13. 如权利要求11或12所述的方法,其特征在于,还包括:The method according to claim 11 or 12, further comprising:
    所述网络服务设备向所述网络服务设备连接的,除所述流量转发设备之外的其他流量转发设备广播所述第二服务器标识和所述第二业务类型的对应关系。When the network service device is connected to the network service device, a traffic forwarding device other than the traffic forwarding device broadcasts the correspondence between the second server identifier and the second service type.
  14. 一种流量转发设备,其特征在于,所述设备包括接收单元、确定单元和传输单元,其中,A traffic forwarding device, characterized in that the device includes a receiving unit, a determining unit, and a transmission unit, wherein:
    所述接收单元,用于接收来自于终端的业务请求,所述业务请求包括第一服务器标识,所述第一服务器标识用于将第一应用服务器与其他应用服务器进行区分,所述第一应用服务器是所述终端请求业务的应用服务器;The receiving unit is configured to receive a service request from a terminal, the service request includes a first server identifier, and the first server identifier is used to distinguish the first application server from other application servers, and the first application The server is an application server from which the terminal requests a service;
    所述确定单元,用于根据所述第一服务器标识确定所述业务请求的第一业务类型;The determining unit is configured to determine the first service type of the service request according to the first server identifier;
    所述传输单元,用于根据所述第一业务类型对应的优先级传输所述业务请求对应的业务报文。The transmission unit is configured to transmit the service message corresponding to the service request according to the priority corresponding to the first service type.
  15. 如权利要求14所述的设备,其特征在于,The device of claim 14, wherein:
    所述确定单元,具体用于确定第一对应关系中是否包含与所述第一服务器标识对应的业务类型,所述第一对应关系包含至少一条服务器标识与业务类型的对应关系;若所述第一对应关系中包含与所述第一服务器标识对应的业务类型,将与所述第一服务器标识对应的业务类型确定为所述第一业务类型;若所述第一对应关系中不包含与所述第一服务器标识对应的业务类型,根据所述业务请求对应业务报文的属性信息,确定所述第一业务类型,所述属性信息包括所述业务请求对应的每个业务报文的长度以及业务报文之间的间隔时长。The determining unit is specifically configured to determine whether the first correspondence relationship includes the service type corresponding to the first server identifier, and the first correspondence relationship includes at least one correspondence relationship between the server identifier and the service type; A corresponding relationship includes the service type corresponding to the first server identifier, and the service type corresponding to the first server identifier is determined as the first service type; if the first corresponding relationship does not include the service type corresponding to the first server identifier, The first server identifies the service type corresponding to the service request, and determines the first service type according to the attribute information of the service message corresponding to the service request. The attribute information includes the length and the length of each service message corresponding to the service request. The length of the interval between service packets.
  16. 如权利要求14所述的设备,其特征在于,所述设备还包括解析单元,The device according to claim 14, wherein the device further comprises a parsing unit,
    所述解析单元,用于按照预设解析规则解析所述属性信息得到所述第一业务类型。The parsing unit is configured to parse the attribute information according to a preset parsing rule to obtain the first service type.
  17. 如权利要求16所述的设备,其特征在于,所述设备还包括建立单元和发送单元,其中,The device according to claim 16, wherein the device further comprises an establishment unit and a sending unit, wherein:
    所述建立单元,用于建立所述第一服务器标识与所述第一业务类型的对应关系;The establishing unit is configured to establish a correspondence between the first server identifier and the first service type;
    所述发送单元,用于将所述第一服务器标识与所述第一业务类型的对应关系发送到网络服务设备,以使所述网络服务设备更新所述第一对应关系。The sending unit is configured to send the correspondence between the first server identifier and the first service type to a network service device, so that the network service device updates the first correspondence.
  18. 如权利要求17所述的设备,其特征在于,The device of claim 17, wherein:
    所述发送单元,还用于将所述属性信息发送到网络服务设备;The sending unit is further configured to send the attribute information to the network service device;
    所述接收单元,还用于接收来自于所述网络服务设备的所述第一业务类型。The receiving unit is further configured to receive the first service type from the network service device.
  19. 如权利要求17所述的设备,其特征在于,The device of claim 17, wherein:
    所述发送单元,还用于将所述第一服务器标识发送到网络服务设备,以使所述网络服务设备在所述第一对应关系中查找与所述第一服务器标识对应的业务类型;The sending unit is further configured to send the first server identifier to a network service device, so that the network service device searches for a service type corresponding to the first server identifier in the first correspondence relationship;
    所述接收单元,还用于接收来自于所述网络服务设备的所述第一业务类型或者响应信息,所述响应信息指示所述第一对应关系中不包含与所述第一服务器标识对应的业务类型。The receiving unit is further configured to receive the first service type or response information from the network service device, where the response information indicates that the first correspondence relationship does not include information corresponding to the first server identifier business type.
  20. 如权利要求19所述的设备,其特征在于,The device of claim 19, wherein:
    所述确定单元,还用于确定第二对应关系中是否包含与所述第一服务器标识对应的业务类型,所述第二对应关系是所述流量转发设备维护的服务器标识与业务类型的对应关系,所述第二对应关系包括所述第一对应关系中的部分信息;若所述第二对应关系中包含与所述第一服务器标识对应的业务类型,将与所述第一服务器标识对应的业务类型确定为所述第一业务类型。The determining unit is further configured to determine whether the second correspondence relationship includes the service type corresponding to the first server identifier, and the second correspondence relationship is the correspondence relationship between the server identifier and the service type maintained by the traffic forwarding device , The second correspondence relationship includes part of the information in the first correspondence relationship; if the second correspondence relationship includes the service type corresponding to the first server identifier, the information corresponding to the first server identifier will be The service type is determined as the first service type.
  21. 如权利要求19所述的设备,其特征在于,所述设备还包括更新单元,The device according to claim 19, wherein the device further comprises an update unit,
    所述接收单元,还用于接收来自于所述网络服务设备的第二服务器标识与第二业务类型的对应关系;The receiving unit is further configured to receive the correspondence between the second server identifier and the second service type from the network service device;
    所述更新单元,用于根据所述第二服务器标识与所述第二业务类型的对应关系更新所述第二对应关系。The updating unit is configured to update the second correspondence relationship according to the correspondence relationship between the second server identifier and the second service type.
  22. 如权利要求14至21中任一项所述的设备,其特征在于,The device according to any one of claims 14 to 21, characterized in that:
    所述流量转发设备是以下任一设备:路由器、光网络终端ONT、光线路终端OLT。The traffic forwarding device is any one of the following devices: a router, an optical network terminal ONT, and an optical line terminal OLT.
  23. 一种网络服务设备,其特征在于,所述设备包括接收单元、确定单元和发送单元,其中,A network service device, characterized in that, the device includes a receiving unit, a determining unit, and a sending unit, wherein:
    所述接收单元,用于接收来自于流量转发设备的第一服务器标识,所述第一服务器标识用于将第一应用服务器与其他应用服务器进行区分,所述第一服务器标识包含于所述流量转发设备接收的业务请求中,所述第一应用服务器是所述终端请求业务的应用服务器;The receiving unit is configured to receive a first server identifier from a traffic forwarding device, the first server identifier is used to distinguish a first application server from other application servers, and the first server identifier is included in the traffic In the service request received by the forwarding device, the first application server is the application server of the terminal requesting the service;
    所述确定单元,用于确定第一对应关系中与所述第一服务器标识对应的业务类型,所述第一对应关系包含至少一条服务器标识与业务类型的对应关系;The determining unit is configured to determine a service type corresponding to the first server identifier in a first correspondence, and the first correspondence includes at least one correspondence between a server identifier and a service type;
    所述发送单元,用于若所述第一对应关系中包含与所述第一服务器标识对应的业务类型,将所述业务类型作为第一业务类型发送到所述流量转发设备,以使所述流量转发设备根据所述第一业务类型对应的优先级传输所述业务请求对应的业务报文。The sending unit is configured to send the service type as the first service type to the traffic forwarding device if the first correspondence relationship includes the service type corresponding to the first server identifier, so that the The traffic forwarding device transmits the service message corresponding to the service request according to the priority corresponding to the first service type.
  24. 如权利要求23所述的设备,其特征在于,The device of claim 23, wherein:
    所述接收单元,还用于接收来自于所述流量转发设备的第二服务器标识,所述第二服务器标识用于将第二应用服务器与其他应用服务器进行区分;The receiving unit is further configured to receive a second server identifier from the traffic forwarding device, where the second server identifier is used to distinguish the second application server from other application servers;
    所述确定单元,还用于确定所述第一对应关系中与所述第二服务器标识对应的业务类型;The determining unit is further configured to determine the service type corresponding to the second server identifier in the first correspondence;
    所述发送单元,还用于若所述第一对应关系中不包含与所述第二服务器标识对应的业务类型,向所述流量转发设备响应信息,所述响应信息用于触发所述流量转发设备根据所述第二服务器标识确定第二业务类型。The sending unit is further configured to respond to the traffic forwarding device with response information if the service type corresponding to the second server identifier is not included in the first correspondence, and the response information is used to trigger the traffic forwarding The device determines the second service type according to the second server identifier.
  25. 如权利要求24所述的设备,其特征在于,所述设备还包括更新单元,The device according to claim 24, wherein the device further comprises an update unit,
    所述接收单元,还用于接收来自于所述流量转发设备的所述第二服务器标识和所述第二业务类型的对应关系;The receiving unit is further configured to receive the correspondence between the second server identifier and the second service type from the traffic forwarding device;
    所述更新单元,用于根据所述第二服务器标识和所述第二业务类型的对应关系更新所述第一对应关系。The updating unit is configured to update the first correspondence relationship according to the correspondence relationship between the second server identifier and the second service type.
  26. 如权利要求24所述的设备,其特征在于,所述设备还包括解析单元,The device according to claim 24, wherein the device further comprises a parsing unit,
    所述接收单元,还用于接收来自于所述流量转发设备的属性信息,所述属性信息包括所述第二服务器标识所属业务请求对应的每个业务报文的长度以及业务报文之间的间隔时长;The receiving unit is further configured to receive attribute information from the traffic forwarding device, where the attribute information includes the length of each service packet corresponding to the service request to which the second server identifier belongs and the distance between the service packets. Interval length
    所述解析单元,用于按照预设解析规则解析所述属性信息得到所述第二业务类型;The parsing unit is configured to parse the attribute information according to a preset parsing rule to obtain the second service type;
    所述发送单元,还用于将所述第二业务类型发送到所述流量转发设备。The sending unit is further configured to send the second service type to the traffic forwarding device.
  27. 如权利要求25或26所述的设备,其特征在于,The device according to claim 25 or 26, wherein:
    所述发送单元,还用于向所述网络服务设备连接的,除所述流量转发设备之外的其他流量转发设备广播所述第二服务器标识和所述第二业务类型的对应关系。The sending unit is further configured to broadcast the correspondence between the second server identifier and the second service type to other traffic forwarding devices other than the traffic forwarding device connected to the network service device.
  28. 如权利要求23至27中任一项所述的设备,其特征在于,The device according to any one of claims 23 to 27, characterized in that:
    若所述流量转发设备是路由器、光网络终端ONT、光线路终端OLT中任一,所述网络服务设备是网管服务器;或者,If the traffic forwarding device is any one of a router, an optical network terminal ONT, and an optical line terminal OLT, the network service device is a network management server; or,
    若所述流量转发设备是路由器或者所述ONT,所述网络服务设备是所述OLT或者所述网管服务器。If the traffic forwarding device is a router or the ONT, the network service device is the OLT or the network management server.
PCT/CN2021/083549 2020-04-03 2021-03-29 Service message transmission method and related device WO2021197253A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010258101.4 2020-04-03
CN202010258101.4A CN113498110B (en) 2020-04-03 2020-04-03 Service message transmission method and related equipment

Publications (1)

Publication Number Publication Date
WO2021197253A1 true WO2021197253A1 (en) 2021-10-07

Family

ID=77927679

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083549 WO2021197253A1 (en) 2020-04-03 2021-03-29 Service message transmission method and related device

Country Status (2)

Country Link
CN (1) CN113498110B (en)
WO (1) WO2021197253A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051008A (en) * 2021-10-27 2022-02-15 上海寰创通信科技股份有限公司 System for reducing game service time delay of wireless network
CN114338516A (en) * 2021-12-28 2022-04-12 中国电信股份有限公司 Traffic forwarding and policy determining method and device
CN116095019A (en) * 2022-08-19 2023-05-09 荣耀终端有限公司 Route processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668314A (en) * 2009-09-01 2010-03-10 中兴通讯股份有限公司 Data transmission method for wireless distribution system and device thereof
CN103346922A (en) * 2013-07-26 2013-10-09 电子科技大学 Controller for determining network state based on SDN (Software Defined Networking) and determination method thereof
WO2017031816A1 (en) * 2015-08-25 2017-03-02 华为技术有限公司 Data transmission method, relevant device and system
WO2017074495A1 (en) * 2015-10-28 2017-05-04 Intel Corporation Quality of service provisioning framework for a sdn-based cellular network architecture

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009631A (en) * 2006-01-24 2007-08-01 华为技术有限公司 A QoS control method and system
CN101217794B (en) * 2008-01-09 2012-05-09 中兴通讯股份有限公司 Implementation method for a bearer service type acquisition and load-carrying net shift
CN110048873A (en) * 2018-01-16 2019-07-23 华为技术有限公司 The method and communication device of the policy control of more anchor point protocol Data Unit sessions
US10986528B2 (en) * 2018-02-15 2021-04-20 Huawei Technologies Co., Ltd. Tracking QoS violated events
JP7097138B2 (en) * 2018-02-26 2022-07-07 株式会社モバイルテクノ Communication control device, communication control program and communication control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668314A (en) * 2009-09-01 2010-03-10 中兴通讯股份有限公司 Data transmission method for wireless distribution system and device thereof
CN103346922A (en) * 2013-07-26 2013-10-09 电子科技大学 Controller for determining network state based on SDN (Software Defined Networking) and determination method thereof
WO2017031816A1 (en) * 2015-08-25 2017-03-02 华为技术有限公司 Data transmission method, relevant device and system
WO2017074495A1 (en) * 2015-10-28 2017-05-04 Intel Corporation Quality of service provisioning framework for a sdn-based cellular network architecture

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114051008A (en) * 2021-10-27 2022-02-15 上海寰创通信科技股份有限公司 System for reducing game service time delay of wireless network
CN114051008B (en) * 2021-10-27 2024-05-03 上海寰创通信科技股份有限公司 System for reducing game service time delay of wireless network
CN114338516A (en) * 2021-12-28 2022-04-12 中国电信股份有限公司 Traffic forwarding and policy determining method and device
CN114338516B (en) * 2021-12-28 2023-09-29 中国电信股份有限公司 Traffic forwarding and policy determining method and device
CN116095019A (en) * 2022-08-19 2023-05-09 荣耀终端有限公司 Route processing method, device, equipment and storage medium
CN116095019B (en) * 2022-08-19 2024-03-26 荣耀终端有限公司 Route processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113498110B (en) 2023-03-24
CN113498110A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
WO2021197253A1 (en) Service message transmission method and related device
US20200195740A1 (en) Subscribe and publish method and server
US10110671B2 (en) Method, system, and device for managing server hardware resources in a cloud scheduling environment
WO2020103834A1 (en) Time sensitive networking communication method and apparatus thereof
WO2021057889A1 (en) Data processing method and apparatus, electronic device, and storage medium
US9264369B2 (en) Technique for managing traffic at a router
WO2021254330A1 (en) Memory management method and system, client, server and storage medium
WO2020073903A1 (en) Latency-sensitive network communication method and apparatus thereof
US20220060881A1 (en) Group management method, apparatus, and system
WO2014190791A1 (en) Method for setting identity of gateway device and management gateway device
CN114095430B (en) Access message processing method, system and working node
WO2018195803A1 (en) Packet processing method and related device
CN109391548B (en) Table entry migration method and device and network communication system
CN111741512B (en) Private network access method and device
WO2009000214A1 (en) Method and device for configuring configuration data of user access network
CN112838989A (en) Data stream management method, network equipment and storage medium
US10680962B2 (en) Method and system for managing traffic of application programs, and terminal device containing the system
CN109981462B (en) Message processing method and device
WO2023011233A1 (en) Traffic management method and apparatus, device, and computer-readable storage medium
WO2022206170A1 (en) Data processing method, server and system
WO2018082574A1 (en) Information sending method, unit and system
CN113918504A (en) Method and device for realizing isolation group
CN110557438B (en) Network content management method and block chain content network platform
KR102023115B1 (en) Communication method based on integrated flat id and system
CN115001627B (en) InfiniBand network subnet management message processing method and system

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: 21779662

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: 21779662

Country of ref document: EP

Kind code of ref document: A1