COMMUNICATION METHOD, ELECTRONIC DEVICE, AND STORAGE MEDIUM BASED ON NETWORK SLICES
By enabling routers to determine the appropriate network slice for messages based on application priority information and preset matching rules, this communication method addresses the challenge of mismatched network characteristics, optimizing network resource utilization and improving user experience.
Patent Information
- Application Number
- JP2024558122
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-07-25
- Filing Date
- 2023-02-17
- Publication Date
- 2025-04-16
- Estimated Expiration
- 2043-02-17
AI Technical Summary
Access network devices cannot determine the appropriate network slice for messages based on the usage needs of individual applications, leading to suboptimal user experience due to mismatched network characteristics.
A communication method that involves obtaining priority information for a target application, encapsulating data to be sent, mapping priority information to the data packet, and transmitting the message to a router, which routes it to a target network slice determined by the priority information and preset matching rules.
This approach allows for precise routing of application messages to network slices that match their usage needs, optimizing network resource utilization and enhancing user experience by ensuring that network characteristics align with application requirements.
Smart Images

Figure 2025511657000001_ABST
Abstract
Description
[Technical field]
[0001] This application is filed based on a Chinese patent application bearing application number 202210877908.5 and filing date July 25, 2022, and claims priority to the Chinese patent application, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the technical field of communications, but is not limited thereto, and in particular to a communication method, electronic device, and storage medium based on network slices. [Background technology]
[0003] A network slice is a logical network with specific network characteristics separated from an operator's communication network. A physical network may be abstractly divided into multiple network slices, each of which forms an end-to-end logical network and is logically separated from each other, and different network slices may offer different network characteristics. Summary of the Invention [Problem to be solved by the invention]
[0004] Currently, an access network device can determine a network slice to which a message is to be sent according to priority information of a Quality of Service (QoS) flow. However, in a user terminal, the user's usage needs differ for each application, and the access network device cannot determine a network slice to which a message is to be sent according to the usage needs of the application. Therefore, when a message of an application is sent to a network slice whose network characteristics do not match, the usage needs of the user cannot be met, resulting in a degraded user experience. [Means for solving the problem]
[0005] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
[0006] Embodiments of the present application provide a communication method, an electronic device, and a storage medium based on network slicing.
[0007] In a first aspect, an embodiment of the present application provides a communication method based on a network slice applied to a user terminal communicatively connected to a router, the communication method including the steps of acquiring priority information of a target application, acquiring data to be transmitted of the target application and encapsulating the data to be transmitted to obtain a data packet, mapping the priority information to a priority field of the data packet and obtaining a target message based on the mapped data packet, and sending the target message to the router so that the router routes the target message to a target network slice, wherein the target network slice is determined by the router according to the priority information and a predetermined matching rule.
[0008] In a second aspect, the present application further provides a communication method based on a network slice applied to a router communicatively connected to a user terminal, comprising: a step of receiving a target message from the user terminal, wherein the target message is obtained from a mapped data packet, the data packet being obtained by the user terminal encapsulating data to be transmitted of a target application, and the mapped data packet being obtained by the user terminal mapping priority information of the target application to a priority field of the data packet, and the priority information and data to be transmitted of the target application are obtained from the user terminal; a step of analyzing the target message to obtain the priority information; and a step of determining a target network slice according to the priority information and a predetermined matching rule, and routing the target message to the target network slice.
[0009] In a third aspect, the present application further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, the processor, when executing the computer program, realizing a communication method based on a network slice as described in the first aspect.
[0010] In a fourth aspect, the present application further provides a computer-readable storage medium storing a computer-executable program for causing a computer to execute a communication method based on a network slice described in the first aspect or a communication method based on a network slice described in the second aspect.
[0011] Other features and advantages of the present application will be set forth in the following specification, and in part will be obvious from the specification, or may be learned by the practice of the present application. The objectives and other advantages of the present application may be realized and obtained by the structure particularly pointed out in the written description, claims and drawings. The drawings are used to provide a further understanding of the technical solution of the present application, constitute a part of the specification, and are used to interpret the technical solution of the present application together with the embodiments of the present application, and are not intended to limit the technical solution of the present application. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a schematic diagram of an implementation environment according to an embodiment of the present application. [Diagram 2] 1 is a flowchart of a communication method based on network slices applied to a user terminal according to one embodiment of the present application; [Diagram 3] 4 is a flowchart of a method for obtaining association data according to another embodiment of the present application; [Figure 4] 4 is a flowchart of a method for obtaining data to be sent according to another embodiment of the present application; [Diagram 5] 4 is a flowchart of a method for determining a target process ID according to another embodiment of the present application. [Figure 6] 4 is a flowchart of a method for deleting association data according to another embodiment of the present application; [Figure 7] 1 is a flowchart of a communication method based on network slices applied to a router according to another embodiment of the present application; [Figure 8] 4 is a flowchart of a method for updating priority information according to another embodiment of the present application; [Figure 9] 4 is a flowchart of a method for routing a targeted message according to another embodiment of the present application; [Figure 10] 1 is a flow chart of a communication mechanism according to one embodiment of the present application. [Figure 11] FIG. 11 is a block diagram of an electronic device according to another embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be described in more detail below with reference to the drawings and examples. The specific examples described in this specification are only used to interpret the present application, and are not used to limit the present application.
[0014] Although the division of functional modules is performed in the schematic diagram of the device and a logical order is shown in the flowchart, in some cases the division of modules in the device may differ, or the steps shown or described may be performed in a different order than in the flowchart. The terms "first", "second", etc. in this specification, claims, or the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or chronological order.
[0015] Currently, an access network device can determine a network slice to which a message is to be sent according to priority information of a Quality of Service (QoS) flow. However, in a user terminal, the user's usage needs differ for each application, and the access network device cannot determine a network slice to which a message is to be sent according to the usage needs of the application. Therefore, when a message of an application is sent to a network slice whose network characteristics do not match, the usage needs of the user cannot be met, resulting in a degraded user experience.
[0016] In response to the problem that an access network device cannot determine a network slice to which a message is to be sent according to the usage needs of an application, the present application provides a communication method, an electronic device, and a storage medium based on a network slice. The method is applied to a user terminal communicatively connected to a router, and includes the steps of acquiring priority information of a target application, acquiring data to be sent of the target application, encapsulating the data to be sent to obtain a data packet, mapping the priority information to a priority field of the data packet, and obtaining a target message based on the mapped data packet, and transmitting a target message to the router so that the router routes the target message to the target network slice, the target network slice being determined by the router according to the priority information and a pre-set matching rule. According to an embodiment of the present application, the user terminal first acquires priority information set for the target application, acquires data to be sent of the target application, maps the priority information to a priority field of a data packet obtained by encapsulating the data to be sent, and further obtains a target message by the mapped data packet, and transmits the target message to the router. The router then determines the priority information according to the target message, combines the matching rule to determine a target network slice, and then routes the target message to the target network slice.This makes it possible to split messages by priority at the application level of the user terminal, with fine granularity and high flexibility in splitting. The router can determine the target network slice to which the target message is to be sent based on the priority information of the application, and route the target messages of applications with different usage needs to the network slice with matching network characteristics, which is in line with the trend of diversification of core networks, can meet the usage needs of users, optimize network resources, and improve user experience.
[0017] Hereinafter, the embodiments of the present invention will be further described with reference to the drawings.
[0018] The communication method based on network slicing according to an embodiment of the present application may be applied to a user terminal, may be applied to a router, or may be software operated in a user terminal or a router.
[0019] Referring to FIG. 1, FIG. 1 is a schematic diagram of an implementation environment according to an embodiment of the present application, which includes a user terminal 110 and a router 120, which are communicatively connected to each other.
[0020] Router 120 may be connected to core network 130 via a wired or wireless manner, where core network 130 supports multi-slice links, and router 120 can route messages of different priorities to different network slices via priority routing, thereby providing different network services for messages of different priorities.
[0021] The user terminal 110 may be, but is not limited to, a personal computer (PC), a mobile phone, a smartphone, a personal digital assistant (PDA), a wearable device, a handheld computer PPC (Pocket PC), a tablet terminal, a photographing device with a photographing function, a collection device, etc. The user terminal 110 and the router 120 may be directly or indirectly connected by a wired or wireless communication method, and are not limited to the embodiments of the present application.
[0022] Based on the implementation environment of Figure 1, as shown in Figure 2, Figure 2 is a flowchart of a communication method based on a network slice according to an embodiment of the present application. This communication method based on a network slice can be applied to a user terminal communicatively connected to a router, and includes, but is not limited to, the following steps S210 to S240.
[0023] Step S210: Obtain priority information of the target application.
[0024] Step S220: The transmission target data of the target application is obtained, and the transmission target data is encapsulated to obtain a data packet.
[0025] Step S230: Map the priority information to the priority field of the data packet, and obtain a target message based on the mapped data packet.
[0026] Step S240: Send the target message to the router, so that the router routes the target message to the target network slice, and the target network slice is determined by the router according to the priority information and a preset matching rule.
[0027] With the constant development of 5G networks, there are also new evolutions in wireless network slicing technology. Network slicing is an on-demand networking method that allows operators to separate multiple virtual end-to-end networks on a unified infrastructure. Each network slice is logically separated from the radio access network to the bearer network to the core network, and can accommodate different types of applications. Network slicing is a logic-based concept, a resource reorganization that selects the virtual machines and physical resources required for a specific communication service type based on the service level agreement SLA. In 5G networks, wireless resources may be sliced in different ways. That is, different physical resource blocks PRBs are assigned to different network slices. In addition, in traditional 4G networks, the need for different services to use different slice links is gradually becoming more common. In addition to the trend on the network side, with the constant popularization of wireless terminals, the network terminals currently commonly used by users are gradually changing from computers, etc. to mobile phones, tablets, etc. The number of applications installed on user terminals is increasing, and users have different usage needs for each application. Users set priority information for target applications according to their usage needs, and when the target application needs to communicate, the priority information is mapped to the priority field of a data packet obtained by encapsulating the data to be transmitted by the target application, and a target message is obtained by the mapped data packet. When a router receives a target message, it analyzes the target message to obtain priority information, combines matching rules to determine a target network slice, and finally routes the target message to the target network slice, and further distinguishes services for each target application, thereby improving the user experience as much as possible.Based on this, the user terminal first obtains the priority information set for the target application, obtains the data to be transmitted of the target application, and then maps the priority information to the priority field of the data packet obtained by encapsulating the data to be transmitted, and further obtains a target message by the mapped data packet, and sends the target message to the router. The router then determines the priority information according to the target message, combines matching rules to determine the target network slice, and then routes the target message to the target network slice. This makes it possible to divide messages by priority at the application level of the user terminal, with small division granularity and high flexibility, and the router can determine the target network slice to which the target message is to be sent based on the priority information of the application, and then route the target messages of applications with different usage needs to network slices with matching network characteristics, which is in line with the diversification trend of the core network, can meet the usage needs of users, optimize network resources, and improve user experience.
[0028] After obtaining the priority information through analysis, the router determines a target label corresponding to the priority information according to a matching rule, and since the target label matches the target network slice, the router routes the target message to the target network slice based on the target label.
[0029] Specifically, a plug-in interface for setting priority information is set in the user terminal, and the plug-in interface functions as an interface for a user to set a priority for an application, and can search for applications installed in the user terminal. In the plug-in interface, a user can set different priorities for different applications according to usage needs, and further map the priority information to a priority field of a data packet obtained by encapsulating data to be transmitted of a target application, and further obtain a target message by the mapped data packet, and the router can transmit the target message to a target network slice whose network characteristics match the usage needs, thereby optimizing network resources and improving the user experience, and the user can customize the data transmission rules of his / her user terminal according to his / her usage needs.
[0030] In addition, the communication method based on network slices in this embodiment is applicable not only to a home local area network scenario covered by a wireless LAN, but also to a public network scenario covered by a wireless network.
[0031] Moreover, referring to FIG. 3, in one embodiment, the following steps S310 to S340 are further included after step S210 in the embodiment shown in FIG. 2, but the present invention is not limited thereto.
[0032] Step S310: According to the target application, a target process identifier representing the target application is determined.
[0033] Step S320: Determine a target process ID according to the target process identifier.
[0034] Step S330: Determine a target socket for sending the target message according to the target process ID.
[0035] Step S340: Determine the association relationship between the priority information, the target process identifier, the target process ID, and the target socket, and obtain the association data.
[0036] After obtaining the priority information of the target application, it is necessary to first determine a target process identifier corresponding to the target application, and the target process identifier includes, but is not limited to, a process name. After the target application is operated, it is necessary to determine a target process ID, i.e., PID, for the application process of the target application by the target process identifier. When the target application starts network communication and establishes a communication socket, the target socket is determined by the target process ID, and finally, the association relationship between the priority information, the target process identifier, the target process ID, and the target socket is determined to obtain association data. When a priority is set for each application, multiple association data are obtained, and each association data can be organized in a linked list, a hash table, or the like.
[0037] Since a process name is fixed for the application process of the target application each time the target application is run, the process name can be the target process identifier.
[0038] For user mode processes, the priority information, target process name, PID, and socket may be organized using a fixed data structure to organize the association data, and for kernel mode processes, the priority information, PID, and socket may be organized using the same data structure to organize the association data.
[0039] Moreover, referring to FIG. 4, in one embodiment, the following steps S410 to S440 are further included before step S220 in the embodiment shown in FIG. 2, but the present invention is not limited thereto.
[0040] Step S410: Data to be transmitted of the first application is obtained.
[0041] Step S420: Determine a first process identifier according to the first application.
[0042] Step S430: Compare the first process identifier with the target process identifier corresponding to the association data.
[0043] Step S440: If it is determined that the first process identifier is the same as the target process identifier, the first application is set as the target application, and the transmission target data of the first application is set as the transmission target data of the target application.
[0044] The first application is any application installed in the user terminal. When the first application establishes network communication and generates data to be transmitted, the user terminal determines a first process identifier corresponding to the first application. When the user sets a priority for the target application, association data is generated, and the user terminal determines whether the first process identifier is identical to a certain target process identifier among all the association data. If it is determined that the first process identifier is identical to the target process identifier, the first application is set as the target application, and the data to be transmitted of the first application is set as the data to be transmitted of the target application. If it is determined that the first process identifier is different from all the target process identifiers, it means that no priority is set for the first application, and the router routes the data to be transmitted of the first application to a default link.
[0045] Also, referring to FIG. 5, in one embodiment, step S320 in the embodiment shown in FIG. 3 includes, but is not limited to, the following steps S510 and S520.
[0046] Step S510: If it is determined that the target application is in an active state, the target application is restarted.
[0047] Step S520: Based on the target application after reboot, a target process ID is determined according to a target process identifier.
[0048] When the user sets priority information, the target application needs to be restarted when the target application is in an operating state. Since the target process ID may change after the restart, the target process ID needs to be redetermined and then a mapping process needs to be performed on the priority field of the data packet of the target application, thereby ensuring the stability and reliability of the priority setting process. In addition, when the user sets priority information, if the target application is not started when the target application is in an off state, the target process ID cannot be determined, so there is no need to perform an additional restart operation on the target application.
[0049] Moreover, in one embodiment, step S240 in the embodiment shown in FIG. 2 includes, but is not limited to, the following steps:
[0050] Based on the target socket, a targeted message is sent to the router.
[0051] When a user terminal sends a target message to a router, the target socket of the communication is recorded in the socket buffer (skb), so the priority information is transmitted by mapping the priority information to the priority field of the data packet in the skb_buff data structure using the target socket as a link.
[0052] Also, referring to FIG. 6, in one embodiment, the communication method based on a network slice further includes, but is not limited to, the following steps S610 and S620.
[0053] Step S610: According to a preset detection cycle, a state detection process for a target application corresponding to the association data is periodically performed.
[0054] Step S620: If it is determined that the target application corresponding to the association data is in the off state, the association data is deleted.
[0055] After setting the priority of an application, it is necessary to periodically delete redundant association data in order to improve processing efficiency. A detection period is set to periodically traverse all association data, and a state detection process for a target application corresponding to the association data is performed to determine a current operating state of the target application. When the target application is in an off state, i.e., when the network communication established by the target application is released, the association data corresponding to the target application is deleted as redundant data, thereby improving processing efficiency of the target application in an operating state.
[0056] Specifically, a timer may be installed and the detection period may be determined by setting a timing threshold of the timer. When the timing value of the timer is equal to the timing threshold, the traversal of all associated data is started, a state detection process is performed on the target application corresponding to the associated data, the associated data belonging to the redundant data is deleted, and after the traversal is completed, the timing by the timer is resumed, which corresponds to traversing the associated data only once within one detection period. The timing threshold of the timer is preferentially selected by the user according to the actual processing effect.
[0057] In addition, in one embodiment, the following steps are further included before step S210 in the embodiment shown in FIG. 2, but are not limited thereto.
[0058] Application information representing applications installed on the user terminal and for determining a target application is obtained.
[0059] Since a user can only set priorities for applications installed on the user terminal, it is necessary to obtain application information, so that the user can know all applications installed on the user terminal and further identify a target application from among all the installed applications.
[0060] Also, in one embodiment, the priority information includes at least one of level information, application type information, or network characteristic information; the level information includes at least one of high priority information, medium priority information, or low priority information; the application type information includes at least one of audio type information, video type information, game type information, or web page type information; The network characteristic information includes at least one of minimum delay characteristic information, maximum throughput characteristic information, reliability transmission characteristic information, or minimum cost transmission characteristic information.
[0061] A user may set rules for the message-specific priority field according to his / her own usage needs, for example, when generating an IPv4 target message, by mapping priority information to the ToS field of the target message.
[0062] The ToS field includes bits 0 to 8, and the priority range corresponding to bits 0 to 2 of the ToS field is 0 to 7. In the ToS field, 1. Level information may be determined using bits 0 to 2 of the ToS field. If the level information is low priority information, set the priority to 0; If the level information is medium priority information, set the priority to 4; If the level information is high priority information, the priority is set to 7. 2. The application type information may be determined using bits 0 to 2 of the ToS field. If the level information is audio type information, set the priority to 5; If the level information is video type information or game type information, set the priority to 4; If the level information is web page type information, set the priority to 3, 2 or 1; If the level information is any other type of information, the priority is set to 0. 3. The network characteristic information may be determined using the 3rd to 7th bits of the ToS field. If the network characteristic information is minimum delay characteristic information, set the third bit of the ToS field to 1; If the network characteristic information is maximum throughput characteristic information, set the 4th bit of the ToS field to 1; If the network characteristic information is reliable transmission characteristic information, set the 5th bit of the ToS field to 1; If the network characteristic information is minimum cost transmission characteristic information, the sixth bit of the ToS field is set to 1.
[0063] The priority information is classified, and the priority information includes, but is not limited to, level information, application type information, and network characteristic information. When a user sets a priority for an application, multiple priorities may be set for the same application, for example, the application's messages may be set to meet minimum delay characteristics and be limited to web page types.
[0064] It should be noted that the mapping mechanism of priority information is not limited to the rules given in the standard protocol framework, and users may set their own rules for the priority field.
[0065] Based on the implementation environment of Fig. 1, as shown in Fig. 7, Fig. 7 is a flowchart of a communication method based on a network slice according to another embodiment of the present application. This communication method based on a network slice is applied to a router communicatively connected to a user terminal, and includes, but is not limited to, the following steps S710 to S730.
[0066] Step S710: Receive a target message from a user terminal, where the target message is obtained from a mapped data packet, where the data packet is obtained by the user terminal encapsulating data to be transmitted of the target application, where the mapped data packet is obtained by the user terminal mapping priority information of the target application to a priority field of the data packet, where the priority information and data to be transmitted of the target application are obtained from the user terminal.
[0067] Step S720: Analyze the target message to obtain priority information.
[0068] Step S730: Determine a target network slice according to the priority information and the preset matching rule, and route the target message to the target network slice.
[0069] A specific embodiment of the communication method based on this network slice applied to a router is basically the same as the specific embodiment of the communication method based on the network slice applied to a user terminal, and will not be described in detail here. Based on this, the user terminal first obtains the priority information set for the target application, obtains the data to be transmitted of the target application, and then maps the priority information to the priority field of the data packet obtained by encapsulating the data to be transmitted, and further obtains a target message by the mapped data packet, and sends the target message to the router. After that, the router can determine the priority information according to the target message, combine matching rules to determine the target network slice, and then route the target message to the target network slice. This makes it possible to divide messages by priority at the application level of the user terminal, with small division granularity and high flexibility, and the router can determine the target network slice of the destination of the target message based on the priority information of the application, and then route the target messages of applications with different usage needs to the network slices with matching network characteristics, which meets the diversification trend of the core network, meets the usage needs of users, optimizes network resources, and improves user experience.
[0070] Moreover, in one embodiment, step S720 in the embodiment shown in FIG.
[0071] The priority information is obtained by parsing the service type field of the target message or by parsing the traffic class field of the target message.
[0072] For an IPv4 targeted message, the parameter in the Type of Service (ToS) field of the targeted message is the priority information, and for an IPv6 targeted message, the parameter in the Traffic Class (TC) field of the targeted message is the priority information.
[0073] Since both the ToS and TC fields are protocol-specific fields, the priority information can be mapped to a priority field specific to the target message to obtain the target message without adding any network overhead.
[0074] In addition, based on the conventional network protocol, users can set application priorities according to their usage needs, and it can be used both in home environments and environments covered by wireless networks, which not only improves the user experience but also has important significance for the configuration of network resources.
[0075] Also, referring to FIG. 8, in one embodiment, before step S720 in the embodiment shown in FIG. 7, the following steps S810 and S820 are further included, but are not limited thereto.
[0076] Step S810: Determine message attributes according to the target message.
[0077] Step S820: If it is determined that the message attributes match the preset adjustment rules, update the target message according to the adjustment rules, and update the priority information.
[0078] When the router receives the target message, the router can determine message attributes according to the target message, including but not limited to the source address, target address, source port, and target port of the target message. The adjustment rule limits some message attributes to be adjusted and priority information corresponding to the message attributes. If the message attributes of the target message match the message attributes to be adjusted, the router updates the parameters in the priority field of the target message according to the adjustment rule, and further updates the priority information. In this way, after adjusting the priority of the target message, the router routes the priority-adjusted target message to the corresponding network slice, thereby ensuring the reliability of the target message transmission.
[0079] Also, referring to FIG. 9, in one embodiment, step S730 in the embodiment shown in FIG. 7 includes, but is not limited to, steps S910 and S920.
[0080] Step S910: Determine a target label corresponding to the priority information according to a preset matching rule, and the target label matches the target network slice.
[0081] Step S920: Route the target message to the target network slice based on the target label.
[0082] After obtaining the priority information through analysis, the router performs label processing on the target message according to the ToS matching rules, determines the target label corresponding to the priority information, and then can route target messages with different labels to different network slices using a policy routing method.
[0083] Also, please refer to FIG. 10, which is a flow chart of a communication mechanism according to one embodiment of the present application. When a router receives a data message, it determines whether the message attributes of the data message satisfy the adjustment rules; if the adjustment rules are satisfied, it updates the priority information of the data message according to the adjustment rules, analyzes the data message to obtain the priority information; if the adjustment rules are not satisfied, it directly analyzes the data message to obtain the priority information; then it determines whether the priority information of the data message satisfies the matching rules; if the matching rules are satisfied, it routes the data message to a specific slice link; if the matching rules are not satisfied, it routes the data message to a default link.
[0084] Furthermore, referring to FIG. 11, an embodiment of the present application further provides an electronic device.
[0085] In one embodiment, the electronic device includes one or more processors and memories, one processor and memory being illustrated in Figure 11. The processor and memory may be connected via a bus or in other ways, with Figure 11 illustrating the connection via a bus.
[0086] The memory may be used as a non-transitory computer-readable storage medium to store a non-transitory software program and a non-transitory computer-executable program, such as the communication method based on the network slice in the above embodiment of the present application. The processor realizes the communication method based on the network slice in the above embodiment of the present application by operating the non-transitory software program and the program stored in the memory.
[0087] The memory may include a program storage area capable of storing an operating system, an application required for at least one function, and a data storage area capable of storing data required to execute the communication method based on the network slice in the above embodiment of the present application. Furthermore, the memory may include a high-speed random access memory, and may include a non-transient memory such as at least one magnetic disk memory device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may include a memory located remotely to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0088] The non-transitory software programs and programs required to implement the communication method based on the network slice in the above embodiment of the present application are stored in memory and executed by one or more processors to execute the communication method based on the network slice applied to the user terminal in the above embodiment of the present application, for example, execute the above method steps S210 to S240 of FIG. 2, method steps S310 to S340 of FIG. 3, method steps S410 to S440 of FIG. 4, method steps S510 to S520 of FIG. 5, and method steps S610 to S620 of FIG. 6. The user terminal obtains priority information of a target application, obtains data to be transmitted of the target application, encapsulates the data to be transmitted to obtain a data packet, maps the priority information to the priority field of the data packet, obtains a target message based on the mapped data packet, and sends the target message to the router, so that the router routes the target message to the target network slice, and the target network slice is determined by the router according to the priority information and a preset matching rule. Based on this, the user terminal first obtains priority information set for the target application, obtains data to be transmitted from the target application, and then maps the priority information to a priority field of a data packet obtained by encapsulating the data to be transmitted, obtains a target message by the mapped data packet, and transmits the target message to a router. After that, the router can determine the priority information by the target message, combine matching rules to determine a target network slice, and then route the target message to the target network slice.This makes it possible to split messages by priority at the application level of the user terminal, with fine granularity and high flexibility in splitting. The router can determine the target network slice to which the target message is to be sent based on the priority information of the application, and route the target messages of applications with different usage needs to the network slice with matching network characteristics, which is in line with the trend of diversification of core networks, can meet the usage needs of users, optimize network resources, and improve user experience.
[0089] Furthermore, one embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions that, when executed by one processor or controller, for example, one processor in the above-mentioned electronic device embodiment, can cause the above-mentioned processor to execute a communication method based on a network slice applied to a user terminal in the above-mentioned embodiment, for example, method steps S210 to S240 of FIG. 2, method steps S310 to S340 of FIG. 3, method steps S410 to S440 of FIG. 4, method steps S510 to S520 of FIG. 5, and method steps S610 to S620 of FIG. 6, or a communication method based on a network slice applied to a router in the above-mentioned embodiment, for example, method steps S710 to S730 of FIG. 7, method steps S810 to S820 of FIG. 8, and method steps S910 to S920 of FIG. 9. In a communication method based on a network slice applied to a user terminal, the user terminal obtains priority information of a target application, obtains data to be transmitted for the target application, encapsulates the data to be transmitted to obtain a data packet, maps the priority information to a priority field of the data packet, obtains a target message based on the mapped data packet, and sends the target message to a router, so that the router routes the target message to the target network slice, and the target network slice is determined by the router according to the priority information and a predetermined matching rule.In a communication method based on a network slice applied to a router, the router receives a target message from a user terminal, the target message is obtained from a data packet after mapping, the data packet is obtained by the user terminal encapsulating the data to be transmitted of the target application, the mapped data packet is obtained by the user terminal mapping the priority information of the target application to the priority field of the data packet to be transmitted, the priority information of the target application and the data to be transmitted are obtained from the user terminal, the target message is analyzed to obtain priority information, a target network slice is determined according to the priority information and a preset matching rule, and the target message is routed to the target network slice. Based on this, the user terminal first obtains priority information set for the target application, obtains the data to be transmitted of the target application, and then maps the priority information to the priority field of the data packet obtained by encapsulating the data to be transmitted, and further obtains a target message by the data packet after mapping, and sends the target message to the router. After that, the router can determine the priority information by the target message, combine the matching rule to determine the target network slice, and then route the target message to the target network slice. This makes it possible to split messages by priority at the application level of the user terminal, with fine granularity and high flexibility in splitting. The router can determine the target network slice to which the target message is to be sent based on the priority information of the application, and route the target messages of applications with different usage needs to the network slice with matching network characteristics, which is in line with the trend of diversification of core networks, can meet the usage needs of users, optimize network resources, and improve user experience.
[0090] All or part of the steps in the methods and systems disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processor, digital signal processor, microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (e.g., computer readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or any other medium that can be used to store the desired information and that can be accessed by a computer. Additionally, communication media typically includes computer readable instructions, data structures, program modules or other data in a modulated data signal, such as a carrier wave or other transmission mechanism, and may include any information delivery media as known to those skilled in the art.
[0091] Although several implementations of the present application have been specifically described above, the present application is not limited to the above embodiments, and a person skilled in the art may make various equivalent modifications or substitutions without departing from the scope of the present application, and all of these equivalent modifications or substitutions are intended to be included within the scope defined by the claims of the present application.
Claims
1. A communication method based on a network slice applied to a user terminal communicatively connected to a router, comprising: obtaining priority information of a target application; acquiring data to be transmitted by the target application, and encapsulating the data to be transmitted to obtain a data packet; mapping the priority information to a priority field of the data packet, and obtaining a target message based on the mapped data packet; sending the target message to the router so that the router routes the target message to a target network slice, the target network slice being determined by the router according to the priority information and a preset matching rule; method.
2. After the step of obtaining priority information of the target application, responsive to the target application, determining a target process identifier representing the target application; determining a target process ID in response to the target process identifier; determining a target socket for sending the target message in response to the target process ID; determining an association relationship between the priority information, the target process identifier, the target process ID, and the target socket to obtain association data; The method of claim 1.
3. prior to the step of acquiring data to be transmitted by the target application and encapsulating the data to be transmitted to obtain a data packet, acquiring transmission target data of a first application; determining a first process identifier in response to the first application; comparing the first process identifier with a target process identifier corresponding to the association data; and when it is determined that the first process identifier is identical to the target process identifier, the first application is set as a target application, and data to be transmitted of the first application is set as data to be transmitted of the target application. The method of claim 2.
4. determining the target process ID in response to the target process identifier, restarting the target application when it is determined that the target application is in an active state; determining the target process ID based on the target application after reboot as a function of the target process identifier; The method of claim 2.
5. periodically performing a state detection process for the target application corresponding to the association data in accordance with a preset detection cycle; and deleting the association data when it is determined that the target application corresponding to the association data is in an off state. The method of claim 2.
6. The priority information includes at least one of level information, application type information, or network characteristic information; the level information includes at least one of high priority information, medium priority information, or low priority information; the application type information includes at least one of audio type information, video type information, game type information, or web page type information; The network characteristic information includes at least one of minimum delay characteristic information, maximum throughput characteristic information, reliability transmission characteristic information, or minimum cost transmission characteristic information; The method of claim 1.
7. A communication method based on a network slice applied to a router communicatively connected to a user terminal, comprising: receiving a target message from the user terminal, the target message being obtained from a mapped data packet, the data packet being obtained by the user terminal encapsulating data to be transmitted of a target application, the mapped data packet being obtained by the user terminal mapping priority information of the target application to a priority field of the data packet, and the priority information and the data to be transmitted of the target application being obtained from the user terminal; parsing the target message to obtain the priority information; determining a target network slice according to the priority information and a preset matching rule, and routing the target message to the target network slice; method.
8. The step of analyzing the target message to obtain the priority information comprises: obtaining the priority information by parsing a service type field of the target message or by parsing a traffic class field of the target message; The method according to claim 7.
9. prior to said step of parsing said target message to obtain said priority information, determining message attributes in response to the target message; If it is determined that the message attribute matches a preset adjustment rule, updating the target message according to the adjustment rule to update the priority information. The method according to claim 7.
10. The step of determining a target network slice according to the priority information and a preset matching rule, and routing the target message to the target network slice includes: determining a target label corresponding to the priority information according to a preset matching rule, where the target label matches a target network slice; Routing the target message to the target network slice based on the target label. The method according to claim 7.
11. A communication method based on a network slice according to any one of claims 1 to 6, comprising: a memory; a processor; and a computer program stored in the memory and operable on the processor, the computer program being executed by the processor to realize the communication method based on a network slice according to any one of claims 1 to 6. electronic equipment.
12. A computer-readable storage medium storing a computer-executable program for causing a computer to execute a communication method based on a network slice according to any one of claims 1 to 6 or a communication method based on a network slice according to any one of claims 7 to 10.
Citation Information
Patent Citations
Packet-transmitting system
JP2006094060A
Data transfer device, base station and data transfer method
JP2008205721A
Communication control method
JP2018186450A
Network monitoring device, transmission device, and network monitoring method
JP2020205531A