CN113163028B - Service data transmission method, device and system - Google Patents

Service data transmission method, device and system Download PDF

Info

Publication number
CN113163028B
CN113163028B CN202110478221.XA CN202110478221A CN113163028B CN 113163028 B CN113163028 B CN 113163028B CN 202110478221 A CN202110478221 A CN 202110478221A CN 113163028 B CN113163028 B CN 113163028B
Authority
CN
China
Prior art keywords
equipment
ipv6 address
identification information
service data
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110478221.XA
Other languages
Chinese (zh)
Other versions
CN113163028A (en
Inventor
白巍
陆阳
陶锋
温亚明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Electric Power Research Institute of State Grid Chongqing Electric Power Co Ltd
State Grid Corp of China SGCC
State Grid Chongqing Electric Power Co Ltd
Global Energy Interconnection Research Institute
State Grid Jibei Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Jibei Electric Power Co Ltd
Original Assignee
Electric Power Research Institute of State Grid Chongqing Electric Power Co Ltd
State Grid Corp of China SGCC
State Grid Chongqing Electric Power Co Ltd
Global Energy Interconnection Research Institute
State Grid Jibei Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Jibei Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Electric Power Research Institute of State Grid Chongqing Electric Power Co Ltd, State Grid Corp of China SGCC, State Grid Chongqing Electric Power Co Ltd, Global Energy Interconnection Research Institute, State Grid Jibei Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Jibei Electric Power Co Ltd filed Critical Electric Power Research Institute of State Grid Chongqing Electric Power Co Ltd
Priority to CN202110478221.XA priority Critical patent/CN113163028B/en
Publication of CN113163028A publication Critical patent/CN113163028A/en
Application granted granted Critical
Publication of CN113163028B publication Critical patent/CN113163028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2592Translation of Internet protocol [IP] addresses using tunnelling or encapsulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/659Internet protocol version 6 [IPv6] addresses
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Abstract

The embodiment of the invention provides a method, a device and a system for transmitting service data, wherein the method for transmitting the service data comprises the following steps: acquiring a first IPv6 address corresponding to first equipment, a second IPv6 address corresponding to second equipment and service data to be transmitted; packaging service data to be transmitted based on the first IPv6 address; removing the equipment identification information of the application layer in the packaged data packet to obtain an updated data packet; and sending the updated data packet to the second equipment based on the second IPv6 address. Therefore, the equipment identification information of the source equipment is arranged in the corresponding IPv6 address, so that the equipment identification information in an application layer packaging format can be removed when the application layer is packaged in the service data network communication process, the size of a data packet is reduced, the occupation optimization of transmission resources in the power internet of things is realized, and the service transmission efficiency of the power internet of things is improved.

Description

Service data transmission method, device and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for transmitting service data.
Background
The identification of the internet of things is a basic supporting technology for realizing accurate interaction between objects. With the promotion of the construction of the electric power internet of things, the number of various terminal devices accessed to the network is increased sharply, and the types are complex and various. The existing power equipment identification systems are various in types and poor in compatibility, and in the process of power service data transmission, a data packet encapsulated by an application layer also needs to depend on identification information of source equipment. With the access of massive terminal equipment of the power internet of things, the identification information data volume of various equipment is huge in the service data transmission process, so that huge operation and maintenance cost and resource occupation are caused, and the transmission efficiency of service data is influenced.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, and a system for transmitting service data, so as to overcome the problem in the prior art that transmission resources are occupied and transmission efficiency is affected because related information of a device identifier needs to be transmitted in a service data transmission process.
The embodiment of the invention provides a service data transmission method, which is applied to first equipment and comprises the following steps:
acquiring a first IPv6 address corresponding to first equipment, a second IPv6 address corresponding to second equipment and service data to be transmitted, wherein the first IPv6 address has content representing equipment identification information of the first equipment;
packaging the service data to be transmitted based on the first IPv6 address;
removing the equipment identification information of the application layer in the packaged data packet to obtain an updated data packet;
and sending the updated data packet to the second equipment based on the second IPv6 address.
Optionally, the obtaining the first IPv6 address corresponding to the first device includes:
acquiring an original IPV6 address and equipment identification information of the first equipment, wherein the equipment identification information at least comprises affiliated mechanism information, service information, equipment category information and equipment attribute information;
converting the equipment identification information into a corresponding IPV6 identification code according to a preset coding specification;
adding the IPV6 identification code to the original IPV6 address to obtain the first IPV6 address.
Optionally, the converting the device identification information into a corresponding IPV6 identification code according to a preset encoding specification includes:
respectively converting the affiliated mechanism information, the service information, the equipment category information and the equipment attribute information into corresponding binary codes;
and converting the binary code into an IPV6 identification code with a preset digit number by using a preset hash function.
Optionally, the adding the IPV6 identification code to the original IPV6 address includes:
adding the IPV6 identification code to an interface identification field of the original IPV6 address.
The embodiment of the invention also provides a service data transmission method which is applied to second equipment, and the method comprises the following steps:
receiving a data packet which is sent by first equipment and contains service data to be transmitted, wherein the application layer of the data packet does not contain equipment identification information;
analyzing the data packet to obtain the service data to be transmitted and a first IPv6 address corresponding to the first equipment, wherein the first IPv6 address has content representing equipment identification information of the first equipment;
and analyzing the first IPv6 address to obtain equipment identification information corresponding to the first equipment.
The embodiment of the invention also provides a service data transmission device, which is applied to the first equipment, and the device comprises:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a first IPv6 address corresponding to first equipment, a second IPv6 address corresponding to second equipment and service data to be transmitted, and the first IPv6 address has content representing equipment identification information of the first equipment;
the first processing module is used for packaging the service data to be transmitted based on the first IPv6 address;
the second processing module is used for eliminating the equipment identification information of the application layer in the packaged data packet to obtain an updated data packet;
and the third processing module is used for sending the updated data packet to the second equipment based on the second IPv6 address.
The embodiment of the invention also provides a service data transmission device, which is applied to the first equipment, and the device comprises:
the device comprises a first receiving module, a second receiving module and a sending module, wherein the first receiving module is used for receiving a data packet which is sent by first equipment and contains service data to be transmitted, and an application layer of the data packet does not contain equipment identification information;
the fourth processing module is configured to parse the data packet to obtain the to-be-transmitted service data and a first IPv6 address corresponding to the first device, where the first IPv6 address includes content that represents device identification information of the first device;
and the fifth processing module is configured to analyze the first IPv6 address to obtain device identifier information corresponding to the first device.
The embodiment of the present invention further provides a service data transmission system, including: a first device and a second device, wherein,
the first device is used for acquiring a first IPv6 address corresponding to the first device, a second IPv6 address corresponding to the second device and service data to be transmitted, wherein the first IPv6 address has content representing device identification information of the first device; packaging the service data to be transmitted based on the first IPv6 address; removing the equipment identification information of the application layer in the packaged data packet to obtain an updated data packet; sending an updated data packet to the second device based on the second IPv6 address;
the second device is used for receiving a data packet which is sent by the first device and contains service data to be transmitted, and an application layer of the data packet does not contain device identification information; analyzing the data packet to obtain the service data to be transmitted and a first IPv6 address corresponding to the first equipment, wherein the first IPv6 address has content representing equipment identification information of the first equipment; and analyzing the first IPv6 address to obtain equipment identification information corresponding to the first equipment.
An embodiment of the present invention further provides an electronic device, including: the device comprises a memory and a processor, wherein the memory and the processor are connected with each other in a communication mode, the memory stores computer instructions, and the processor executes the computer instructions so as to execute the method provided by the embodiment of the invention.
The embodiment of the invention also provides a computer-readable storage medium, which stores computer instructions for enabling a computer to execute the method provided by the embodiment of the invention.
The technical scheme of the invention has the following advantages:
1. the embodiment of the invention provides a service data transmission method and a device, which are applied to first equipment, wherein the method comprises the following steps: acquiring a first IPv6 address corresponding to first equipment, a second IPv6 address corresponding to second equipment and service data to be transmitted, wherein the first IPv6 address has content representing equipment identification information of the first equipment; packaging the service data to be transmitted based on the first IPv6 address; removing the equipment identification information of the application layer in the packaged data packet to obtain an updated data packet; and sending the updated data packet to the second equipment based on the second IPv6 address. Therefore, the equipment identification information of the source equipment is arranged in the corresponding IPv6 address, so that the equipment identification information in an application layer packaging format can be removed when the application layer is packaged in the service data network communication process, the size of a data packet is reduced, the occupation optimization of transmission resources in the power internet of things is realized, and the service transmission efficiency of the power internet of things is improved.
2. The embodiment of the invention provides a service data transmission method and a device, which are applied to second equipment, wherein the method comprises the following steps: receiving a data packet which is sent by first equipment and contains service data to be transmitted, wherein the application layer of the data packet does not contain equipment identification information; analyzing the data packet to obtain service data to be transmitted and a first IPv6 address corresponding to the first equipment, wherein the first IPv6 address has content representing equipment identification information of the first equipment; and analyzing the first IPv6 address to obtain equipment identification information corresponding to the first equipment. Therefore, the equipment identification information of the source equipment is arranged in the corresponding IPv6 address, after the service data reaches the target equipment, the target equipment can obtain the equipment identification information of the source equipment in a mode of analyzing the IPv6 address so as to support the completion of the service, and the optimization of communication service bearing is realized, so that the optimization of the occupation of transmission resources in the power internet of things and the efficient support of the service of the power internet of things are realized under the condition of not influencing the service transmission performance, and the service transmission efficiency of the power internet of things is improved.
3. The embodiment of the invention provides a service data transmission system, which comprises: the device comprises first equipment and second equipment, wherein the first equipment is used for acquiring a first IPv6 address corresponding to the first equipment, a second IPv6 address corresponding to the second equipment and service data to be transmitted, and the first IPv6 address has content representing equipment identification information of the first equipment; packaging the service data to be transmitted based on the first IPv6 address; removing the equipment identification information of the application layer in the packaged data packet to obtain an updated data packet; sending the updated data packet to the second device based on the second IPv6 address; the second device is used for receiving a data packet which is sent by the first device and contains service data to be transmitted, and an application layer of the data packet does not contain device identification information; analyzing the data packet to obtain service data to be transmitted and a first IPv6 address corresponding to the first equipment, wherein the first IPv6 address has content representing equipment identification information of the first equipment; and analyzing the first IPv6 address to obtain equipment identification information corresponding to the first equipment. Therefore, the equipment identification information of the source equipment is arranged in the corresponding IPv6 address, so that the equipment identification information in the application layer packaging format can be removed when the service data network is packaged in the application layer in the communication process, the size of a data packet is reduced, and the optimization of the occupation of transmission resources in the power Internet of things is realized. And after the service data reaches the destination device, the destination device can obtain the device identification information of the source device by analyzing the IPv6 address so as to support the completion of the service and realize the optimization of the communication service bearing, thereby realizing the optimization of the transmission resource occupation in the power internet of things and the efficient support of the service of the power internet of things under the condition of not influencing the service transmission performance and improving the service transmission efficiency of the power internet of things.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of a service data transmission system in an embodiment of the present invention;
fig. 2 is a schematic diagram of service data transmission interaction in an embodiment of the present invention;
fig. 3 is a schematic comparison of a header of a service data transmission data packet according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a service data transmission apparatus according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of a service data transmission apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The technical features mentioned in the different embodiments of the invention described below can be combined with each other as long as they do not conflict with each other.
The identification of the internet of things is a basic supporting technology for realizing accurate interaction between objects. With the promotion of the construction of the electric power internet of things, the number of various terminal devices accessed to the network is increased sharply, and the types are complex and various. The existing power equipment identification systems are various in types and poor in compatibility, and in the power service data transmission process, a data packet encapsulated by an application layer also needs to depend on identification information of a source equipment. With the access of massive terminal equipment of the power internet of things, the identification information data volume of various equipment is huge in the service data transmission process, so that huge operation and maintenance cost and resource occupation are caused, and the transmission efficiency of service data is influenced.
Based on the above problem, an embodiment of the present invention provides a service data transmission system, as shown in fig. 1, where the service data transmission system includes: the device comprises a first device and a second device, wherein the first device is used for obtaining a first IPv6 address corresponding to the first device, a second IPv6 address corresponding to the second device and service data to be transmitted, and the first IPv6 address has content representing device identification information of the first device. Packaging the service data to be transmitted based on the first IPv6 address; removing the equipment identification information of the application layer in the packaged data packet to obtain an updated data packet; sending the updated data packet to the second device based on the second IPv6 address; the second device is used for receiving a data packet which is sent by the first device and contains service data to be transmitted, and an application layer of the data packet does not contain device identification information; analyzing the data packet to obtain service data to be transmitted and a first IPv6 address corresponding to the first equipment, wherein the first IPv6 address has content representing equipment identification information of the first equipment; and analyzing the first IPv6 address to obtain equipment identification information corresponding to the first equipment.
Specifically, in the embodiment of the present invention, the first device and the second device are two power devices in an electric power internet of things, and a specific interaction process between the two devices is shown in an interaction schematic diagram shown in fig. 2. In practical application, the first IPv6 address may be a communication address assigned to the first device by the gateway, where the first device sends the device identification information corresponding to the first device to the network segment where the first device is located, after the gateway adds the IPv6 address to the device identification information according to the device identification information, or an initial IPv6 address applied by the first device to the gateway of the network segment where the first device is located, and after the relevant device identification information corresponding to the first device is added to the initial IPv6 address, the gateway verifies the first IPv6 address corresponding to the first device, and the like, which is not limited by the present invention. The detailed working processes of the first device and the second device refer to the following description of the relevant steps of the method embodiment, and are not described herein.
Through the cooperative cooperation of the above components, the service data transmission system provided by the embodiment of the present invention sets the device identification information of the source device in the corresponding IPv6 address, so that the device identification information in the application layer encapsulation format can be removed when the application layer is encapsulated in the service data network communication process, and the size of the data packet is reduced to optimize the transmission resource occupation in the power internet of things. And after the service data reaches the destination device, the destination device can obtain the device identification information of the source device by analyzing the IPv6 address so as to support the completion of the service and realize the optimization of the communication service bearing, thereby realizing the optimization of the transmission resource occupation in the power internet of things and the efficient support of the service of the power internet of things under the condition of not influencing the service transmission performance and improving the service transmission efficiency of the power internet of things.
An embodiment of the present invention further provides a service data transmission method, where the method is applied to the first device, and as shown in fig. 2, the service data transmission method specifically includes the following steps:
step S101: and acquiring a first IPv6 address corresponding to the first equipment, a second IPv6 address corresponding to the second equipment and the service data to be transmitted.
The first IPv6 address has the content of device identification information for representing the first device. Specifically, after the power equipment applies for registration containing equipment identification information, the power equipment is distributed to a working area of the power equipment for putting in and accessing the network, the equipment applies for distributing an IPv6 address containing the equipment identification information to a gateway of a network segment where the equipment is located for networking communication, then networking is completed, and service data can be transmitted through the network after the power equipment accesses the network.
Step S102: and encapsulating the service data to be transmitted based on the first IPv6 address.
Specifically, in the network communication process of the power internet-of-things device, according to a TCP/IP protocol, service data can reach a target power device through an application layer, a transport layer, a network layer, a data link layer, and a physical layer, wherein the service data sent by the power device needs to be subjected to subsequent transmission after being packaged, and a specific packaging mode can be realized by referring to a packaging format of a packaging data packet in the prior art, which is not described herein any more.
Step S103: and removing the equipment identification information of the application layer in the packaged data packet to obtain the updated data packet.
Specifically, when application data sent by the power equipment is encapsulated in an application layer, the equipment identification information in an application layer encapsulation format is removed, and the size of a data packet is reduced, so that the data volume in the service data transmission process is reduced, and the occupation of transmission resources is optimized.
Step S104: and sending the updated data packet to the second equipment based on the second IPv6 address.
And the second IPv6 address is a destination address of the service transmission data, and the data packet is transmitted by a subsequent transport layer, a network layer, a data link layer and a physical layer based on the address and finally reaches the second device.
Specifically, the first IPv6 address in step S101 is obtained as follows: after the power equipment applies for an IPv6 identifier (the IPv6 identifier has power equipment identifier information) to the gateway and registration is completed, the power equipment is distributed to a working area of the power equipment for putting into a network, then the equipment sends a request for applying for distributing an IPv6 address to the gateway of a network segment in which the equipment is located, and the gateway receives the request and then distributes the IPv6 address to the equipment for networking communication; then the equipment sends the IPv6 identification of the equipment to the gateway, after the gateway receives the IPv6 identification, the gateway sends a query confirmation request to the identification management system so as to check whether the identification code exists, and if so, the identification management system returns confirmation information to the gateway; after receiving the confirmation information, the gateway distributes the IPv6 address with the same identification as the IPv6 to the equipment, and finally the equipment carries out network address replacement to complete the network access process.
Specifically, in another alternative embodiment, the step S101 includes the following steps:
and step 21, acquiring an original IPV6 address and equipment identification information of the network equipment.
The device identification information at least comprises mechanism information, service information, device category information and device attribute information.
It should be noted that, when the service data transmission method provided in the embodiment of the present application is applied to an electric power internet of things system, the affiliated entity information may refer to information of an electric power system or a sub-company to which the network device belongs; the service information may refer to the role of the network device in the power system, such as communication, power transmission, voltage transformation, etc.; the device type information may refer to a specific device name of the network device, such as a switch, a transformer, a distributor, and the like; the device attribute information may include information such as the manufacturer and the production number of the network device.
Step 22, converting the equipment identification information into a corresponding IPV6 identification code according to a preset coding specification;
specifically, the device identification information is converted into an IPV6 identification code that can be encapsulated to an IPV6 address. In order to ensure the safety of the equipment identification information and the legality of the IPV6 identification code, the adopted coding specification needs to play a role in encrypting the equipment identification information, and the total digit, the format and the like of the obtained IPV6 identification code are ensured to be in accordance with the standards of the IPV6 address. The specific coding specification may be set according to an actual application scenario, and the embodiment of the present application is not limited.
And step 23, adding the IPV6 identifier code to the original IPV6 address to obtain a corresponding IPV6 identifier address.
It should be noted that, the IPV6 address has 128 bits length, which is advantageous in that the available space of the address is expanded, and the IPV6 address itself has the function of storing the network identification information. The embodiment of the application further makes full use of the available space of the IPV6 address, and encapsulates the IPV6 identification code corresponding to the equipment identification information into the original IPV6 address. Specifically, the packaging of the IPV6 identification code can be realized by directly adding the IPV6 identification code to the tail storage unit.
On the basis of the foregoing embodiment, in order to further ensure the security of the device identification information, as an implementable manner, in an embodiment, according to a preset encoding specification, the converting the device identification information into a corresponding IPV6 identification code includes:
step 2021, converting the affiliated organization information, the service information, the device type information, and the device attribute information into corresponding binary codes, respectively.
Step 2022, converting the binary code into the IPV6 identifier with a preset number of bits using a preset hash function.
It should be noted that the corresponding relationship between the binary code and the various types of device identification information may be established in advance. The binary code bit number corresponding to each type of device identification information may be set according to factors such as system scale.
Specifically, after binary codes corresponding to various types of device identification information are determined, since the total number of bits of the obtained binary codes may exceed the remaining space of the IPV6 address, in order to ensure that the subsequent packaging operation can be completed normally, a hash function may be used to convert the binary codes into IPV6 identification codes of a fixed number of bits (preset number of bits). Moreover, the hash function has the encryption capability, so that the obtained IPV6 identification code belongs to the encrypted equipment identification information, and even if a malicious attacker reads the IPV6 identification code, the malicious attacker cannot read the corresponding equipment identification information.
The hash function may be a one-way mapping hash function. If other mapping functions also have the above capabilities, the hash function may be replaced with other mapping functions.
Specifically, in an embodiment, a coding system identifier corresponding to a binary code may be obtained; and converting the binary coding and coding system identification into an IPV6 identification code with a preset digit number by using a preset hash function.
It should be noted that, under the condition of a large system scale or frequent system update, in order to avoid the problems of deviation and the like in the subsequent device identification information reading process, multiple coding systems can be established. The coding system can determine whether each type of equipment identification information corresponds to binary coding, decimal coding or hexadecimal coding, and can also determine information such as coding digits and the like so as to assist subsequent equipment identification information reading work.
Exemplarily, if the current coding system identifier is 001, the binary code corresponds to the current coding system identifier, and the binary code corresponding to the affiliated mechanism information is 7 bits and is used for identifying the network device affiliation unit; the binary code corresponding to the service information is 4 bits and is used for distinguishing network equipment generated by different service applications; the binary code corresponding to the equipment category information is 20 bits and is used for distinguishing different types of equipment; the binary code corresponding to the device attribute information has 60 bits and is compiled based on the device fixed information. A total of 94 bits of code are obtained and then the 94 bits of code are compressed into a 64 bit IPV6 identification code based on the method provided by the above embodiment.
Further, in one embodiment, the IPV6 identification code may be stored to a database.
In particular, the IPV6 identification code may be stored to the database in association with the IP address of the network device.
Further, acquiring an equipment identification information reading instruction input by a user; reading an instruction according to the equipment identification information, and extracting a corresponding IPV6 identification code from a database; and analyzing the IPV6 identification code to obtain corresponding equipment identification information.
If the IPV6 identification code in the database is stored in association with the IP address of the network device, the device identification information reading instruction input by the user includes the IP address of the target object (target electrical device).
Specifically, an IPV6 identification code of the target object is extracted from the database, and corresponding equipment identification information is restored according to the IPV6 identification code for a user to read.
Specifically, in one embodiment, the IPV6 identification address may be registered to bind the IPV6 identification address with the network device.
Specifically, the IPV6 identification address encapsulated with the device identification information is registered in a registration center, so as to ensure that the IPV6 identification address can normally provide services such as communication for the network device.
Illustratively, the participant device identifier manager in the IPV6 identifier address registration process may initiate a registration application in a unified manner, and complete the binding between the network device and the IPV6 identifier address. After the identification management service platform receives an identification information analysis service application (an equipment identification information reading instruction) of a user to the network equipment, the equipment identification information manager analyzes and reads the equipment identification information from the database by using the identification analysis server according to the IPv6 identification code and feeds the equipment identification information back to the user.
In particular, in an embodiment, the IPV6 identification code may be added to the interface identification field of the original IPV6 address.
It should be noted that the storage unit of the IPv6 address is generally divided into 6 domains, which are a network prefix domain, a network platform domain, a network device/service VPN domain, an organization domain, a sub-network domain, and an interface identification domain.
Specifically, the first 64 bits (bit) of the IPV6 address are allocated and assigned with the network information of the network device according to the IPV6 address allocation requirement, and the second 64 bits are an interface identification field and can be used to store the IPV6 identification code corresponding to the device identification information.
By executing the above steps, the service data transmission method provided in the embodiment of the present invention sets the device identification information of the source device in the corresponding IPv6 address, so that when the application layer is encapsulated in the service data network communication process, the device identification information in the application layer encapsulation format can be removed, the size of the data packet is reduced, the optimization of the transmission resource occupation in the power internet of things is realized, and the service transmission efficiency of the power internet of things is improved.
An embodiment of the present invention further provides a service data transmission method, where the method is applied to the second device, and as shown in fig. 2, the service data transmission method specifically includes the following steps:
step S201: and receiving a data packet which is sent by the first equipment and contains service data to be transmitted.
Wherein the application layer of the data packet does not contain the device identification information.
Step S202: and analyzing the data packet to obtain service data to be transmitted and a first IPv6 address corresponding to the first equipment.
The first IPv6 address has the content of device identification information for representing the first device. The IPv6 address identification attribute of the network layer is given, the IPv6 partial address bit without information quantity is given with the equipment identification information, the identification information has the same effect with the identification information of the previous application layer, the identification function requirement in the equipment communication process can be supported, the resources are multiplexed, the remaining space is used for transmitting more application data, and the optimization of the communication service mechanism is realized.
Step S203: and analyzing the first IPv6 address to obtain equipment identification information corresponding to the first equipment.
Specifically, since the first IPv6 address includes content having device identification information representing the first device, the identification information of the service data sending device may be obtained by analyzing the first IPv6 address, and then the identification information is used to support completion of a service between two devices.
By executing the above steps, the service data transmission method provided in the embodiment of the present invention sets the device identification information of the source device in the corresponding IPv6 address, and after the service data reaches the destination device, the destination device can obtain the device identification information of the source device by analyzing the IPv6 address, so as to complete the service support and optimize the service bearer, thereby implementing optimization of transmission resource occupation in the power internet of things and efficient support of the service of the power internet of things without affecting the service transmission performance, and improving the service transmission efficiency of the power internet of things.
The service data transmission method provided in the embodiment of the present invention will be described in an entirety.
After the power equipment applies for the IPv6 identifier (the IPv6 identifier has the related identifier information of the power equipment) to register, the power equipment is distributed to a working area of the power equipment to be launched into a network, the equipment applies for distributing an IPv6 address which is the same as the IPv6 identifier to a gateway of a network segment where the equipment is located for networking communication, and then network access is completed; in the network communication process of the power Internet of things equipment, application data are packaged when being transmitted to each layer, a header part in a data packet packaged by an application layer contains identification information of the equipment, and the identification content is removed from the application layer header; based on the IPv6 identifier, the IPv6 address identifier attribute of the network layer is given, the IPv6 address bit of the occupied transmission resource is the IPv6 address bit, the header part of the network layer data packet is given with the equipment identifier information by the IPv6 address bit without information content, the identifier function requirement in the equipment communication process can be supported, and the mechanism of communication service bearing optimization is realized. The invention provides an equipment network access method based on an IPv6 identifier, which ensures the practicability of the equipment identifier, and simultaneously provides a communication service bearing method in the power Internet of things, so that the optimization of transmission resource occupation in the power Internet of things and the efficient support of the service of the power Internet of things are realized.
In the electric power thing networking, if two equipment carry out network communication, application data all can encapsulate when transmitting each layer, when conveying the data link layer, can be encapsulated into the form of data packet. In the network communication process, the header part of the application layer encapsulation contains the identification information of the device, including the identity identification information and static attribute information of the device. The IPv6 identifier contains the information, and the IPv6 address bit of the occupied transmission resource is the IPv6 address bit, which is the packet head part of the network layer, endows the IPv6 address bit without information quantity with the equipment identifier information, and can support the identifier function requirement in the equipment communication process. Because the equipment identification content in the application layer data packet is redundant and repeated with the identity information and the static attribute in the IPv6 address, and the equipment identification function can be completed, the equipment identification content in the application layer can be omitted, the whole size of the data packet is reduced, and the optimization of the occupation of transmission resources in the power Internet of things is realized.
Specifically, as shown in fig. 3, the size of the data packet before and after optimization in the service transmission process is relative, and in a general network data packet, the header of the application layer contains the identification information of the device. In the right data packet in the figure, the device identifier information of the application layer is omitted, and the IP address of the network layer replaces the device identifier, so that it can be seen that the size of the network transmission data packet after the optimization based on the IPv6 identifier is smaller than that of the normal data packet.
An embodiment of the present invention further provides a service data transmission apparatus, which is applied to a first device, and as shown in fig. 4, the service data transmission apparatus includes:
the obtaining module 101 is configured to obtain a first IPv6 address corresponding to the first device, a second IPv6 address corresponding to the second device, and service data to be transmitted, where the first IPv6 address has content representing device identification information of the first device. For details, refer to the related description of step S101 in the above method embodiment, and details are not repeated herein.
The first processing module 102 is configured to encapsulate the service data to be transmitted based on the first IPv6 address. For details, refer to the related description of step S102 in the above method embodiment, and no further description is provided here.
The second processing module 103 is configured to remove the device identifier information of the application layer in the encapsulated data packet, so as to obtain an updated data packet. For details, refer to the related description of step S103 in the above method embodiment, and details are not repeated herein.
And a third processing module 104, configured to send the updated data packet to the second device based on the second IPv6 address. For details, refer to the related description of step S104 in the above method embodiment, and no further description is provided here.
Through the cooperative cooperation of the above components, the service data transmission device provided in the embodiment of the present invention sets the device identifier information of the source device in the corresponding IPv6 address, so that when the application layer is encapsulated in the service data network communication process, the device identifier information in the application layer encapsulation format can be removed, the size of a data packet is reduced, optimization of transmission resource occupation in the power internet of things is implemented, and the service transmission efficiency of the power internet of things is improved.
An embodiment of the present invention further provides a service data transmission apparatus, which is applied to a second device, and as shown in fig. 5, the service data transmission apparatus includes:
the first receiving module 201 is configured to receive a data packet that includes service data to be transmitted and is sent by a first device, where an application layer of the data packet does not include device identification information. For details, refer to the related description of step S201 in the above method embodiment, and no further description is provided here.
The fourth processing module 202 is configured to parse the data packet to obtain the service data to be transmitted and a first IPv6 address corresponding to the first device, where the first IPv6 address includes content that represents device identification information of the first device. For details, refer to the related description of step S202 in the above method embodiment, and no further description is provided herein.
The fifth processing module 203 is configured to analyze the first IPv6 address to obtain the device identifier information corresponding to the first device. For details, refer to the related description of step S203 in the above method embodiment, and are not repeated herein.
Through the cooperative cooperation of the above components, the service data transmission device provided in the embodiment of the present invention sets the device identification information of the source device in the corresponding IPv6 address, and after the service data reaches the destination device, the destination device can obtain the device identification information of the source device by analyzing the IPv6 address, so as to complete the service support and optimize the communication service bearer, thereby implementing optimization of transmission resource occupation in the power internet of things and efficient support of the power internet of things service without affecting the service transmission performance, and improving the service transmission efficiency of the power internet of things.
There is also provided an electronic device according to an embodiment of the present invention, as shown in fig. 6, the electronic device may include a processor 901 and a memory 902, where the processor 901 and the memory 902 may be connected by a bus or in another manner, and fig. 6 illustrates an example of a connection by a bus.
Processor 901 may be a Central Processing Unit (CPU). Processor 901 may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 902, which is a non-transitory computer readable storage medium, may be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods in the method embodiments of the present invention. The processor 901 executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the methods in the above-described method embodiments.
The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 901, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 902, which when executed by the processor 901 performs the methods in the above-described method embodiments.
The specific details of the electronic device may be understood by referring to the corresponding related description and effects in the above method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, and the program can be stored in a computer readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk Drive (Hard Disk Drive, abbreviated as HDD), or a Solid State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A service data transmission method is applied to a first device, and is characterized in that the method comprises the following steps:
acquiring a first IPv6 address corresponding to first equipment, a second IPv6 address corresponding to second equipment and service data to be transmitted, wherein the first IPv6 address has content representing equipment identification information of the first equipment;
packaging the service data to be transmitted based on the first IPv6 address;
removing the equipment identification information in the encapsulated data packet application layer to obtain an updated data packet;
and sending the updated data packet to the second equipment based on the second IPv6 address.
2. The method according to claim 1, wherein the obtaining the first IPv6 address corresponding to the first device includes:
acquiring an original IPV6 address and equipment identification information of the first equipment, wherein the equipment identification information at least comprises affiliated mechanism information, service information, equipment category information and equipment attribute information;
converting the equipment identification information into a corresponding IPV6 identification code according to a preset coding specification;
adding the IPV6 identification code to the original IPV6 address to obtain the first IPV6 address.
3. The method according to claim 2, wherein said converting the device identification information into a corresponding IPV6 identification code according to a preset coding specification comprises:
respectively converting the affiliated mechanism information, the service information, the equipment category information and the equipment attribute information into corresponding binary codes;
and converting the binary code into an IPV6 identification code with a preset digit number by using a preset hash function.
4. The method of claim 2, wherein said adding the IPV6 identification code to the original IPV6 address comprises:
adding the IPV6 identification code to an interface identification field of the original IPV6 address.
5. A service data transmission method is applied to a second device, and is characterized in that the method comprises the following steps:
receiving a data packet which is sent by first equipment and contains service data to be transmitted, wherein the application layer of the data packet does not contain equipment identification information;
analyzing the data packet to obtain the service data to be transmitted and a first IPv6 address corresponding to the first equipment, wherein the first IPv6 address has content representing equipment identification information of the first equipment;
and analyzing the first IPv6 address to obtain equipment identification information corresponding to the first equipment.
6. A service data transmission device applied to a first device, the device comprising:
the system comprises an acquisition module, a transmission module and a processing module, wherein the acquisition module is used for acquiring a first IPv6 address corresponding to first equipment, a second IPv6 address corresponding to second equipment and service data to be transmitted, and the first IPv6 address has content representing equipment identification information of the first equipment;
the first processing module is used for packaging the service data to be transmitted based on the first IPv6 address;
the second processing module is used for eliminating the equipment identification information of the application layer in the packaged data packet to obtain an updated data packet;
and a third processing module, configured to send the updated application layer packet to the second device based on the second IPv6 address.
7. A service data transmission apparatus applied to a first device, the apparatus comprising:
the device comprises a first receiving module, a second receiving module and a sending module, wherein the first receiving module is used for receiving a data packet which is sent by first equipment and contains service data to be transmitted, and an application layer of the data packet does not contain equipment identification information;
the fourth processing module is configured to analyze the data packet to obtain the to-be-transmitted service data and a first IPv6 address corresponding to the first device, where the first IPv6 address has content representing device identification information of the first device;
and the fifth processing module is used for analyzing the first IPv6 address to obtain the equipment identification information corresponding to the first equipment.
8. A service data transmission system, comprising: a first device and a second device, wherein,
the first device is used for acquiring a first IPv6 address corresponding to the first device, a second IPv6 address corresponding to the second device and service data to be transmitted, wherein the first IPv6 address has content representing device identification information of the first device; packaging the service data to be transmitted based on the first IPv6 address; removing the equipment identification information of the application layer in the encapsulated data packet to obtain an updated application layer data packet; sending the updated application layer packet to the second device based on the second IPv6 address;
the second equipment is used for receiving a data packet which is sent by the first equipment and contains service data to be transmitted and an application layer data packet corresponding to the service data to be transmitted; analyzing the data packet to obtain the service data to be transmitted and a first IPv6 address corresponding to the first equipment, wherein the first IPv6 address has content representing equipment identification information of the first equipment; and analyzing the first IPv6 address to obtain equipment identification information corresponding to the first equipment.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor performing the method of any of claims 1-5 by executing the computer instructions.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-5.
CN202110478221.XA 2021-04-29 2021-04-29 Service data transmission method, device and system Active CN113163028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110478221.XA CN113163028B (en) 2021-04-29 2021-04-29 Service data transmission method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110478221.XA CN113163028B (en) 2021-04-29 2021-04-29 Service data transmission method, device and system

Publications (2)

Publication Number Publication Date
CN113163028A CN113163028A (en) 2021-07-23
CN113163028B true CN113163028B (en) 2023-01-24

Family

ID=76872616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110478221.XA Active CN113163028B (en) 2021-04-29 2021-04-29 Service data transmission method, device and system

Country Status (1)

Country Link
CN (1) CN113163028B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760265A (en) * 2022-04-22 2022-07-15 国网智能电网研究院有限公司 Method, device, equipment and storage medium for generating IPv6 address of power sensing network
CN114710573B (en) * 2022-06-07 2022-09-30 石家庄科林电气股份有限公司 IPV 6-based power distribution station area edge device communication method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025658A (en) * 2009-09-17 2011-04-20 中兴通讯股份有限公司 Method and system for realizing intercommunication between identity network and internet
CN102045882A (en) * 2009-10-19 2011-05-04 华为技术有限公司 Method, device and system of external communication of 6LoWPAN (internet protocol 6 over low power wireless personal area network) intra-network device and outside
CN102932467A (en) * 2012-11-08 2013-02-13 华为技术有限公司 Method and device for transmitting data packages
CN110012121A (en) * 2019-03-18 2019-07-12 安徽师范大学 Isomery Internet of things node based on connection identifier accesses IPv6 network method
CN111885214A (en) * 2020-06-15 2020-11-03 北京交通大学 Industrial heterogeneous network equipment-oriented address uniform distribution method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025658A (en) * 2009-09-17 2011-04-20 中兴通讯股份有限公司 Method and system for realizing intercommunication between identity network and internet
CN102045882A (en) * 2009-10-19 2011-05-04 华为技术有限公司 Method, device and system of external communication of 6LoWPAN (internet protocol 6 over low power wireless personal area network) intra-network device and outside
CN102932467A (en) * 2012-11-08 2013-02-13 华为技术有限公司 Method and device for transmitting data packages
CN110012121A (en) * 2019-03-18 2019-07-12 安徽师范大学 Isomery Internet of things node based on connection identifier accesses IPv6 network method
CN111885214A (en) * 2020-06-15 2020-11-03 北京交通大学 Industrial heterogeneous network equipment-oriented address uniform distribution method and device

Also Published As

Publication number Publication date
CN113163028A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN108965484B (en) Internet of things data transmission method, system and terminal
CN113225407B (en) Equipment identification information management method and device, electronic equipment and storage medium
CN113163028B (en) Service data transmission method, device and system
CN102869125B (en) Data card and its communication means, system
CN111786867B (en) Data transmission method and server
CN111294235B (en) Data processing method, device, gateway and readable storage medium
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
CN111786869B (en) Data transmission method between servers and server
CN105450585A (en) Information transmission method and device
CN111917900A (en) Request processing method and device for domain name proxy
CN108696601A (en) Detect the hardware address conflict in computer network
CN114500453B (en) Identification analysis method and device
CN111786868B (en) Data transmission method between servers and strongswan server
EP3032801B1 (en) Method and device for generating forwarding information
CN114244842A (en) Security resource scheduling method and device, electronic equipment and storage medium
CN112565053B (en) Method, device, service system and storage medium for identifying private network user
CN113220481A (en) Request processing and feedback method and device, computer equipment and readable storage medium
CN113381920A (en) Data transmission method, node and storage medium
CN110351394B (en) Network data processing method and device, computer device and readable storage medium
CN111786870A (en) Data transmission method and strongswan server
CN111240867B (en) Information communication system and method
CN107078941B (en) Method for transmitting IP data packet to IP address, processing device and mobile equipment
CN109756454B (en) Data interaction method, device and system
CN114827188B (en) Platform equipment management method, system, terminal and storage medium
CN113722015A (en) Method and device for acquiring combined assembly and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant