Network slice-based communication method, electronic device, and storage medium

By encapsulating data packets with application-specific priority information and using pre-configured rules, the method ensures messages are routed to appropriate network slices, addressing the issue of mismatched network characteristics and enhancing user experience.

JP7835885B2Active Publication Date: 2026-03-25ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-02-17
Publication Date
2026-03-25

AI Technical Summary

Technical Problem

Access network devices cannot determine the appropriate network slice for message transmission based on the application's usage needs, leading to mismatched network characteristics and degraded user experience.

Method used

A communication method that involves obtaining priority information for a target application, encapsulating data to form a data packet with priority information, and routing the message to a target network slice determined by a router using pre-configured matching rules.

Benefits of technology

Enables fine-grained and flexible message segmentation at the application level, ensuring that messages are routed to network slices that match user needs, optimizing network resources and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007835885000001
    Figure 0007835885000001
  • Figure 0007835885000002
    Figure 0007835885000002
  • Figure 0007835885000003
    Figure 0007835885000003
Patent Text Reader

Abstract

The present application provides a communication method, an electronic device, and a storage medium based on a network slice, which includes the steps of: acquiring priority information of a target application (S210), acquiring data to be transmitted of the target application and encapsulating the data to be transmitted to obtain a data packet (S220), mapping the priority information to a priority field of the data packet and obtaining a target message based on the mapped data packet (S230), and sending the target message to a router so that the router routes the target message to a target network slice, where the target network slice is determined by the router according to the priority information and a preset matching rule (S240).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0005] , ,

[0001] This application is filed based on a Chinese patent application with an application number of 202210877908.5 and a filing date of July 25, 2022, and claims the priority of the Chinese patent application. All the contents of the Chinese patent application are incorporated herein by reference.

[0002] This application relates to the technical field of communications, but is not limited thereto, and particularly relates to a communication method, an electronic device, and a storage medium based on network slicing.

Background Art

[0003] Network slicing is a logical network with specific network characteristics that is sliced from an operator's communication network. One physical network may be abstractly sliced into multiple network slices. Each network slice forms an end-to-end logical network and is logically separated from each other, and different network slices can provide different network characteristics.

Summary of the Invention

Problems to be Solved by the Invention

[0004] Currently, access network devices can determine the network slice of the message destination according to the priority information of the Quality of Service (QoS) flow of the service. However, in user terminals, the usage needs of users are different for each application, and access network devices cannot determine the network slice of the message destination according to the usage needs of the application. Therefore, when an application message is sent to a network slice with unmatched network characteristics, the user's usage needs cannot be satisfied, and as a result, the user experience deteriorates.

Means for Solving the Problems

