Communication method and device, computer equipment, storage medium and computer program product

By forwarding interest packets to neighboring ICN nodes in the ICN network, the problem of responding to packet discarding after user switching is solved, the resource utilization rate and transmission efficiency are improved, and the service quality is ensured.

CN119211109APending Publication Date: 2024-12-27CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411165019.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the ICN network, after the user switches the ICN node, the original ICN node cannot find the interface to the reply packet, resulting in the reply packet being discarded, resulting in waste of resources and increased transmission delay, affecting service continuity.

Method used

By forwarding interest packets to neighboring ICN nodes in the newly accessed ICN nodes, finding and obtaining the response packets in the original ICN nodes, updating the interface information in the forwarding information table, avoiding the discarded response packets, and optimizing the transmission path.

Benefits of technology

Improve resource utilization, reduce transmission delay, and ensure business continuity and service quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211109A_ABST
    Figure CN119211109A_ABST
Patent Text Reader

Abstract

The invention relates to a communication method and device, computer equipment and a storage medium. The method comprises the following steps: receiving an interest packet sent by a target user; if the target user is a newly accessed user, a target interest packet is sent to each neighbor information center network (ICN) node based on the interest packet, the target interest packet is the interest packet carrying a new user identifier, and the new user identifier is used for indicating to search a response data packet of the interest packet from a cache region; and receiving a response data packet of the interest packet sent by the target neighbor ICN node. By adopting the method, the resource utilization rate and the service continuity can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a communication method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] In an ICN (Information-centric networking) network, different types of services (such as voice, video, data, etc.) have different requirements for network performance. For example, video transmission may require a higher transmission rate. Therefore, the network must be able to perform appropriate resource management according to the needs of different services. When the change of mobile user location affects network performance, it is necessary to switch ICN nodes to ensure the service quality of communication services and ensure business continuity.

[0003] After the user changes the ICN node, the interface corresponding to the unfinished request (pending information table) in the previously connected ICN node may be lost. This means that for the interest packet that has been sent, the original ICN node can no longer find an interface to send the response data packet of the interest packet, resulting in the response data packet being discarded, and the new ICN node cannot use the nearby resources outside the transmission path when searching for routes, resulting in resource waste. Summary of the invention

[0004] The embodiments of the present application provide a communication method, apparatus, computer device, storage medium and computer program product, which can improve resource utilization, reduce transmission delay and ensure service quality.

[0005] A communication method, the method comprising:

[0006] Receive the interest packet sent by the target user;

[0007] If the target user is a newly accessed user, a target interest packet is sent to each neighbor information center network ICN node based on the interest packet, wherein the target interest packet is the interest packet carrying a new user identifier, and the new user identifier is used to indicate a response data packet for searching the interest packet from a cache area;

[0008] Receive a response data packet of the interest packet sent by the target neighbor ICN node.

[0009] In one of the embodiments, sending a target interest packet to each neighboring ICN node based on the interest packet includes:

[0010] Searching for a target entry corresponding to the target user in a new user forwarding information table;

[0011] If the target table entry corresponding to the target user is not found, create the target table entry in the new user forwarding information table, wherein the target table entry includes the identifier of the target user and the sending interface information, and the sending interface information includes the interface information corresponding to the neighbor ICN node;

[0012] According to the interface information corresponding to each of the neighbor ICN nodes in the target table entry, a target interest packet is sent to each of the neighbor ICN nodes.

[0013] In one embodiment, the method further comprises:

[0014] The sending interface information in the target table entry is updated to the target interface information for receiving the response data packet.

[0015] In one embodiment, the method further comprises:

[0016] If the target table entry corresponding to the target user is found, the target interest packet is sent to the target neighbor ICN node according to the target interface information in the target table entry.

[0017] In one embodiment, the method further comprises:

[0018] If no response data packet of the interest packet is received within a preset waiting time after sending the target interest packet, the target table entry corresponding to the target user is deleted from the new user forwarding information table.

[0019] A communication method, the method comprising:

[0020] Receive the interest packet sent by the target neighbor information center network ICN node;

[0021] If the interest packet contains a new user identifier, searching for a response data packet corresponding to the interest packet from a cache area, the cache area being used to cache data packets for which no sending interface exists;

[0022] If a response data packet corresponding to the interest packet is found in the cache area, the response data packet is sent to the target neighbor ICN node.

[0023] In one embodiment, the method further comprises:

[0024] If the response data packet corresponding to the interest packet is not found in the cache area, searching for the response data packet corresponding to the interest packet in the storage area;

[0025] If a response data packet corresponding to the interest packet is found in the storage area, the response data packet is sent to the target neighbor ICN node.

[0026] In one embodiment, the method further comprises:

[0027] If the response data packet corresponding to the interest packet is not found in the storage area, the interest packet is discarded.

[0028] In one embodiment, the method further comprises:

[0029] Forwarding the interest packet sent by the target user to the target node;

[0030] Receive a response data packet of the interest packet sent by the target node;

[0031] If the sending interface of the response data packet cannot be found, the response data packet is written into the cache area.

[0032] In one embodiment, the method further comprises:

[0033] If the interest packet is received within the preset cache time after the response data packet is written into the cache area, the preset cache time of the response data packet is extended;

[0034] If the interest packet is not received within a preset cache time after the response data packet is written into the cache area, the response data packet is deleted from the cache area.

