Product information tracing system and method based on IPv6 virtual connection
By assigning the world's only IPv6 address to the product and building virtual communication objects, the problems of high construction costs and complex management of product information traceability systems in the existing technology are solved, efficient product information traceability is achieved, and system construction and management costs are reduced.
Patent Information
- Application Number
- CN202010864167.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-25
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2040-08-25
AI Technical Summary
When building a product information traceability system, the existing technology needs to build a multi-level identification resolution system, resulting in high construction costs and complex management and maintenance, and it is impossible to efficiently trace the massive product information.
Using the IPv6 virtual connection method, each product is assigned a world-unique IPv6 address as the product identity identifier. A virtual communication object is built within the enterprise through the IPv6 address and registered it in the router routing table, so that users can directly pass through The IPv6 address finds the server that stores product information, thereby realizing the traceability of product information.
It reduces the construction cost of product information traceability system and improves efficiency. Users do not need to care whether the IPv6 address corresponds to the real device, and there is no need to build an additional IPv6 resolution system. The management is completed by the manufacturing company itself, simplifying the management complexity.
Smart Images

Figure CN112036909B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information tracing, and in particular to a product information tracing system and method based on IPv6 virtual connection. Background Art
[0002] At present, the mainstream identification technologies used in the field of information traceability include OID (Object Identifiers), Handle parsing system, and Ecode (Entity Code) independently developed by my country. The product identification code obtained using a universal global identification technology is generally composed of multiple sub-codes, such as "product industry code + product manufacturer code + product type code + product batch code...". Product manufacturing companies use identification codes to identify raw materials, semi-finished products, and products during the production process, and store their related information in the server of the product production or sales company. When users need to trace and query product information, they can query product related information in the corresponding server of the company based on the identification code. However, due to the wide variety of products and the huge number of product manufacturers, industry regulatory authorities cannot build a single product information traceability system based on identification technology.
[0003] At present, the competent authorities adopt the method of building a multi-level identification resolution system to cope with the massive product object traceability needs, that is, through the identification code multi-level addressing of each level of resolution server, finally find the server storing product information to obtain the final product information, the whole process is similar to the IP network DNS (Domain Name Resolution System) resolution process. However, the construction of a multi-level identification resolution system requires a lot of funds, and the subsequent management and maintenance also require a lot of manpower and material resources. If it is possible to design a method that can directly find the server storing product information and obtain product information from it based on the communication object routing and addressing technology of the existing IP network without building an additional resolution system, it will greatly reduce the construction cost of the product information traceability system and improve efficiency. Summary of the invention
[0004] In view of the above problems, a product information tracing system and method based on IPv6 virtual connection is designed. The scheme can directly find the server storing product information through the product identity ID and obtain product information from it. First, the enterprise assigns a globally unique IPv6 address as the product's IPv6 virtual address (Virtual IPv6 Address as Product ID, VIAaPID) to each product produced when the product leaves the factory; secondly, the enterprise stores the product information in the product information server maintained by the enterprise with VIAaPID as the identifier, and constructs the corresponding VIAaPID virtual communication object for each product leaving the factory. Furthermore, the product information VIAaPID virtual communication object management server maintained by the enterprise manages the product VIAaPID virtual communication object, and registers the product VIAaPID (IPv6 address) in the enterprise router routing table, so that all packets with the target address of VIAaPID can reach the product information VIAaPID virtual communication object management server. Finally, when the user needs to obtain the product production information after the product is sold, he can directly find the VIAaPID virtual communication object through the VIAaPID of the product and access the relevant data, thereby realizing the traceability of product information.
[0005] The technical solution provided by the present invention specifically includes:
[0006] In a first aspect of the present invention, the present invention provides a product information tracing system based on IPv6 virtual connection, the system comprising at least an address allocation module, a first server and a second server;
[0007] The address allocation module allocates a globally unique IPv6 address to the product as the product identity and stores it in the product information database;
[0008] The first server constructs a virtual communication object corresponding to each product according to the IPv6 address, and registers the identity of the product in the virtual communication object into the routing table of the router, so that all data packets in the router whose target address is the IPv6 address of the product can reach the first server; the second server communicates with the Internet through the router;
[0009] The second server calls the basic information of the product and the identity of the product stored in the product information database; the second server communicates with the first server through the virtual communication object.
[0010] Furthermore, the system also includes a querying user, the querying user inputs the IPv6 address of the product, and sends a request for product information data packet based on the TCP / IP application layer to the target address of the IPv6 address of the product through the Internet. The router forwards the request for product information data packet to the first server. The virtual communication object in the first server parses the data packet and reads the corresponding basic information of the product from the second server, and returns the basic information of the product to the querying user.
[0011] In a second aspect of the present invention, the present invention further provides a product information tracing method based on IPv6 virtual connection, the method comprising the following steps:
[0012] Assign a globally unique IPv6 address to each product;
[0013] Using the IPv6 address as the product identity, storing the product identity and basic product information in the second server;
[0014] According to the IPv6 address of the product, the product is mapped into a virtual communication object;
[0015] The first server manages the virtual communication objects of each product and registers the IPv6 addresses of the products into the router routing table;
[0016] The virtual communication object in the first server parses the data packet sent from the router to request product information;
[0017] The basic information of the corresponding product is read from the second server, and the basic information of the product is returned to the first server and uploaded to the Internet through the router.
[0018] Furthermore, allocating a globally unique IPv6 address to each product includes applying for an IPv6 address block and selecting some continuous IPv6 addresses therefrom as product identification; and allocating a unique IPv6 address to each product in a static allocation manner.
[0019] Furthermore, storing the product identity and basic product information in the second server includes connecting a product information database to an interface of the second server, and storing the product identity and basic product information in the product information database.
[0020] Furthermore, registering the IPv6 address of the product into the router routing table includes registering the identity of the product in the virtual communication object into the router routing table, so that all data packets in the router whose target address is the globally unique IPv6 address can reach the first server.
[0021] Furthermore, the virtual communication object in the first server parses the data packet sent from the router to request product information, including querying the user to send a request to the Internet to obtain product information through a known IPv6 address on the product. After receiving the request to obtain the product data packet, the router forwards it to the first server. The virtual communication object in the first server parses the data packet and forwards the parsed result to the second server.
[0022] Beneficial effects of the present invention:
[0023] The present invention can accurately locate the product by assigning a globally unique IPv6 address to the product. Based on the existing IP network communication, without building an additional resolution system, the server storing product information can be directly found and the product information can be obtained from it, which will greatly reduce the construction cost of the product information tracing system and improve efficiency. During the entire product information tracing process, the user does not care whether the IPv6 address corresponds to a real communication device, nor does it need to build an additional IPv6 resolution system. The management of IPv6 is completed by the manufacturing enterprise through the first server. The present invention uses an IPv6 address with a broad address space as the product identifier, and creates a virtual communication object on the first server to facilitate point-to-point communication between the user and the server where the product information is located. The present invention constructs a corresponding virtual communication object from the virtual IPv6 address of the product, and can replace the direct management of the product by managing the virtual communication object; it has a positive effect on product information tracing. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 This is an architecture diagram of a product information tracing system based on IPv6 virtual connection according to an embodiment of the present invention;
[0025] Figure 2 This is a flow chart of a product information tracing method based on IPv6 virtual connection in an embodiment of the present invention;
[0026] Figure 3 A schematic diagram of allocating IPv6 addresses to products in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] Figure 1 This is a framework diagram of a product information traceability system based on IPv6 virtual connection. Figure 1 As shown, the system at least includes an address allocation module, a first server (product information VIAaPID virtual communication object management server) and a second server (product information server);
[0029] The address allocation module allocates a globally unique IPv6 address to the product as the product's identity and stores it in the database of the product information server;
[0030] The first server constructs a virtual communication object corresponding to each product according to the IPv6 address, and registers the product identity in the virtual communication object into the routing table of the router, so that all data packets in the router whose target address is the globally unique IPv6 address can reach the first server; the second server communicates with the Internet through the router;
[0031] The second server calls the basic information of the product and the identity of the product stored in the database of the product information server; the second server communicates with the first server through the virtual communication object.
[0032] In the actual scenario, the traceability system includes the following roles:
[0033] Products: For products produced by enterprise product manufacturers, users can find the corresponding IPv6 address on the product, and thus trace the product information using a product information traceability system based on IPv6 virtual connection.
[0034] Query user: the initiator of tracing product information.
[0035] Address allocation module: allocates a globally unique IPv6 address to the product.
[0036] Router: A device that connects the local area networks and wide area networks on the Internet. This router can connect to the intranet of the product manufacturing company.
[0037] First server: A server maintained by the enterprise product manufacturer, responsible for managing the product's virtual communication objects and registering the product's IPv6 address in the enterprise router routing table.
[0038] Virtual communication object: A virtual device that can be found through an IPv6 address.
[0039] Second server: A server maintained by the enterprise product manufacturer for storing product-related information.
[0040] Since IPv6 has a huge address space, it effectively solves the problem of limited address space that hinders the development of the Internet of Things. The innovation of the present invention is to use IPv6 addresses instead of traditional identification codes to assign a globally unique IPv6 address to each product produced. This address is only used for product identification and information tracing. If the product is a real networked device, the IP address is configured by the user when using it. For example, if the product is a computer with a MAC address, the MAC address can be directly used for configuration.
[0041] Product manufacturing companies use IPv6 addresses as product identification to manage the product production process, and store product-related information in the second server within the company, namely the product information server. At the same time, the company establishes a first server in the intranet, builds a corresponding IPv6 address virtual communication object for each factory product, and the first server registers the product VIAaPID (IPv6 address) in the routing table of the enterprise router, so that all packets with the destination address of the router as VIAaPID can reach the first server.
[0042] After the querying user obtains the IPv6 address from the product, the user can directly send a TCP / IP application layer-based request to obtain product information command packets to the target address of the IPv6 address through the Internet, such as an HTTP get request command. When the request command IP packet reaches the first server through the enterprise router, the virtual communication object in the server will parse the command and read the corresponding product information from the product information server, and finally return it to the information querying user using a method such as the HTTP post protocol.
[0043] During the entire product information traceability process, users do not care whether the IPv6 address corresponds to a real communication device, nor do they need to build an additional IPv6 address resolution system. The management of IPv6 addresses is completed by the manufacturing company itself, reducing management complexity.
[0044] Figure 2 It is a product information tracing method based on IPv6 virtual connection, such as Figure 2 As shown, the method comprises the following steps:
[0045] 101. Assign a globally unique IPv6 address to each product;
[0046] Among them, product manufacturers can apply for a large number of global IPv6 addresses for the enterprise from the IPv6 address management organization, among which a batch of addresses are reserved as the IPv6 addresses of products; a globally unique IPv6 address can be allocated to each product when the product leaves the factory. Product manufacturers can apply for an IPv6 address block and select some continuous IPv6 addresses from it as the identity of the product; a unique IPv6 address is allocated to each product in a static manner.
[0047] like Figure 3 As shown, for example, the product manufacturer applies to the IPv6 address management organization for the IPv6 address block 2001:DA8:D021:: / 48 for the enterprise, in which the address of the first server is 2001:DA8:D021::2; a part of these IPv6 addresses 2001:DA8:D021:1000:2834:3D02:: / 96 is used as the virtual address of the product; that is, the range reserved as the product VIAaPID (IPv6 virtual address) is 2001:DA8:D021:1000:2834:3D02:: / 96.
[0048] An IPv6 address is allocated to each product in a static and sequential manner. For example, the IPv6 address of product 1 is 2001:DA8:D021:1000:2834:3D02::1, the IPv6 address of product 2 is 2001:DA8:D021:1000:2834:3D02::2, and so on.
[0049] In the above embodiment, static sequential allocation refers to allocating IPv6 addresses to each product starting with the first address in the unallocated product IPv6 address range, such as 2001:DA8:D021:1000:2834:3D02::1. After the product manufacturer allocates IPv6 addresses to each product in this batch of products, it affixes IPv6 address identification, such as a QR code label, to the product. At the same time, the enterprise manufacturer generates a product virtual address allocation table and records the allocated IPv6 address range of this batch of products.
[0050] In a preferred embodiment, when the second batch of products is shipped, IPv6 addresses are allocated to the second batch of products in order, starting from the first IPv6 address after the previous batch of records. The product manufacturer can specify the use period of each batch of products. For example, if the product use period is 5 years, the manufacturer reserves 2 years, and after 7 years, the enterprise can cyclically allocate IPv6 addresses for the products, that is, the previously used addresses can be reallocated to new products in batches.
[0051] In the above embodiment, IPv6 adopts a sequential allocation method so that the IPv6 addresses of each batch of products are continuous, which is conducive to the recovery of product IPv6 addresses and can effectively save address costs and management costs.
[0052] 102. Using the IPv6 address as the product identity, storing the product identity and basic product information in a second server;
[0053] In this embodiment, after the enterprise product manufacturer assigns IPv6 addresses to products, the relevant information and data of this batch of products are entered and stored in the second server using the IPv6 addresses as identification. The interface of the second server is connected to a product information database, and the identification of the product and the basic information of the product are stored in a certain storage method. On the other hand, the second server can also store the destination address and next hop address of the above IPv6 address.
[0054] The storage methods may include DAS (Direct Attached Storage), SCSI (Small Computer System Interface) and SAS (Serial Attached SCSI) storage.
[0055] In the data entry method of this embodiment, the product manufacturer can establish table headers for different products in the second server according to the different attribute information of different products. When writing product information to the second server, the table corresponding to the product is selected, and the attributes corresponding to the table header are manually entered in sequence. When it is necessary to enter fixed information such as product production batch number, parameter introduction, etc., the product manufacturer can make a specific form of QR code as a carrier of fixed information, and read and enter it by scanning the QR code, thereby realizing efficient entry of product information.
[0056] 103. Map the product to a virtual communication object according to the IPv6 address of the product;
[0057] The first server constructs a corresponding virtual communication object for each shipped product of this batch according to the product virtual address allocation table, and generates a relationship table between the virtual communication objects and the IPv6 addresses of the products.
[0058] 104. The first server manages the virtual communication object of each product and registers the IPv6 address of the product into the router routing table;
[0059] Among them, the first server registers this batch of product VIAaPID (IPv6 address) into the enterprise router routing table. For example, the next hop address of each product IPv6 address in the routing table is the IPv6 address of the first server of product information, that is, 2001:DA8:D021::2. Therefore, all packets of the router with the target address of the product VIAaPID can reach the first server.
[0060] 105. The virtual communication object in the first server parses the data packet sent from the router to request product information;
[0061] 106. Read the basic information of the corresponding product from the second server, return the basic information of the product to the first server, and upload it to the Internet through the router.
[0062] After the user obtains the product at the address 2001:DA8:D021:1000:2834:3D02::1, the user can directly send a resource request packet to the destination address 2001:DA8:D021:1000:2834:3D02::1 through the Internet based on the application layer transmission protocol, such as the HTTP protocol. The resource request packet is transmitted through Figure 3 After the enterprise router reaches the first server, the virtual communication object in the first server parses the resource request packet, obtains the request command, retrieves the product information requested by the command through the second server, and finally returns it to the information query user using a method such as the HTTP post protocol, thereby completing the tracing of product information.
[0063] In the data storage and retrieval method of this embodiment, the product manufacturer enters the product information with the same attribute information into the same table with the IPv6 virtual address as the primary key, and stores the table in the second server, such as importing the table into a database management tool similar to Navicate or MySQL. When the first server calls the product information corresponding to the IPv6 address from the second server according to the IPv6 address, the second server can call the storage process in the server, such as the MySQL process, to obtain the information object with the primary key of the IPv6 address in the database corresponding to the IPv6 address. The second server reads the attribute information in the product information object and encapsulates it into a data packet and returns it to the first server.
[0064] The following is a further explanation of the traceability system and method of the present invention in conjunction with a practical example. Assuming that the above-mentioned product manufacturer is a mobile phone manufacturer, we know that a mobile phone is composed of a shell, a liquid crystal display (LCD), a battery, a vibration, a speaker, a tail plug, a motherboard, front and rear cameras, a microphone, a handset, etc. The mobile phone manufacturer has manufactured other components of the mobile phone except the LCD. Now it is necessary to purchase LCDs to complete the assembly of the mobile phone, and LCDs need to be purchased from upstream LCD manufacturers. Now the mobile phone manufacturer has purchased a batch of LCDs from the LCD manufacturer. If the mobile phone manufacturer needs to trace the information of LCDs, it can obtain the VIAaPID of the product from the purchased LCD product, thereby tracing back to the detailed information of the product, such as the model, origin, screen size, resolution, interface type, etc. of the LCD.
[0065] The tracing process can be as follows: the mobile phone manufacturer, as a user role in the tracing system, sends a resource request packet to the first server of LCD information maintained by the LCD manufacturer through the Internet application layer transmission protocol. The virtual communication object in the first server parses the resource request packet, obtains the request command, and retrieves the LCD detailed information requested by the command through the second server maintained by the LCD manufacturer. Finally, it is returned to the mobile phone manufacturer using a method such as the HTTP post protocol.
[0066] Now that the mobile phone manufacturer has all the components of the mobile phone and has completed the assembly of the mobile phone, the mobile phone manufacturer needs to ship each mobile phone out of the factory. The mobile phone shipping process is as follows: First, the mobile phone manufacturer assigns a globally unique VIAaPID (IPv6 address) to each mobile phone; secondly, the mobile phone manufacturer stores the mobile phone information, such as the overall attributes of the mobile phone, the components of the mobile phone, and the detailed information of the mobile phone components, in a second server maintained by the mobile phone manufacturer, wherein the LCD information in the mobile phone component contains an IPv6 address link that can query the detailed information of the LCD; further, the mobile phone manufacturer constructs a virtual communication object for the mobile phone in the first server; finally, the first server registers the mobile phone VIAaPID (IPv6 address) in the routing table of the mobile phone manufacturer's enterprise router, so that all data packets whose target address is the above IPv6 address can reach the first server.
[0067] After the mobile phone is sold, the user can configure the network card by himself to obtain the IP address required for the mobile phone to connect to the Internet. This IP address is not related to the VIAaPID of information tracing. When the user needs to trace the production information of the mobile phone, the IPv6 address of the mobile phone can be obtained on the mobile phone packaging, such as using a QR code label. By scanning the QR code, the detailed information of the mobile phone can be traced. If the user wants to know the detailed information of the mobile phone LCD, he can click the IPv6 address of the LCD in the mobile phone component column in the detailed information of the traced mobile phone, so as to query the detailed information of the LCD of the mobile phone and complete the information tracing of the mobile phone components, thereby realizing the information tracing of the mobile phone.
[0068] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. The product information tracing system based on IPv6 virtual connection is characterized by: The system at least includes an address allocation module, a first server, a second server and a query user; The address allocation module allocates a globally unique IPv6 address to the product as the product's identity, generates an allocation table of products and IPv6 addresses, and stores it in a product information database; allocates an IPv6 address to each product in a static sequential allocation manner, allocates an IPv6 address to each product in the first batch of products using the first address in the unallocated product IPv6 address range, and when the first batch of products leaves the factory, allocates an IPv6 address to each product in the second batch in sequence starting with the first IPv6 address after the IPv6 address range of the first batch of products; The first server constructs a virtual communication object corresponding to each product according to the IPv6 address, generates a relationship table between the virtual communication object and the IPv6 address, and registers the identity of the product in the virtual communication object into the routing table of the router, so that all data packets in the router whose target address is the IPv6 address of the product can reach the first server; The first server communicates with the Internet via a router; The second server calls the basic information of the product and the identity of the product stored in the product information database; The second server communicates with the first server via the virtual communication object; The query user inputs the IPv6 address of the product, and sends a data packet based on the TCP / IP application layer to the target address of the IPv6 address of the product through the Internet. The router forwards the data packet to the first server. The virtual communication object in the first server parses the data packet and reads the basic information of the corresponding product from the second server, and returns the basic information of the product to the query user. The querying user and the product perform point-to-point communication via the virtual communication object.
2. A product information tracing method based on IPv6 virtual connection, used to implement the product information tracing system based on IPv6 virtual connection as claimed in claim 1, characterized in that: The method comprises the following steps: Assign a globally unique IPv6 address to each product; Using the IPv6 address as the product identity, storing the product identity and basic product information in the second server; According to the IPv6 address of the product, the product is mapped into a virtual communication object; The first server manages the virtual communication objects of each product and registers the IPv6 addresses of the products into the router routing table; The virtual communication object in the first server parses the data packet sent from the router to request product information; The basic information of the corresponding product is read from the second server, and the basic information of the product is returned to the first server and uploaded to the Internet through the router.
3. The product information tracing method based on IPv6 virtual connection according to claim 2 is characterized in that: The method of allocating a globally unique IPv6 address to each product includes applying for an IPv6 address block and selecting some continuous IPv6 addresses from the block as product identification; and allocating a unique IPv6 address to each product in a static allocation manner.
4. The product information tracing method based on IPv6 virtual connection according to claim 2 is characterized in that: The storing of the product identification and basic information of the product in the second server includes connecting a product information database to the interface of the second server, storing the product identification and basic information of the product in the product information database, and the storage method includes direct storage, small computer system interface and serial connection SCSI.
5. The product information tracing method based on IPv6 virtual connection according to claim 2, characterized in that: The virtual communication object is a virtual device found through the IPv6 address of the product.
6. The product information tracing method based on IPv6 virtual connection according to claim 2, characterized in that: Registering the IPv6 address of the product into the router routing table includes registering the identity of the product in the virtual communication object into the router routing table, so that all data packets in the router whose target address is the globally unique IPv6 address can reach the first server.
7. The product information tracing method based on IPv6 virtual connection according to claim 2, characterized in that: The virtual communication object in the first server parses the data packet sent from the router requesting product information, including querying the user to send a request to the Internet to obtain product information through the known IPv6 address on the product. After the router receives the request to obtain the product data packet, it forwards it to the first server. The virtual communication object in the first server parses the data packet. The first server communicates with the second server according to the parsed content, obtains the product information and forwards the result to the second server.
Citation Information
Patent Citations
Dispatching method and server
CN103905526A
Internet of Things anti-fake tracing system and method based on IPv6 cloud computing
CN103944936A
Message processing method and device, communication equipment and computer readable storage medium
CN109150684A