CN112383600A - Information processing method and device, computer readable medium and electronic equipment - Google Patents

Information processing method and device, computer readable medium and electronic equipment Download PDF

Info

Publication number
CN112383600A
CN112383600A CN202011211481.2A CN202011211481A CN112383600A CN 112383600 A CN112383600 A CN 112383600A CN 202011211481 A CN202011211481 A CN 202011211481A CN 112383600 A CN112383600 A CN 112383600A
Authority
CN
China
Prior art keywords
service
information
service request
request message
processed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011211481.2A
Other languages
Chinese (zh)
Inventor
何彬彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011211481.2A priority Critical patent/CN112383600A/en
Publication of CN112383600A publication Critical patent/CN112383600A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides an information processing method and device, a computer readable medium and electronic equipment. The information processing method comprises the following steps: acquiring a service request message of a service to be processed; acquiring service information corresponding to the service to be processed according to the service request message; inquiring according to the service information to generate identification information corresponding to the service to be processed, wherein the identification information is used for describing priority information of the service to be processed; and associating the identification information with the service request message so as to carry out resource scheduling on the service request message according to the identification information. The technical scheme of the embodiment of the application can be used for carrying out resource allocation on different types of services, so that the resource requirements of the different types of services are met.

Description

Information processing method and device, computer readable medium and electronic equipment
Technical Field
The present application relates to the field of computer and communication technologies, and in particular, to an information processing method and apparatus, a computer-readable medium, and an electronic device.
Background
With the development of network technology, the number and kinds of traffic data streams transmitted in a network are rapidly increasing. Under the condition of limited network resources, when a plurality of service data are simultaneously transmitted in a large quantity, the congestion of the network can be caused. In the current solution, the conventional data network can only provide best effort services, such as first in first out according to the order of the data queue. Therefore, how to reasonably distribute the resources occupied by the service data to meet the resource requirements of different types of service data becomes a technical problem to be solved urgently.
Disclosure of Invention
Embodiments of the present application provide an information processing method, an information processing apparatus, a computer-readable medium, and an electronic device, so that resources occupied by service data can be reasonably allocated at least to a certain extent, so as to meet resource requirements of different types of service data.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of an embodiment of the present application, there is provided an information processing method, including:
acquiring a service request message of a service to be processed;
acquiring service information corresponding to the service to be processed according to the service request message;
inquiring according to the service information to generate identification information corresponding to the service to be processed, wherein the identification information is used for describing priority information of the service to be processed;
and associating the identification information with the service request message so as to carry out resource scheduling on the service request message according to the identification information.
According to an aspect of an embodiment of the present application, there is provided an information processing apparatus including:
the acquisition module is used for acquiring a service request message of a service to be processed;
the analysis module is used for acquiring the service information corresponding to the service to be processed according to the service request message;
the query module is used for querying according to the service information and generating identification information corresponding to the service to be processed, wherein the identification information is used for describing priority information of the service to be processed;
and the processing module is used for associating the identification information with the service request message so as to carry out resource scheduling on the service request message according to the identification information.
Based on the foregoing, in some embodiments of the present application, the processing module is configured to: coding according to the identification information to generate an identification code corresponding to the identification information; and writing the identification code into the service request message.
Based on the foregoing, in some embodiments of the present application, the processing module is configured to: and based on the identification code, adopting a differential service code point to write the identification code into the header of the service request message.
Based on the foregoing solution, in some embodiments of the present application, the service information includes at least one of a source network segment, a target network segment, a source network address, and a target network address; the parsing module is configured to: acquiring a header of the service request message according to the service request message; and acquiring at least one of the source network segment, the target network segment, the source network address and the target network address from the header according to the header.
Based on the foregoing, in some embodiments of the present application, the query module is configured to: inquiring a corresponding relation table of service information and priority information according to the service information, and determining the priority information corresponding to the service information; and generating identification information corresponding to the service to be processed according to the priority information corresponding to the service information.
Based on the foregoing, in some embodiments of the present application, the query module is configured to: and if the service information corresponds to at least two priority information, selecting the priority information with the highest priority from the at least two priority information as the priority information currently corresponding to the service information.
Based on the foregoing, in some embodiments of the present application, the processing module is further configured to: if receiving a service request message sent by other nodes, acquiring identification information corresponding to the service request message sent by other nodes based on the service request message sent by other nodes; processing the service request messages sent by other nodes according to the identification information corresponding to the service request messages sent by other nodes, and generating to-be-processed response messages corresponding to the service request messages sent by other nodes; inquiring according to the service information corresponding to the response message to be processed, and determining the identification information corresponding to the response message to be processed; and associating the identification information corresponding to the response message to be processed with the response message to be processed, so as to perform resource scheduling on the response message to be processed according to the identification information corresponding to the response message to be processed.
Based on the foregoing, in some embodiments of the present application, the processing module is further configured to: if a configuration request aiming at priority information corresponding to the service information is received, displaying a configuration interface, wherein the configuration interface comprises service information to be configured and priority information options; and associating the received priority information with the service information to be configured according to the priority information received by the configuration interface.
Based on the foregoing, in some embodiments of the present application, the processing module is further configured to: if a modification request aiming at priority information corresponding to the service information is received, displaying a modification interface, wherein the modification interface comprises the corresponding relation between the service information to be modified and the priority information; and updating and storing the corresponding relation between the service information and the priority information according to the modification information received by the modification interface.
Based on the foregoing, in some embodiments of the present application, the processing module is further configured to: determining the resource occupation amount of the current node according to the service processing information of the current node; calculating according to the resource occupation amount and the available resource amount of the current node, and determining the resource occupation proportion of the current node; and generating alarm information for reminding the user based on the resource occupation ratio.
Based on the foregoing, in some embodiments of the present application, the processing module is further configured to: if a transfer request aiming at the service request message is received, acquiring service information corresponding to the service request message to be transferred; generating new identification information corresponding to the service request message to be transmitted according to the service information corresponding to the service request message to be transmitted; and updating the original identification information of the service request message to be transmitted based on the new identification information corresponding to the service request message to be transmitted, so as to perform resource scheduling on the service request message to be transmitted according to the updated identification information of the service request message to be transmitted.
According to an aspect of embodiments of the present application, there is provided a computer-readable medium on which a computer program is stored, the computer program, when executed by a processor, implementing a method of processing information as described in the above embodiments.
According to an aspect of an embodiment of the present application, there is provided an electronic device including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method of processing information as described in the above embodiments.
According to an aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the information processing method provided in the above-described embodiments.
In the technical solutions provided in some embodiments of the present application, service request packets of services to be processed are obtained, service information corresponding to the services to be processed is obtained according to the service request packets, and is queried according to the service information, so as to generate identification information corresponding to the services to be processed, where the identification information is used to describe priority information of the services to be processed, and then the identification information is associated with the service request packets, so as to perform resource scheduling on the service request packets according to the identification information. Therefore, according to the service information of the service to be processed, the identification information used for describing the priority information of the service to be processed is generated, so that the resource scheduling can be performed on the service request message of the service to be processed according to the identification information, and therefore, the resources occupied by the service data can be reasonably distributed, and the resource requirements of different types of service data can be met.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied.
Fig. 2 shows a schematic flow diagram of a method of processing information according to an embodiment of the present application.
Fig. 3 is a schematic flow chart illustrating associating identification information with a service request packet in an information processing method according to an embodiment of the present application.
Fig. 4 shows a schematic flow diagram of step S220 in the information processing method of fig. 2 according to an embodiment of the present application.
Fig. 5 shows a flowchart illustrating step S230 of the information processing method of fig. 2 according to an embodiment of the present application.
Fig. 6 is a schematic flowchart illustrating a service request message response included in an information processing method according to an embodiment of the present application.
Fig. 7 shows a schematic flow chart of configuration priority information further included in the information processing method according to an embodiment of the present application.
Fig. 8 shows a flow diagram of modifying priority information further included in a method of processing information according to an embodiment of the present application.
Fig. 9 is a flowchart illustrating a resource alarm further included in the information processing method according to an embodiment of the present application.
Fig. 10 is a schematic flowchart illustrating a flow of forwarding a service request packet further included in an information processing method according to an embodiment of the present application.
FIG. 11 shows a block flow diagram of a method of processing information according to an embodiment of the present application.
Fig. 12 is a schematic view showing an application scenario of an information processing method that can be applied to an embodiment of the present application.
Fig. 13 and 14 are terminal interface diagrams illustrating a method of processing information according to an embodiment of the present application.
FIG. 15 shows a block diagram of an apparatus for processing information according to an embodiment of the present application.
Fig. 16 is a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied.
As shown in fig. 1, the system architecture may include a terminal device 110, a network 120, and a server 130, where the network 120 is used to provide a medium for communication links between the terminal device 110 and the server 130. Network 120 may include various connection types, such as wired communication links, wireless communication links, and so forth.
It should be understood that the number of terminal devices 110, networks 120, and servers 130 in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
It should be noted that the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware server, a domain name service, a security service, a CDN, a big data and artificial intelligence platform, and the like. The terminal device may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, or a smart watch.
In a particular application scenario, a user may use terminal device 110 to interact with server 130 via network 120 to receive or transmit information, etc. The server 130 may be a server providing various services, for example, a user uses the terminal device 110 to perform service handling, the server 130 may obtain a service request message of a service to be processed, perform parsing according to the service request message, obtain service information corresponding to the service to be processed, perform query according to the service information, generate identification information corresponding to the service to be processed, where the identification information is used to describe priority information of the service to be processed, and associate the identification information with the service request message, so as to perform resource scheduling on the service request message according to the identification information.
It should be noted that the information processing method provided in the embodiment of the present application is generally executed by the server 130, and accordingly, the information processing apparatus is generally disposed in the server 130. However, in other embodiments of the present application, the terminal device 110 may also have a similar function as the server 130, so as to execute a scheme of the information processing method provided in the embodiments of the present application.
The implementation details of the technical solution of the embodiment of the present application are set forth in detail below:
fig. 2 shows a schematic flow diagram of a method of processing information according to an embodiment of the present application. Referring to fig. 2, the information processing method at least includes steps S210 to S240, and the following details are described as follows:
in step S210, a service request packet of a service to be processed is obtained.
The pending service may be various types of services provided by a service provider, for example, the pending service may include, but is not limited to, resource access (such as access to a video resource, an audio resource, or a text resource), product purchase, data analysis, and information management inside an enterprise, and the like.
The service request message may be service request information corresponding to a service to be processed, which may include, but is not limited to, service content corresponding to the service to be processed (e.g., information related to access to a certain data, video resource, or audio resource, or information related to a purchased article, etc.), identity information of the user (e.g., an IP address of the user, a user account, etc.), and target server information corresponding to the service to be processed (e.g., an IP address of the target server, etc.), which is not limited in this application.
In an embodiment of the present application, a user may select a service through a terminal device to handle, and generate a service request message corresponding to the service. For example, a user may access a video resource provided by a service provider through a terminal device, and after the user selects a certain video resource, the user may click a resource acquisition key (e.g., a "play video" key, etc.) to correspondingly generate a video resource access request (i.e., a service request message), and so on. When detecting that a service request message is generated, the server can acquire the newly generated service request message for subsequent processing.
In step S220, service information corresponding to the service to be processed is obtained according to the service request packet.
The service information may be information related to the transactor of the pending service and the service provider. For example, the service information may include, but is not limited to, a source network segment, a source network address, a destination network segment, a destination network address, and the like, which is not particularly limited in this application. The source network segment and the source network address are the network segment and the IP address of the network used by the user, and the target network segment and the target network address are the network segment and the IP address of the service provider. Therefore, the identity information of both sides of the service to be processed can be determined according to the service information.
In an embodiment of the present application, after the server acquires the newly generated service request packet, the server may analyze the service request packet, for example, analyze a code, so as to acquire service information included in the service request packet.
In step S230, query is performed according to the service information, and identification information corresponding to the service to be processed is generated, where the identification information is used to describe priority information of the service to be processed.
The identification information may be information for describing priority information of the service to be processed, and it should be understood that different types of services may have different importance degrees, and for a service with a higher importance degree, the corresponding priority is higher, and if the importance degree is lower, the corresponding priority of the service is lower. Therefore, the resource requirements of services with higher priority can be preferentially ensured, so that the resources occupied by the services of different types can be reasonably distributed, and the resource requirements of the services of different types can be ensured.
In one example, the identification information may be a textual identification, such as "important" indicating a higher priority, "normal" indicating a lower priority, and so on. In other examples, the identification information may also be a numerical identification, such as a number "001" indicating a higher priority, a number "002" indicating a lower priority, and so on. Alternatively, the identification information may be a letter identification, such as letter "a" indicating a higher priority, letter "B" indicating a lower priority, and so on. Those skilled in the art can select different forms of identification information according to the implementation requirement, and the present application is not limited to this.
In an embodiment of the present application, a person skilled in the art may preset a correspondence table between service information and priority information according to resource requirements corresponding to different types of services, where in the correspondence table, if a resource requirement corresponding to a certain service is higher, a priority corresponding to the service is higher, and if a resource requirement corresponding to a certain service is lower, a priority corresponding to the service is lower.
In an example, the resource requirement corresponding to a service may be determined according to the importance degree of the service, for example, if a certain service is a key service, the importance degree corresponding to the service is higher, and the resource requirement corresponding to the service is higher, so the priority is higher. If a certain service is a common service, the lower the importance degree corresponding to the service is, the lower the resource requirement corresponding to the service is, and thus the lower the priority is.
In other examples, the importance of a service and the size of the resource occupied by the service may also be considered together to determine the priority of the service, for example, although a certain service is a normal service, the resource occupied by the service is large, in order to take user experience into account, the priority of the service may be set to be important, and so on. Those skilled in the art can determine the corresponding mapping table according to the implementation requirement, and the application is not limited to this specifically.
After the server obtains the service information corresponding to the service to be processed, the server can query the corresponding relation table of the service information and the priority information according to the service information, so as to determine the priority information corresponding to the service information. And generating identification information corresponding to the service to be processed based on the determined priority information.
In step S240, the identification information is associated with the service request packet, so as to perform resource scheduling on the service request packet according to the identification information.
In an embodiment of the present application, according to the determined identification information of the service to be processed, the identification information is associated with a service request packet of the service to be processed. In an example, the identification information may be added to a service request message of the service to be processed, for example, the identification information is written into a message header, and the like. Thereby realizing the association of the identification information and the service request message. In other examples, the identification information and the service request packet may also be sent to a subsequent node together, so as to implement association between the identification information and the service request packet, which is not particularly limited.
In this embodiment, the server may perform resource scheduling on the service request packet according to the identification information corresponding to the service request packet, and preferentially meet the resource requirement of the service to be processed with higher priority. For example, for a service to be processed with a higher priority, the service request packet may be preferentially transmitted to a subsequent node, or the bandwidth occupation required by the service to be processed with the higher priority may be preferentially satisfied, where if the bandwidth occupied by a certain service to be processed with the higher priority is 90Mbps, the bandwidth occupied by a certain service to be processed with a lower priority is 20Mbps, and the total bandwidth of the network is 100Mbps, the bandwidth requirement (i.e., 90Mbps) of the service to be processed with the higher priority is preferentially satisfied, and the remaining 10Mbps is used for the service to be processed with the lower priority, and so on.
Therefore, in the embodiment shown in fig. 2, the service request message of the service to be processed is analyzed to determine the priority information of the service to be processed, and the identification information is correspondingly generated, so that the service request message of the service to be processed can be subjected to resource scheduling according to the identification information, and therefore, reasonable resource allocation can be performed on different types of services, the resource requirements of the different types of services are met, and the user experience is improved.
In a cloud service application scene, a large number of cloud hosts and cloud services can be operated on a cloud platform, and the large number of cloud services share resources such as host computers, network equipment and network lines. Therefore, when the network is congested, how to guarantee the service quality of the service becomes a key problem to be solved. Based on the above information processing method, different labels (i.e., identification information) can be set for different services according to service information of different services (e.g., source address, destination address, protocol type, etc. of a message), and the labels are added to messages (i.e., service request messages) corresponding to the services, so that resource scheduling can be performed on the messages corresponding to the services according to the labels, and resource requirements of the services are met. Meanwhile, the associated tag and the message are sent to a subsequent node (such as a gateway, a terminal device, or a server), and the subsequent node can also recognize the tag so as to perform resource scheduling on the service request message according to the tag, thereby realizing reasonable allocation of resources.
Based on the embodiment shown in fig. 2, fig. 3 is a schematic flow chart illustrating a process of associating identification information with a service request packet in an information processing method according to an embodiment of the present application. Referring to fig. 3, associating the identification information with the service request message at least includes steps S310 to S320, which are described in detail as follows:
in step S310, encoding is performed according to the identification information, and an identification code corresponding to the identification information is generated.
In an embodiment of the present application, during the transmission of the message, the identification information needs to be converted into a computer-readable identification code, and a person skilled in the art may preset a corresponding relationship between the identification code and the identification information, and it should be understood that one identification code corresponds to one identification information, for example, an identification code a corresponding to an identification information with a higher priority, an identification code B corresponding to an identification information with a lower priority, and so on. Therefore, the server can correspondingly query the identification code corresponding to the identification information according to the identification information of the service request message so as to convert the identification information into the corresponding identification code.
In step S320, the identification code is written into the service request message.
In an embodiment of the present application, the server may write the converted identification code into the service request message. It should be understood that, since the identification code corresponds to the identification information, the association of the identification information with the service request message is further implemented. And in the transmission process of the service request message, the identification code is written into the service request message, so that a certain transmission volume can be reduced, and the resource occupation of the service request message in the transmission process can be reduced.
In the embodiment shown in fig. 3, the identification information is converted into the identification code, and then the identification code is written into the service request message, so that the resource occupation of the service request message in the transmission process can be reduced, and the transmission speed of the service request message can be improved. Meanwhile, the correlation between the identification information and the service request message is realized without establishing a corresponding relation table or a database and the like between the identification information and the service request message, so that the storage resource is saved.
In a cloud service application scenario, when a user transacts a certain service to be processed, after generating identification information, the identification information may be displayed on an interface of a terminal device, so that the user has a perception on the identification information. For example, the service may be divided into "gold", "silver" and "bronze" according to the importance level, and the "gold", "silver" and "bronze" are identification information corresponding to the service. After identifying information of a service transacted by a user is determined, the identifying information may be displayed on an interface to enable the user to know the importance level of the transacted service. The above division of the identification information of the service is only an exemplary example, and a person skilled in the art may determine the corresponding identification information according to implementation needs, which is not particularly limited in the present application.
Meanwhile, the virtual network may include an Overlay network and an Underlay network, where the Overlay network is a network established on the Underlay network, the Overlay network and the Underlay network are independent of each other, and the Overlay network uses the Underlay network to implement peer-to-peer (peer-to-peer) message transfer. Therefore, in order to enable the Underlay network to understand the identification information determined on the Overlay network, the identification information needs to be converted into an identification code that can be identified by the Underlay network, and the Underlay network can perform resource scheduling, such as preferential forwarding or delayed forwarding, on the service request message according to the identification information.
Based on the embodiments shown in fig. 2 and fig. 3, in an embodiment of the present application, writing the identification code into the service request message includes:
and based on the identification code, adopting a differential service code point to write the identification code into the header of the service request message.
Among them, Differentiated Services Code Point (DSCP) can use the used 6-bit bytes and the unused 2-bit bytes in the identification byte of the Type of Service (TOS) of the IP header of each packet to prioritize through the coding value.
Therefore, in this embodiment, according to the priority level corresponding to the identification code, the differentiated services code point may be used to write the priority level corresponding to the identification code into the header of the service request packet by editing the code value. The server can identify the priority level corresponding to each service request message according to the header of the service request message, so as to perform resource scheduling on the service request message and meet the resource requirements of different types of services. The subsequent node may also preset a coding value set by trusting the DSCP, and read the priority level of the service request packet from the header of the service request packet to perform resource scheduling.
Based on the embodiment shown in fig. 2, fig. 4 shows a flowchart illustrating step S220 in the information processing method of fig. 2 according to an embodiment of the present application. Referring to fig. 4, the service information includes at least one of a source network segment, a destination network segment, a source network address, and a destination network address, and step S220 at least includes steps S410 to S420, which are described in detail as follows:
in step S410, a header of the service request packet is obtained according to the service request packet.
In this embodiment, the server performs parsing according to the acquired service request packet to determine and acquire a header of the service request packet. It should be understood that the header may include a source address and a destination address to determine the sender and receiver of the header.
In step S420, at least one of the source network segment, the destination network segment, the source network address and the destination network address is obtained from the header according to the header.
In this embodiment, the server reads the source address and the destination address of the service request message according to the header of the service request message, and obtains at least one of the source network segment, the destination network segment, the source network address, and the destination network address. It should be noted that at least one is referred to in this application as one or more than one, such as two, three, etc. That is, the server may obtain any one of the source network segment, the target network segment, the source network address and the target network address, or obtain any two or three of the source network segment, the target network segment, the source network address and the target network address, and the like, which is not limited in this application.
It should be understood that the source network segment, the target network segment, the source network address, and the target network address may all be used to represent identity information of both parties of the service. The skilled person can set the corresponding priority information for each source network segment, target network segment, source network address or target network address, so that the corresponding priority information can be determined according to the source network segment, target network segment, source network address or target network address in the following, thereby realizing resource scheduling.
In an embodiment of the present application, the service information may further include a protocol type, where different protocol types correspond to different priority information, and the server may obtain the protocol type corresponding to the service request packet from a header of the service request packet, so as to determine the priority information corresponding to the service request packet according to the protocol type.
Based on the embodiment shown in fig. 2, fig. 5 shows a flowchart of step S230 in the information processing method of fig. 2 according to an embodiment of the present application. Referring to fig. 5, step S230 includes at least steps S510 to S520, which are described in detail as follows:
in step S510, a correspondence table between service information and priority information is queried according to the service information, and priority information corresponding to the service information is determined.
In this embodiment, the correspondence table between the service information and the priority information may be a relationship table preset by a person skilled in the art to determine the priority information corresponding to each service information. The corresponding relation table stores the corresponding relation between each service information and the priority information, and the server can query the corresponding relation table according to the acquired service information so as to determine the priority information corresponding to the service information.
In step S520, according to the priority information corresponding to the service information, identification information corresponding to the service to be processed is generated.
In an embodiment of the present application, if priority information corresponding to service information is determined, identification information corresponding to a service to be processed may be generated according to the determined priority information. For example, if it is determined that the priority of a certain service information is high, the identification information corresponding to the generated to-be-processed service may be "gold", and if the priority of a certain service information is normal, the identification information corresponding to the generated to-be-processed service may be "silver", and so on.
In the embodiment shown in fig. 5, a correspondence table between service information and priority information is preset by a person skilled in the art, and the server queries the correspondence table according to the acquired service information, thereby determining the priority information of the service to be processed and generating corresponding identification information. Therefore, the generation efficiency of the identification information can be improved, and the situation that the resource requirement of the service cannot be met due to the fact that the priority information is determined wrongly can be avoided.
Based on the embodiments shown in fig. 2 and fig. 5, in an embodiment of the present application, determining priority information corresponding to the service information includes:
and if the service information corresponds to at least two priority information, selecting the priority information with the highest priority from the at least two priority information as the priority information currently corresponding to the service information.
It should be noted that the same service information may correspond to multiple priority information, for example, for a certain source network segment, when different services are handled, the source network segment may correspond to a high priority and a low priority, respectively. Therefore, if it is determined that a certain service information corresponds to two or more priority information during query, the priority information with the highest priority can be preferentially selected as the priority information corresponding to the source network segment. For example, the service information a has two priority information, i.e., "high" and "normal", respectively, the priority information "high" is selected as the priority information corresponding to the service information, and so on.
In an embodiment of the present application, if a plurality of query requests of the same service information are received within a predetermined time period, and the service information corresponds to a plurality of priority information, the query requests may be selected according to a mode that the priority information is from high to low. For example, if a certain service information transacts two services within a predetermined time period, and the priority information corresponding to the service information is "high" and "normal", it may be determined that the priority information of the first time is "high", the priority information of the second time is "normal", and so on.
The predetermined time period may be preset by a person skilled in the art according to prior experience, and for example, the predetermined time period may be 15min, 45min, or 1h, and so on. The above are merely exemplary, and the present application is not limited thereto.
In an embodiment of the present application, for a same service information corresponding to multiple priority information, a server may obtain multiple types of service information, and search for corresponding priority information according to the multiple types of service information. For example, the priority information corresponding to the source segment a and the destination segment B is "high", the priority information corresponding to the source segment a and the destination segment C is "normal", and so on. Therefore, the corresponding relation between the combination and the priority information is established by combining the multi-type service information, so that the condition that a single service information corresponds to a plurality of priority information can be avoided, and the accuracy of determining the priority information is ensured.
Based on the embodiment shown in fig. 2, fig. 6 is a schematic flow chart illustrating a response service request message further included in the information processing method according to an embodiment of the present application. Referring to fig. 6, the response service request message at least includes steps S610 to S640, which are described in detail as follows:
in step S610, if a service request packet sent by another node is received, identification information corresponding to the service request packet sent by the another node is obtained based on the service request packet sent by the another node.
The other nodes may be nodes connected to the current node through a network, and the other nodes may interact with the current node to transmit information. For example, the other nodes may include, but are not limited to, servers (including physical servers, cloud servers, and the like), gateways, or terminal devices.
In an embodiment of the present application, in the information transfer process, the current node (i.e., the server) may be an uplink node for information transfer or a downlink node for information transfer. That is, the server may not only send the service request packet to other nodes, but also receive the service request packet sent by other nodes, so as to respond and process the service request packet to handle the relevant services.
When the server receives a service request message sent by other nodes, the server can analyze the service request message to acquire the identification information contained in the service request message. Specifically, the server may obtain corresponding identification information from a header of a service request packet sent by another node. And then the resource scheduling can be carried out on the service request message according to the identification information.
In step S620, according to the identification information corresponding to the service request packet sent by the other node, the service request packet sent by the other node is processed, and a to-be-processed response packet corresponding to the service request packet sent by the other node is generated.
In an embodiment of the present application, after acquiring the identification information of the service request packet sent by another node, the server may process the service request packet according to the acquired identification information. For example, if the priority corresponding to the identification information is "high", the service request packet is processed preferentially, and if the priority corresponding to the identification information is "normal", the processing may be performed in a normal order or delayed to meet the resource requirement of the service request packet with high priority, and so on.
The processing of the service request message may be a response to a request destination of the service request message. For example, if the request purpose of the service request message is to access a resource, the server may respond to the service request message so that the sender of the service request message obtains the access right to the resource, or, if the request purpose of the service request message is to obtain a resource, the server may respond to the service request message and send a required resource to the sender of the service request message, and so on.
After the server responds to the service request message, a to-be-processed response message may be correspondingly generated, where the to-be-processed response message may be message information for responding to a service request message sent by another node. And the message is sent to a sender of the service request message, so that the sender of the service request message can know the response state or the related progress of the current node to the service request message.
In step S630, query is performed according to the service information corresponding to the to-be-processed response packet, and the identification information corresponding to the to-be-processed response packet is determined.
In an embodiment of the present application, it should be understood that the to-be-processed response packet should include corresponding service information, for example, a source network segment, a target network segment, a source network address, a target network address, and the like, corresponding to the to-be-processed response packet. Therefore, the server can analyze the generated response message to be processed, so as to obtain the service information corresponding to the response message to be processed. Specifically, the server may obtain a header of the response packet to be processed, and obtain service information corresponding to the response packet to be processed according to the header.
And the server inquires a corresponding relation table of the service information and the priority information based on the service information corresponding to the response message to be processed, so that the identification information corresponding to the response message to be processed is generated according to the priority information corresponding to the response message to be processed.
In step S640, the identification information corresponding to the response packet to be processed is associated with the response packet to be processed, so as to perform resource scheduling on the response packet to be processed according to the identification information corresponding to the response packet to be processed.
In an embodiment of the present application, after determining the identification information corresponding to the response packet to be processed, the server may associate the determined identification information with the response packet to be processed, and the specific association manner may refer to the association manner described in the above embodiment, which is not described herein again.
Therefore, the server can perform resource scheduling, such as preferential forwarding or delayed forwarding, on the to-be-processed response packet according to the identification information associated with the to-be-processed response packet. Therefore, the network resources of the current server can be reasonably distributed to meet the resource requirements of different types of services.
Based on the embodiment shown in fig. 2, fig. 7 is a schematic flow chart showing configuration priority information further included in the information processing method according to an embodiment of the present application. Referring to fig. 7, the configuration priority information at least includes steps S710 to S720, which are described in detail as follows:
in step S710, if a configuration request for priority information corresponding to service information is received, a configuration interface is displayed, where the configuration interface includes service information to be configured and a priority information option.
In an embodiment of the present application, when a user wants to establish a new correspondence between service information and priority information, the user may click a specific area (for example, a "configure priority information" button, etc.) on the interface to generate a configuration request for the priority information corresponding to the service information. After the server receives the configuration request, a configuration interface can be displayed on a display interface of the terminal equipment of the user, and the configuration interface is used for establishing a corresponding relation between the new service information and the priority information.
The configuration interface may include service information to be configured and priority information options. In particular, the server may obtain node information for other nodes with which it has traffic, which may include, but is not limited to, network segments and network addresses. And comparing the service information with the configured service information, thereby determining the service information which is not configured and displaying the service information in a display interface of the terminal equipment.
The priority options may contain categories of priority information pre-classified by those skilled in the art. For example, the priority options may include "gold", "silver", and "bronze", among others. And each service information to be configured may correspond to a priority option, and the user may select a priority from the priority options corresponding to each service information to be configured, thereby determining the priority information of the service information to be configured.
In step S720, according to the priority information received by the configuration interface, the received priority information is associated with the service information to be configured.
In an embodiment of the present application, after the user determines that the priority information of the service information to be configured is completed, the user may click a specific area (for example, a "configuration complete" button, etc.) on the configuration interface, thereby determining that the configuration is completed.
And the server associates the priority information with the corresponding service information to be configured according to the priority information received by the configuration interface. Specifically, the correspondence between the service information to be configured and the priority information may be added to the correspondence table between the service information and the priority information, so as to perform subsequent query.
In the embodiment shown in fig. 7, through the setting of the configuration interface, the user can establish the corresponding relationship between the new service information and the priority information through the configuration interface, so that the configuration of the priority information corresponding to each service information by the user is satisfied, and the user can manage the information conveniently.
Based on the embodiments shown in fig. 2 and fig. 7, fig. 8 shows a flowchart illustrating modifying priority information further included in the information processing method according to an embodiment of the present application. Referring to fig. 8, modifying the service information at least includes steps S810 to S820, which are described in detail as follows:
in step S810, if a modification request for priority information corresponding to the service information is received, a modification interface is displayed, where the modification interface includes a correspondence between the service information to be modified and the priority information.
In an embodiment of the present application, if a user wants to modify an existing correspondence between service information and priority information, a specific area on an interface (for example, a "modify priority information" button, etc.) may be clicked to generate a modification request for the priority information corresponding to the service information.
After the server receives the modification request, a modification interface can be displayed on a display interface of the terminal equipment of the user, and the modification interface is used for modifying the corresponding relation between the service information and the priority information. Specifically, the modification interface may include a correspondence between the service information to be modified and the priority information. The service information to be modified may be all service information of the configured priority information stored in the server.
The user can select a corresponding relation to be modified from the corresponding relation between the service information to be modified and the priority information, and input the modified priority information, thereby completing the modification. In an example, the user may click on a priority option corresponding to the service information to be modified, and select the modified priority information from the priority option. In another example, after the user selects a service information to be modified, a priority information input box corresponding to the service information may be displayed in the interface, and the user may input new priority information in the priority input box through an input device (e.g., input keyboard or mouse, etc.) configured by the terminal device to complete the modification. It should be noted that the above is only an exemplary example, and those skilled in the art may determine the corresponding modification according to the implementation requirement, and the application is not limited specifically.
In step S820, the corresponding relationship between the service information and the priority information is updated and stored according to the modification information received by the modification interface.
In an embodiment of the present application, the server may modify the existing correspondence between the service information and the priority information according to the modification information received by the modification interface, so as to obtain the updated correspondence between the service information and the priority information. In an example, modifying the correspondence between the service information and the priority information may be updating the modification information received by the modification interface to a correspondence table between the service information and the priority information, so that in a subsequent processing process, query may be performed according to the updated correspondence table to ensure accuracy of determining the priority information.
Based on the embodiment shown in fig. 2, fig. 9 is a schematic flowchart illustrating a resource alarm further included in the information processing method according to an embodiment of the present application. Referring to fig. 9, the resource alarm at least includes steps S910 to S930, which are described in detail as follows:
in step S910, according to the service processing information of the current node, the resource occupancy of the current node is determined.
The service processing information may be related to the service currently being processed by the node, and the service processing information may include, but is not limited to, the number of services being processed and the resource occupation of each service, and so on.
The resource occupancy may be the total amount of resource occupancy for the traffic currently being processed by the node. The resource occupation of the service being processed by the current node is added, so that the resource occupation of the current node is obtained.
In an embodiment of the present application, the server may count the number of services and the resource occupation of each service according to the service currently being processed. For example, the server obtains through statistics that the number of services currently being processed is 3, which are respectively service a, service B, and service C, and the resource occupancy respectively corresponds to 20Mbps, 15Mbps, and 25Mbps, then the current resource occupancy of the server is (20+15+25) Mbps, that is, 60Mbps, and so on.
In step S920, a calculation is performed according to the resource occupation amount and the available resource amount of the current node, so as to determine a resource occupation ratio of the current node.
The available resource amount of the current node may be the largest resource occupiable amount of the current node, and may be basic information which is configured in advance and stored in the current node.
In an embodiment of the present application, the server may divide the resource occupation amount by the available resource amount of the current node, so as to obtain the resource occupation ratio of the current node. For example, if the resource occupation of the current node is 60Mbps, the available resource amount is 100Mbps, the resource occupation ratio of the current node is 60%, and the like.
In step S930, alarm information for reminding the user is generated based on the resource occupation ratio.
In an embodiment of the present application, a predetermined threshold may be preset by a person skilled in the art, and the resource occupation ratio is compared with the predetermined threshold, if the resource occupation ratio is greater than or equal to the predetermined threshold, it indicates that the resource occupation ratio is too large, and a user needs to be reminded; if the resource occupation ratio is smaller than the preset threshold value, the resource occupation ratio is smaller, and the user does not need to be reminded.
It should be noted that the predetermined threshold may be 85%, 90%, or 95%, which is only an exemplary example, and a person skilled in the art may determine the corresponding predetermined threshold according to the actual implementation need, which is not limited in this application.
If the resource occupation ratio is greater than or equal to the predetermined threshold, the server may generate alarm information and send the alarm information to the user, so as to remind the user, so that the user adopts a corresponding policy to manage, and the user can perform troubleshooting or capacity expansion and the like subsequently.
Based on the embodiment shown in fig. 2, fig. 10 is a schematic flow chart illustrating a forwarding service request packet further included in the information processing method according to an embodiment of the present application. Referring to fig. 10, forwarding the service request message at least includes steps S1010 to S1030, which are described in detail as follows:
in step S1010, if a transfer request for a service request packet is received, service information corresponding to the service request packet to be transferred is obtained.
In one embodiment of the present application, the current node may be used not only as a processing node, but also as an intermediate node in information transfer, such as a gateway, a switch, and the like. Therefore, when receiving a transfer request for a service request message, the server may obtain service information of the service request message to be transferred from a header of the service request message, where the service information may be at least one of a source network segment, a target network segment, a source network address, and a target network address of the service request message to be transferred.
In step S1020, according to the service information corresponding to the service request packet to be transmitted, new identification information corresponding to the service request packet to be transmitted is generated.
In an embodiment of the application, the server queries the stored service information and priority information correspondence table according to the acquired service information of the service request packet to be transmitted, so as to determine priority information corresponding to the service information and generate corresponding new identification information to adapt to the resource allocation rule of the current node.
In step S1030, the original identification information of the service request packet to be transmitted is updated based on the new identification information corresponding to the service request packet to be transmitted, so as to perform resource scheduling on the service request packet to be transmitted according to the updated identification information of the service request packet to be transmitted.
In an embodiment of the present application, it should be understood that the service request packet to be transmitted has corresponding identification information in the original node, and the server in the current node may overlay the old identification information with the newly generated identification information, so as to associate the service request packet to be transmitted with the new identification information.
Therefore, the current node can forward the service request message to be transmitted according to the new identification information, so that the forwarding of the service request message to be transmitted can be adapted to the resource allocation rule of the current node, and the resource requirement of the service of the current node can be met.
In the embodiment shown in fig. 10, in the process of transmitting the service request packet, the intermediate node can re-determine the identification information of the service request packet and cover the original identification information, so that each intermediate node can work according to its own resource allocation rule, and the resource requirement of the service local to each intermediate node is satisfied.
Based on the technical solution of the above embodiment, a specific application scenario of the embodiment of the present application is introduced as follows:
referring to fig. 11, fig. 11 is a flow chart of an information processing method according to an embodiment of the present application (hereinafter, described in a cloud service application scenario).
As shown in fig. 11, the edge network device 1110 may be a physical machine, an intelligent network card, a cloud server, a cloud host, a switch, or the like, a user may handle a relevant service or obtain a relevant service through the edge network device 1110, and the edge network device 1110 may mark the service request packet according to the generated service request packet, that is, determine and generate identification information corresponding to the service request packet. The edge network device 1110 may write the identification information into the service request message in a DSCP manner, and send the service request message to the Underlay gateway 1120.
The Underlay gateway 1120 may be a network switch, a router, an optical splitter, or the like, and the Underlay gateway may identify, according to the received service request packet, identification information corresponding to the service request packet, and perform resource scheduling on the service request packet according to the identification information to send the service request packet to the cloud gateway, so as to control corresponding traffic and meet resource requirements of different types of services.
The cloud gateway 1130 may be a virtual private cloud gateway, a CCN (content-centric network) gateway, an NAT (network address translation protocol) gateway, a load balancing gateway, a cloud networking gateway, or the like, and may also be an enterprise intranet gateway, or the like, for accessing an external network or an external device. The cloud gateway 1130 receives the service request packet sent by the Underlay gateway 1120, and recognizes the identification information corresponding to the service request packet, so as to perform resource scheduling on the service request packet according to the identification information, and can send the service request packet to the destination edge network device 1140. The destination edge network device 1140 can respond to the service request message so that the originating edge network device 1110 can obtain the corresponding service or complete the service transaction.
Fig. 12 is a schematic view showing an application scenario of an information processing method that can be applied to an embodiment of the present application.
As shown in fig. 12, the Cloud server 1210 may include an online service and an offline service, wherein the offline service may correspond to using a VPC (Virtual Private Cloud). After the cloud server 1210 generates the service request packet, the service request packet may be forwarded through a dpdk (data Plane Development kit) to be sent to the switch 1220. The switch 1220 may recognize the identification information corresponding to the service request packet, so as to perform resource scheduling on the service request packet, and further send the service request packet to the gateway, where the gateway sends the service request packet to the downstream node, thereby implementing data exchange (e.g., resource acquisition, etc.).
As shown in fig. 12, the information processing method provided in the present application may be used not only between cloud servers, but also between a cloud server and a physical device (shown as 1230 in the figure), or between a physical device and a physical device.
Correspondingly, the physical device can also recognize the identification information in the service request message, so as to perform resource scheduling on the service request message according to the identification information. Meanwhile, when the physical device generates the service request message, the physical device may add identification information to the service request message, so that a subsequent node (e.g., a gateway, a cloud server, or a physical device) may respond to the service request message and the like according to the identification information to reasonably allocate resources, thereby satisfying resource requirements of different types of services.
Fig. 13 and 14 are terminal interface diagrams illustrating a method of processing information according to an embodiment of the present application.
When the server receives a configuration request of the user for the priority information corresponding to the service information, a configuration interface as shown in fig. 13 may be displayed on a display interface of the terminal device of the user. The configuration interface includes service information to be configured (as shown at 1310 in fig. 13) and priority information options (as shown at 1320 in fig. 13). The server may store the corresponding relationship between the service information to be configured and the priority information according to the configuration information received by the configuration interface.
When the server receives a modification request of the user for the priority information corresponding to the service information, a modification interface as shown in fig. 14 may be displayed on the display interface of the terminal device of the user. The modification interface may include a service information display field 1410 and a priority information display field 1420. In the service information display column 1410, existing service information (i.e. service information to be modified) can be displayed, and in the corresponding priority display column 1420, priority information is correspondingly displayed.
For example, as shown in the figure, when the user selects the network card "eni-jeh 82 zgh" to modify, the priority information editing interface of the network card (as shown in 1430 in fig. 14) may be correspondingly displayed, so that the priority information corresponding to the service information may be modified on the priority information editing interface. And the server correspondingly updates and stores the corresponding relation between the service information and the priority machine information according to the modification information received by the modification interface.
Therefore, through configuring the interface and modifying the setting of the interface, the user can conveniently manage the priority information corresponding to the service information.
The following describes embodiments of the apparatus of the present application, which can be used to perform the information processing method in the above embodiments of the present application. For details that are not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the information processing method described above in the present application.
FIG. 15 shows a block diagram of an apparatus for processing information according to an embodiment of the present application.
Referring to fig. 15, an information processing apparatus according to an embodiment of the present application includes:
an obtaining module 1510, configured to obtain a service request packet of a service to be processed;
the parsing module 1520, configured to obtain, according to the service request packet, service information corresponding to the service to be processed;
the query module 1530 is configured to perform query according to the service information, and generate identification information corresponding to the service to be processed, where the identification information is used to describe priority information of the service to be processed;
a processing module 1540, configured to associate the identification information with the service request packet, so as to perform resource scheduling on the service request packet according to the identification information.
Based on the foregoing, in some embodiments of the application, the processing module 1540 is configured to: coding according to the identification information to generate an identification code corresponding to the identification information; and writing the identification code into the service request message.
Based on the foregoing, in some embodiments of the application, the processing module 1540 is configured to: and based on the identification code, adopting a differential service code point to write the identification code into the header of the service request message.
Based on the foregoing solution, in some embodiments of the present application, the service information includes at least one of a source network segment, a target network segment, a source network address, and a target network address; the parsing module 1520 is configured to: acquiring a header of the service request message according to the service request message; and acquiring at least one of the source network segment, the target network segment, the source network address and the target network address from the header according to the header.
Based on the foregoing, in some embodiments of the present application, the query module 1530 is configured to: inquiring a corresponding relation table of service information and priority information according to the service information, and determining the priority information corresponding to the service information; and generating identification information corresponding to the service to be processed according to the priority information corresponding to the service information.
Based on the foregoing, in some embodiments of the present application, the query module 1530 is configured to: and if the service information corresponds to at least two priority information, selecting the priority information with the highest priority from the at least two priority information as the priority information currently corresponding to the service information.
Based on the foregoing solutions, in some embodiments of the present application, the processing module 1540 is further configured to: if receiving a service request message sent by other nodes, acquiring identification information corresponding to the service request message sent by other nodes based on the service request message sent by other nodes; processing the service request messages sent by other nodes according to the identification information corresponding to the service request messages sent by other nodes, and generating to-be-processed response messages corresponding to the service request messages sent by other nodes; inquiring according to the service information corresponding to the response message to be processed, and determining the identification information corresponding to the response message to be processed; and associating the identification information corresponding to the response message to be processed with the response message to be processed, so as to perform resource scheduling on the response message to be processed according to the identification information corresponding to the response message to be processed.
Based on the foregoing solutions, in some embodiments of the present application, the processing module 1540 is further configured to: if a configuration request aiming at priority information corresponding to the service information is received, displaying a configuration interface, wherein the configuration interface comprises service information to be configured and priority information options; and associating the received priority information with the service information to be configured according to the priority information received by the configuration interface.
Based on the foregoing solutions, in some embodiments of the present application, the processing module 1540 is further configured to: if a modification request aiming at priority information corresponding to the service information is received, displaying a modification interface, wherein the modification interface comprises the corresponding relation between the service information to be modified and the priority information; and updating and storing the corresponding relation between the service information and the priority information according to the modification information received by the modification interface.
Based on the foregoing solutions, in some embodiments of the present application, the processing module 1540 is further configured to: determining the resource occupation amount of the current node according to the service processing information of the current node; calculating according to the resource occupation amount and the available resource amount of the current node, and determining the resource occupation proportion of the current node; and generating alarm information for reminding the user based on the resource occupation ratio.
Based on the foregoing solutions, in some embodiments of the present application, the processing module 1540 is further configured to: if a transfer request aiming at the service request message is received, acquiring service information corresponding to the service request message to be transferred; generating new identification information corresponding to the service request message to be transmitted according to the service information corresponding to the service request message to be transmitted; and updating the original identification information of the service request message to be transmitted based on the new identification information corresponding to the service request message to be transmitted, so as to perform resource scheduling on the service request message to be transmitted according to the updated identification information of the service request message to be transmitted.
FIG. 16 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
It should be noted that the computer system of the electronic device shown in fig. 16 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 16, the computer system includes a Central Processing Unit (CPU)1601 which can perform various appropriate actions and processes, such as executing the method described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 1602 or a program loaded from a storage portion 1608 into a Random Access Memory (RAM) 1603. In the RAM 1603, various programs and data necessary for system operation are also stored. The CPU 1601, ROM 1602, and RAM 1603 are connected to each other via a bus 1604. An Input/Output (I/O) interface 1605 is also connected to the bus 1604.
The following components are connected to the I/O interface 1605: an input portion 1606 including a keyboard, a mouse, and the like; an output section 1607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 1608 including a hard disk and the like; and a communication section 1609 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 1609 performs communication processing via a network such as the internet. The driver 1610 is also connected to the I/O interface 1605 as needed. A removable medium 1611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 1610 as necessary, so that a computer program read out therefrom is mounted in the storage portion 1608 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communication portion 1609, and/or installed from the removable media 1611. When the computer program is executed by a Central Processing Unit (CPU)1601, various functions defined in the system of the present application are executed.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (14)

