# A Hybrid SWIM Data Naming Scheme Based on TLC Structure
## 3 Naming Scheme of SWIM Data
### Mixed Structure Naming Based on TLC  
The TLC structure can be divided into multiple categories as needed, but when the number of TLC reaches a certain value, the named query rate will be affected [39]. In response to this problem, the TLC structure is further processed, and the \"hierarchical -flat-attribute\" mixed structure naming method is adopted to make up for the shortcomings of each naming method by taking advantage of each naming method [40]. Store each part separately with different information and arrange them in an orderly manner to form a broad naming format. For the convenience of the following text, the hybrid naming mechanism is divided into three parts: (1) hierarchical components; (2) flat components; (3) attribute components. Each formed component will carry different information, and the different combinations of the three parts have resulted in six alternative naming formats. The mixed naming structure is shown in Figure 4[41; 42].  
These six naming methods contain almost all possible alternatives and can also maximize the compatibility of naming. Any naming method can be converted into a single naming method for processing.  
Considering the scalability of the system, to reduce the size of the routing table, the naming method needs to have a certain degree of aggregation. Since the superiority of hierarchical naming in terms of aggregation is great, the hierarchical naming method is used in the first place. The naming style of \"hierarchy-based\" is shown in Figure 5[41; 42].  
Figure 3: The format of digest type-length-content (TLC).  
Flat naming can realize the name self-authentication through the self-authentication hash value to uniquely represent the content name. The same hierarchical component can uniquely determine the content through the planarization component. After layering the components, a limited-length component is needed to determine the resource name in the smallest range. Therefore, the planarized component is placed behind the layered component. The flattening component is implemented through an encrypted hash algorithm, which can fix the name characters of infinite length to a limited string. Therefore, together with the hierarchical components, the content of the resource is uniquely identified, and the two processing forms are combined to maximize the advantages and value of our naming scheme.  
When performing the longest prefix matching, it is impossible to match a unique structure from the given content, cause of different resources, the name prefix may contain different attribute information, such as sending time, publishing location, content format size, etc. This requires the participation of attributed components, matching content names with the same prefix to determine the desired information. In this process, the role of the attributed component is to further clarify the specific attribute mark of the content name, and further provide users with customized needs.  
Figure 6 gives an example of the naming of \"hierarchical-flat-attribute\" based on the TLC structure [41; 42]. For example: \"Organization TLC-Sort TLC-Subsort TLC[sfdhgk46u6 gfhbigh&|Weather avi 2048p\" is a hybrid naming of \"hierarchical-flat-attribute-based\" based on the TLC structure. Among them, \"|\" is used to separate the components, \"Organizational TLC-sortTLC-subsort TLC\" is the hierarchical component, \"sfdhgk46u6 gfhbigh&\" is the flat component, \"Weather avi 2048p\" is the attribute component.  
Figure 4: Mixed naming structure combination.  
Figure 5: “Hierarchical component-based” hybrid naming structure.