[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, electronic device, and storage medium based on network slicing.

[0007] In a first aspect, an embodiment of the present invention provides a communication method based on a network slice applied to a user terminal communicably connected to a router, comprising the steps of: obtaining priority information for a target application; obtaining data to be transmitted by the target application, encapsulating the data to be transmitted to obtain a data packet; mapping the priority information to a priority field in the data packet, and obtaining a target message based on the mapped data packet; and transmitting 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 pre-configured matching rule.

[0008] In a second aspect, the present invention further provides a communication method based on a network slice applied to a router communicably connected to a user terminal, the method 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 for a target application, the mapped data packet being obtained by the user terminal mapping priority information for the target application to a priority field in the data packet, the priority information for the target application and the data to be transmitted for 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 pre-configured matching rule, and routing the target message to the target network slice.

[0009] In a third aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor, upon execution of the computer program, realizes a network slice-based communication method as described in the first aspect.

[0010] In a fourth aspect, the present invention further provides a computer-readable storage medium storing a computer-executable program for causing a computer to execute the network slice-based communication method described in the first aspect or the network slice-based communication method described in the second aspect.

[0011] Other features and advantages of the present application are described in the following specification, are partially apparent from the specification, or are understood by practicing the present application. The purpose and other advantages of the present application may be achieved and obtained by the configurations specifically indicated in the specification, claims, and drawings. The drawings are provided to provide a further understanding of the present invention, constitute part of the specification, and are used in conjunction with the embodiments of the present invention to interpret the present invention, and are not intended to limit the present invention. [Brief explanation of the drawing]

[0012] [Figure 1] This is a schematic diagram of the implementation environment according to the embodiment of the present invention. [Figure 2] This is a flowchart of a network slice-based communication method applied to a user terminal according to one embodiment of the present invention. [Figure 3] This is a flowchart of a method for obtaining association data according to another embodiment of the present invention. [Figure 4] This is a flowchart illustrating a method for obtaining data to be transmitted according to another embodiment of the present invention. [Figure 5] This is a flowchart of a method for determining a target process ID according to another embodiment of the present invention. [Figure 6] This is a flowchart of a method for deleting associated data according to another embodiment of the present invention. [Figure 7] This is a flowchart of a network slice-based communication method applied to a router according to another embodiment of the present invention. [Figure 8] This is a flowchart of a method for updating priority information according to another embodiment of the present invention. [Figure 9] This is a flowchart illustrating a method for routing target messages according to another embodiment of the present invention. [Figure 10] This is a flowchart of a communication mechanism according to one embodiment of the present invention. [Figure 11] This is a diagram showing the configuration of an electronic device according to another embodiment of the present invention. [Modes for carrying out the invention]

[0013] To further clarify the purpose, technical proposal and advantages of this application, the application will be described in more detail below with reference to the drawings and examples. The specific examples described herein are for interpretation purposes only and are not intended to limit this application.

[0014] The division of functional modules is shown in the schematic diagram of the apparatus, and the logical sequence is shown in the flowchart, however, in some cases, it may differ from the division of modules in the apparatus, or the steps shown or described may be performed in a different order from that shown in the flowchart. Terms such as “first,” “second,” etc., in this specification, the claims, or the drawings are terms used to distinguish similar subjects and are not necessarily used to describe a specific order or sequence.

[0015] Currently, access network devices can determine the network slice to which a message should be sent based on quality of service (QoS) flow priority information. However, at user terminals, user needs differ depending on the application, and access network devices cannot determine the network slice to which a message should be sent based on the application's needs. Therefore, if an application's message is sent to a network slice with mismatched network characteristics, the user's needs cannot be met, resulting in a degraded user experience.

[0016] To address the problem that access network devices cannot determine the network slice to which a message should be sent according to the application's usage needs, this application provides a communication method, electronic device, and storage medium based on network slices. This method is applied to a user terminal communicably connected to a router and includes the steps of: obtaining priority information for a target application; obtaining data to be transmitted by the target application, encapsulating the data to be transmitted to obtain a data packet; mapping the priority information to the priority field of the data packet, 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 pre-configured matching rules. According to an embodiment of this application, the user terminal first obtains priority information set for the target application, obtains data to be transmitted by the target application, maps the priority information to the priority field of the data packet obtained by encapsulating the data to be transmitted, obtains a target message from the mapped data packet, and sends this target message to the router. Subsequently, the router can determine the priority information from the target message, combine it with matching rules to determine the target network slice, and then route the target message to the target network slice.Thereby, it becomes possible to divide messages at the application level of the user terminal by priority, the granularity of the division is small, the flexibility is high, the router determines the target network slice of the transmission destination of the target message based on the priority information of the application, and the target messages of applications with different usage needs can be routed to network slices with matching network characteristics, which conforms to the diversification trend of the core network, can meet the usage needs of users, optimize network resources, and improve the user experience.

[0017] Hereinafter, embodiments of the present application will be further described with reference to the drawings.

[0018] The communication method based on network slices according to the embodiments of the present application may be applied to a user terminal, may be applied to a router, or may be software that operates on 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. This implementation environment includes a user terminal 110 and a router 120, and the user terminal 110 and the router 120 are communicatively connected.

[0020] The router 120 may be connected to the core network 130 by a wired or wireless method. The core network 130 supports multi-slice links, and the router 120 can route messages with different priorities to different network slices by priority routing, thereby providing different network services for messages with different priorities.

[0021] The user terminal 110 may be, but is not limited to, a personal computer (PC), mobile phone, smartphone, personal digital assistant (PDA), wearable device, handheld computer (PPC / Pocket PC), tablet terminal, photographic equipment with a shooting function, data collection equipment, etc. The user terminal 110 and the router 120 may be connected directly or indirectly by wired or wireless communication, and are not limited to the embodiments of this application.

[0022] Based on the implementation environment shown in Figure 1, Figure 2 is a flowchart of a communication method based on network slicing according to one embodiment of the present invention. This communication method based on network slicing can be applied to a user terminal that is communicably connected to a router and includes, but is not limited to, the following steps S210 to S240.

[0023] Step S210: Obtain priority information for the target application.

[0024] Step S220: Obtain the data to be sent from the target application, encapsulate the data to be sent, and obtain a data packet.

[0025] Step S230: Map priority information to the priority field of the data packet and obtain the target message based on the data packet after mapping.

[0026] Step S240: The target message is sent to the router so that the router routes the target message to the target network slice, which is determined by the router according to priority information and pre-configured matching rules.

[0027] With the continuous development of 5G networks, wireless network slicing technology is also evolving. Network slicing is an on-demand networking method that allows operators to isolate multiple virtual end-to-end networks on a unified infrastructure. Each network slice is logically separated from the wireless access network to the bearer network and core network, and can accommodate various types of applications. Network slicing is a logic-based concept, a reorganization of resources that selects the virtual and physical resources required for a specific type of communication service based on a service level agreement (SLA). In 5G networks, wireless resources may be sliced ​​in different ways; that is, different physical resource blocks (PRBs) may be allocated to different network slices. Furthermore, in conventional 4G networks, it is becoming increasingly common for different services to use different slice links. In addition to network-side trends, with the continuous proliferation of wireless terminals, the network terminals that users commonly use are gradually shifting from computers to mobile phones, tablets, and so on. The number of applications installed on user terminals is increasing, and each application has different user needs. Users set priority information for target applications according to their needs. When a 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 sent by the target application. Furthermore, the target message is obtained from the mapped data packet. When a router receives a target message, it parses the message to obtain priority information, combines matching rules to determine the target network slice, and finally routes the target message to the target network slice. In addition, it differentiates services for each target application, thereby improving the user experience as much as possible.Based on this, the user terminal first obtains priority information set for the target application, then obtains the data to be sent by the target application, maps the priority information to the priority field of the data packet obtained by encapsulating the data to be sent, and then obtains the target message from the mapped data packet and sends this target message to the router. Subsequently, the router determines the priority information from the target message, determines the target network slice by combining matching rules, and then routes the target message to the target network slice. This makes it possible to segment messages by priority at the application level of the user terminal, resulting in a fine-grained and highly flexible segmentation. The router determines the target network slice to which the target message should be sent based on the application's priority information, and can route target messages from applications with different usage needs to network slices whose network characteristics match. This aligns with the trend towards diversification of core networks, can meet user usage needs, optimize network resources, and improve the user experience.

[0028] After obtaining priority information through analysis, the router determines a target label corresponding to the priority information according to matching rules. 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, user terminals are equipped with a plug-in interface for setting priority information. This plug-in interface functions as an interface for users to set priorities for applications and can search for applications installed on the user terminal. In the plug-in interface, users can set different priorities for different applications according to their usage needs, map the priority information to the priority field of a data packet obtained by encapsulating the data to be sent by the target application, and obtain the target message from the mapped data packet. The router can then optimize network resources and improve the user experience by sending the target message to a target network slice whose network characteristics match the usage needs, and users can customize the data transmission rules of their user terminal according to their usage needs.

[0030] Furthermore, the network slice-based communication method of this embodiment is applicable not only to home local area network scenarios where a wireless LAN is covered, but also to public network scenarios where a wireless network is covered.

[0031] Referring to Figure 3, one embodiment further includes, but is not limited to, the following steps S310 to S340 after step S210 in the embodiment shown in Figure 2.

[0032] Step S310: Determine the target process identifier that represents the target application, depending on the target application.

[0033] Step S320: Determine the target process ID based on the target process identifier.

[0034] Step S330: Determine the target socket to send the target message to, based on the target process ID.

[0035] Step S340: Determine the relationship between priority information, target process identifier, target process ID, and target socket, and obtain the relationship data.

[0036] After obtaining the priority information for the target application, it is first necessary to determine the target process identifier corresponding to the target application. The target process identifier includes, but is not limited to, the process name. After the target application has run, the target process ID, or PID, must be determined for the application process of the target application using the target process identifier. When the target application initiates network communication and establishes a communication socket, the target socket is determined by the target process ID. Finally, the relationship between the priority information, target process identifier, target process ID, and target socket is determined, and the association data is obtained. Setting a priority for each application yields multiple association data, which can be organized in a linked list or hash table.

[0037] Since the process name is fixed for the application process of the target application each time the target application is run, the process name can be used as the target process identifier.

[0038] For user-mode processes, priority information, target process name, PID, and socket may be associated using a fixed data structure. Similarly, for kernel-mode processes, priority information, PID, and socket may also be associated using the same data structure.

[0039] Furthermore, referring to Figure 4, one embodiment further includes, but is not limited to, the following steps S410 to S440 before step S220 in the embodiment shown in Figure 2.

[0040] Step S410: Obtain the data to be sent by the first application.

[0041] Step S420: Determine the 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 data to be sent from the first application is set as the data to be sent from the target application.

[0044] The first application is any application installed on the user terminal. When the first application establishes network communication and generates data to be transmitted, the user terminal determines the first process identifier corresponding to the first application. When the user sets a priority for a target application, association data is generated, and the user terminal determines whether the first process identifier is the same as a target process identifier among all the association data. If it is determined that the first process identifier is the same as the target process identifier, the first application is designated as the target application, and the data to be transmitted by the first application is designated as the data to be transmitted by the target application. If it is determined that the first process identifier is different from all target process identifiers, it means that no priority has been set for the first application, and the router routes the data to be transmitted by the first application to the default link.

[0045] Furthermore, referring to Figure 5, in one embodiment, step S320 in the embodiment shown in Figure 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 running, restart the target application.

[0047] Step S520: Based on the target application after restart, determine the target process ID according to the target process identifier.

[0048] When a user sets priority information, if the target application is running, it needs to be restarted. Since the target process ID may change after the restart, it is necessary to re-determine the target process ID and then map it to the priority field of the target application's data packets. This can ensure the stability and reliability of the priority setting process. Also, when a user sets priority information, if the target application is in an off state and the target application is not started, the target process ID cannot be determined, so there is no need to perform an additional restart operation on the target application.

[0049] Furthermore, in one embodiment, step S240 in the embodiment shown in Figure 2 includes, but is not limited to, the following steps.

[0050] Based on the target socket, the target message is sent to the router.

[0051] When a user terminal sends a target message to a router, the target socket for communication is recorded in the socket buffer (skb). Priority information is then 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] Referring to Figure 6, in one embodiment, the communication method based on network slices further includes, but is not limited to, the following steps S610 and S620.

[0053] Step S610: Periodically perform state detection processing for the target application corresponding to the associated data, according to a preset detection cycle.

[0054] Step S620: If it is determined that the target application corresponding to the associated data is turned off, delete the associated data.

[0055] After setting application priorities, it is necessary to periodically delete redundant association data to improve processing efficiency. A detection cycle is set to periodically traverse all association data, perform status detection processing for the target application corresponding to the association data, and determine the current operating state of the target application. When the target application is in an off state, i.e., the network communication established by the target application is terminated, the association data corresponding to the target application is deleted as redundant data, thereby improving the processing efficiency of the target application in an operational state.

[0056] Specifically, the detection cycle may be determined by setting a timer and configuring the timer's timing threshold. When the timer's timing value equals the timing threshold, traversal of all associated data begins, state detection processing is performed on the target application corresponding to the associated data, associated data belonging to redundant data is deleted, and after the traversal is complete, the timer's timing is restarted. This corresponds to traversing the associated data only once within one detection cycle. The timer's timing threshold is selected preferentially by the user based on the actual processing effect.

[0057] Furthermore, in one embodiment, the following steps are further included before step S210 in the embodiment shown in Figure 2, but the embodiment is not limited thereto.

[0058] This displays the applications installed on the user's terminal and retrieves application information to determine the target application.

[0059] Since users can only prioritize applications installed on their device, it is necessary to obtain application information. This allows users to know all applications installed on their device and, furthermore, to identify a target application from among all installed applications.

[0060] In one embodiment, priority information includes at least one of level information, application type information, or network characteristic information. Level information includes at least one of high-priority information, medium-priority information, or low-priority information. Application type information includes at least one of the following: audio type information, video type information, game type information, or web page type information. Network characteristic information includes at least one of the following: minimum delay characteristic information, maximum throughput characteristic information, reliable transmission characteristic information, or minimum cost transmission characteristic information.

[0061] Users may configure rules for priority fields according to their usage needs, such as mapping priority information to the ToS field of a target message when generating an IPv4 target message, among the message-specific priority fields.

[0062] The ToS field includes bits 0 through 8, and the priority range corresponding to bits 0 through 2 of the ToS field is 0 through 7. 1. The 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, set the priority to 7. 2. The application type information may be determined using bits 0 and 2 of the ToS field. If the level information is voice 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 of another type, set the priority to 0. 3. Network characteristic information may be determined using the 3rd to 7th bits of the ToS field. If the network characteristic information is the minimum delay characteristic information, set the 3rd bit of the ToS field to 1. If the network characteristics information is the maximum throughput characteristics information, set the 4th bit of the ToS field to 1. If the network characteristics information is reliable transmission characteristics information, set the 5th bit of the ToS field to 1. If the network characteristics information is the minimum cost transmission characteristics information, set the 6th bit of the ToS field to 1.

[0063] Priority information is categorized and includes, but is not limited to, level information, application type information, and network characteristics 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 latency characteristics and to be limited to web page types.

[0064] Furthermore, the priority information mapping mechanism is not limited to the rules provided by the standard protocol framework; users may also set their own rules for the priority field.

[0065] Based on the implementation environment in Figure 1, Figure 7 shows a flowchart of a network slice-based communication method according to another embodiment of the present invention. This network slice-based communication method is applied to a router that is communicably connected to a user terminal and includes, but is not limited to, the following steps S710 to S730.

[0066] Step S710: The target message is received from the user terminal. The target message is obtained from a mapped data packet, which is obtained by the user terminal encapsulating the data to be sent by 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. The priority information and data to be sent by the target application are obtained from the user terminal.

[0067] Step S720: Analyze the target message to obtain priority information.

[0068] Step S730: Determine the target network slice according to priority information and pre-configured matching rules, and route the target message to the target network slice.

[0069] Specific examples of this network slice-based communication method applied to routers are essentially the same as the specific examples of the network slice-based communication method applied to user terminals, and therefore will not be described in detail here. Based on this, the user terminal first obtains priority information set for the target application, obtains the data to be sent by the target application, maps the priority information to the priority field of the data packet obtained by encapsulating the data to be sent, obtains the target message from the mapped data packet, and sends this target message to the router. Subsequently, the router determines the priority information from the target message, determines the target network slice by combining matching rules, 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, resulting in a finer granularity of division and greater flexibility. The router can determine the target network slice to which the target message should be sent based on the application's priority information, and route target messages from applications with different usage needs to network slices whose network characteristics match. This aligns with the trend towards diversification of core networks, meets user usage needs, optimizes network resources, and improves the user experience.

[0070] Furthermore, in one embodiment, step S720 in the embodiment shown in Figure 7 includes, but is not limited to, the following steps.

[0071] Priority information is obtained by parsing the service type field of the target message or the traffic class field of the target message.

[0072] For IPv4 target messages, the parameters in the Type of Service (ToS) field of the target message represent priority information, while for IPv6 target messages, the parameters in the Traffic Class (TC) field of the target message represent priority information.

[0073] Since both the ToS field and the TC field are protocol-specific fields, mapping priority information to the target message-specific priority field to obtain the target message does not add any network overhead.

[0074] Furthermore, based on conventional network protocols, users can prioritize applications according to their usage needs, and it can be used in home environments as well as environments covered by wireless networks, improving the user experience while also having significant importance in configuring network resources.

[0075] Referring to Figure 8, one embodiment further includes, but is not limited to, the following steps S810 and S820 before step S720 in the embodiment shown in Figure 7.

[0076] Step S810: Determine message attributes according to the target message.

[0077] Step S820: If it is determined that the message attributes match a pre-configured adjustment rule, the target message is updated according to the adjustment rule, and the priority information is updated.

[0078] When a router receives a target message, it can determine message attributes from the target message, including but not limited to the source address, target address, source port, and target port. The adjustment rules limit the message attributes to be adjusted and the corresponding priority information. 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 rules, further updates the priority information, and thus adjusts the priority of the target message. After this adjustment, the router can route the adjusted target message to the corresponding network slice, thereby ensuring the reliability of target message transmission.

[0079] Furthermore, referring to Figure 9, in one embodiment, step S730 in the embodiment shown in Figure 7 includes steps S910 and S920, but is not limited to these.

[0080] Step S910: Determine the target label corresponding to the priority information according to the pre-configured matching rules, and match the target label to the target network slice.

[0081] Step S920: Route the target message to the target network slice based on the target label.

[0082] After obtaining priority information through analysis, the router labels target messages according to ToS matching rules, determines target labels corresponding to the priority information, and then uses a policy routing method to route target messages with different labels to different network slices.

[0083] Referring to Figure 10, Figure 10 is a flowchart of a communication mechanism according to one embodiment of the present invention. When a router receives a data message, it determines whether the message attributes of the data message satisfy the coordination rule. If the coordination rule is satisfied, it updates the priority information of the data message according to the coordination rule and parses the data message to obtain the priority information. If the coordination rule is not satisfied, it directly parses the data message to obtain the priority information. Next, it determines whether the priority information of the data message satisfies the matching rule. If the matching rule is satisfied, it routes the data message to a specific slice link. If the matching rule is not satisfied, it routes the data message to the default link.

[0084] Furthermore, referring to Figure 11, one embodiment of the present invention further provides an electronic device.

[0085] In one embodiment, the electronic device includes one or more processors and memory, and Figure 11 illustrates one processor and memory. The processor and memory may be connected by a bus or by other means, and Figure 11 illustrates a connection via a bus.

[0086] The memory may be used as a non-temporary computer-readable storage medium to store non-temporary software programs and non-temporary computer-executable programs, such as the network slice-based communication method in the embodiments of the present application described above. The processor implements the network slice-based communication method in the embodiments of the present application described above by operating the non-temporary software programs and programs stored in the memory.

[0087] The memory may include an operating system, a program storage area capable of storing applications necessary for at least one function, and a data storage area capable of storing data necessary for performing the network slice-based communication method in the embodiments of the present application described above. Furthermore, the memory may include high-speed random-access memory and non-temporary memory such as at least one magnetic disk memory device, flash memory device, or other non-temporary solid-state storage device. In some embodiments, the memory may include memory located remotely from the processor, and these remote memories may be connected to the electronic device via a network. Examples of the network described above include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0088] The non-temporary software programs and programs necessary to implement the network slice-based communication method in the above-described embodiment of the present application are stored in memory and, when executed by one or more processors, execute the network slice-based communication method applied to the user terminal in the above-described embodiment of the present application, for example, steps S210 to S240 of the method in Figure 2, steps S310 to S340 of the method in Figure 3, steps S410 to S440 of the method in Figure 4, steps S510 to S520 of the method in Figure 5, and steps S610 to S620 of the method in Figure 6. The user terminal obtains priority information for the 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 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, the target network slice is determined by the router according to the priority information and pre-configured matching rules. Based on this, the user terminal first obtains priority information set for the target application, then obtains the data to be sent by the target application, maps the priority information to the priority field of the data packet obtained by encapsulating the data to be sent, and then obtains the target message from the mapped data packet and sends this target message to the router. Subsequently, the router determines the priority information from the target message, determines the target network slice by combining it with matching rules, and then can route the target message to the target network slice.This makes it possible to segment messages by priority at the application level of the user terminal. The segmentation granularity is small and highly flexible, allowing the router to determine the target network slice to which the target message should be sent based on the application priority information. Furthermore, it can route target messages from applications with different usage needs to network slices whose network characteristics match. This aligns with the trend towards diversification of core networks, meets user usage needs, optimizes network resources, and improves the user experience.

[0089] Furthermore, one embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by one processor or controller, for example, one processor in the above embodiment of electronic equipment, can cause the above-described processor to execute a network slice-based communication method applicable to a user terminal in the above embodiment, for example, method steps S210 to S240 in Figure 2, method steps S310 to S340 in Figure 3, method steps S410 to S440 in Figure 4, method steps S510 to S520 in Figure 5, method steps S610 to S620 in Figure 6, or a network slice-based communication method applicable to a router in the above embodiment, for example, method steps S710 to S730 in Figure 7, method steps S810 to S820 in Figure 8, or method steps S910 to S920 in Figure 9. In a network slice-based communication method applied to a user terminal, the user terminal obtains priority information for the target application, obtains the data to be sent by the target application, encapsulates the data to be sent 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. The target network slice is determined by the router according to the priority information and pre-configured matching rules.In a network slice-based communication method applied to a router, the router receives a target message from a user terminal, which is obtained from a mapped data packet. The data packet is obtained by the user terminal encapsulating the target application's data to be sent. The mapped data packet is obtained by the user terminal mapping the target application's priority information to the priority field of the data packet. The target application's priority information and the data to be sent are obtained from the user terminal. The router parses the target message to obtain the priority information, determines the target network slice according to the priority information and pre-configured matching rules, and routes the target message to the target network slice. Based on this, the user terminal first obtains the priority information configured for the target application, then obtains the target application's data to be sent, maps the priority information to the priority field of the data packet obtained by encapsulating the data to be sent, and then obtains the target message from the mapped data packet and sends this target message to the router. Subsequently, the router can determine the priority information from the target message, combine it with the matching rules to determine the target network slice, and then route the target message to the target network slice. This makes it possible to segment messages by priority at the application level of the user terminal. The segmentation granularity is small and highly flexible, allowing the router to determine the target network slice to which the target message should be sent based on the application priority information. Furthermore, it can route target messages from applications with different usage needs to network slices whose network characteristics match. This aligns with the trend towards diversification of core networks, meets user usage needs, optimizes network resources, and improves the user experience.