1. A method for processing information, comprising:
acquiring a service request message of a service to be processed;
acquiring service information corresponding to the service to be processed according to the service request message;
inquiring according to the service information to generate identification information corresponding to the service to be processed, wherein the identification information is used for describing priority information of the service to be processed;
and associating the identification information with the service request message so as to carry out resource scheduling on the service request message according to the identification information.
2. The processing method according to claim 1, wherein associating the identification information with the service request packet comprises:
coding according to the identification information to generate an identification code corresponding to the identification information;
and writing the identification code into the service request message.
3. The processing method of claim 2, wherein writing the identification code into the service request message comprises:
and based on the identification code, adopting a differential service code point to write the identification code into the header of the service request message.
4. The processing method of claim 1, wherein the traffic information comprises at least one of a source network segment, a target network segment, a source network address, and a target network address; acquiring the service information corresponding to the service to be processed according to the service request message, wherein the acquiring comprises the following steps:
acquiring a header of the service request message according to the service request message;
and acquiring at least one of the source network segment, the target network segment, the source network address and the target network address from the header according to the header.
5. The processing method according to claim 1, wherein querying according to the service information to generate identification information corresponding to the service to be processed includes:
inquiring a corresponding relation table of service information and priority information according to the service information, and determining the priority information corresponding to the service information;
and generating identification information corresponding to the service to be processed according to the priority information corresponding to the service information.
6. The processing method according to claim 5, wherein determining priority information corresponding to the service information comprises;
and if the service information corresponds to at least two priority information, selecting the priority information with the highest priority from the at least two priority information as the priority information currently corresponding to the service information.
7. The processing method according to claim 1, characterized in that it further comprises:
if receiving a service request message sent by other nodes, acquiring identification information corresponding to the service request message sent by other nodes based on the service request message sent by other nodes;
processing the service request messages sent by other nodes according to the identification information corresponding to the service request messages sent by other nodes, and generating to-be-processed response messages corresponding to the service request messages sent by other nodes;
inquiring according to the service information corresponding to the response message to be processed, and determining the identification information corresponding to the response message to be processed;
and associating the identification information corresponding to the response message to be processed with the response message to be processed, so as to perform resource scheduling on the response message to be processed according to the identification information corresponding to the response message to be processed.
8. The processing method according to claim 1, characterized in that it further comprises:
if a configuration request aiming at priority information corresponding to the service information is received, displaying a configuration interface, wherein the configuration interface comprises service information to be configured and priority information options;
and associating the received priority information with the service information to be configured according to the priority information received by the configuration interface.
9. The processing method according to claim 8, characterized in that it further comprises:
if a modification request aiming at priority information corresponding to the service information is received, displaying a modification interface, wherein the modification interface comprises the corresponding relation between the service information to be modified and the priority information;
and updating and storing the corresponding relation between the service information and the priority information according to the modification information received by the modification interface.
10. The processing method according to claim 1, characterized in that it further comprises:
determining the resource occupation amount of the current node according to the service processing information of the current node;
calculating according to the resource occupation amount and the available resource amount of the current node, and determining the resource occupation proportion of the current node;
and generating alarm information for reminding the user based on the resource occupation ratio.
11. The processing method according to claim 1, characterized in that it further comprises:
if a transfer request aiming at the service request message is received, acquiring service information corresponding to the service request message to be transferred;
generating new identification information corresponding to the service request message to be transmitted according to the service information corresponding to the service request message to be transmitted;
and updating the original identification information of the service request message to be transmitted based on the new identification information corresponding to the service request message to be transmitted, so as to perform resource scheduling on the service request message to be transmitted according to the updated identification information of the service request message to be transmitted.
12. An apparatus for processing information, comprising:
the acquisition module is used for acquiring a service request message of a service to be processed;
the analysis module is used for acquiring the service information corresponding to the service to be processed according to the service request message;
the query module is used for querying according to the service information and generating identification information corresponding to the service to be processed, wherein the identification information is used for describing priority information of the service to be processed;
and the processing module is used for associating the identification information with the service request message so as to carry out resource scheduling on the service request message according to the identification information.
13. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for processing information according to any one of claims 1 to 11.
14. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out a method of processing information according to any one of claims 1 to 11.
CN202011211481.2A 2020-11-03 2020-11-03 Information processing method and device, computer readable medium and electronic equipment Pending CN112383600A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011211481.2A CN112383600A (en) 2020-11-03 2020-11-03 Information processing method and device, computer readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011211481.2A CN112383600A (en) 2020-11-03 2020-11-03 Information processing method and device, computer readable medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112383600A true CN112383600A (en) 2021-02-19