[0035] In one embodiment, the method further comprises:

[0036] If the interest packet is received within a preset cache time period after the response data packet is written into the cache area, the response data packet is stored in the storage area.

[0037] In one embodiment, the method further comprises:

[0038] If the preset cache duration of the response data packet reaches a duration threshold, or the number of extensions of the preset cache duration of the response data packet within a preset period reaches a number threshold, the response data packet is stored in the storage area.

[0039] A communication device, comprising:

[0040] A first receiving unit, configured to receive an interest packet sent by a target user;

[0041] A first sending unit is used to send a target interest packet to each neighbor information center network ICN node based on the interest packet if the target user is a newly accessed user, wherein the target interest packet is the interest packet carrying a new user identifier, and the new user identifier is used to indicate a response data packet for searching the interest packet from a cache area;

[0042] The second receiving unit is used to receive a response data packet of the interest packet sent by the target neighbor ICN node.

[0043] In one embodiment, the sending unit is further configured to:

[0044] Searching for a target entry corresponding to the target user in a new user forwarding information table;

[0045] If the target table entry corresponding to the target user is not found, create the target table entry in the new user forwarding information table, wherein the target table entry includes the identifier of the target user and the sending interface information, and the sending interface information includes the interface information corresponding to the neighbor ICN node;

[0046] According to the interface information corresponding to each of the neighbor ICN nodes in the target table entry, a target interest packet is sent to each of the neighbor ICN nodes.

[0047] In one embodiment, the device further comprises:

[0048] The updating unit is used to update the sending interface information in the target table entry to the target interface information for receiving the response data packet.

[0049] In one embodiment, the device further comprises:

[0050] The second sending unit is configured to send the target interest packet to the target neighbor ICN node according to the target interface information in the target table entry if a target table entry corresponding to the target user is found.

[0051] In one embodiment, the device further comprises:

[0052] The deleting unit is used to delete the target table entry corresponding to the target user from the new user forwarding information table if no response data packet of the interest packet is received within a preset waiting time after sending the target interest packet.

[0053] A communication device, the device comprising:

[0054] A first receiving unit, configured to receive an interest packet sent by a target neighbor information center network ICN node;

[0055] A first search unit, configured to search a response data packet corresponding to the interest packet from a cache area if the interest packet contains a new user identifier, wherein the cache area is used to cache data packets for which a sending interface does not exist;

[0056] The first sending unit is configured to send the response data packet to the target neighbor ICN node if a response data packet corresponding to the interest packet is found in the cache area.

[0057] In one embodiment, the device further comprises:

[0058] A second searching unit, configured to search for a response data packet corresponding to the interest packet from a storage area if a response data packet corresponding to the interest packet is not found in the cache area;

[0059] The second sending unit is configured to send the response data packet to the target neighbor ICN node if a response data packet corresponding to the interest packet is found in the storage area.

[0060] In one embodiment, the device further comprises:

[0061] A discarding unit is used to discard the interest packet if the response data packet corresponding to the interest packet is not found in the storage area.

[0062] In one embodiment, the device further comprises:

[0063] A third sending unit, used to forward the interest packet sent by the target user to the target node;

[0064] A second receiving unit, configured to receive a response data packet of the interest packet sent by the target node;

[0065] The cache unit is used to write the response data packet into the cache area if the sending interface of the response data packet cannot be found.

[0066] In one embodiment, the device further comprises:

[0067] A first processing unit, configured to extend the preset cache time length of the response data packet if the interest packet is received within the preset cache time length after the response data packet is written into the cache area;

[0068] The second processing unit is configured to delete the response data packet from the cache area if the interest packet is not received within a preset cache time after the response data packet is written into the cache area.

[0069] In one embodiment, the device further comprises:

[0070] The first storage unit is configured to store the response data packet in the storage area if the interest packet is received within a preset cache time period after the response data packet is written into the cache area.

[0071] In one embodiment, the device further comprises:

[0072] The second storage unit is used to store the response data packet in the storage area if the preset cache duration of the response data packet reaches a duration threshold, or the number of extensions of the preset cache duration of the response data packet within a preset time period reaches a number threshold.

[0073] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements any one of the above communication methods when executing the computer program.

[0074] A computer-readable storage medium stores a computer program, wherein the computer program implements any one of the above communication methods when executed by a processor.

[0075] A computer program product comprises a computer program, wherein when the computer program is executed by a processor, any one of the above communication methods is implemented.

[0076] The above-mentioned communication method, device, computer equipment, storage medium and computer program product, the ICN node can receive the interest packet sent by the target user, and when the target user is a newly accessed user, the target interest packet is sent to each neighbor information center network ICN node based on the interest packet, and the target interest packet is an interest packet carrying a new user identifier, and the new user identifier is used to indicate the response data packet for searching the interest packet from the cache area. Receive the response data packet of the interest packet sent by the target neighbor ICN node. Based on the communication method, device, computer equipment, storage medium and computer program product provided by the embodiment of the present disclosure, after the user switches the ICN node, the original ICN node is most likely a neighbor ICN node of the new ICN node. The new ICN node forwards the interest packet to the neighbor ICN node, and can obtain the response data packet corresponding to the interest packet from the original ICN node, which can avoid the waste of the response data packet in the original ICN node, improve resource utilization, and because the original ICN node is a neighbor node of the new ICN node, the search path is shorter, so the transmission delay can be greatly reduced, the business continuity can be improved, and the service quality can be guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 A schematic diagram of a communication method in an embodiment;

