A code caching method based on code pre-storage in neighboring user cooperation scenario
By adopting the cooperative set merging method of the encoding pre-storage scheme and the greedy restricted coloring method in the placement and service stages of the encoding cache system, the problem of reduced transmission efficiency and cache redundancy in the interaction scenario between users is solved, and the storage-rate trade-off is optimized. , improve system performance.
Patent Information
- Application Number
- CN202311374385.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-10-23
AI Technical Summary
The transmission efficiency of the existing encoding cache system is reduced in the interaction scenario between users, and the cache redundancy problem has not been effectively solved, resulting in a poor storage-rate trade-off R(M).
In the placement stage, two encoding pre-storage schemes are used, which are respectively suitable for users with small and large cache spaces. The cache space is saved by deleting and placing sub-files; in the service stage, the cooperative set merging method of the greedy restricted coloring method is used. , optimize information transmission between users and reduce the transmission rate.
It effectively reduces the problem of reduced transmission efficiency caused by communication between users, and reduces the space required for users to cache the same files during the placement stage, improves system performance, and optimizes the storage-rate tradeoff R(M).
Smart Images

Figure CN117336695B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle networking communication technology, and in particular to a code caching method in a neighboring user cooperation scenario based on code pre-storage. Background Art
[0002] Caching is a technology that reduces the peak rate during network peak hours by placing some content near users in advance, and transferring some content that needs to be transmitted during network peak hours to off-peak hours, thereby reducing the network load during peak hours and improving the utilization of network resources during off-peak hours. Code caching further reduces the peak rate by encoding the information placed and sent. The general code cache model includes a central server, a multicast shared link, and several users.
[0003] In the prior art, a classic coding cache model includes a central server storing all N files of size F bits, a noiseless multicast shared link connecting the server and all users, and K users equipped with caches, and the cache size of each user is equal, all of which are MF bits, and assuming that the probability of the above N files being requested is consistent, then such a coding cache system is called a uniform system. The operation of the coding cache system is divided into two stages. The first is the placement stage, which occurs during the off-peak period of the network. In this stage, the user pre-caches a part of the file content into his own cache space. According to the strategy of caching files in this stage, the coding cache system is divided into two types. One is a centralized system, that is, the central server determines the content pre-cached by the user; the other is a decentralized system, in which the user independently and randomly selects the pre-cached content. After the placement stage, the system enters the service stage, which occurs during the peak period of the network. In this stage, the user makes a file request to the server, and the server sends information to the user according to the requests of all users. The user obtains the requested file based on the received information and the content pre-cached in the placement stage.
[0004] MAMaddah-Ali and UrsNiesen combined network coding with index coding to propose a uniform coding cache model for the first time and gave a coding cache scheme (called MAN scheme). Let t = MK / N, consider M∈{0,N / K,2N / K,…,N}, that is, ensure that t is an integer. In the placement phase, each file is divided into uniform and non-repetitive , that is Where [K] = {1, 2, ..., K}, for any user k, if k ∈ T, then cache subfile W n,T, that is, the subscript of the subfile indicates the number of the user who has this subfile in the cache. This proves that this placement method just fills the user's cache. The following table gives the placement results of a file when K=6, N=6, M=2, and each column represents the cache of a user, where t=MK / N=2, n=1,2,…,N.
[0005] In the service phase, let user k request file For each set send Then each user in S gets a sub-file that he needs, because for a specific user s∈S, all W n,S\{k} ,k≠s,n∈[N]. For example, for user 2 in Table 1, his request Then for S = {1,2,3}, send Since there is and It is solved from After all possible S are transferred, all users get the files they requested completely: for user k, all exists in its cache, and all It is obtained from the information sent by the server to the set S = T∪{k}.
[0006] Therefore, during the service phase, the server needs to send a total of The size of each piece of information is equal to the size of a sub-file, that is, Therefore, the rate of this scheme is
[0007] R(M) is called the rate-memory tradeoff, which is the relationship between the rate on the system shared link and the user cache size when the number of users and files is fixed. R(M) is an important indicator for evaluating the coding cache system. In the study of uniform centralized coding cache systems, equal cache space is generally allocated to each file, so the obtained rate is generally valid for all possible user requests. In the study of decentralized systems or systems with non-uniform file popularity, it is generally necessary to consider the expected rate and peak rate, that is, to take the expectation for all possible user requests and the system rate in the worst case.
[0008] 2. Multi-access codecache system
[0009] Multi-Access Coded Caching (MACC) is a code caching system that allows users to access multiple cache spaces. In the MACC system, user i accesses cache i,<i+1> ,…,<i+L-1> There are L cache spaces in total, of which
[0010]
[0011] The MACC system is a uniform system in which each user is in fact equivalent, while the system to be proposed is considered to be a special MACC system, but the status of the users will be different. Due to this asymmetry, the various existing methods proposed for the MACC system cannot be directly applied to it, so its placement stage and service stage are redesigned. Summary of the invention
[0012] The purpose of the present invention is to provide a coding caching method in a scenario of adjacent user cooperation based on coding pre-storage. In the two stages of the coding caching system, corresponding optimization is performed according to the characteristics of the proposed system model, the storage-rate compromise R(M) is reduced, and better system performance is obtained.
[0013] To achieve the above object, the present invention provides a code caching method in a neighboring user cooperation scenario based on code pre-storage, comprising the following steps:
[0014] S1. In the placement phase, two coding pre-storage scheme technologies are used to solve the cache redundancy problem, which are respectively suitable for the cases where the user cache space is small and large;
[0015] S2. In the service phase, a cooperative set merging method based on greedy restricted coloring is used to solve the problem of reduced transmission efficiency caused by interactions between users.
[0016] Preferably, the first encoding pre-storage scheme in the placement phase includes:
[0017] S111, the first step, when t>2, for each user i, delete the subfile
[0018] W n,{i-2,i,i+1}∪X and W n.{i-2,i-1,i}∪X ,
[0019] Place sub-files
[0020]
[0021] in, , then this step is skipped;
[0022] Where K is the total number of users; N is the total number of files; M is the size of the user's cache space. The file size is normalized, that is, when M=1, it means that the size of the user's cache space is equal to the size of one file. W n : the nth file, n∈1,2,…,N; W n,T : File W n A subfile of , where T is a set of users, indicating that this subfile will and will only be placed in the cache of all users in T in the MAN scheme; [K]: [K] = {1, 2, ..., K}; t: t = MK / N;
[0023] Where [K] = {1, 2, ..., K}, for any user k, if k ∈ T, then cache subfile W n,T , that is, the subscript of the subfile indicates the user ID that has this subfile cached;
[0024] S112, Step 2, for each user i, delete the sub-file
[0025] W n,{i,i+1}∪X and W n,{i-2,i}∪X ,
[0026] Place sub-files
[0027]
[0028] in
[0029] In step S111, the sub-files, and then placed sub-files, in step S112, delete sub-files, and then placed sub-files, that is, the final savings The space of the sub-files is equivalent to the system parameters
[0030]
[0031] In the transmission phase, it is also necessary to send a data packet of size information, so the final rate is
[0032]
[0033] Where M' = t' A N / K, here R GCC (M) is the transmission rate obtained during the service phase.
[0034] Preferably, the second encoding pre-storage solution in the placement phase is: first, each file is divided into two equal parts, namely And put them into the user's cache in MAN mode, and then divide them into two steps:
[0035] S121, the first step, for each user i with an even number e And i e ≠K, delete the subfile
[0036]
[0037] Then place the subfile
[0038]
[0039] in, When K is an even number, delete the subfile in the cache of user K. in
[0040] S122, Step 2, for each odd-numbered user i o And i o ≠1,K, delete the subfile
[0041]
[0042] Then place the subfile
[0043]
[0044] in, For user 1, delete the sub-file in its cache in When K is an odd number, delete the subfile in the cache of user K. in
[0045] Step S122 is a repetition of the operation of step S121, but the target objects are odd-numbered users and This part of the file, combined with step S121 and step S122, is deleted for each user. sub-files, and thus obtain the corresponding equivalent system parameters
[0046]
[0047] and the corresponding rate
[0048] R B (M') = R GCC (M),
[0049] Where M' = t' B N / K, here R GCC (M) is the transmission rate obtained during the service phase.
[0050] Preferably, in the service stage, the cooperation set, merging method and merging condition in the optimization are adopted to make them applicable to the model, including the following steps:
[0051] S21, classifying all user cooperation sets according to the neighboring relationships of users in the user cooperation set S;
[0052] S22, establishing a conflict graph according to the user set and merging conditions of the user set that has both adjacent users and non-adjacent users in the set;
[0053] S23, after the conflict graph is established, the vertices therein are colored using the greedy restricted coloring method, so that as many vertices that are not directly connected as possible are colored with the same color, and for all vertices colored with the same color, the information generated by them is merged and transmitted;
[0054] S24. After the merge, all users can still restore the files they need from the received information and the accessible cache.
[0055] Preferably, in step S21, the classification is as follows:
[0056] When there are no neighboring users in the set, the information generated for the cooperation set is useful to each user in it, so it is still transmitted in the way of the MAN scheme;
[0057] When all users in the set have neighboring users, the information generated for the cooperation set is useless to all users in it and will not be transmitted;
[0058] When there are both adjacent users and non-adjacent users in the set, the information generated for the cooperation set is useless for the adjacent users, but useful for users without adjacent users. For this type of cooperation set, the coloring method is used to further find multicast opportunities in it.
[0059] Preferably, in step S22, each cooperation set S in which both adjacent users and non-adjacent users exist is modeled as a graph A vertex in , each vertex contains three attributes: cooperation set number, target user in the cooperation set, that is, users who are not adjacent to other users, non-target users in the cooperation set, that is, adjacent users in the cooperation set, denoted as
[0060] The two cooperation sets S are determined by the following merging conditions i ,S j Whether there is a multicast opportunity between the two, the merging conditions are:
[0061]
[0062] in, Indicates the cache number that user u can access, that is,
[0063]
[0064] In the formula, Represents cooperative set Target users; Represents cooperative set Non-target users;
[0065] represents the empty set;
[0066] This condition ensures that after the merged transmission, the target user of each cooperation set can still extract the sub-file he needs from the received information; for every two vertices in the graph, if the cooperation sets they represent do not meet the above merge condition, there is an edge between the two vertices. Each vertex represents a user cooperation set, and the edges between the vertices are established according to the above merge condition.
[0067] Preferably, in step S23, after the conflict graph is established, the vertices therein are colored using a greedy restricted coloring method so that as many directly connected vertices as possible are colored with the same color;
[0068] For all vertices with the same color, the information generated is combined and transmitted in the following way: And send it to all target users in all cooperation sets. For one cooperation set S i A target user k in , because he is a non-target user in other cooperation sets, has all sub-files W in his cache n,S\{k} ,S≠S i , so it still gets the sub-file it needs from this message;
[0069] Let the chromatic number obtained by coloring be The required transmission rate is
[0070]
[0071] In the formula, user k requests file For each set send Then each user in S gets a sub-file that he needs, because for a specific user s∈S, all W n,S\{k} ,k≠s,n∈[N]; represents the number of colors obtained by the greedy restricted coloring method; It represents the conflict graph obtained in step S22.
[0072] Preferably, in step S24, note that the merging condition
[0073]
[0074] It consists of two symmetric sub-conditions, which means that if a cooperation set The target user can access the cache and another cooperative set If the intersection of the caches of non-target users in is not empty, and vice versa, the two cooperation sets are merged, that is, the cooperation set The target user in The cache of non-target users in the group can decode the information transmitted after the merger. and one of the users Assumptions Right now is merged into the new cooperation set Σ, then the information it receives is written as:
[0075]
[0076] in is the sub-file required by user k, For cooperation The sub-files required by other target users in are the sub-files required by the target users in other cooperation sets in Σ. According to the merging conditions, these sub-files must be cached in At least one user in
[0077]
[0078] Therefore, user k decodes the sub-file he needs from the information.
[0079] Therefore, the present invention adopts the above-mentioned code caching method in the adjacent user cooperation scenario based on code pre-storage, and its technical effects are as follows:
[0080] (1) The communication between users is considered for scenarios such as the Internet of Vehicles. Taking into account the service range of the base station, the heterogeneity of edge users is introduced to make it more consistent with actual application scenarios.
[0081] (2) In the service phase, in order to solve the problem of reduced transmission efficiency caused by the introduction of inter-user communication, a cooperative machine merging technology based on the coloring method was used to reduce the required transmission rate; in the placement phase, in order to solve the cache redundancy problem, the encoding pre-storage technology was used, and two solutions were proposed to reduce the space required for users to cache the same file, thereby reducing the required transmission rate when users have the same amount of space.
[0082] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] Figure 1 This is a diagram showing the classic encoding cache system model after the introduction of user interaction;
[0084] Figure 2 It represents the conflict graph established when K=5, N=5, M=2;
[0085] Figure 3 It shows the comparison between the rate of the system proposed by the present invention and the rate of the MACC system with L=2 and L=3. DETAILED DESCRIPTION
[0086] The technical solution of the present invention is further described below through the accompanying drawings and embodiments.
[0087] Unless otherwise defined, technical or scientific terms used in the present invention shall have the common meanings understood by one having ordinary skills in the field to which the present invention belongs.
[0088] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the main idea or essential features of the present invention. Therefore, from all points of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention, and any reference numerals in the claims should not be regarded as limiting the claims involved.
[0089] In addition, it should be understood that although this specification is described according to the implementation modes, not every implementation mode includes only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment can also be appropriately combined to form other implementation modes that can be understood by those skilled in the art. These other implementation modes are also covered within the protection scope of the present invention.
[0090] It should also be understood that the specific embodiments described above are only used to explain the present invention, and the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field, within the technical scope disclosed by the present invention, can make equivalent replacements or changes based on the technical solutions and inventive concepts of the present invention, which should be covered by the protection scope of the present invention / invention.
[0091] Technologies, methods, and equipment known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0092] The disclosed contents of the prior art documents cited in the present specification are incorporated into the present invention by reference in their entirety and are therefore part of the disclosure of the present invention.
[0093] Embodiment 1
[0094] As shown in the figure, the present invention provides a code caching method in a neighboring user cooperation scenario based on code pre-storage,
[0095] 1. System Model
[0096] The system model of the present invention is based on the classic code cache system model proposed by Maddah-Ali et al., and introduces user interaction, such as Figure 1 .
[0097] The system includes a server storing all files, a shared link connecting the server and the user, and several users with caches; it includes two stages: a placement stage and a service stage. In the placement stage, the user's needs are unknown, and the user selects some of the files from all the files and puts them into his own cache. In the service stage, the server sends information to the user according to the user's needs and the files that the user has cached to meet the needs of each user. In the model of the present invention, it is assumed that all users are lined up in a row, and each user can interact with the cache of the user before and after it. In this way, except for the two users at the head and the end of the team, all other users can access a total of 3 cache spaces including their own caches, while the users at the head and the end of the team can only access their own caches and the caches behind (or in front), a total of 2 cache spaces. The asymmetry introduced here is a major difference between this system and the MACC system.
[0098] 2. Placement phase
[0099] In the placement phase, the coding pre-storage technology is used to solve the cache redundancy problem. Table 1 shows the placement of the MAN solution when K=6, N=6, and M=2:
[0100] Table 1 shows the placement of the MAN solution when K = 6, N = 6, and M = 2
[0101] user 1 2 3 4 5 6 <![CDATA[W n,12 ]]> <![CDATA[W n,23 ]]> <![CDATA[W n,34 ]]> <![CDATA[W n,45 ]]> <![CDATA[W n,56 ]]> <![CDATA[W n,16 ]]> <![CDATA[W n,13 ]]> <![CDATA[W n,24 ]]> <![CDATA[W n,35 ]]> <![CDATA[W n,46 ]]> <![CDATA[W n,15 ]]> <![CDATA[W n,26 ]]> <![CDATA[W n,14 ]]> <![CDATA[W n,25 ]]> <![CDATA[W n,36 ]]> <![CDATA[W n,14 ]]> <![CDATA[W n,25 ]]> <![CDATA[W n,36 ]]> <![CDATA[W n,15 ]]> <![CDATA[W n,26 ]]> <![CDATA[W n,13 ]]> <![CDATA[W n,24 ]]> <![CDATA[W n,35 ]]> <![CDATA[W n,46 ]]> <![CDATA[W n,16 ]]> <![CDATA[W n,12 ]]> <![CDATA[W n,23 ]]> <![CDATA[W n,34 ]]> <![CDATA[W n,45 ]]> <![CDATA[W n,56 ]]>
[0102] The cache redundancy problem means that if the placement in the above table is used in the proposed system, there will be duplicate files in the cache space that users can access. For example, there are two copies of sub-file W in the cache space accessed by user 1. n,12 , which leads to a decrease in cache utilization. Encoded pre-storage means that the content placed in the placement phase includes not only some sub-files themselves, but also the encoded content of the sub-files. A common encoding method is to store the result of XOR (modulo 2 addition) of two or more sub-files.
[0103] The present invention proposes two coding pre-storage schemes, which are respectively applicable to the situations where the user cache space is small and large. In both schemes, the MAN placement scheme is used as the basis.
[0104] 2.1 The first encoding pre-storage solution
[0105] 2.1.1 Solution
[0106] The first encoding pre-storage scheme is divided into two steps:
[0107] 2.1.1.1 Step 1: If t>2, for each user i, delete the subfile
[0108] W n,{i-2,i,i+1}∪X and W n.{i-2,i-1,i}∪X ,
[0109] Place sub-files
[0110]
[0111] in, If t≤2, this step is skipped.
[0112] Where K is the total number of users; N is the total number of files; M is the size of the user's cache space. The file size is normalized, that is, when M=1, it means that the size of the user's cache space is equal to the size of one file. W n : the nth file, n∈1,2,…,N; W n,T : File W n A subfile of , where T is a set of users, indicating that this subfile will and will only be placed in the cache of all users in T in the MAN scheme; [K]: [K] = {1, 2, ..., K}; t: t = MK / N;
[0113] Where [K] = {1, 2, ..., K}, for any user k, if k ∈ T, then cache subfile W n,T, that is, the subscript of the subfile indicates the user ID that has this subfile cached.
[0114] 2.1.1.2 Step 2: For each user i, delete the subfile
[0115] W n,{i,i+1}∪X and W n,{i-2,i}∪X ,
[0116] Place sub-files
[0117]
[0118] in
[0119] In 2.1.1.1, the sub-files, and then placed subfiles, in 2.1.1.2, deleted sub-files, and then placed sub-files, that is, the final savings The space of the sub-files is equivalent to the system parameters
[0120]
[0121] In the transmission phase, it is also necessary to send a data packet of size information, so the final rate is
[0122]
[0123] Where M'=t' A N / K. Here R GCC (M) is the transmission rate obtained during the service phase.
[0124] Table 2 shows the results of applying the coding pre-storage scheme A to the placement of Table 1. Since t = 2, the first step is not executed. And in the placement phase, it is necessary to send
[0125] Table 2 shows the results of encoding pre-storage scheme A when applied to the placement of Table 1.
[0126]
[0127] 2.1.2 Proof
[0128] The following is a proof that the first encoding pre-storage scheme does not change the sub-files that each user can access.
[0129] 2.1.2.1 In step 2.1.1.1, let
[0130]
[0131] For two users i, i+1, Table 3 shows some of their cached files.
[0132] Table 3 shows some of the files cached by two users.
[0133]
[0134] As long as the user i cache and user i+1 cache The sub-files in the cache are not deleted, and the user can restore the original cached files from it, that is, it only needs to prove that:
[0135]
[0136] Table 4 shows the subscripts of the subfiles contained in these file sets.
[0137] Table 4 shows the subscripts of the subfiles contained in these file sets
[0138]
[0139] The subfile index in must contain i, and The sub-file subscript in must not contain i; The sub-file index in must contain i-1, and The sub-file index in must not contain i-1; The subfile index in must contain i+1, and The sub-file index in must not include i+1; this is proved by the above formula.
[0140] 2.1.2.2 In step 2.1.1.2, let
[0141]
[0142] For three users i-1, i, i+1, Table 5 shows some of their cached files.
[0143] Table 5 shows some files cached by three users
[0144]
[0145] As long as user i-1 has User i in cache and user i+1 cache The sub-file in the cache is not deleted, the user restores the original cached file from it, and the sub-file in the cache of user i-1 Some of the sub-files in The sub-files in are deleted because they overlap, but as long as user i-1 can get It will recover All sub-files in , that is, we only need to prove:
[0146]
[0147] Table 6 shows the subscripts of the subfiles contained in these file sets.
[0148] Table 6 shows the subscripts of the subfiles contained in these file sets
[0149]
[0150] The subfile index in must contain i, and The sub-file subscript in must not contain i; The subfile index in must contain i, and The sub-file subscript in must not contain i; The subfile index in must contain i, and The sub-file subscript in must not contain i; this is proved by the above formula.
[0151] In addition, in this step, some additional information needs to be transmitted to user 1 and user K. User 1 needs And user K needs The information to be sent is
[0152]
[0153] After receiving this information, user 1 decodes Because it is obtained in the cache of user 2 But since user K cannot access
[0154]
[0155] For this part of sub-files, we need to process the sub-files in the information x in order.
[0156]
[0157] Notice Included are The sub-files in the encoded sub-file form are cached in the sub-files at user K. Therefore, when constructing information x, it is necessary to avoid and The sub-files in the file are encoded together to ensure that user K can decode The sub-file in , thereby decoding The required sub-files. Therefore, it is necessary to ensure that the number of sub-files in does not exceed half of that in
[0158]
[0159] Here, 0 < t < K, expanding gives
[0160] K 2 -5K + 2t 2 -2Kt + 12 ≥ 0
[0161] The left side of the above formula reaches its minimum value when K = 5 and t = 2.5. It is verified that the left side is greater than or equal to 0 when 4 ≤ K ≤ 6 and 2 ≤ t ≤ 4, thus proving it.
[0162] In addition, it is also necessary to prove that in the first and second steps, different sub-files are processed, that is
[0163]
[0164] It can be obtained from Table 4 and Table 6 that: the sub-file subscript in must include i - 2, while the sub-file subscript in must not include i - 2; the sub-file subscript in must include i - 2, while the sub-file subscript in must not include i - 1. Thus, the above formula is proved.
[0165] 2.2 The second coding pre-storage scheme
[0166] 2.2.1 Scheme
[0167] In the second coding pre-storage scheme, first divide each file into two equal parts, that is and place them in the user's cache according to the MAN method respectively, and then divide it into two steps:
[0168] 2.2.1.1 The first step, for each user i with an even number and i ≠ K, delete the sub-file
[0169]
[0170] Then place the sub-file
[0171]
[0172] in If K is an even number, delete the subfile in the cache of user K in
[0173] 2.2.1.2 Step 2: For each user i with an odd number and i≠1,K, delete the subfile
[0174]
[0175] Then place the subfile
[0176]
[0177] in For user 1, delete the sub-file in its cache in If K is an odd number, delete the subfile in the cache of user K in
[0178] Step 2.2.1.2 is actually a repetition of the operation in step 2.2.1.1, but the target objects are users with odd numbers and Combined with step 2.2.1.2 and step 2.2.1.1, for each user, delete sub-files (or files with the same size as this many sub-files), and thus obtain the corresponding equivalent system parameters
[0179]
[0180] and the corresponding rate
[0181] R B (M') = R GCC (M),
[0182] Where M'=t' B N / K. Here R GCC (M) is the transmission rate obtained during the service phase.
[0183] Table 7 shows the results when the second encoding pre-storage scheme is applied to the placement of Table 1.
[0184] Table 7 Results of the second encoding pre-storage scheme applied to the placement of Table 1
[0185]
[0186] 2.2.2 Proof
[0187] The following is a proof that the second encoding pre-storage scheme does not change the sub-files that each user can access.
[0188] In step 2.2.1.1, let
[0189]
[0190] Assume i is an even number, then the partial files cached by users i-1, i, i+1 are shown in the following table
[0191] Table 8 Partial files cached by three users in the second encoding pre-storage scheme
[0192]
[0193] Then user i-1 can and the user i cache recover User i directly obtains the cache of users i-1 and i+1. and User i+1 passes and the user i cache recover Therefore, the first step does not change the subfiles that each user can access, and the second step is the first step for even-numbered users and This part of the file is repeated, so the second step will not change the sub-files that each user can access, which is proved.
[0194] Finally, choose the one with the smaller rate from these two solutions, that is,
[0195] R final (M) = min{R A (M),R B (M)}.
[0196] 3. Service stage
[0197] The service phase in the MAN scheme is modified and optimized to make it suitable for the proposed model. All user cooperation sets are classified according to the neighboring relationship of users in the user cooperation set S. When there are no adjacent users in the set, such as S = {1,3,6}, the information generated for the cooperation set is useful to each user in it, so it is still transmitted in the way of the MAN scheme, that is, the generated information And send it to all users in S; when all users in the set have adjacent users, the information generated for the cooperation set is useless to all users in it. Taking S = {1, 2, 3} as an example, the information generated according to the MAN scheme is Since user 1 can directly obtain it from user 2's cache User 2 directly obtains from the cache of User 1 or User 3 User 3 directly obtains from User 2's cache Therefore, this information is completely useless and will not be transmitted. When there are both adjacent users and non-adjacent users in the set, such as S = {1, 2, 5}, the information generated for the cooperation set is useless for the adjacent users (such as user 1 and user 2), but useful for user 5, which has no adjacent users. For this type of cooperation set, the coloring method is used to further find multicast opportunities.
[0198] Each cooperation set S in which there are both adjacent users and non-adjacent users is modeled as a graph A vertex in , each vertex contains three attributes: cooperation set number, target user in the cooperation set (i.e., user not adjacent to other users), non-target user in the cooperation set (i.e., adjacent user in the cooperation set), denoted as The two cooperation sets S are determined by the following merging conditions i ,S j Whether there is a multicast opportunity between the two parties, that is, whether the transmission of information of multiple cooperation sets can be completed in one message:
[0199]
[0200] in Indicates the cache number that user u can access, that is,
[0201]
[0202] In the formula, Represents cooperative set Target users; Represents cooperative set Non-target users;
[0203] represents the empty set;
[0204] This condition ensures that after the merge transmission, the target user of each cooperation set can still extract the sub-files they need from the received information. For every two vertices in the graph, if the cooperation sets they represent do not meet the above merge condition, there is an edge between the two vertices. Figure 2 This is an example when K=5, N=5, and M=2. Each vertex represents a user cooperation set, and the edges between vertices are established according to the above merging conditions.
[0205] After establishing this conflict graph, the greedy restricted coloring method is used to color the vertices in it so that as many indirect connected vertices as possible are colored with the same color, such as Figure 2 The dyeing algorithm is shown in Table 9. Figure 2 The results obtained after staining are also shown.
[0206] Table 9 Coloring algorithm
[0207]
[0208]
[0209] For all vertices with the same color, the information generated is combined and transmitted in the following way: And send it to all target users in all cooperation sets. i A target user k in , because he is a non-target user in other cooperation sets, has all sub-files W in his cache n,S\{k} ,S≠S i , so it still gets the subfile it needs from this information. Taking the red vertex in the above figure as an example, for cooperation set S2, the target user is user 4, and the non-target users are user 1 and user 2. For cooperation set S4, the target user is user 1, and the non-target users are user 3 and user 4. Since the target user of S2 is a non-target user of S4, and the target user of S4 is also a non-target user of S2, the two cooperation sets meet the merging conditions, and the information transmitted after merging is: Since user 4 has Therefore, it still extracts what it needs from this information. Similarly, user 1 also extracts the sub-file he needs.
[0210] Let the chromatic number obtained by coloring be The required transmission rate is
[0211]
[0212] In the formula, user k requests file For each set send Then each user in S gets a sub-file that he needs, because for a specific user s∈S, all W n,S\{k} ,k≠s,n∈[N]; represents the number of colors obtained by the greedy restricted coloring method; It represents the conflict graph obtained in step S22.
[0213] Here is how, after the merge, all users can still recover the files they need from the information they received and the cache they can access:
[0214] Note the merge condition
[0215]
[0216] It consists of two symmetric sub-conditions, which means that if a cooperation set The target user can access the cache and another cooperative set If the intersection of the caches of non-target users in is not empty, and vice versa, the two cooperation sets are merged. That is, the cooperation set The target user in The cache of non-target users in the group can decode the information transmitted after the merger. and one of the users Assumptions Right now is merged into the new cooperation set Σ, then the information it receives is written as:
[0217]
[0218] in is the sub-file required by user k, For cooperation The sub-files required by other target users in are the sub-files required by the target users in other cooperation sets in Σ. According to the merging conditions, these sub-files must be cached in At least one user in
[0219]
[0220] Therefore, user k decodes the sub-file he needs from the information.
[0221] 4. Simulation Results
[0222] The proposed system model is actually equivalent to a MACC system between L=2 and L=3. The difference between the system proposed by the present invention and the MACC system lies in the user heterogeneity caused by the boundary, which results in the redesign of both the placement stage and the service stage. Figure 3The comparison between the rate of the system proposed by the present invention and the rate of the MACC system with L=2 and L=3 is shown, including two placement schemes. It can be seen that the coding pre-storage scheme A performs better when the user cache space is small, but as the user cache space increases, its rate cannot converge to 0 when M=N / 2, while the coding pre-storage scheme B performs better when the user cache space is large, and its rate converges to 0 when M=N / 2.
[0223] Therefore, the present invention adopts the above-mentioned coding caching method based on coding pre-storage in the adjacent user cooperation scenario, and performs corresponding optimization in the two stages of the coding caching system according to the characteristics of the proposed system model, thereby reducing the storage-rate compromise R(M) and obtaining better system performance.
[0224] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that they can still modify or replace the technical solution of the present invention with equivalents, and these modifications or equivalent replacements cannot cause the modified technical solution to deviate from the spirit and scope of the technical solution of the present invention.
Claims
1. A code caching method in a neighboring user cooperation scenario based on code pre-storage, It is characterized in that The following steps are involved: S1. In the placement phase, two coding pre-storage scheme technologies are used to solve the cache redundancy problem, which are respectively suitable for the cases where the user cache space is small and large; The first encoding pre-storage scheme in the placement phase includes: S111, the first step, when t>2, for each user i, delete the subfile W n,{i-2,i,i+1}∪X and W n.{i-2,i-1,i}∪X , Place sub-files in, When t≤2, this step is skipped; Where K is the total number of users; N is the total number of files; M is the size of the user's cache space. The file size is normalized, that is, when M=1, it means that the size of the user's cache space is equal to the size of one file. W n : the nth file, n∈1,2,…,N; W n,T : File W n A subfile of , where T is a set of users, indicating that this subfile will and will only be placed in the cache of all users in T in the MAN scheme; [K]: [K] = {1, 2, ..., K}; t: t = MK / N; Where [K] = {1, 2, ..., K}, for any user k, if k ∈ T, then cache subfile W n,T , that is, the subscript of the subfile indicates the user ID that has this subfile cached; S112, Step 2, for each user i, delete the sub-file W n,{i,i+1}∪X and W n,{i-2,i}∪X , Place sub-files in In step S111, the sub-files, and then placed sub-files, in step S112, delete sub-files, and then placed sub-files, that is, the final savings The space of the sub-files is equivalent to the system parameters In the transmission phase, it is also necessary to send a data packet of size information, so the final rate is Where M' = t' A N / K, here R GCC (M) is the transmission rate obtained during the service phase; The second encoding pre-storage scheme in the placement phase: first, each file is divided into two equal parts, namely And put them into the user's cache in MAN mode, and then divide them into two steps: S121, the first step, for each user i with an even number e And i e ≠K, delete the subfile Then place the subfile in, When K is an even number, delete the subfile in the cache of user K. in S122, Step 2, for each odd-numbered user i o And i o ≠1,K, delete the subfile Then place the subfile in, For user 1, delete the sub-file in its cache in When K is an odd number, delete the subfile in the cache of user K. in Step S122 is a repetition of the operation of step S121, but the target objects are odd-numbered users and This part of the file, combined with step S121 and step S122, is deleted for each user. sub-files, and thus obtain the corresponding equivalent system parameters and the corresponding rate R B (M’)=R GCC (M), Where M' = t' B N / K, here R GCC (M) is the transmission rate obtained during the service phase; When the user cache space is small, the solution consisting of step S111 and step S112 is selected; when the user cache space is large, the solution consisting of step S121 and step S122 is selected; S2. In the service phase, a cooperative set merging method based on greedy restricted coloring is used to solve the problem of reduced transmission efficiency caused by interactions between users; In the service phase, the optimized cooperation set, merging method, and merging condition are used to make them applicable to the model, including the following steps: S21, classifying all user cooperation sets according to the neighboring relationships of users in the user cooperation set S; S22, establishing a conflict graph according to the user set and merging conditions of the user set that has both adjacent users and non-adjacent users in the set; S23, after the conflict graph is established, the vertices therein are colored using the greedy restricted coloring method, so that as many vertices that are not directly connected as possible are colored with the same color, and for all vertices colored with the same color, the information generated by them is merged and transmitted; S24. After the merge, all users can still restore the files they need from the received information and the accessible cache.
2. A code caching method in a neighboring user cooperation scenario based on code pre-storage according to claim 1, It is characterized in that In step S21, the classification is as follows: When there are no neighboring users in the set, the information generated for the cooperation set is useful to each user in it, so it is still transmitted in the way of the MAN scheme; When all users in the set have neighboring users, the information generated for the cooperation set is useless to all users in it and will not be transmitted; When there are both adjacent users and non-adjacent users in the set, the information generated for the cooperation set is useless for the adjacent users, but useful for users without adjacent users. For this type of cooperation set, the coloring method is used to further find multicast opportunities in it.
3. A code caching method in a neighboring user cooperation scenario based on code pre-storage according to claim 2, It is characterized in that In step S22, each cooperation set S in which both adjacent users and non-adjacent users exist is modeled as a graph A vertex in , each vertex contains three attributes: cooperation set number, target user in the cooperation set, that is, users who are not adjacent to other users, non-target users in the cooperation set, that is, adjacent users in the cooperation set, denoted as The two cooperation sets S are determined by the following merging conditions i ,S j Whether there is a multicast opportunity between the two, the merging conditions are: in, Indicates the cache number that user u can access, that is, In the formula, Represents cooperative set Target users; Represents cooperative set Non-target users; represents the empty set; This condition ensures that after the merged transmission, the target user of each cooperation set can still extract the sub-file he needs from the received information; for every two vertices in the graph, if the cooperation sets they represent do not meet the above merge condition, there is an edge between the two vertices. Each vertex represents a user cooperation set, and the edges between the vertices are established according to the above merge condition.
4. The method for caching codes in a neighboring user cooperation scenario based on code pre-storage according to claim 3, It is characterized in that In step S23, after the conflict graph is established, the vertices therein are colored using a greedy restricted coloring method so that as many indirect connected vertices as possible are colored with the same color; For all vertices with the same color, the information generated is combined and transmitted in the following way: And send it to all target users in all cooperation sets. For one cooperation set S i A target user k in , because he is a non-target user in other cooperation sets, has all sub-files W in his cache n,S\{k} ,S≠S i , so it still gets the sub-file it needs from this message; Let the chromatic number obtained by coloring be The required transmission rate is In the formula, user k requests file For each set send Then each user in S gets a sub-file that he needs, because for a specific user s∈S, all W n,S\{k} ,k≠s,n∈[N]; represents the number of colors obtained by the greedy restricted coloring method; It represents the conflict graph obtained in step S22.
5. The method for caching codes in a neighboring user cooperation scenario based on code pre-storage according to claim 2, It is characterized in that In step S24, note that the merging condition It consists of two symmetric sub-conditions, which means that if a cooperation set The target user can access the cache and another cooperative set If the intersection of the caches of non-target users in is not empty, and vice versa, the two cooperation sets are merged, that is, the cooperation set The target user in The cache of non-target users in the group can decode the information transmitted after the merger. and one of the users Assumptions Right now is merged into the new cooperation set Σ, then the information it receives is written as: in is the sub-file required by user k, For cooperation The sub-files required by other target users in are the sub-files required by the target users in other cooperation sets in Σ. According to the merging conditions, these sub-files must be cached in At least one user in Therefore, user k decodes the sub-file he needs from the information.