Family

ID=74579171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011211481.2A Pending CN112383600A (en) 2020-11-03 2020-11-03 Information processing method and device, computer readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112383600A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114757A (en) * 2021-04-09 2021-07-13 中国工商银行股份有限公司 File transmission method, device and equipment
CN113596920A (en) * 2021-07-29 2021-11-02 百度在线网络技术(北京)有限公司 Flow control method and device, electronic equipment and storage medium
CN113836053A (en) * 2021-09-07 2021-12-24 上海砹芯科技有限公司 Information acquisition method and device and electronic equipment
CN114125904A (en) * 2021-12-10 2022-03-01 南方电网数字电网研究院有限公司 Service bearing distribution method and system based on 5G electric power

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113114757A (en) * 2021-04-09 2021-07-13 中国工商银行股份有限公司 File transmission method, device and equipment
CN113114757B (en) * 2021-04-09 2022-09-30 中国工商银行股份有限公司 File transmission method, device and equipment
CN113596920A (en) * 2021-07-29 2021-11-02 百度在线网络技术(北京)有限公司 Flow control method and device, electronic equipment and storage medium
CN113596920B (en) * 2021-07-29 2024-04-05 百度在线网络技术(北京)有限公司 Flow control method, device, electronic equipment and storage medium
CN113836053A (en) * 2021-09-07 2021-12-24 上海砹芯科技有限公司 Information acquisition method and device and electronic equipment
CN114125904A (en) * 2021-12-10 2022-03-01 南方电网数字电网研究院有限公司 Service bearing distribution method and system based on 5G electric power