[0078] Figure 2 is a flow chart of a communication method in one embodiment;

[0079] Figure 3 is a flow chart of step 204 in one embodiment;

[0080] Figure 4is a flow chart of a communication method in another embodiment;

[0081] Figure 5 is a flow chart of a communication method in one embodiment;

[0082] Figure 6 is a flow chart of a communication method in one embodiment;

[0083] Figure 7 is an interactive schematic diagram of a communication method in an embodiment;

[0084] Figure 8 is an interactive schematic diagram of a communication method in an embodiment;

[0085] Fig. 9 is a structural block diagram of a communication device in one embodiment;

[0086] Fig.10 is a structural block diagram of a communication device in another embodiment;

[0087] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0088] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0089] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0090] Reference Figure 1As shown, after the user accesses ICN node 1, the interest packet is sent to the service provider through ICN node 1. After the user switches from ICN node 1 to ICN node 2, after ICN node 1 receives the response data packet of the interest packet, because the user has switched to ICN node 2, that is, the interface corresponding to the interest packet in ICN node 1 is lost, ICN node 1 can no longer find the interface to send the response data packet, resulting in the response data packet being discarded. After the user accesses ICN node 2, he sends an interest packet to the service provider through ICN node 2 again. ICN node 2 looks for a new route to forward the interest packet to request the response data packet corresponding to the interest packet. Among them, the response data packet of ICN node 1 is discarded, resulting in a waste of data packets and resources. ICN node 2 reroutes and forwards the interest packet, resulting in long transmission delays, poor business continuity and other problems.

[0091] An embodiment of the present application provides a communication method. After a user switches an ICN node, the new ICN node forwards the interest packet to a neighboring ICN node to obtain a response data packet corresponding to the interest packet from the original ICN node, thereby avoiding waste of response data packets in the original ICN node and improving resource utilization. Moreover, since the original ICN node is a neighboring node of the new ICN node, the search path is shorter, thus greatly reducing transmission delay, improving business continuity, and thus ensuring service quality.

[0092] In one embodiment, Figure 2 As shown, a communication method is provided. In this embodiment, the method is applied to Figure 1 The ICN node 2 is used as an example. The following steps 202 to 206 are included, wherein:

[0093] Step 202: Receive an interest packet sent by a target user.

[0094] Step 204: If the target user is a newly accessed user, a target interest packet is sent to each neighbor information center network ICN node based on the interest packet, where the target interest packet is the interest packet carrying the new user identifier, and the new user identifier is used to indicate a response data packet for searching the interest packet from the cache area;

[0095] Step 206: Receive a response data packet of the interest packet sent by the target neighbor ICN node.

[0096] In the embodiment of the present application, the ICN node accessed by the target user before switching is used as the original ICN node (such as Figure 1 The ICN node 1 in the switch is used as the new ICN node (such as Figure 1ICN node 2 in the original ICN node). After receiving the interest packet sent by the target user, the original ICN node can query the route to forward the interest packet to obtain the response data packet of the interest packet from the service provider or other ICN nodes. If the target user moves to a new ICN node before obtaining the response data packet of the interest packet, the original ICN node cannot forward the response data packet of the interest packet, so the response data packet of the interest packet can be cached in the cache area.

[0097] The new ICN node receives the interest packet sent by the target user and identifies that the target user is a newly connected user. If the interest packet is sent for the first time, the new user ID can be added to the interest packet to obtain the target interest packet, and then the target interest packet can be forwarded to each neighboring ICN node. After receiving the target interest packet, each neighboring ICN node identifies that the target interest packet carries a new user ID, and then preferentially searches for the response data packet of the interest packet in the storage area, and sends the response data packet of the interest packet to the new ICN node after finding the response data packet.

[0098] In the embodiment of the present application, the neighbor ICN node that finds the response data packet from the storage area is called the target neighbor ICN node. After the new ICN node receives the response data packet of the interest packet sent by the target neighbor ICN node, the response data packet can be sent to the target user.

[0099] In the above communication method, the ICN node can receive the interest packet sent by the target user, and when the target user is a newly connected user, the target interest packet is sent to each neighbor information center network ICN node based on the interest packet. The target interest packet is an interest packet carrying a new user identifier, and the new user identifier is used to indicate the response data packet to search for the interest packet from the cache area. Receive the response data packet of the interest packet sent by the target neighbor ICN node. Based on the communication method provided by the embodiment of the present disclosure, after the user switches the ICN node, the original ICN node is most likely a neighbor ICN node of the new ICN node. The new ICN node forwards the interest packet to the neighbor ICN node, and can obtain the response data packet corresponding to the interest packet from the original ICN node, which can avoid the waste of the response data packet in the original ICN node and improve resource utilization. Since the original ICN node is a neighbor node of the new ICN node, the search path is shorter, so the transmission delay can be greatly reduced, the business continuity can be improved, and the service quality can be guaranteed.

[0100] In an exemplary embodiment, referring to Figure 3 As shown, in step 204, the target interest packet is sent to each neighbor ICN node based on the interest packet, including the following steps 302 to 306, wherein:

[0101] Step 302, searching the target table entry corresponding to the target user in the new user forwarding information table;

[0102] Step 304: If the target table entry corresponding to the target user is not found, create a target table entry in the new user forwarding information table, the target table entry includes the identifier of the target user and the sending interface information, and the sending interface information includes the interface information corresponding to the neighbor ICN node;

[0103] Step 306: Send a target interest packet to each neighbor ICN node according to the interface information corresponding to each neighbor ICN node in the target table entry.

[0104] In an embodiment of the present application, after the target user accesses the new ICN node, the new ICN node can add a corresponding target table entry for the target user in the new user forwarding information, and the target table entry includes the target user's identifier and the corresponding sending interface information. The sending interface information initially includes the interface information corresponding to each neighbor ICN node of the new ICN node. The new ICN node transmits data with each neighbor node through the interface information corresponding to each neighbor node.

[0105] After receiving the interest packet sent by the target user, the new ICN node can search for the target table entry corresponding to the target user in the new user forwarding information table, and send the target interest packet to each neighbor ICN node based on the corresponding sending interface information in the found target table entry.

[0106] Alternatively, after receiving the interest packet sent by the target user, the target table entry corresponding to the target user can be searched in the new user forwarding information table. When the target table entry corresponding to the target user is not found, it is considered that the target user is a newly connected user and no target table entry has been created yet. Therefore, a target table entry can be created in the new user forwarding information table. After the target table entry is created, the target interest packet is sent to each neighbor ICN node based on the corresponding sending interface information in the target table entry.

[0107] Based on the communication method provided by the embodiment of the present disclosure, the interest packet forwarding of the new user is managed by the new user forwarding information table, and the response data packet corresponding to the query interest packet can be obtained from the neighboring ICN node in priority, which can avoid the waste of the response data packet in the original ICN node and improve resource utilization. Moreover, since the original ICN node is a neighbor node of the new ICN node, the search path is shorter, which can greatly reduce the transmission delay, improve business continuity, and thus ensure service quality.

[0108] In an exemplary embodiment, the above method may further include:

[0109] The sending interface information in the target table entry is updated to the target interface information for receiving the response data packet.

[0110] In an embodiment of the present application, after the new ICN node obtains the response data packet of the interest packet from the target neighbor ICN node, the target neighbor ICN node can be used as the original ICN node of the target user, and the interface information of the interface that receives the response data packet can be used as the target interface information. It is assumed that the target neighbor ICN node has stored the data packet required by the target user. Therefore, the sending interface information in the target table item corresponding to the target user in the new user forwarding information table can be updated to the target interface information that has received the response data packet. Subsequent interest packets sent to the target user are forwarded through this interface.

[0111] In an exemplary embodiment, the above method may further include:

[0112] If the target table entry corresponding to the target user is found, the target interest packet is sent to the target neighbor ICN node according to the interface information in the target table entry.

[0113] In an embodiment of the present application, after obtaining a response data packet of the interest packet from the target adjacent ICN node, the interest packets sent by subsequent target users are forwarded to the target neighbor ICN node through the interface information to fully utilize the resources of the original ICN node, improve resource utilization, reduce transmission delay, improve business continuity, and thereby ensure service quality.

[0114] In an exemplary embodiment, the method further includes:

[0115] If no response data packet of the interest packet is received within the preset waiting time after sending the target interest packet, the target table entry corresponding to the target user is deleted from the new user forwarding information table.

[0116] In an embodiment of the present application, after the new ICN node sends a target interest packet to each neighbor ICN node or sends a target interest packet to the target neighbor ICN node, the timing can be started. When the timing time reaches a preset waiting time (the preset time, the specific value is set by technical personnel in this field based on needs), if the response data packet of the interest packet is still not received, it can be considered that the original ICN node of the target user does not exist in the neighbor ICN node or the resources of the original ICN node cannot meet the needs of the target user. Therefore, the target table entry corresponding to the target user in the new user forwarding information table can be deleted, and the interest packet will no longer be forwarded in the way of the new user, but the forwarding path is found through routing to forward the interest packet.

[0117] In one embodiment, Figure 4 As shown, a communication method is provided. In this embodiment, the method is applied to Figure 1 The ICN node 1 is used as an example. The following steps 402 to 406 are included, wherein:

[0118] Step 402, forwarding the interest packet sent by the target user to the target node;

[0119] Step 404, receiving a response data packet of the interest packet sent by the target node;

[0120] Step 406: If the sending interface of the response data packet cannot be found, the response data packet is written into the cache area.

[0121] In the embodiment of the present application, after the user accesses ICN node 1, the user sends an interest packet to ICN node 1, and sends the interest packet to the service provider through ICN node 1. After the user switches from ICN node 1 (hereinafter referred to as the original ICN node) to ICN node 2 (hereinafter referred to as the new ICN node), after the original ICN node receives the response data packet of the interest packet, since the user has switched to the new ICN node, that is, the interface corresponding to the interest packet in the original ICN node is lost, the original ICN node can no longer find an interface to send the response data packet.

[0122] At this time, the original ICN node can write the response data of the interest packet into the cache area. When the new ICN node accessed by the target user sends the interest packet to the original ICN node, the response data packet of the interest packet can be found in the cache area.

[0123] In an exemplary embodiment, referring to Figure 5 As shown, the above method further includes steps 502 to 506, wherein:

[0124] Step 502, receiving an interest packet sent by a target neighbor information center network ICN node;

[0125] Step 504: If the interest packet contains a new user identifier, a response data packet corresponding to the interest packet is searched in a cache area, where the cache area is used to cache data packets for which no sending interface exists;

[0126] Step 506: If a response data packet corresponding to the interest packet is found in the cache area, the response data packet is sent to the target neighbor ICN node.

[0127] In the embodiment of the present application, the target neighbor ICN node is the new ICN node accessed by the target user. After receiving the interest packet sent by the target user, the new ICN node can forward the interest packet to its neighbor ICN node and add a new user identifier in the forwarded interest packet (the specific process can refer to the relevant description of the aforementioned embodiment, which will not be repeated here in the embodiment of the present application). After the current ICN node receives the interest packet sent by the new ICN node, if the interest packet includes a new user identifier, it can preferentially search for the response data packet corresponding to the interest packet from the cache area based on the indication of the new user identifier.

[0128] If the current ICN node is the original ICN node of the target user, it finds the response data packet corresponding to the interest packet in the cache area, and can send the response data packet to the new ICN node. After the new ICN node receives the response data packet of the interest packet sent by the target neighbor ICN node, it can send the response data packet to the target user.

[0129] In the above communication method, after the user switches the ICN node, the original ICN node is most likely a neighbor ICN node of the new ICN node. The new ICN node can obtain the response data packet corresponding to the interest packet from the original ICN node by forwarding the interest packet to the neighbor ICN node, thereby avoiding the waste of response data packets in the original ICN node and improving resource utilization. Moreover, since the original ICN node is a neighbor node of the new ICN node, the search path is shorter, which can greatly reduce the transmission delay, improve business continuity, and thus ensure service quality.

[0130] In an exemplary embodiment, referring to Figure 6 As shown, the above method may further include step 602 and step 604, wherein:

[0131] Step 602, if the response data packet corresponding to the interest packet is not found in the cache area, then the response data packet corresponding to the interest packet is searched in the storage area;

[0132] Step 604: If a response data packet corresponding to the interest packet is found in the storage area, the response data packet is sent to the target neighbor ICN node.

[0133] In an embodiment of the present application, if the current ICN node fails to find a response data packet corresponding to the interest packet in the cache area, it may further search for a response data packet corresponding to the interest packet in the storage area. If a response data packet corresponding to the interest packet is found in the storage area, the response data packet may be sent to the target neighbor ICN node. At this time, it may be considered that the current ICN node is the original ICN node of the target user, or that there are users with similar services to the target user among the users accessed by the current ICN node. Therefore, after receiving the response data packet sent by the current ICN node, the new ICN node (target neighbor ICN node) may use the interface for receiving the response data packet as the interface for subsequently forwarding the target user's interest packets to the current ICN node, and may give priority to forwarding the subsequent interest packets of the target user to the current ICN node, so as to achieve efficient utilization of the resources of the current ICN node, reduce transmission delay, and improve business continuity of the target user.

[0134] In an exemplary embodiment, the above method may further include:

[0135] If the response data packet corresponding to the interest packet is not found in the storage area, the interest packet is discarded.

[0136] In an embodiment of the present application, if the current ICN node does not find a response data packet corresponding to the interest packet in the cache area and the storage area, it can be considered that the current ICN node is not the original ICN node of the target user, or that the users accessed by the current ICN node do not have users with similar services to the target user, that is, there are no resources in the current ICN node that can be used by the target user. Therefore, the current ICN node does not respond to the interest packet, and directly discards the interest packet, and does not write the interest packet to the pending information table, so as to avoid the waste of resources caused by the subsequent forwarding of the interest packet by the current ICN node through the routing query path.

[0137] In an exemplary embodiment, the above method may further include:

[0138] If an interest packet is received within the preset cache duration after the response data packet is written to the cache area, the preset cache duration of the response data packet is extended;

[0139] If no Interest Packet is received within the preset cache time after the Response Packet is written into the cache area, the Response Packet is deleted from the cache area.

[0140] In an embodiment of the present application, timing can be started after the response data packet is written to the cache area. When the timing duration reaches a preset cache duration (a preset duration, the specific value is set by technical personnel in this field based on needs), if the interest packet corresponding to the response data packet is not received, the response data packet can be deleted from the cache area to reduce the resource occupancy of the cache area.

[0141] Alternatively, when the timing duration does not reach the preset cache duration, the current ICN node receives the interest packet corresponding to the response data packet, then based on the response data packet as a response, the preset cache duration corresponding to the response data packet can also be extended according to the preset extension strategy. Among them, the preset extension strategy can include extending a specified duration each time, and the specified duration can be a preset fixed duration, or the specified duration is positively correlated with the number of extensions, that is, the more extensions are made, the longer the specified duration is.

[0142] In this way, valid data can be stored in the cache area of ​​the current ICN node for a longer period of time until the data is no longer needed, which can not only improve resource utilization but also improve data transmission efficiency.

[0143] In an exemplary embodiment, the above method may further include:

[0144] If an interest packet is received within a preset cache time after the response data packet is written to the cache area, the response data packet is stored in the storage area.

[0145] In an embodiment of the present application, timing can start after the response data packet is written into the cache area. When the timing duration has not reached the preset cache duration, the current ICN node receives the interest packet corresponding to the response data packet. In this case, the current ICN node can be used as the original ICN node of the target user. It is believed that the response data packet will still be needed by the target user in the future. Therefore, the response can be based on the response data packet and stored in the storage area. At the same time, the response data packet is deleted from the cache area, which can reduce the resource occupation of the cache area.

[0146] In an exemplary embodiment, the above method may further include:

[0147] If the preset cache duration of the reply data packet reaches the duration threshold, or the number of extensions of the preset cache duration of the reply data packet within the preset time period reaches the number threshold, the reply data packet is stored in the storage area.

[0148] In an embodiment of the present application, when the preset cache duration corresponding to the response data packet reaches a duration threshold (a preset duration, the specific value is set by a technician in this field based on needs) after being extended several times, the response data packet can be considered to be frequently used data, and it can be directly stored in the storage area; or, a counter is started within a preset time period (a time period composed of a preset duration, the specific value is set by a technician in this field based on needs)), and each time an interest packet corresponding to the response data packet is received, the counter is increased by 1. After the preset time period, the value of the counter is determined. If the value of the counter is greater than or equal to the preset number threshold, the response data packet can also be considered to be frequently used data, and it can be directly stored in the storage area, which can improve resource utilization while reducing resource occupancy in the cache area.

[0149] In order to enable those skilled in the art to better understand the embodiments of the present disclosure, the embodiments of the present disclosure are described below through specific examples.

[0150] The ICN node includes a content repository and a forwarding information repository. A cache management module is added to the content repository, and a new user interface management module is added to the forwarding information repository, wherein:

[0151] The cache management module is used to cache the response data packet of the interface that cannot be found in the pending information table in the cache area within the preset cache time. If the interest packet corresponding to the response data packet sent by the neighbor ICN node is received within the preset cache time, the response data packet is returned and stored in a preset storage method, for example: the response data packet is written into the storage area; if there is no corresponding response data packet in the cache area and the storage area after receiving the interest packet sent by the neighbor ICN node, the interest packet is discarded and no longer delivered to the pending information table; if the interest packet corresponding to the response data packet sent by the neighbor ICN node is not received within the preset cache time, the response data packet is deleted from the cache area.

[0152] The new user interface management module is used to forward the interest packet sent for the first time by the user newly registered in the current ICN node among all neighboring ICN nodes, and can record the number of interest packets sent by each user and the sending interface information, create the user information in the new user forwarding information table, and set the preset waiting time after sending the interest packet. If a response data packet corresponding to the interest packet is received within the preset waiting time, the interface of the returned response data packet is updated to the new user forwarding information table, and when the user sends the interest packet again, it is forwarded only through this interface; if no response data packet is returned by all sending interfaces within the preset waiting time, the user is removed from this module and the user information in the new user forwarding information table is cleared.

