[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115190101A - Network address management and data transmission method of equipment - Google Patents

Network address management and data transmission method of equipment Download PDF

Info

Publication number
CN115190101A
CN115190101A CN202211093695.3A CN202211093695A CN115190101A CN 115190101 A CN115190101 A CN 115190101A CN 202211093695 A CN202211093695 A CN 202211093695A CN 115190101 A CN115190101 A CN 115190101A
Authority
CN
China
Prior art keywords
network address
network
information
equipment
target
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.)
Granted
Application number
CN202211093695.3A
Other languages
Chinese (zh)
Other versions
CN115190101B (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.)
Beijing Jiaotong University
Original Assignee
Beijing Jiaotong University
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 Beijing Jiaotong University filed Critical Beijing Jiaotong University
Priority to CN202211093695.3A priority Critical patent/CN115190101B/en
Publication of CN115190101A publication Critical patent/CN115190101A/en
Application granted granted Critical
Publication of CN115190101B publication Critical patent/CN115190101B/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
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a network address management and data transmission method of equipment, wherein the network address management method of the equipment comprises the following steps: acquiring equipment network information; analyzing the network information to obtain at least one network address information of the equipment; calculating the network address information according to a target algorithm to obtain a target network identifier; and generating the network address of the equipment according to any one of the target network identification and the network address information. The invention can realize one-to-one correspondence between the equipment and the network address, is convenient for effective management of the equipment, and can generate different network addresses (IPV 6, IPV4 and the like) according to different communication protocols when the equipment is communicated so as to coordinate the network address management between different network layer levels.

Description

Network address management and data transmission method of equipment
Technical Field
The invention relates to the technical field of computer networks, in particular to a network address management and data transmission method of equipment.
Background
In the energy industry internet of things scene, as shown in fig. 1, the number of various intelligent terminal devices is rapidly increasing. People do not pay attention to management of IP network identification, the network identification is managed by relying on a traditional DHCP protocol, authentication and identification among devices depend on other protocols based on a network application layer, such as an http protocol or an mqtt protocol, and with access of devices of different manufacturers, types, forms and standards of a network, how to solve the problem of network address allocation among mass devices is an important problem for supporting development of the Internet in the energy industry.
In the related art, the IP address allocation is mainly performed by using a dynamic host configuration protocol as a center, and a suitable address is selected from an existing address pool according to a random allocation method to provide IP address allocation service for all devices. That is, the network address allocated to each device is random, one-to-one correspondence between the network address and the device cannot be realized, when the device performs a service transaction, it is difficult to know the network address corresponding to each device, so that it is difficult to effectively manage the device, and when the devices communicate with each other, the required network addresses may be different when the devices communicate on different network hierarchies, and in the related art, only one network hierarchy address identifier (such as an ip address) can be randomly allocated, and it is difficult to coordinate network address management of different network hierarchies.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method for managing a network address and transmitting data of a device, so as to solve the defects that it is difficult to effectively manage the device and it is difficult to coordinate network address management of different network levels in the prior art.
According to a first aspect, an embodiment of the present invention provides a method for managing a network address of a device, including the following steps: acquiring equipment network information; analyzing the network information to obtain at least one network address information of the equipment; calculating the network address information according to a target algorithm to obtain a target network identifier; and generating the network address of the equipment according to any one of the target network identification and the network address information.
Optionally, the validity check of the network address of the device includes at least one of: judging whether the network address of the equipment meets the network address specification or not; determining whether the network address of the device exists in a target network address pool.
Optionally, the target algorithm is a one-way scattering algorithm.
Optionally, the method further comprises: and when the network address of the equipment passes the validity check, adding the network address of the equipment and distributing the network address to corresponding equipment.
Optionally, the method further comprises: receiving a network address management instruction, and performing addition/deletion/modification/query management on the network address.
Optionally, the method further comprises: and acquiring equipment network information, analyzing the network information, and verifying whether the network address management instruction is finished.
Optionally, the step of calculating the network address information according to a target algorithm to obtain a target network identifier is replaced with: receiving user self-defined information, and calculating the self-defined information according to a target algorithm to obtain a target network identifier; or the step of calculating the network address information according to the target algorithm to obtain the target network identifier is replaced by the following steps: and receiving user self-defining information, and taking the self-defining information as a target network identifier.
Optionally, the method further comprises: and receiving a user-defined device network address.
According to a second aspect, an embodiment of the present invention provides a data transmission method, including the following steps: when a data transmission request of a device is received, checking whether path information corresponding to the data transmission request is stored locally, where the path information includes a network address generated by the network address management method of the device according to the first aspect or any embodiment of the first aspect; and when the path information corresponding to the data transmission request is locally stored, performing data transmission according to the path information.
According to a third aspect, an embodiment of the present invention provides a network address management apparatus for a device, including: the network information acquisition module is used for acquiring equipment network information; the address information determining module is used for analyzing the network information to obtain at least one type of network address information of the equipment; the target network identification determining module is used for calculating the network address information according to a target algorithm to obtain a target network identification; and the network address generating module is used for generating the network address of the equipment according to any one of the target network identification and the network address information.
According to a fourth aspect, an embodiment of the present invention provides a data transmission apparatus, including: a path information checking module, configured to check, when a data transmission request of a device is received, whether path information corresponding to the data transmission request is stored locally, where the path information includes a network address generated by the network address management method of the device according to the first aspect or any embodiment of the first aspect; and the transmission module is used for transmitting data according to the path information when the path information corresponding to the data transmission request is locally stored.
According to a fifth aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements, when executing the program, the steps of the network address management method of the device according to the first aspect or any one of the embodiments of the first aspect or the steps of the data transmission method according to the second aspect.
According to a sixth aspect, an embodiment of the present invention provides a storage medium, on which computer instructions are stored, and the instructions, when executed by a processor, implement the steps of the network address management method of the device according to the first aspect or any one of the embodiments of the first aspect or the steps of the data transmission method according to the second aspect.
The technical scheme of the invention has the following advantages:
the method for managing the network address of the device provided by this embodiment obtains the network address information of the device according to the network information of the device, and calculates the network address information according to a target algorithm to obtain a target network identifier; the network address of the device is generated according to any one of the target network identifier and the network address information, so that the one-to-one correspondence between the device and the network address is realized, the device is convenient to be effectively managed, and different network addresses (IPV 6, IPV4 and the like) can be generated according to different communication protocols when the device communicates with each other, so that the network address management between different network layers can be coordinated.
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 description of the embodiments or the prior art 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 diagram illustrating an exemplary embodiment of the background art;
fig. 2 is a flowchart of a specific example of a method for managing a network address of a device according to an embodiment of the present invention;
fig. 3 is a flowchart of a specific example of a method for managing a network address of a device according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a specific example of a method for managing a network address of a device according to an embodiment of the present invention;
fig. 5 is a flowchart of a specific example of a data transmission method of a device according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a specific example of a network address management apparatus according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a specific example of a data transmission apparatus according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a specific example of an electronic device in an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it is to be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
With the development of the manufacturing process of the computer, the computing, storage and transmission capabilities of various terminals are greatly improved, and the improvement of the hardware capability of the equipment marks that the equipment can bear more opportunities and tasks. The hardware resources can play an important role in monitoring, controlling, intelligence and other scenes of the energy industry Internet, address management is carried out on various devices, the method is a basis for effectively planning network topology, reducing network load and improving network performance, and more importantly, the security of the network is greatly improved due to the fact that the addresses of the network devices can be managed and controlled.
The embodiment provides a network address management method of a device, which may be applied to an address management server, as shown in fig. 2, and includes the following steps:
s101, acquiring equipment network information;
for example, the device network information may include a plurality of network identifiers of a network layer where the current device performs communication transmission, such as identification information of all network cards and structured data information such as network ports corresponding to the network cards. The manner of obtaining the device network information may be to obtain personal attribute information input by a user, and bind the personal attribute as device network information with a corresponding device, or obtain a service type and a service attribute of a current device as device network information, where the service type may be used to represent a network hierarchy in which the current network device is located and a service provided, and the service attribute may be used to represent a service role represented by the current network device, for example, a service provider, a service consumer, and the like.
S102, analyzing the network information to obtain at least one network address information of the equipment;
illustratively, the network address information may include information such as the device's portal device type, network hardware interface name, network device gateway address, IP address, MAC address, netmask, ethernet address, local network identification, network global address, etc. The network information may be parsed by extracting the network information item by item according to the required network address information.
S103, calculating network address information according to a target algorithm to obtain a target network identifier;
illustratively, the target algorithm may be a one-way scattering algorithm, for example, a hash.md5 algorithm, the scattering algorithm has two functions of input and output, the input is current device network address information (such as a MAC address), and the algorithm also supports other inputs, when the input is heterogeneous, the algorithm may convert character input with any length into input with a fixed length, and output binary output with a length of 128 bits, and the security of the generated target network identifier can be effectively ensured through the one-way scattering algorithm. The target algorithm is not limited in this embodiment, and those skilled in the art can determine the target algorithm as needed. The network address information may be a MAC address capable of uniquely characterizing the device in each address information, or may be other information capable of characterizing the device.
Taking the target algorithm as MD5 algorithm as an example, four constants (a, b, c, d) and four nonlinear functions (F, G, H, I) are required for specific calculation, such as:
Figure 754528DEST_PATH_IMAGE001
Figure 406089DEST_PATH_IMAGE002
Figure 920247DEST_PATH_IMAGE003
Figure 33566DEST_PATH_IMAGE004
Figure 582359DEST_PATH_IMAGE005
Figure 139242DEST_PATH_IMAGE006
Figure 140696DEST_PATH_IMAGE007
Figure 74017DEST_PATH_IMAGE008
wherein, v is bitwise OR, not ()' is bitwise negation, and xor is bitwise XOR.
First, network address information is padded so that the length of the network address information is modulo 512 to 448, and the length of the network address information is X, that is, X mod 512=448 is satisfied. And obtaining the data length needing to be filled according to the formula. A specific padding method may be padding after the message, the padding first bit being 1 and the rest being 0. The length of the network address information is filled after the filling is finished, and the storage length which can be used for storing the network address information is 64 bits. If the length of the network address information is greater than 64, only the lower 64-bit value thereof is used. After this step is completed, the length of the final network address information is n times of an integer of 512.
The loop is performed n times according to the length of the algorithm, and the first round is performed 16 times. Each operation performs a non-linear function operation on three of a, b, c, d with the four non-linear functions mentioned above (one for each round), and then adds the result with a fourth variable. The result is then shifted to the right by an indefinite number and one of a, b, c, d is added. Finally, one of a, b, c and d is replaced by the result.
Specifically, as shown in fig. 3, input information is calculated according to a target algorithm, and a sign of the calculation end is whether sub-calculation operations are currently performed for 64 times, and each sub-operation must be performed to update a related parameter value as follows;
the update operation is as follows: t = ((a + f + gth group + k [ i ]) < < s [ i ]) + b, a = d, d = c, c = b, b = t, i = i +1.
Therefore, after each update calculation, i = i +1, it is determined whether i is smaller than 64 (i.e., whether 6 operations have been performed), and when i = =64, the result is output, and the operation is performed according to the difference in the value of i.
When i <16, f = (b & c) or (~ b & d), g = i, and then the update operation is performed.
If 32 = (b & d) or (~ d & c), g = (5 x i + 1) mod 16, then the update operation is performed.
When 48 ≧ i is greater than or equal to 32, f = b ^ c ^ d, g = (3 × i + 5) mod 16 is carried out, and then the updating operation is carried out.
When 64 ≧ i is greater than or equal to 48, f = c ^ (d or b), g = (7 ^ i) mod 16 is performed, and then the update operation is performed.
I = =64, stop, and output the result.
Where "=" is the assignment operator: i =0 means that 0 is assigned to i, i.e. i is given a value of 0;
"&" indicates the bitwise and operator, which is exemplified by: 1010b & 1100b has a value of 1000b;
"Or" represents bitwise Or operator, and specific examples are: 1010b or 1100b, as a value of 1110b;
"A" represents a bitwise XOR operator, which is specifically exemplified by: 1010b 1100b has a value of 0110b;
"to" represents a bitwise negation operator, and specific examples are as follows: the value of-1010 b is 0101b;
"<" represents a bitwise cyclic left shift operator, with specific examples: 1100b < < 3 has a value of 0110b;
"mod" represents the modulus operator, specifically exemplified by: 33 mod 16 has a value of 1;
"i = =64" is to determine whether i is equal to 64.
s [ i ] takes the value of the i +1 th number of the following array:
{ 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11,16, 23, 4, 11,16, 23, 4, 11,16, 23, 4, 11,16, 23, 6, 10, 15,21, 6, 10, 15,21, 6, 10, 15,21, 6, 10, 15,21 }. Such as s [0] = =7, s [3] =22 and the like.
k [ i ] takes the value of the i +1 th number of the following arrays:
{ 0xd76aa478, 0xe8c7b756, 0x242070db, 0xc1bdceee, 0xf57c0faf,0x4787c62a, 0xa8304613, 0xfd469501, 0x698098d8, 0x8b44f7af,0xffff5bb1, 0x895cd7be, 0x6b901122, 0xfd987193, 0xa679438e,0x49b40821, 0xf61e2562, 0xc040b340, 0x265e5a51, 0xe9b6c7aa,0xd62f105d, 0x02441453, 0xd8a1e681, 0xe7d3fbc8, 0x21e1cde6,0xc33707d6, 0xf4d50d87, 0x455a14ed, 0xa9e3e905, 0xfcefa3f8,0x676f02d9, 0x8d2a4c8a, 0xfffa3942, 0x8771f681, 0x6d9d6122,0xfde5380c, 0xa4beea44, 0x4bdecfa9, 0xf6bb4b60, 0xbebfbc70,0x289b7ec6, 0xeaa127fa, 0xd4ef3085, 0x04881d05, 0xd9d4d039,0xe6db99e5, 0x1fa27cf8, 0xc4ac5665, 0xf4292244, 0x432aff97,0xab9423a7, 0xfc93a039, 0x655b59c3, 0x8f0ccc92, 0xffeff47d,0x85845dd1, 0x6fa87e4f, 0xfe2ce6e0, 0xa3014314, 0x4e0811a1,0xf7537e82, 0xbd3af235, 0x2ad7d2bb, 0xeb86d391 }。
and S104, generating the network address of the equipment according to any one of the target network identification and the network address information.
Illustratively, according to any one of the target network identifier and the network address information, the network address of the device may be generated in a manner that, first, the length of the required network address that can be customized is determined according to the network gateway, then, the required number of bits is selected from the target network identifier in a sequence from front to back, and the network address of the device is generated by combining the different expression forms of the different network address information and the target network identifier. Different manifestations may characterize different systems of addresses corresponding to different protocols, etc., e.g., IPv4 addresses are typically decimal, and IPv6 addresses and ARP addresses are typically 16 systems. Specifically, when the protocol type of the network address information is ipv6 and the customized length is the last 64 bits, the network address of the generating device may be in the form of ipv6 with the first 64 bits + the first 64 bits of the target network identifier forming 128 an ipv6 address. It should be noted that the target network identifier may be obtained by performing target operation on the MAC address, that is, the network address information used in the stage of generating the target network identifier may be different from the network address information used in the stage of generating the network address of the device.
With the development of internet services in the energy industry, the monitoring and control requirements of various devices are gradually increased, and the random address management mode is difficult to perform fine-grained network management and control at first, so that the gradually increased computing power of various edge devices is wasted. Meanwhile, as more and more devices in the energy industry internet are accessed, how to cooperate with network address management of different network layers becomes a problem to be solved urgently. In this scenario, the method for managing a network address of a device according to this embodiment obtains network address information of the device according to the network information of the device, and calculates the network address information according to a target algorithm to obtain a target network identifier; the network address of the device is generated according to any one of the target network identifier and the network address information, so that one-to-one correspondence between the device and the network address is realized, the device is convenient to be effectively managed, and different network addresses (IPV 6, IPV4 and the like) can be generated according to different communication protocols when the devices are communicated, so that network address management between different network layer levels is convenient to coordinate.
As an optional implementation manner of this embodiment, as shown in fig. 4, the method further includes: performing validity check on the network address of the device, including at least one of: judging whether the network address of the equipment meets the network address specification or not; it is determined whether the network address of the device exists in a pool of target network addresses.
Illustratively, the validity check includes: judging whether the currently generated network address format conforms to the definition of the relevant network standard, judging whether the network address of the equipment exists in a target network address pool or not, and avoiding invalid generation of the network address, wherein the target network address pool is determined by network address information, an address fixed prefix for representing the equipment address can be determined through a gateway address, a network mask, an Ethernet address, a local network identifier, a network global address and the like in the network address information, the rest parts are used as custom parts, different addresses can be formed by filling the custom parts differently, an address space formed by filling the different custom parts is used as the target address pool for verifying whether the generated network address is legal, and when the generated network address is not in the address pool, the network address is invalid.
The network address management method for the device provided by this embodiment ensures the feasibility, validity, and correctness of the generated network address by performing validity check on the network address of the device.
As an optional implementation manner of this embodiment, the method further includes:
when the network address of the device passes the validity check, the network address of the device is added, and the network address is allocated to the corresponding device. Further, when the network address of the device fails the validity check, an error prompt may be issued.
As an optional implementation manner of this embodiment, as shown in fig. 4, the method further includes: and receiving a network address management instruction, and performing addition/deletion/modification/query management on the network address.
Illustratively, the network address subjected to validity verification can be changed in a dynamic compiling mode, management of the network address is carried out by calling a Linux dynamic kernel compiling method, management aiming at the current network address is supported, and the management comprises modification, addition, inquiry and deletion, and one network port can bear a plurality of virtual network addresses, including addresses of different protocol versions and addresses of the same protocol.
The adding management is to add a network port for a specific fixed hardware network device, and the query is to monitor whether an added network address already exists. When the deletion management is performed, when only one address exists in the network, the operation of deleting the network is invalid.
As an optional implementation manner of this embodiment, the method further includes: and acquiring equipment network information, analyzing the network information, and verifying whether a network address management instruction is completed or not.
For example, the analyzing of the network information and the verifying whether the network address management instruction is completed may be analyzing the network information of the device to obtain at least one type of network address information of the device, and verifying whether the network address information of the device is consistent with the content represented in the network address management instruction, for example, when the modification instruction in the network address management instruction is to modify the address of the device a from the address 1 to the address 2, the verifying at this time is to determine whether the current network address information of the device is the address 2, and if the modification instruction is the address 2, the modifying instruction is completed.
As an optional implementation manner of this embodiment, as shown in fig. 4, the step of calculating the network address information according to the target algorithm to obtain the target network identifier is replaced with: receiving user self-defined information, and calculating the user self-defined information according to a target algorithm to obtain a target network identifier; or receiving user self-defined information, and taking the self-defined information as a target network identifier.
Illustratively, the trigger mode for generating the target network identifier includes a client trigger and a server trigger. The server side triggers the network address by analyzing the network information to obtain at least one network address information of the equipment, and then the network address information is calculated according to a target algorithm to obtain a target network identifier. The client information triggers to generate a target network identifier, a user needs to provide user-defined information, such as user personal attribute information, to the address management server in advance, the user-defined information is calculated and then used as the target network identifier, and the user-defined information can also be directly input and used as the target network identifier. And the address management server allocates a network address which is unique in the whole network to the user according to the user-defined information.
As an optional implementation manner of this embodiment, as shown in fig. 4, the method further includes: and receiving the user-defined equipment network address.
The present embodiment provides a data transmission method, as shown in fig. 5, including the following steps:
s201, when receiving a data transmission request of a device, checking whether a local storage is a path information corresponding to the data transmission request, where the path information includes a network address generated according to the network address management method of the device in the above embodiment;
s202, when the path information corresponding to the data transmission request is stored locally, data transmission is carried out according to the path information.
Exemplarily, in the data transmission process, a routing entry needs to be requested from an address management server in the console, and the server generates a data transmission path (on-demand routing) according to a routing control protocol, where the path information includes network addresses of various routing nodes, and the network addresses are generated by the network address management method of the device in the above embodiment, and details are not repeated. And the routing node forwards the data to the next hop according to the routing rule until the data reaches the destination, and the data transmission process is completed.
The present embodiment provides a network address management apparatus for a device, as shown in fig. 6, including:
a network information obtaining module 601, configured to obtain device network information; for details, reference is made to the corresponding parts of the above method embodiments, which are not described herein again.
An address information determining module 602, configured to analyze the network information to obtain at least one type of network address information of the device; for details, reference is made to the corresponding parts of the above method embodiments, which are not described herein again.
A target network identifier determining module 603, configured to calculate the network address information according to a target algorithm to obtain a target network identifier; for details, reference is made to the corresponding parts of the above method embodiments, which are not described herein again.
A network address generating module 604, configured to generate a network address of the device according to any one of the target network identifier and the network address information. For details, reference is made to the corresponding parts of the above method embodiments, which are not described herein again.
As an optional implementation manner of this embodiment, the method further includes: the validity checking module is used for checking the validity of the network address of the equipment and comprises at least one of the following: judging whether the network address of the equipment meets the network address specification or not; determining whether the network address of the device exists in a target network address pool. For details, reference is made to the corresponding parts of the above method embodiments, which are not described herein again.
As an optional implementation manner of this embodiment, the target network identifier determining module 603 includes: and the one-way scattering module is used for calculating the target network identification according to a one-way scattering algorithm. For details, reference is made to the corresponding parts of the above method embodiments, which are not described herein again.
As an optional implementation manner of this embodiment, the method further includes:
and the address processing module is used for adding the network address of the equipment when the network address of the equipment passes the validity check, and distributing the network address to the corresponding equipment. For details, reference is made to the corresponding parts of the above method embodiments, and details are not repeated herein.
As an optional implementation manner of this embodiment, the method further includes:
and the address management module is used for receiving a network address management instruction and performing addition/deletion/modification/query management on the network address. For details, reference is made to the corresponding parts of the above method embodiments, which are not described herein again.
As an optional implementation manner of this embodiment, the method further includes: and the verification module is used for acquiring equipment network information, analyzing the network information and verifying whether the network address management instruction is completed or not. For details, reference is made to the corresponding parts of the above method embodiments, which are not described herein again.
As an optional implementation manner of this embodiment, the target network identifier determining module 603 is replaced with:
the user-defined calculation module is used for receiving user-defined information and calculating the user-defined information according to a target algorithm to obtain a target network identifier; or
The target network identification determination module 603 is replaced with:
and the user-defined network identification module is used for receiving user-defined information and taking the user-defined information as a target network identification. For details, reference is made to the corresponding parts of the above method embodiments, which are not described herein again.
As an optional implementation manner of this embodiment, the method further includes: and the address receiving module is used for receiving the user-defined equipment network address. For details, reference is made to the corresponding parts of the above method embodiments, which are not described herein again.
The present embodiment provides a data transmission apparatus, as shown in fig. 7, including:
a path information checking module 701, configured to, when a data transmission request of a device is received, check whether path information corresponding to the data transmission request is stored locally, where the path information includes a network address generated by the network address management method of the device according to the foregoing embodiment; for details, reference is made to the corresponding parts of the above method embodiments, and details are not repeated herein.
The transmission module 702 is configured to, when the path information corresponding to the data transmission request is locally stored, perform data transmission according to the path information. For details, reference is made to the corresponding parts of the above method embodiments, and details are not repeated herein.
An electronic device is further provided in an embodiment of the present application, as shown in fig. 8, a processor 810 and a memory 820, where the processor 810 and the memory 820 may be connected by a bus or other means.
Processor 810 may be a Central Processing Unit (CPU). The Processor 810 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 820, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to a network address management method or a data transmission method of a device in an embodiment of the present invention. The processor executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions, and modules stored in the memory.
The memory 820 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, and the like. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 820 may optionally include memory located remotely from the processor, which may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 820 and, when executed by the processor 810, perform a network address management method or a data transmission method of a device in the embodiment shown in fig. 2.
The details of the electronic device may be understood with reference to the corresponding description and effects in the embodiment shown in fig. 2, and are not described herein again.
The present embodiment also provides a computer storage medium, where computer-executable instructions are stored, and the computer-executable instructions may execute the network address management method or the data transmission method of the device in any of the above method embodiments. 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.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (13)