Similar Documents

Publication Publication Date Title
CN110769039B (en) Resource scheduling method and device, electronic equipment and computer readable storage medium
CN109951880B (en) Communication processing method and device, computer readable medium and electronic equipment
CN112383600A (en) Information processing method and device, computer readable medium and electronic equipment
CN111200830B (en) Data transmission method and device and electronic equipment
CN110505101B (en) Network slice arranging method and device
WO2019141111A1 (en) Communication method and communication apparatus
US20150019740A1 (en) Network Bandwidth Allocation Method and Terminal
JP2004048662A (en) Business method and apparatus for network path configuration
US8233390B2 (en) Priority and source aware packet memory reservation and flow control in forwarding planes
CN110058937B (en) Method, apparatus and medium for scheduling dedicated processing resources
CN114285781B (en) SRV6 service flow statistics method, device, electronic equipment and medium
WO2017101815A1 (en) Message processing method, device and system
US8891468B2 (en) Content-based network system and method of controlling transmission of content therein
CN107483628B (en) DPDK-based one-way proxy method and system
CN111970149B (en) Shared bandwidth implementation method based on hardware firewall QOS
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
CN115277504B (en) Network traffic monitoring method, device and system
CN114500418B (en) Data statistics method and related device
WO2022218304A1 (en) Message forwarding method, apparatus and system, and computer-readable storage medium
CN115996188A (en) Service scheduling method, device, equipment and computer readable storage medium
CN110247847B (en) Method and device for back source routing between nodes
CN109951316B (en) Application program management method and device, computer readable medium and electronic equipment
CN114979128A (en) Cross-region communication method and device and electronic equipment
CN115086425B (en) Message transmission method, device, program product, medium and electronic equipment
WO2024021573A1 (en) Network slice-based communication method, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40038793

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination