CN108134858B - Networking method, server, client and network system - Google Patents

Networking method, server, client and network system Download PDF

Info

Publication number
CN108134858B
CN108134858B CN201810058726.9A CN201810058726A CN108134858B CN 108134858 B CN108134858 B CN 108134858B CN 201810058726 A CN201810058726 A CN 201810058726A CN 108134858 B CN108134858 B CN 108134858B
Authority
CN
China
Prior art keywords
information
address
client
server
field
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
CN201810058726.9A
Other languages
Chinese (zh)
Other versions
CN108134858A (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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201810058726.9A priority Critical patent/CN108134858B/en
Publication of CN108134858A publication Critical patent/CN108134858A/en
Application granted granted Critical
Publication of CN108134858B publication Critical patent/CN108134858B/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/50Address allocation
    • H04L61/5069Address allocation for group communication, multicast communication or broadcast communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • 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/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides a networking method, a server, a client and a network system, and relates to the technical field of automation control. The networking method comprises the following steps: receiving client information broadcasted by a client, wherein the client information comprises MAC address information and IP address information of the client; server information is broadcast to the client, the server information including a server identification and server IP address information, such that the client modifies information of a predetermined first field of its own IP address according to the server IP address. The method can realize the automatic configuration and storage of the IP address, thereby avoiding the manual configuration of the IP address of the network node and improving the networking efficiency.

Description

Networking method, server, client and network system
Technical Field
The present disclosure relates to the field of automation control technologies, and in particular, to a networking method, a server, a client, and a network system.
Background
At present, various large-scale group displays have network communication functions, and in an early configuration stage, system installation and maintenance personnel configure IP (Internet Protocol, Protocol for interconnection between networks) addresses of a server and clients, and record the IP addresses of the clients at a server side, so that the server can communicate with the clients.
Disclosure of Invention
The inventor finds that the conventional unit networking mode is labor-consuming, low in efficiency and not applicable to application scenes of large units.
One object of the present disclosure is to improve the efficiency of unit networking.
According to an aspect of the present disclosure, a networking method is provided, including: receiving client information broadcasted by a client, wherein the client information comprises Media Access Control (MAC) address information and Internet Protocol (IP) address information of the client; server information is broadcast to the client, the server information including a server identification and server IP address information, such that the client modifies information of a predetermined first field of its own IP address according to the server IP address.
Optionally, the method further comprises: setting different IP addresses for different clients to reserve the information of the second field; and the predetermined first field and the predetermined second field are not overlapped, and form a complete IP address.
Optionally, the information for setting different IP addresses for different clients to reserve the second field includes: distinguishing different clients according to their MAC addresses; allocating the information of the predetermined second field to the client machine, so that the information of the predetermined second field of different client machines is different; the information of the predetermined second field is transmitted to the client according to the MAC address of the client so that the client modifies the information of the predetermined second field of itself.
Optionally, the allocating the information of the predetermined second field to the client includes: judging whether a client with the same information of a preset second field exists; if more than two clients have the same information of the predetermined second field, the clients having the same information of the predetermined second field are allocated different predetermined second fields, and the allocated predetermined second fields are not the same as the predetermined second fields of any one of the clients.
Optionally, the predetermined second field is located at the tail of the IP address, and the address space of the predetermined second field matches the local area network address space of the server.
Optionally, the method further comprises: upon receipt of the client information, the broadcast of the server information is stopped.
Optionally, the method further comprises: upon receipt of the client information, server information is broadcast a predetermined number of times.
By the method, the server can broadcast the IP address information of the server to the client so that the client modifies the network segment of the IP address of the client into the same network segment as the server, and meanwhile, the server can obtain the IP address information of the client and store the modified IP address information, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be configured manually, and the networking efficiency is improved.
According to another aspect of the present disclosure, a networking method is provided, including: broadcasting client information, wherein the client information comprises MAC address information and IP address information of the client, so that the server distinguishes the client and determines information of a second field of the IP address of the client; receiving server information broadcasted from a server, wherein the server information comprises a server identifier and server IP address information; modifying the information of a preset first field of the IP address of the server according to the IP address of the server; and the predetermined first field and the predetermined second field of the IP address are not overlapped, and the predetermined first field and the predetermined second field form the complete IP address.
Optionally, the method further comprises: receiving information of a predetermined second field from the server; modifying the information of the predetermined second field of the own IP address.
Optionally, the method further comprises: upon receipt of the server information, broadcasting of the client information is stopped.
By the method, the client can inform the server of the IP address of the client and modify the IP address to the same network segment with the server according to the broadcast message of the server, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be manually configured, and the networking efficiency is improved.
According to yet another aspect of the present disclosure, a server is provided, including: a client information receiving unit configured to receive client information broadcasted by a client, the client information including MAC address information and IP address information of the client; and a server information broadcasting unit configured to broadcast server information to the client, the server information including a server identification and server IP address information so that the client modifies information of a predetermined first field of its own IP address according to the server IP address.
Optionally, the method further comprises: an IP address setting unit configured to set different IP addresses for different clients with information of a predetermined second field; and the predetermined first field and the predetermined second field are not overlapped, and form a complete IP address.
Optionally, the IP address setting unit includes: a client distinguishing subunit configured to distinguish different clients according to their MAC addresses; an address allocation subunit configured to allocate predetermined second field information to the clients so that the predetermined second field information of different clients is different; and a setting information transmitting unit configured to transmit the information of the predetermined second field to the client according to the MAC address of the client so that the client modifies the information of the predetermined second field of itself.
According to yet another aspect of the present disclosure, a server is provided, including a memory; and a processor coupled to the memory, the processor configured to perform the networking method performed by the server above based on the instructions stored in the memory.
The server can broadcast the IP address information of the client to the client so that the client modifies the network segment of the IP address of the client into the same network segment as the server, and meanwhile, the server can obtain the IP address information of the client and store the modified IP address information, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be configured manually, and the networking efficiency is improved.
According to another aspect of the present disclosure, a client is provided, including: a client information broadcasting unit configured to broadcast client information including a MAC address and IP address information of the client so that the server distinguishes the client and information of a second field determining the IP address of the client; a server information receiving unit configured to receive server information broadcast from a server, the server information including a server identification and server IP address information; an IP address modification unit configured to modify information of a predetermined first field of an IP address of itself according to the server IP address; and the predetermined first field and the predetermined second field of the IP address are not overlapped, and the predetermined first field and the predetermined second field form the complete IP address.
Optionally, the method further comprises: an address setting information receiving unit configured to receive information of a predetermined second field from the client; the IP address modification unit is further configured to modify information of a predetermined second field of the own IP address.
According to one aspect of the present disclosure, a client is provided, including: a memory; and a processor coupled to the memory, the processor configured to perform the networking method as performed by the client above based on the instructions stored in the memory.
The client can inform the server of the IP address of the client, and can modify the IP address to the same network segment with the server according to the broadcast message of the server, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be manually configured, and the networking efficiency is improved.
According to an aspect of the present disclosure, a computer-readable storage medium is proposed, on which computer program instructions are stored, which instructions, when executed by a processor, implement the steps of any of the above networking methods performed by a server.
By executing the instructions stored in the computer-readable storage medium, the IP address information of the client can be broadcasted to the client so that the client modifies the network segment of the IP address of the client to be the same as that of the server, meanwhile, the server can obtain the IP address information of the client and store the modified IP address information, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be configured manually, and the networking efficiency is improved.
According to an aspect of the present disclosure, a computer-readable storage medium is proposed, on which computer program instructions are stored, which instructions, when executed by a processor, implement the steps of any of the above networking methods performed by a client.
By executing the instructions stored in the computer-readable storage medium, the server can be informed of the IP address of the server, and the IP address can be modified to the same network segment with the server according to the broadcast message of the server, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be manually configured, and the networking efficiency is improved.
Further, according to an aspect of the present disclosure, there is provided a network system including: a server of any of the above; and, a client as any of the above.
In the network system, the server can broadcast the IP address information of the server to the client, can obtain the IP address information of the client and stores the modified IP address information, and the client can modify the IP address of the client according to the IP address of the server, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be configured manually, and the networking efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this disclosure, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure and not to limit the disclosure. In the drawings:
fig. 1 is a schematic diagram of an embodiment of a networking method of the present disclosure.
Fig. 2 is a schematic diagram of another embodiment of a networking method of the present disclosure.
Fig. 3 is a schematic diagram of another embodiment of the networking method of the present disclosure.
Fig. 4 is a schematic signaling interaction diagram of an embodiment of the networking method of the present disclosure.
Fig. 5 is a schematic diagram of one embodiment of a server of the present disclosure.
FIG. 6 is a schematic diagram of one embodiment of a client of the present disclosure.
Fig. 7 is a schematic diagram of another embodiment of a server or client of the present disclosure.
FIG. 8 is a schematic diagram of yet another embodiment of a server or client of the present disclosure.
Fig. 9 is a schematic diagram of one embodiment of a network system of the present disclosure.
Detailed Description
The technical solution of the present disclosure is further described in detail by the accompanying drawings and examples.
A schematic diagram of one embodiment of a networking method of the present disclosure is shown in fig. 1.
In step 101, the server receives client information broadcasted by the client, wherein the client information comprises the MAC address information and the IP address information of the client. In one embodiment, the client's IP address information may be the client's default IP address or a randomly generated IP address.
In step 102, the server broadcasts server information to the client, the server information including a server identification and server IP address information. In one embodiment, the server information may include the MAC address of the server so that the client identifies, records the address of the server and the message from the server. In one embodiment, the client is capable of modifying the information of the predetermined first field of its own IP address according to the IP address of the server. The predetermined first field may be located in a front portion of the IP address, such as the first 24 bits of a 32-bit IP address. In one embodiment, the IP address includes a predetermined first field and a predetermined second field, the predetermined first field and the predetermined second field do not overlap, and the predetermined first field and the predetermined second field constitute the complete IP address.
In one embodiment, the server may record modified IP address information of the client for use as a destination address during the communication interaction, wherein the information of the predetermined first field of the modified IP address information is the same as the information of the predetermined first field of the server. For example, the server modifies the client's first 24-bit address to be the same as itself, with the last 8 bits reserved. The address space of the preset second field is matched with the address space of the local area network of the server, and the number of the addresses of the preset second field can meet the number of nodes which can be borne by the local area network of the server.
By the method, the server can broadcast the IP address information of the server to the client so that the client modifies the network segment of the IP address of the client into the same network segment as the server, and meanwhile, the server can obtain the IP address information of the client and store the modified IP address information, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be configured manually, and the networking efficiency is improved.
In an embodiment, the step 101 and the step 102 have no front-back sequence, and may also synchronize the transceiving operation, thereby further improving the networking efficiency.
In one embodiment, after the server receives the client information broadcast by the client, different predetermined second fields of the IP address may be set for different clients in order to avoid conflicts after modifying the IP address due to the same information in the predetermined second fields of the IP address of the client. E.g. when the predetermined second fields of both clients are identical, assigning to one of them the information of the new predetermined second field; when the predetermined second fields of the three clients are the same, information of a new predetermined second field is allocated to two of them. The information of the new predetermined second field set does not conflict with other clients to avoid the possibility of duplication occurring again.
By the method, the problem of address conflict caused by the fact that the information of the preset second field of the IP address of the client is the same can be solved, and the success probability of networking and the stability of the network are improved.
In one embodiment, after the server allocates the information of the predetermined second field to the client, the newly allocated information of the predetermined second field may be transmitted to the client according to the MAC address of the client so that the client reads and modifies the information of the predetermined second field of itself.
By the method, data transmission can be carried out by using the unique MAC address in a two-layer exchange mode, message transmission is targeted, and the message can be ensured to reach the destination client and be read only by the destination client.
In one embodiment, the server determines that the client information is from different clients according to the difference of the MAC addresses in the received client information, and further compares the information of the predetermined second field of the IP addresses of the different clients to screen out the clients that may conflict.
By the method, the client information can be distinguished according to the unique MAC address, misjudgment caused by receiving the broadcast message of the same client for multiple times is prevented, different preset second field information is prevented from being set for the same client, and networking success probability and network stability are improved.
Schematic diagrams of further embodiments of the networking method of the present disclosure are shown in fig. 2.
In step 201, the server broadcasts server information to the client, the server information including a server identification and server IP address information.
In step 202, client information broadcasted by the client is received, wherein the client information comprises the MAC address information and the IP address information of the client. In one embodiment, steps 201 and 202 are not in a sequential order and may be performed in any order or simultaneously.
In step 203, different clients are distinguished based on their MAC addresses.
In step 204, the predetermined second field information is assigned to the client such that the predetermined second field information is different for different clients. In one embodiment, it may be determined whether there are clients with the same predetermined second field; if more than two clients have the same information of the predetermined second field, the clients having the same information of the predetermined second field are allocated different predetermined second fields, and the allocated predetermined second fields are not the same as the predetermined second fields of any one of the clients. For example, if n clients have the same information of the predetermined second field, n or n-1 clients among them may be assigned the information, different predetermined second field which is not repeated with other clients, where n is an integer greater than or equal to 2.
In step 205, the information of the predetermined second field is transmitted to the client according to the MAC address of the client, so that the client modifies the information of the predetermined second field of itself.
In step 206, modified IP address information of the client is recorded, the information of the predetermined first field of the modified IP address information is the same as the information of the predetermined first field of the server, and the information of the predetermined second field is the information of the predetermined second field allocated by the server.
By the method, the client identification and the distinction can be completed according to the client information, network segment information is provided for the client to modify the IP address, and all the IP address information of the client can be modified under the necessary condition so as to prevent the IP addresses in the network from being repeated, thereby improving the networking efficiency and the stability of the network.
In one embodiment, on the premise that the server finishes broadcasting the server information once, after the server receives the client information, the server stops sending the server information, so that unnecessary signaling transmission can be avoided, and power consumption of the server is reduced.
In another embodiment, the server can continuously send the server information at a predetermined frequency, thereby facilitating the access of a new client at any time and the networking configuration of the newly accessed client, and improving the expandability of the system.
In another embodiment, the server may send the server information for a predetermined number of times after receiving the client information once, so as to avoid bandwidth, resource occupation and electric energy waste caused by continuously sending the server information, and to respond to the newly accessed client conveniently, so as to perform networking configuration on the newly accessed client, thereby improving the scalability of the system.
A schematic diagram of yet another embodiment of the networking method of the present disclosure is shown in fig. 3.
In step 301, the client broadcasts client information, which includes the MAC address information and IP address information of the client. In one embodiment, the server is capable of distinguishing between information from different clients based on MAC address information in the client information and is capable of determining information for the second field of the IP address of each client.
In step 302, server information is received from a server broadcast, the server information including a server identification and server IP address information. In one embodiment, step 301 and step 302 may not be in a sequential order, or may be performed synchronously.
In step 303, the information of the predetermined first field of the own IP address is modified according to the server IP address. The predetermined first field and the predetermined second field of the IP address do not overlap, and the predetermined first field and the predetermined second field constitute a complete IP address.
By the method, the client can inform the server of the IP address of the client and modify the IP address to the same network segment with the server according to the broadcast message of the server, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be manually configured, and the networking efficiency is improved.
In one embodiment, the client modifies the information of the predetermined second field of its own IP address after receiving the information of the predetermined second field from the server. By the method, the client can modify the information of the preset first field to be the same as that of the server and modify the information of the preset second field to be the information provided by the server, so that the modification of the whole IP address is completed, the IP address conflict of different clients is avoided, and the stability of the network is improved.
In one embodiment, on the premise that the client finishes broadcasting the client information once, after the client receives the server information, the client stops sending the client information, so that unnecessary signaling transmission can be avoided, and power consumption of the client is reduced.
A signaling interaction diagram of an embodiment of the networking method of the present disclosure is shown in fig. 4.
In 401, a server broadcasts server information into a network. The server information includes a server identification and IP address information of the server, and in addition, MAC address information of the server may be included in order to facilitate two-layer interaction between the server and the client. In one embodiment, the server begins broadcasting upon system power up.
At 402, each client broadcasts its own client information to the network. The client information includes MAC address information and current IP address information of the client. In one embodiment, the client begins broadcasting upon system power up.
In 403, after receiving the server information broadcast by the server in 401, the client extracts the predetermined first field of the IP address information of all servers, and replaces the information of the predetermined first field of the IP address of the client, so that the IP address of the client and the server are in the same address field. For example, the IP of the server is 192.168.1.160, and the IP of client 1 is: 172.16.176.152, the IP of client 2 is: 172.16.177.152, the IP of client 3 is: 192.168.16.158, the predetermined first field is the first 24 bits of the IP address, then client 1 modifies IP to 192.168.1.152, client 2 modifies IP to 192.168.1.152, and client 3 modifies IP to 192.168.1.158.
At 404, the server receives the client information broadcast by each client at 402, distinguishes the client information from different clients by the MAC address, extracts the predetermined second field information of the IP address of the client and compares them.
In 405, new predetermined second field information is allocated to the client having the repeated predetermined second field information of the IP address and transmitted to the corresponding client. For example, in the scenario illustrated in 403, if the server determines that the predetermined second fields of the clients 1 and 2 are the same, then a new predetermined second field of information is assigned to one or both of the clients, e.g., 151 is assigned to the client 1, and the MAC address sent to the client 1 is exchanged through the two layers.
In 406, the client 1 modifies the predetermined second field information of its own IP address after receiving the new predetermined second field information. As in the above scenario, the IP address that client 1 has been modified from 172.16.176.152 to 192.168.1.152 is modified to 192.168.1.151.
In 407, the server records the modified client's IP address. For the client which does not need to allocate new information of the predetermined second field, the recorded IP address is the information of the predetermined first field of the server + the information of the predetermined second field of the client, for the client which sets the new information of the predetermined second field, the server records the information of the IP address of the predetermined first field of the server + the information of the predetermined second field allocated to the client, such as the IP address of the server stored client 1 is 192.168.1.151, the IP address of client 2 is 192.168.1.152, and the IP address of client 2 is 192.168.1.158.
In one embodiment, the server may store the modified IP address of the client after allocating the new predetermined second field of information to the client without waiting for the client's IP address modification and feedback.
By the method, the server can modify the IP address of the client, so that manual operation is reduced, and networking efficiency is improved.
In one embodiment, after the server completes storage of the IP address of the client, the server may attempt to establish communication based on the IP address with the client, if the communication is successfully established, networking is completed, if the communication is not successfully established, the server may perform attempts for a predetermined number of times or for a predetermined duration, and if the repeated attempts are still not successful, the server may issue an alarm or perform the networking method again, thereby ensuring successful networking and improving reliability of communication between the server and each client.
A schematic diagram of one embodiment of a server of the present disclosure is shown in fig. 5. The server information broadcasting unit 501 is capable of broadcasting server information including a server identification and server IP address information to a client. In one embodiment, the server information may include the MAC address of the server so that the client identifies, records the address of the server and the message from the server. In one embodiment, the client is capable of modifying the information of the predetermined first field of its own IP address according to the IP address of the server. The predetermined first field may be located in a front portion of the IP address, such as the first 24 bits of a 32-bit IP address. In one embodiment, the IP address includes a predetermined first field and a predetermined second field, the predetermined first field and the predetermined second field do not overlap, and the predetermined first field and the predetermined second field constitute the complete IP address.
The client information receiving unit 502 can receive client information broadcasted by the client, the client information including MAC address information and IP address information of the client. In one embodiment, the client's IP address information may be the client's default IP address or a randomly generated IP address.
The server can broadcast the IP address information of the client to the client so that the client modifies the network segment of the IP address of the client into the same network segment as the server, and meanwhile, the server can obtain the IP address information of the client and store the modified IP address information, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be configured manually, and the networking efficiency is improved.
In one embodiment, as shown in fig. 5, the server may further include an IP address recording unit 503 capable of recording modified IP address information of the client for use as a destination address in the communication interaction process, wherein the information of the predetermined first field of the modified IP address information is the same as the information of the predetermined first field of the server. For example, the server modifies the client's first 24-bit address to be the same as itself, with the last 8 bits reserved. The address space of the preset second field is matched with the address space of the local area network of the server, and the number of the addresses of the preset second field can meet the number of nodes which can be borne by the local area network of the server.
In one embodiment, as shown in fig. 5, the server may further include an IP address setting unit 504 capable of setting a predetermined second field of different IP addresses for different clients. E.g. when the predetermined second fields of both clients are identical, assigning to one of them the information of the new predetermined second field; when the predetermined second fields of the three clients are the same, information of a new predetermined second field is allocated to two of them. The information of the new predetermined second field set is not repeated with other clients to avoid the possibility of address collision again.
The server can solve the problem of address conflict caused by the fact that the information of the preset second field of the IP address of the client is the same, and the success probability of networking and the stability of the network are improved.
In one embodiment, the IP address setting unit 504 may include a client distinguishing subunit, an address assigning subunit, and a setting information transmitting unit. The client distinguishing sub-list can distinguish different clients according to the MAC addresses of the clients; the address allocation subunit is capable of allocating predetermined second field information to the clients so that the predetermined second field information of different clients is different; the setting information transmitting unit can transmit the predetermined second field information to the client based on the MAC address of the client so that the client modifies the predetermined second field information of itself.
The server can transmit data by using the unique MAC address of the client in a two-layer exchange mode, the message transmission is targeted, and the message can be ensured to reach the target client and be only received by the target client.
A schematic diagram of one embodiment of a client of the present disclosure is shown in fig. 6. The client information broadcasting unit 601 can broadcast client information including MAC address information and IP address information of the client. In one embodiment, the server is capable of distinguishing between information from different clients based on MAC address information in the client information and is capable of determining information for the second field of the IP address of each client. The server information receiving unit 602 can receive server information broadcast from a server, the server information including a server identification and server IP address information. The IP address modification unit 603 can modify information of a predetermined first field of its own IP address according to the server IP address. The predetermined first field and the predetermined second field of the IP address do not overlap, and the predetermined first field and the predetermined second field constitute a complete IP address.
The client can inform the server of the IP address of the client and modify the IP address to the same network segment with the server according to the broadcast message of the server, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be manually configured, and the networking efficiency is improved.
In one embodiment, as shown in fig. 6, the client may further include an address setting information receiving unit 604 capable of receiving information of a predetermined second field from the server and activating the IP address modifying unit 603 to modify the information of the predetermined second field of the IP address of the client itself. The client can modify the information of the preset first field to be the same as the server and modify the information of the preset second field to be the information provided by the server, so that all information of the IP address is modified, IP address conflict of the client is avoided, and the stability of the network is improved.
A schematic diagram of an embodiment of a server of the present disclosure may be shown in fig. 7. The server includes a memory 701 and a processor 702. Wherein: the memory 701 may be a magnetic disk, flash memory, or any other non-volatile storage medium. The memory is for storing instructions in the corresponding embodiments of the networking method performed by the server above. Processor 702 is coupled to memory 701 and may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. The processor 702 is configured to execute instructions stored in the memory, and can implement automatic configuration and storage of an IP address, so that an IP address of a network node does not need to be manually configured, and networking efficiency is improved.
In one embodiment, as also shown in FIG. 8, a server 800 includes a memory 801 and a processor 802. The processor 802 is coupled to the memory 801 by a BUS 803. The server 800 may also be coupled to external storage 805 via storage interface 804 to facilitate retrieval of external data, and may also be coupled to a network or another computer system (not shown) via network interface 806. And will not be described in detail herein.
In the embodiment, the data instruction is stored in the memory, and the instruction is processed by the processor, so that the automatic configuration and storage of the IP address can be realized, the IP address of the network node does not need to be manually configured, and the networking efficiency is improved.
A schematic diagram of an embodiment of a client of the present disclosure may be as shown in fig. 7. The client includes a memory 701 and a processor 702. Wherein: the memory 701 may be a magnetic disk, flash memory, or any other non-volatile storage medium. The memory is for storing instructions in the corresponding embodiments of the networking method performed by the client above. Processor 702 is coupled to memory 701 and may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. The processor 702 is configured to execute instructions stored in the memory, and can implement automatic configuration and storage of an IP address, so that an IP address of a network node does not need to be manually configured, and networking efficiency is improved.
In one embodiment, as also shown in FIG. 8, client 800 includes a memory 801 and a processor 802. The processor 802 is coupled to the memory 801 by a BUS 803. The client 800 may also be connected to an external storage device 805 through a storage interface 804 to invoke external data, and may also be connected to a network or another computer system (not shown) through a network interface 806. And will not be described in detail herein.
In the embodiment, the data instruction is stored in the memory, and the instruction is processed by the processor, so that the automatic configuration and storage of the IP address can be realized, the IP address of the network node does not need to be manually configured, and the networking efficiency is improved.
In another embodiment, a computer-readable storage medium is also proposed, on which computer program instructions are stored, which instructions, when executed by a processor, implement the steps of the method performed by a server or performed by a client in the corresponding embodiment of the networking method. As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, apparatus, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
A schematic diagram of one embodiment of the network system of the present disclosure is shown in fig. 9. The server 91 may be any one of the servers mentioned above, and the clients 921 to 92n may be any one of the clients mentioned above. The server and the client can interact through a local area network, such as a bus type network, a star network and the like.
In the network system, the server can broadcast the IP address information of the server to the client, can obtain the IP address information of the client and stores the modified IP address information, and the client can modify the IP address of the client according to the IP address of the server, so that the automatic configuration and storage of the IP address are realized, the IP address of a network node does not need to be configured manually, and the networking efficiency is improved.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Thus far, the present disclosure has been described in detail. Some details that are well known in the art have not been described in order to avoid obscuring the concepts of the present disclosure. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
Finally, it should be noted that: the above examples are intended only to illustrate the technical solutions of the present disclosure and not to limit them; although the present disclosure has been described in detail with reference to preferred embodiments, those of ordinary skill in the art will understand that: modifications to the specific embodiments of the disclosure or equivalent substitutions for parts of the technical features may still be made; all such modifications are intended to be included within the scope of the claims of this disclosure without departing from the spirit thereof.

Claims (17)

1. A networking method, comprising:
receiving client information broadcasted by a client, wherein the client information comprises Media Access Control (MAC) address information and Internet Protocol (IP) address information of the client;
broadcasting server information to a client, the server information including a server identification and server IP address information, so that the client modifies information of a predetermined first field of its own IP address according to the server IP address, including modifying the information of the predetermined first field of its own IP address to be identical to the information of the predetermined first field of the server IP address;
in the case that there is a predetermined second field of the IP addresses of different clients being the same, further comprising:
setting different IP addresses for different clients, wherein the preset first field and the preset second field are not overlapped, and the preset first field and the preset second field form a complete IP address;
the server records the modified IP address information of the client according to the self IP address and the preset second field of the IP address of the client so as to be used as the destination address of the client.
2. The method of claim 1, wherein the setting of the information of the predetermined second field for different IP addresses for different clients comprises:
distinguishing different clients according to the MAC addresses of the clients;
allocating information of a predetermined second field to the client machine so that the information of the predetermined second field of different client machines is different;
and sending the information of the predetermined second field to the client according to the MAC address of the client so that the client modifies the information of the predetermined second field of the client.
3. The method of claim 2, wherein the allocating the information of the predetermined second field to the client comprises:
judging whether a client with the same information of a preset second field exists;
if more than two clients have the same information of the predetermined second field, the clients having the same information of the predetermined second field are allocated different predetermined second fields, and the allocated predetermined second fields are not identical to the predetermined second fields of any one client.
4. The method according to any one of claims 1 to 3, wherein the predetermined second field is located at the tail of an IP address, and the address space of the predetermined second field matches the local area network address space of the server.
5. The method of any of claims 1-3, further comprising:
stopping broadcasting the server information after receiving the client information; or the like, or, alternatively,
broadcasting the server information a predetermined number of times upon receiving the client information.
6. A networking method, comprising:
broadcasting client information, wherein the client information comprises Media Access Control (MAC) address information and IP address information of the client, so that the server distinguishes the client and determines information of a second field of the IP address of the client;
receiving server information broadcasted from a server, wherein the server information comprises a server identifier and server IP address information;
modifying the information of a preset first field of the IP address of the server according to the IP address of the server, wherein the information comprises the following steps: modifying the information of a preset first field of the IP address of the server into the same information of the preset first field of the IP address of the server; the server records the IP address information modified by the client according to the IP address of the server and the IP address of the client so as to be used as the destination address of the client;
the predetermined first field and the predetermined second field of the IP address are not overlapped, and the predetermined first field and the predetermined second field form a complete IP address.
7. The method of claim 6, further comprising:
receiving information of a predetermined second field from the server;
modifying the information of the predetermined second field of the own IP address.
8. The method of claim 6 or 7, further comprising:
and stopping broadcasting the client information after receiving the server information.
9. A server, comprising:
a client information receiving unit configured to receive client information broadcasted by a client, the client information including MAC address information and IP address information of the client;
a server information broadcasting unit configured to broadcast server information to a client, the server information including a server identification and server IP address information so that the client modifies information of a predetermined first field of its own IP address according to the server IP address, including modifying the information of the predetermined first field of its own IP address to be identical to the information of the predetermined first field of the server IP address; the server records the IP address information modified by the client according to the IP address of the server and a preset second field of the IP address of the client so as to be used as a destination address of the client;
an IP address setting unit configured to set information of a predetermined second field of different IP addresses for different clients in the case where there is a case where the predetermined second field of the IP addresses of the different clients is the same;
wherein the predetermined first field and the predetermined second field are not overlapped, and the predetermined first field and the predetermined second field form a complete IP address.
10. The server according to claim 9, wherein the IP address setting unit includes:
a client distinguishing subunit configured to distinguish different clients according to the MAC addresses of the clients;
an address allocation subunit configured to allocate the information of the predetermined second field to the clients so that the information of the predetermined second field of different clients is different;
and the setting information sending unit is configured to send the information of the predetermined second field to the client according to the MAC address of the client so that the client modifies the information of the predetermined second field of the client.
11. A server, comprising a memory; and
a processor coupled to the memory, the processor configured to perform the method of any of claims 1-5 based on instructions stored in the memory.
12. A client, comprising:
a client information broadcasting unit configured to broadcast client information including a MAC address and IP address information of the client so that the server distinguishes the client and information of a second field determining the IP address of the client;
a server information receiving unit configured to receive server information broadcast from a server, the server information including a server identification and server IP address information;
an IP address modifying unit configured to modify information of a predetermined first field of an IP address of itself according to the server IP address, including: modifying the information of a preset first field of the IP address of the server into the same information of the preset first field of the IP address of the server; the server records the IP address information modified by the client according to the IP address of the server and the IP address of the client so as to be used as the destination address of the client;
the predetermined first field and the predetermined second field of the IP address are not overlapped, and the predetermined first field and the predetermined second field form a complete IP address.
13. The client of claim 12, further comprising:
an address setting information receiving unit configured to receive information of a predetermined second field from the client;
the IP address modification unit is further configured to modify information of a predetermined second field of the own IP address.
14. A client, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of any of claims 6 to 8 based on instructions stored in the memory.
15. A computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any one of claims 1 to 5.
16. A computer readable storage medium having stored thereon computer program instructions which, when executed by a processor, implement the steps of the method of any one of claims 6 to 8.
17. A network system, comprising:
the server of any one of claims 9 to 11; and the combination of (a) and (b),
the client of any one of claims 12 to 14.
CN201810058726.9A 2018-01-22 2018-01-22 Networking method, server, client and network system Active CN108134858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810058726.9A CN108134858B (en) 2018-01-22 2018-01-22 Networking method, server, client and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810058726.9A CN108134858B (en) 2018-01-22 2018-01-22 Networking method, server, client and network system

Publications (2)

Publication Number Publication Date
CN108134858A CN108134858A (en) 2018-06-08
CN108134858B true CN108134858B (en) 2020-02-14

Family

ID=62400830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810058726.9A Active CN108134858B (en) 2018-01-22 2018-01-22 Networking method, server, client and network system

Country Status (1)

Country Link
CN (1) CN108134858B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020087405A1 (en) * 2018-10-31 2020-05-07 深圳迈瑞生物医疗电子股份有限公司 In vitro diagnostic device, in vitro diagnostic pipeline and networking method therefor
CN110048895B (en) * 2019-04-25 2023-01-03 广州河东科技有限公司 Node equipment, hotel network setting method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8549609B2 (en) * 2011-05-31 2013-10-01 Red Hat, Inc. Updating firewall rules
CN105791067A (en) * 2016-04-29 2016-07-20 江苏惠通集团有限责任公司 Intelligent household system
CN106936804A (en) * 2015-12-31 2017-07-07 华为技术有限公司 A kind of access control method and authenticating device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123549B (en) * 2006-08-11 2010-05-12 华为技术有限公司 Access network system with separated control and carrier and its communication implementation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8549609B2 (en) * 2011-05-31 2013-10-01 Red Hat, Inc. Updating firewall rules
CN106936804A (en) * 2015-12-31 2017-07-07 华为技术有限公司 A kind of access control method and authenticating device
CN105791067A (en) * 2016-04-29 2016-07-20 江苏惠通集团有限责任公司 Intelligent household system

Also Published As

Publication number Publication date
CN108134858A (en) 2018-06-08

Similar Documents

Publication Publication Date Title
CN105847456B (en) A kind of RS485 distributes address methods, devices and systems automatically
CN110784557B (en) Detecting hardware address conflicts in a computer network
CN104468574B (en) A kind of method, system and device of virtual machine dynamic access IP address
WO2020001045A1 (en) Address management method and device
CN102025798A (en) Address allocation processing method, device and system
CN102118453B (en) Method, service device, client and communication system for automatic configuration of IP address
US10225854B2 (en) Enhancements to resource allocation for MBSFN transmission in an MBSFN area
CN106789498B (en) Network address allocation method of Modbus communication network, slave node equipment and communication system
CN108134858B (en) Networking method, server, client and network system
CN106713522B (en) Wireless fidelity Wi-Fi connection method and mobile terminal
EP3128706A1 (en) Resource reuse method and apparatus
CN106302861B (en) Address allocation method and device
CN111385373B (en) Fast duplicate address detection for range of link local addresses
CN107547675A (en) A kind of user equipment migration method and apparatus
CN108632399A (en) A kind of address distribution method and device
CN102244689B (en) Method and equipment for obtaining remote IP address
CN111683159A (en) IP address allocation method, device, system and storage medium
CN104426759A (en) Host machine router acquiring method, host machine router acquiring device, and host machine router acquiring system
CN107995125B (en) Traffic scheduling method and device
EP4216510A1 (en) Method for acquiring address, apparatus and system
CN106028303B (en) Intelligent device discovery method and device
CN112152899A (en) Data processing method and device based on network slice
CN113194119B (en) Configuration file acquisition method and device
CN107078965B (en) Streaming media service providing method and device
CN113395366A (en) Network address allocation method and device

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