[0090] All or part of the steps in the methods disclosed above, the system may be implemented as software, firmware, hardware, or a suitable combination thereof. Some or all of the physical components may be implemented as software executed by a processor such as a central processor, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit such as an application-specific integrated circuit. Such software may be distributed on computer-readable media, which may include computer storage media (or non-temporary media) and communication media (or temporary media). As is well 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 technique for storing information (e.g., computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage devices, magnetic cartridges, magnetic tapes, magnetic disk storage devices or other magnetic storage devices, or any other media that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media may include any information distribution medium, typically containing computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms.

[0091] Although several embodiments of the present application have been described in detail above, the present application is not limited to the embodiments described above, and persons skilled in the art may make various equivalent modifications or substitutions without being contrary to the scope of the present application, and such equivalent modifications or substitutions shall all be within the scope defined by the claims of the present application.

Claims

1. A network slice-based communication method applied to a user terminal that is communicably connected to a router, Steps to obtain priority information for the target application, The steps include obtaining the data to be transmitted by the target application, encapsulating the data to be transmitted to obtain a data packet, The steps include mapping the priority information to the priority field of the data packet and obtaining a target message based on the data packet after mapping, The step of sending the target message to the router so that the router routes the target message to the target network slice, the step of determining the target network slice by the router according to the priority information and a pre-configured matching rule, After the step of obtaining priority information for the target application, The steps include determining a target process identifier representing the target application according to the target application, The steps include determining the target process ID according to the target process identifier, The steps include determining a target socket for sending the target message according to the target process ID, The further step includes determining the relationship between the priority information, the target process identifier, the target process ID, and the target socket, and obtaining relationship data. method.

2. Before the step of obtaining the data to be transmitted by the target application and encapsulating the data to be transmitted to obtain a data packet, The first step is to obtain the data to be sent by the first application, The steps include determining a first process identifier according to the first application, The steps include comparing the first process identifier with the target process identifier corresponding to the association data, 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 data to be transmitted by the first application is set as the data to be transmitted by the target application, further comprising the steps: The method according to claim 1.

3. The step of determining the target process ID according to the target process identifier is: If it is determined that the target application is in an operational state, the step is to restart the target application. The step of determining the target process ID based on the target application after restart, according to the target process identifier, includes: The method according to claim 1.

4. A step of periodically performing state detection processing for the target application corresponding to the associated data according to a predetermined detection cycle, If it is determined that the target application corresponding to the association data is in an off state, the step of deleting the association data is further included. The method according to claim 1.

5. The aforementioned priority information includes at least one of level information, application type information, or network characteristics information. The aforementioned level information includes at least one of high-priority information, medium-priority information, or low-priority information. The aforementioned application type information includes at least one of the following: audio type information, video type information, game type information, or web page type information. The network characteristics information includes at least one of the following: minimum delay characteristics information, maximum throughput characteristics information, reliable transmission characteristics information, or minimum cost transmission characteristics information. The method according to claim 1.

6. A network slice-based communication method applied to a router that is communicatively connected to a user terminal, The steps include receiving a target message from the user terminal, wherein the target message is obtained from a mapped data packet, the data packet is obtained by the user terminal encapsulating the data to be transmitted for 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, and the priority information of the target application and the data to be transmitted are obtained from the user terminal. The steps include: analyzing the target message to obtain the priority information, The steps include determining a target network slice according to the priority information and pre-configured matching rules, and routing the target message to the target network slice, Before the step of analyzing the target message and obtaining the priority information, The steps include determining message attributes according to the target message, If it is determined that the message attributes match a pre-configured adjustment rule, the step of updating the target message and updating the priority information according to the adjustment rule further includes: method.

7. The step of analyzing the target message to obtain the priority information is: The step of obtaining the priority information by parsing the service type field of the target message or by parsing the traffic class field of the target message is included. The method according to claim 6.

8. The step of determining a target network slice and routing the target message to the target network slice according to the priority information and pre-configured matching rules is as follows: A step of determining a target label corresponding to the priority information according to a pre-configured matching rule, wherein the target label is matched to a target network slice, The step of routing the target message to the target network slice based on the target label is included, The method according to claim 6.

9. The system includes memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor, upon executing the computer program, realizes a communication method based on a network slice as described in any one of claims 1 to 5. electronic equipment.

10. A computer-readable storage medium storing a computer-executable program for causing a computer to execute a communication method based on a network slice as described in any one of claims 1 to 5.

11. A computer-readable storage medium storing a computer-executable program for causing a computer to execute a communication method based on a network slice as described in any one of claims 6 to 8.

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