1. A network address management method of a device, comprising the steps of:
acquiring equipment network information;
analyzing the network information to obtain at least one network address information of the equipment;
calculating the network address information according to a target algorithm to obtain a target network identifier;
and generating the network address of the equipment according to any one of the target network identification and the network address information.
2. The method of claim 1, further comprising: performing validity check on the network address of the device, wherein the validity check includes at least one of:
judging whether the network address of the equipment meets the network address specification or not;
determining whether the network address of the device exists in a target network address pool.
3. The method of claim 1, wherein the target algorithm is a one-way scattering algorithm.
4. The method of claim 2, further comprising:
and when the network address of the equipment passes the validity check, adding the network address of the equipment and distributing the network address to corresponding equipment.
5. The method of claim 1, further comprising:
and receiving a network address management instruction, and performing addition/deletion/modification/inquiry management on the network address.
6. The method of claim 5, further comprising: and acquiring equipment network information, analyzing the network information, and verifying whether the network address management instruction is finished.
7. The method of claim 1, wherein the step of calculating the network address information according to the target algorithm to obtain the target network identifier is replaced by:
receiving user self-defined information, and calculating the self-defined information according to a target algorithm to obtain a target network identifier; or
The step of calculating the network address information according to the target algorithm to obtain the target network identifier is replaced by:
and receiving user self-defining information, and taking the self-defining information as a target network identifier.
8. The method of claim 1, further comprising: and receiving the user-defined equipment network address.
9. A data transmission method, comprising the steps of:
when a data transmission request of a device is received, checking whether a path information corresponding to the data transmission request is stored locally, wherein the path information comprises a network address generated according to the network address management method of the device in any one of claims 1-8;
and when the path information corresponding to the data transmission request is locally stored, performing data transmission according to the path information.
10. An apparatus for managing a network address of a device, comprising:
the network information acquisition module is used for acquiring equipment network information;
the address information determining module is used for analyzing the network information to obtain at least one type of network address information of the equipment;
the target network identification determining module is used for calculating the network address information according to a target algorithm to obtain a target network identification;
and the network address generating module is used for generating the network address of the equipment according to any one of the target network identification and the network address information.
11. A data transmission apparatus, comprising:
a path information checking module, configured to check, when a data transmission request of a device is received, whether path information corresponding to the data transmission request is stored locally, where the path information includes a network address generated according to the network address management method of the device according to any one of claims 1 to 8;
and the transmission module is used for transmitting data according to the path information when the path information corresponding to the data transmission request is locally stored.
12. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the network address management method of any one of the devices of claims 1-8 or the steps of the data transmission method of claim 9 when executing the program.
13. A storage medium having stored thereon computer instructions, which when executed by a processor, perform the steps of the network address management method of any one of the devices of claims 1-8 or the steps of the data transmission method of claim 9.
CN202211093695.3A 2022-09-08 2022-09-08 Network address management and data transmission method of equipment Active CN115190101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211093695.3A CN115190101B (en) 2022-09-08 2022-09-08 Network address management and data transmission method of equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211093695.3A CN115190101B (en) 2022-09-08 2022-09-08 Network address management and data transmission method of equipment

Publications (2)

Publication Number Publication Date
CN115190101A true CN115190101A (en) 2022-10-14
CN115190101B CN115190101B (en) 2023-01-17

Family

ID=83522583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211093695.3A Active CN115190101B (en) 2022-09-08 2022-09-08 Network address management and data transmission method of equipment

Country Status (1)

Country Link
CN (1) CN115190101B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110185055A1 (en) * 2010-01-26 2011-07-28 Tenable Network Security, Inc. System and method for correlating network identities and addresses
CN102790813A (en) * 2012-08-06 2012-11-21 中国联合网络通信集团有限公司 Communication method as well as system and terminal equipment based on IPv6 (internet protocol version 6) network
JP2014150364A (en) * 2013-01-31 2014-08-21 Fujitsu Ltd Address generation device
CN106936944A (en) * 2017-03-31 2017-07-07 苏州科达科技股份有限公司 A kind of method and device for detecting and processing network address collision
CN110213391A (en) * 2019-07-12 2019-09-06 腾讯科技(深圳)有限公司 A kind of configuration method and device of internet protocol address
CN112104605A (en) * 2020-08-10 2020-12-18 深信服科技股份有限公司 Network management method, device and storage medium
CN112367256A (en) * 2020-10-15 2021-02-12 深信服科技股份有限公司 Creation method, apparatus and storage medium
CN114363292A (en) * 2021-12-08 2022-04-15 芯讯通无线科技(上海)有限公司 Network address generation method, communication method, system, device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110185055A1 (en) * 2010-01-26 2011-07-28 Tenable Network Security, Inc. System and method for correlating network identities and addresses
CN102790813A (en) * 2012-08-06 2012-11-21 中国联合网络通信集团有限公司 Communication method as well as system and terminal equipment based on IPv6 (internet protocol version 6) network
JP2014150364A (en) * 2013-01-31 2014-08-21 Fujitsu Ltd Address generation device
CN106936944A (en) * 2017-03-31 2017-07-07 苏州科达科技股份有限公司 A kind of method and device for detecting and processing network address collision
CN110213391A (en) * 2019-07-12 2019-09-06 腾讯科技(深圳)有限公司 A kind of configuration method and device of internet protocol address
CN112104605A (en) * 2020-08-10 2020-12-18 深信服科技股份有限公司 Network management method, device and storage medium
CN112367256A (en) * 2020-10-15 2021-02-12 深信服科技股份有限公司 Creation method, apparatus and storage medium
CN114363292A (en) * 2021-12-08 2022-04-15 芯讯通无线科技(上海)有限公司 Network address generation method, communication method, system, device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FEI SONG ET AL.: ""Smart Collaborative Connection Management for Identifier-Based Network"", 《IEEE ACCESS》 *
王明玉: ""工业异构网络地址统一分配管理机制研究与实现"", 《中国优秀硕士学位论文全文数据库信息科技I辑》 *

Also Published As

Publication number Publication date
CN115190101B (en) 2023-01-17

Similar Documents

Publication Publication Date Title
US12052233B2 (en) Identity verification method for network function service and related apparatus
US10506432B2 (en) Method and apparatus for authenticating access authority for specific resource in wireless communication system
CN110580256B (en) Method, device and system for identifying application identification
US20150358824A1 (en) Method and apparatus for controlling access in wireless communication system
KR20160122992A (en) Integrative Network Management Method and Apparatus for Supplying Connection between Networks Based on Policy
Phung et al. The OpenLISP control plane architecture
CN105450585A (en) Information transmission method and device
CN106921578A (en) The generation method and device of a kind of forwarding-table item
US9819641B2 (en) Method of and a processing device handling a protocol address in a network
CN107070719B (en) Equipment management method and device
CN114500453B (en) Identification analysis method and device
WO2023273957A1 (en) Computing power release method and apparatus, and computing power update method and apparatus
CN115190101B (en) Network address management and data transmission method of equipment
CN112492592A (en) Authorization method under multiple NRF scenes
CN114338510A (en) Data forwarding method and system with separated control and forwarding
CN111711708B (en) LoRaWAN terminal equipment address allocation method
CN116018793A (en) Computing device and method for generating clustered functional IPV6 addresses
EP3496438A1 (en) Packet transmission method, apparatus and system
WO2021031092A1 (en) Packet processing method and network device
EP3923538B1 (en) Information verification method and apparatus, and device
CN110602268B (en) Tunnel port allocation method and device, electronic equipment and storage medium
CN114979090A (en) IPv6 data packet processing method, device, computer equipment and storage medium
CN113922972A (en) Data forwarding method and device based on MD5 identification code
CN110268680B (en) Method for exchanging application data between devices and virtual Ethernet interface in wireless PAN mesh network
CN111526108B (en) Method and device for preventing network attack

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
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20221014

Assignee: Chuangchao Technology (Tangshan) Co.,Ltd.

Assignor: Beijing Jiaotong University

Contract record no.: X2023980043778

Denomination of invention: A Network Address Management and Data Transmission Method for a Device

Granted publication date: 20230117

License type: Common License

Record date: 20231018