[0153] For example, refer to Figure 7 As shown, the data interaction process between the original ICN node (ICN node 1) and the new ICN node (ICN node 2) is shown when the original ICN node (ICN node 1) has a data packet response:

[0154] Step 7.1, the user sends an interest packet to the service provider when on ICN node 1;

[0155] Step 7.2: before the response packet arrives, the user switches from ICN node 1 to the neighboring node ICN node 2;

[0156] Step 7.3, the cache management module of the ICN node 1 caches the response data packet for which the interface cannot be found, and sets a preset cache time length;

[0157] Step 7.4, the new user management module of ICN node 2 adds the sending interface as the interface of the neighbor node for the first interest packet of the new user, creates a corresponding table entry in the new user forwarding information table, and sets a preset waiting time;

[0158] Step 7.5, the forwarding information base of ICN node 2 forwards the interest packet to each neighboring ICN node of ICN node 2 according to the new user forwarding information table, and the new user interface management module starts timing;

[0159] Step 7.6, the cache management module of ICN node 1 receives the interest packet and queries the cached response data packet, and transfers the response data packet from the cache area to the storage area;

[0160] Step 7.7, within the preset waiting time set by the new user interface management module of ICN node 2, the cache management module of ICN node 1 returns a response data packet to ICN node 2;

[0161] Step 7.8, the new user interface management module of ICN node 2 updates the sending interface of the user in the new user forwarding information table to the return interface of the reply data packet, and the user will send the interest packet through this interface first when sending it again.

[0162] For example, refer to Figure 8 As shown, the data interaction process between the original ICN node (ICN node 1) and the new ICN node (ICN node 2) is shown when there is no data packet response:

[0163] Step 8.1, the user sends an interest packet to the service provider when on ICN node 1;

[0164] Step 8.2, before the response data packet arrives, the user switches from ICN node 1 to the neighboring node ICN node 2;

[0165] Step 8.3, the cache management module of ICN node 1 caches the response data packet for which the interface cannot be found, and sets a preset cache time length;

[0166] Step 8.4, the new user management module of ICN node 2 adds the sending interface as the interface of the neighbor node for the first interest packet of the new user, creates a corresponding table entry in the new user forwarding information table, and sets a preset waiting time;

[0167] Step 8.5, the forwarding information base of ICN node 2 forwards the interest packet to each neighboring ICN node of ICN node 2 according to the new user forwarding information table, and the new user interface management module starts timing;

[0168] Step 8.6: The cache management module of ICN node 1 does not find a response data packet matching the interest packet, and discards the interest packet;

[0169] Step 8.7: If no response data packet is returned within the preset waiting time after the ICN node 2 sends the interest packet, the new user interface management module deletes the entry corresponding to the new user in the new user forwarding information table and removes the user from the new user interface management module;

[0170] Step 8.8: If the response data packet in the cache management module of ICN node 1 exceeds the preset cache time and has not received its corresponding interest packet request, the data packet is deleted.

[0171] The communication method provided in the embodiment of the present application adds a cache management module to the content storage library and a new user interface management module to the forwarding information library. In the ICN network, after the user switches the ICN node, the interest packet is sent based on the new user forwarding information table, and the original ICN node provides a response data packet, thereby improving the utilization rate of the data packet, reducing the transmission delay, ensuring the service quality, and solving the problem of resource waste caused by the discarding of the response data packet due to the switching of the ICN node.

[0172] It should be understood that although Figure 1-8 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-8 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0173] In one embodiment, Fig. 9 As shown, a communication device 900 is provided, including: a first receiving unit 902, a first sending unit 904 and a second receiving unit 906, wherein:

[0174] A first receiving unit 902, configured to receive an interest packet sent by a target user;

[0175] A first sending unit 904 is configured to send a target interest packet to each neighbor information center network ICN node based on the interest packet if the target user is a newly accessed user, wherein the target interest packet is the interest packet carrying a new user identifier, and the new user identifier is used to indicate a response data packet for searching the interest packet from a cache area;

[0176] The second receiving unit 906 is configured to receive a response data packet of the interest packet sent by the target neighbor ICN node.

[0177] Based on the communication device provided by the embodiment of the present disclosure, after the user switches the ICN node, the original ICN node is most likely a neighbor ICN node of the new ICN node. The new ICN node can obtain the response data packet corresponding to the interest packet from the original ICN node by forwarding the interest packet to the neighbor ICN node, thereby avoiding the waste of response data packets in the original ICN node and improving resource utilization. Moreover, since the original ICN node is a neighbor node of the new ICN node, the search path is shorter, thereby greatly reducing the transmission delay, improving business continuity, and thus ensuring service quality.

[0178] In one embodiment, the sending unit is further configured to:

[0179] Searching for a target entry corresponding to the target user in a new user forwarding information table;

[0180] If the target table entry corresponding to the target user is not found, create the target table entry in the new user forwarding information table, wherein the target table entry includes the identifier of the target user and the sending interface information, and the sending interface information includes the interface information corresponding to the neighbor ICN node;

[0181] According to the interface information corresponding to each of the neighbor ICN nodes in the target table entry, a target interest packet is sent to each of the neighbor ICN nodes.

[0182] In one embodiment, the device further comprises:

[0183] The updating unit is used to update the sending interface information in the target table entry to the target interface information for receiving the response data packet.

[0184] In one embodiment, the device further comprises:

[0185] The second sending unit is configured to send the target interest packet to the target neighbor ICN node according to the target interface information in the target table entry if a target table entry corresponding to the target user is found.

[0186] In one embodiment, the device further comprises:

[0187] The deleting unit is used to delete the target table entry corresponding to the target user from the new user forwarding information table if no response data packet of the interest packet is received within a preset waiting time after sending the target interest packet.

[0188] In one embodiment, Fig.10 As shown, a communication device 1000 is provided, comprising: a first receiving unit 1002, a first searching unit 1004 and a first sending unit 1006, wherein:

[0189] The first receiving unit 1002 is used to receive an interest packet sent by a target neighbor information center network ICN node;

[0190] A first search unit 1004 is configured to search for a response data packet corresponding to the interest packet from a cache area if the interest packet contains a new user identifier, wherein the cache area is used to cache data packets for which a sending interface does not exist;

[0191] The first sending unit 1006 is configured to send the response data packet to the target neighbor ICN node if a response data packet corresponding to the interest packet is found in the cache area.

[0192] Based on the communication device provided by the embodiment of the present disclosure, after the user switches the ICN node, the original ICN node is most likely a neighbor ICN node of the new ICN node. The new ICN node can obtain the response data packet corresponding to the interest packet from the original ICN node by forwarding the interest packet to the neighbor ICN node, thereby avoiding the waste of response data packets in the original ICN node and improving resource utilization. Moreover, since the original ICN node is a neighbor node of the new ICN node, the search path is shorter, thereby greatly reducing the transmission delay, improving business continuity, and thus ensuring service quality.

[0193] In one embodiment, the device further comprises:

[0194] A second searching unit, configured to search for a response data packet corresponding to the interest packet from a storage area if a response data packet corresponding to the interest packet is not found in the cache area;

[0195] The second sending unit is configured to send the response data packet to the target neighbor ICN node if a response data packet corresponding to the interest packet is found in the storage area.

[0196] In one embodiment, the device further comprises:

[0197] A discarding unit is used to discard the interest packet if the response data packet corresponding to the interest packet is not found in the storage area.

[0198] In one embodiment, the device further comprises:

[0199] A third sending unit, used to forward the interest packet sent by the target user to the target node;

[0200] A second receiving unit, configured to receive a response data packet of the interest packet sent by the target node;

[0201] The cache unit is used to write the response data packet into the cache area if the sending interface of the response data packet cannot be found.

[0202] In one embodiment, the device further comprises:

[0203] A first processing unit, configured to extend the preset cache time length of the response data packet if the interest packet is received within the preset cache time length after the response data packet is written into the cache area;

[0204] The second processing unit is configured to delete the response data packet from the cache area if the interest packet is not received within a preset cache time after the response data packet is written into the cache area.

[0205] In one embodiment, the device further comprises:

[0206] The first storage unit is configured to store the response data packet in the storage area if the interest packet is received within a preset cache time period after the response data packet is written into the cache area.

[0207] In one embodiment, the device further comprises:

[0208] The second storage unit is used to store the response data packet in the storage area if the preset cache duration of the response data packet reaches a duration threshold, or the number of extensions of the preset cache duration of the response data packet within a preset time period reaches a number threshold.

[0209] For the specific definition of the communication device, please refer to the definition of the communication method above, which will not be repeated here. Each module in the above communication device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0210] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a communication method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse, etc.

[0211] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0212] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0213] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0214] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0215] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0216] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0217] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0218] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A communication method, characterized in that: The method comprises: Receive the interest packet sent by the target user; If the target user is a newly accessed user, a target interest packet is sent to each neighbor information center network ICN node based on the interest packet, wherein the target interest packet is the interest packet carrying a new user identifier, and the new user identifier is used to indicate a response data packet for searching the interest packet from a cache area; Receive a response data packet of the interest packet sent by the target neighbor ICN node.

2. The method according to claim 1, characterized in that The sending a target interest packet to each neighboring ICN node based on the interest packet includes: Searching for a target entry corresponding to the target user in a new user forwarding information table; If the target table entry corresponding to the target user is not found, create the target table entry in the new user forwarding information table, wherein the target table entry includes the identifier of the target user and the sending interface information, and the sending interface information includes the interface information corresponding to the neighbor ICN node; According to the interface information corresponding to each of the neighbor ICN nodes in the target table entry, a target interest packet is sent to each of the neighbor ICN nodes.

3. The method according to claim 2, characterized in that The method further comprises: The sending interface information in the target table entry is updated to the target interface information for receiving the response data packet.

4. The method according to claim 3, characterized in that The method further comprises: If the target table entry corresponding to the target user is found, the target interest packet is sent to the target neighbor ICN node according to the target interface information in the target table entry.

5. The method according to claim 2, characterized in that: The method further comprises: If no response data packet of the interest packet is received within a preset waiting time after sending the target interest packet, the target table entry corresponding to the target user is deleted from the new user forwarding information table.

6. A communication method, characterized in that: The method comprises: Receive the interest packet sent by the target neighbor information center network ICN node; If the interest packet contains a new user identifier, searching for a response data packet corresponding to the interest packet from a cache area, the cache area being used to cache data packets for which no sending interface exists; If a response data packet corresponding to the interest packet is found in the cache area, the response data packet is sent to the target neighbor ICN node.

7. The method according to claim 6, characterized in that The method further comprises: If the response data packet corresponding to the interest packet is not found in the cache area, searching for the response data packet corresponding to the interest packet in the storage area; If a response data packet corresponding to the interest packet is found in the storage area, the response data packet is sent to the target neighbor ICN node.

8. The method according to claim 7, characterized in that The method further comprises: If the response data packet corresponding to the interest packet is not found in the storage area, the interest packet is discarded.

9. The method according to claim 6 or 7, characterized in that: The method further comprises: Forward the interest packet sent by the target user to the target node; Receive a response data packet of the interest packet sent by the target node; If the sending interface of the response data packet cannot be found, the response data packet is written into the cache area.

10. The method according to claim 9, characterized in that The method further comprises: If the interest packet is received within the preset cache time after the response data packet is written into the cache area, the preset cache time of the response data packet is extended; If the interest packet is not received within a preset cache time after the response data packet is written into the cache area, the response data packet is deleted from the cache area.

11. The method according to claim 9, characterized in that The method further comprises: If the interest packet is received within a preset cache time period after the response data packet is written into the cache area, the response data packet is stored in the storage area.

12. The method according to claim 10, characterized in that The method further comprises: If the preset cache duration of the response data packet reaches a duration threshold, or the number of extensions of the preset cache duration of the response data packet within a preset period reaches a number threshold, the response data packet is stored in the storage area.

13. A communication device, characterized in that: The device comprises: A first receiving unit, configured to receive an interest packet sent by a target user; A first sending unit is used to send a target interest packet to each neighbor information center network ICN node based on the interest packet if the target user is a newly accessed user, wherein the target interest packet is the interest packet carrying a new user identifier, and the new user identifier is used to indicate a response data packet for searching the interest packet from a cache area; The second receiving unit is used to receive a response data packet of the interest packet sent by the target neighbor ICN node.

14. A communication device, characterized in that: The device comprises: A first receiving unit, configured to receive an interest packet sent by a target neighbor information center network ICN node; A first search unit, configured to search a response data packet corresponding to the interest packet from a cache area if the interest packet contains a new user identifier, wherein the cache area is used to cache data packets for which a sending interface does not exist; The first sending unit is configured to send the response data packet to the target neighbor ICN node if a response data packet corresponding to the interest packet is found in the cache area.

15. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 or 6 to 12 are implemented.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 or 6 to 12 are implemented.

17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 or 6 to 12 are implemented.