CN107623752B - Network management method and device based on link layer - Google Patents

Network management method and device based on link layer Download PDF

Info

Publication number
CN107623752B
CN107623752B CN201610565901.4A CN201610565901A CN107623752B CN 107623752 B CN107623752 B CN 107623752B CN 201610565901 A CN201610565901 A CN 201610565901A CN 107623752 B CN107623752 B CN 107623752B
Authority
CN
China
Prior art keywords
address
network management
message
modification
equipment
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
CN201610565901.4A
Other languages
Chinese (zh)
Other versions
CN107623752A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Information Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Information Technologies Co Ltd filed Critical New H3C Information Technologies Co Ltd
Priority to CN201610565901.4A priority Critical patent/CN107623752B/en
Priority to PCT/CN2017/092350 priority patent/WO2018010616A1/en
Publication of CN107623752A publication Critical patent/CN107623752A/en
Application granted granted Critical
Publication of CN107623752B publication Critical patent/CN107623752B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a network management method and device based on a link layer. In the application, the network device can dynamically modify the network management IP address of the opposite terminal device mutually by interacting the link layer message with the opposite terminal device. This enables dynamic modification of the network management IP address of the network device.

Description

Network management method and device based on link layer
Technical Field
The present application relates to network communication technologies, and in particular, to a method and an apparatus for managing a network based on a link layer.
Background
Link Layer Discovery Protocol (LLDP) is a standard Link Layer Protocol. The LLDP organizes the device information of the local device, such as device identification, interface identification, etc., into Type/Length/Value (TLV) respectively and encapsulates the TLV in a Link Layer Discovery Protocol Data Unit (LLDPDU) to be issued to the neighbors directly connected with the LLDPU.
Disclosure of Invention
The application provides a network management method and a network management device based on a link layer, so as to dynamically modify a network management IP address of network equipment.
The technical scheme provided by the application comprises the following steps:
a network management method based on link layer is applied to network equipment and comprises the following steps:
when the network management IP address of the opposite terminal equipment is modified from the first network management IP address to the second network management IP address, sending an IP address modification message to the opposite terminal equipment, wherein the IP address modification message carries the second network management IP address;
and when monitoring an IP address modification success response message returned to the device by the opposite terminal device aiming at the IP address modification message in a set monitoring period, determining that the opposite terminal device modifies the network management IP address from the first network management IP address to the second network management IP address.
A network management device based on link layer, which is applied to network equipment, includes:
the sending module is used for sending an IP address modification message to the opposite terminal equipment when the network management IP address of the opposite terminal equipment is modified from a first network management IP address to a second network management IP address, wherein the IP address modification message at least carries the MAC address of the equipment and the second network management IP address;
and the monitoring module is used for determining that the opposite terminal equipment modifies the network management IP address from the first network management IP address to the second network management IP address when monitoring an IP address modification success response message returned to the equipment by the opposite terminal equipment aiming at the IP address modification message in a set monitoring period.
According to the technical scheme, the network management IP address of the opposite terminal equipment can be modified mutually and dynamically by the network equipment interacting the link layer message with the opposite terminal equipment. This enables dynamic modification of the network management IP address of the network device.
Drawings
FIG. 1 is a flow chart of a method provided herein;
FIG. 2 is a schematic view of an embodiment provided herein;
fig. 3 is a schematic diagram of a message format structure provided in the present application;
FIG. 4 is a block diagram of the apparatus provided in the present application;
fig. 5 is a hardware configuration diagram of the apparatus shown in fig. 4 provided in the present application.
Detailed Description
The LLDPDU is a data unit encapsulated in the data portion of the LLDP packet, and table 1 shows the structure of the LLDPDU by way of example:
Figure BDA0001051165830000021
Figure BDA0001051165830000031
TABLE 1
In the network, each network device periodically sends LLDP messages to neighbor devices. And if the local configuration of the equipment is changed, immediately sending the LLDP message. And when the device receives the LLDP message, the validity of the LLDP message is checked, and the neighbor information is updated after the LLDP message passes the validity check.
In practical application, when the network management IP address of the network equipment needs to be modified, the network management IP address of the network equipment is modified by logging in through a serial port line.
The method provided by the invention does not need to log in and modify the network management IP address of the network equipment through the serial port line, but dynamically modifies the network management IP address of the network equipment. In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Referring to fig. 1, fig. 1 is a flow chart of a method provided by the present application. As shown in fig. 1, the process may include the following steps:
step 101, when a network device modifies a network management IP address of an opposite terminal device from a first network management IP address to a second network management IP address, the network device sends an IP address modification message to the opposite terminal device, where the IP address modification message carries the second network management IP address.
For convenience of description, the network management IP address of the peer device is referred to as a first network management IP address. In this step 101, the network device determines that the network management IP address of the peer device needs to be modified according to actual requirements, and the modified network management IP address is recorded as a second network management IP address. That is to say, when it is determined that the network management IP address of the peer device needs to be modified from the first network management IP address to the second network management IP address, the network device sends an IP address modification packet to the peer device, and the IP address modification packet sent to the peer device carries the second network management IP address.
After the peer device receives the IP address modification packet, it modifies the network management IP address of the peer device into the network management IP address specified by the received IP address modification packet, i.e. the second network management IP address, if the peer device receives the IP address modification packet in step 102, and returns an IP address modification success response packet to the source MAC address of the received IP address modification packet.
Step 102, when the network device receives an IP address modification success response message returned by the opposite terminal device to the device for the IP address modification message in a set monitoring period, it is determined that the opposite terminal device has modified the network management IP address from the first network management IP address to the second network management IP address.
In the above description, the IP address modification packet and the IP address modification success response packet are packets defined at the link layer to implement the present application, and belong to link layer packets.
As can be seen from the flow shown in fig. 1, in the present application, network management IP addresses can be dynamically modified mutually between network devices through link layer messages.
In a disclosed embodiment, before the process shown in fig. 1, the network device may further dynamically acquire the network management IP address of the peer device, where the acquired network management IP address is the first network management IP address. In another disclosed embodiment, the network device may further pre-configure a network management IP address of the peer device, that is, the first network management IP address, and the network device may obtain the network management IP address of the peer device, that is, the first network management IP address, based on the configuration. The following only describes that the network device dynamically acquires the network management IP address of the peer device as an example.
As an embodiment, the dynamically acquiring, by the network device, the network management IP address of the peer device may include:
the network equipment broadcasts an IP address request message in the network, wherein the IP address request message carries the network management IP address of the equipment;
and when the network equipment receives an IP address response message returned by the opposite terminal equipment aiming at the IP address request message in a set request period, acquiring the network management IP address of the opposite terminal equipment carried by the IP address response message according to the IP address response message.
In another embodiment, the network device may further receive an IP address request packet, and return an IP address response packet to the source MAC address of the received IP address request packet, where the IP address response packet carries the network management IP address of the device.
In a disclosed embodiment, the network device may further receive an IP address modification packet, modify the network management IP address of the network device to the network management IP address specified by the received IP address modification packet, and return an IP address modification success response packet to the source MAC address of the received IP address modification packet. As an embodiment, modifying the network management IP address of the device to the network management IP address specified by the received IP address modification packet includes:
and judging whether the network management IP address specified by the received IP address modification message meets the IP address modification condition of the equipment, if so, modifying the network management IP address of the equipment into the network management IP address specified by the received IP address modification message. Here, the IP address modification conditions of the present device are: the network management IP address of the present device belongs to the same network segment, or whether the present device configuration allows network management IP address modification, etc., and the present invention is not particularly limited.
As an embodiment, in the present invention, before modifying the network management IP address of the network device to the network management IP address specified by the received IP address modification packet, the network device further includes: judging whether the state of the equipment is an IP address modification state, if not, setting the state of the equipment as the IP address modification state, and continuously executing the operation of modifying the network management IP address of the equipment into the network management IP address specified by the received IP address modification message; if yes, returning the message that the IP address is modifying to the source MAC address of the received message that the IP address is modifying.
Further, after modifying the network management IP address of the network device to the network management IP address specified by the received IP address modification packet, the network device further includes: and deleting the setting of the state of the equipment as the IP address modification state. Here, as an embodiment, the setting of the state of the device as the IP address modification state is exemplified by setting the state of the device to a first setting value such as 1. Correspondingly, the setting for deleting the state of the device into the IP address modification state is to set the state of the device to a second set value, such as 0.
Further, in a disclosed embodiment, the network device may further return to the step of sending the IP address modification packet to the peer device when waiting for more than one set listening period to arrive when receiving that the peer device is modifying the packet for the IP address returned to the device by the IP address modification packet sent by the device in the set listening period.
The method provided by the invention is described below by way of example based on the above description:
referring to fig. 2, fig. 2 is a schematic diagram of an embodiment provided in the present application. Before describing the embodiment shown in fig. 2, a structure of a packet related to this embodiment is described:
in the embodiment shown in fig. 2, all packets use Ethernet (Ethernet) II format. Fig. 3 shows a structure of an Ethernet (Ethernet) II format, mainly including:
a Destination MAC address field (Destination MAC address), a Source MAC address field (Source MAC address), a message Type field (Type), a Data field (Data) and a check Field (FCS).
The message Type field (Type) specifically indicates whether the message is a request (Req) message or a response (ACK) message, and when the message is a request message, the message Type field is a Type value used for indicating the request message, such as 1, and when the message is a response message, the message Type field is a Type value used for indicating the response message, such as 0.
Wherein, the data field mainly consists of data units (PDUs), and the PDUs consist of TLVs, and table 2 shows, by way of example, each TLV:
Figure BDA0001051165830000061
Figure BDA0001051165830000071
TABLE 2
In the embodiment shown in fig. 2, the device 1, the device 2, and the device 3 exist in the network as an example.
In fig. 2, taking the example that the device 1 dynamically acquires the network management IP addresses of the devices 2 and 3 as the opposite devices, then,
the device 1 broadcasts an IP address request message within the network. Based on the message structure shown in fig. 3, the destination MAC address field of the IP address request message is a MAC address set to indicate broadcasting, such as FFFF; the source MAC address field of the IP address request packet is the MAC address (denoted as MAC1) of the device 1, and the packet type field of the IP address request packet is a type value such as 1 used to represent the request packet; the TLV of the data field of the IP address request packet is the MAC TLV and the IPv4TLV in table 1. Specifically, the MAC TLV is a TLV corresponding to the MAC address of the device 1, and the IPv4TLV is a TLV corresponding to the network management IP address (denoted as IP1) of the device 1.
After the device 1 broadcasts the IP address request message in the network, both the devices 2 and 3 in the network receive the IP address request message broadcasted by the device 1.
When the device 2 receives the IP address request message broadcasted by the device 1, and analyzes that the MAC address carried by the received IP address request message is MAC1, an IP address response message is returned to the MAC 1. Based on the message structure shown in fig. 3, the destination MAC address field of the IP address response message is the MAC address of device 1, i.e., MAC1, the source MAC address field of the IP address response message is the MAC address of device 2 (denoted as MAC2), the message type field of the IP address response message is a type value used for indicating a response message, such as 0, and the TLV of the data field of the IP address response message is exemplified as shown in table 3.
Figure BDA0001051165830000072
Figure BDA0001051165830000081
TABLE 3
In this embodiment, the IP address response packet returned by the Device 2 carries a Device Type TLV and a Device SN TLV, which is convenient for the Device 1 to determine to which Device the network management IP address of the Device 2 carried in the received IP address response packet corresponds.
When the device 3 receives the IP address request message broadcast by the device 1, and analyzes that the MAC address carried in the received IP address request message is MAC1, an IP address response message is returned to the MAC 1. Based on the message structure shown in fig. 3, the destination MAC address field of the IP address response message is the MAC address of the device 1, i.e., MAC1, the source MAC address field of the IP address response message is the MAC address of the device 3 (denoted as MAC3), the message type field of the IP address response message is a type value used for indicating a response message, such as 0, and the TLV of the data field of the IP address response message is exemplified as shown in table 4.
Figure BDA0001051165830000082
TABLE 4
In this embodiment, the IP address response packet returned by the Device 3 carries a Device Type TLV and a Device SN TLV, which is convenient for the Device 1 to determine to which Device the network management IP address of the Device 3 carried in the received IP address response packet corresponds. .
The device 1 monitors an IP address response message in a set request period after broadcasting the IP address request message, where the set request period is configured in advance.
When the device 1 monitors the IP address response packet from the device 2 in the set request period, the IP address response packet is analyzed to obtain the network management IP address of the device 2 carried by the IP address response packet. Similarly, when the device 1 monitors the IP address response packet from the device 3 in the set request period, the IP address response packet is analyzed to obtain the network management IP address of the device 3 carried in the IP address response packet.
It should be noted that, after the set request period is ended, if the device 1 monitors the IP address response packet from the device 2 or the device 3, the monitored IP address response packet is discarded. It should be further noted that, based on the asynchronous communication between the sending of the IP address request packet and the sending of the IP address response packet, the device 1 may monitor multiple IP address response packets returned by the same device, such as the device 2, in a set request period, and for this situation, the device 1 may perform repeated packet filtering according to the source MAC address, which is similar to the existing repeated packet filtering and is not described again.
The above description has been made on the device 1 dynamically acquiring the network management IP addresses of the device 2 and the device 3.
After acquiring the network management IP address of the device 2 and the network management IP address of the device 3, the device 1 finds that the device types and the device serial numbers of the device 2 and the device 3 are different, but the network management IP addresses are the same and are both IP 2. For this case, the device 1 determines to modify the network management IP address of the device 3. It should be noted that this case is only one embodiment in which the device 1 determines to modify the network management IP address of the device 3, and other cases, such as adjusting the network management IP address of the device 3 based on the service plan of the device 3, or modifying the network management IP address of the device 3 based on the user configuration, etc., are not specifically limited in this embodiment.
Suppose the modified network management IP address of the device 3 is IP 3. The IP3 is different from the IP1, which is the network management IP address of the device 1, and the network management IP address of any other device acquired by the device 1. As one embodiment, the network segment to which IP3 belongs is the same as the network segment to which device 1's administrative IP address, IP1, belongs.
Device 1 sends an IP address modification message to device 3. Based on the message structure shown in fig. 3, the destination MAC address field of the IP address modification message is the MAC address of the device 3, i.e., MAC3, the source MAC address field of the IP address modification message is the MAC address of the device 1, i.e., MAC1, the message type field of the IP address modification message is a type value for indicating a request message, such as 1, and TLVs of the data field of the IP address modification message are exemplified as shown in table 5.
Figure BDA0001051165830000101
TABLE 5
The device 3 receives the IP address modification message sent by the device 1 and judges whether the state of the device is the IP address modification state or not;
if the device 3 judges that the state of the device is not the IP address modification state, the state of the device 3 is set to be the IP address modification state; then, the device 3 determines whether the IP3 carried in the IP address modification message satisfies the IP address modification condition of the device 3. The IP address modification conditions here are, for example: the network segment to which the IP3 belongs is the same as the current network management IP address of the device 3, that is, the network segment to which the IP2 belongs. When the device 3 determines that the IP3 carried in the IP address modification packet satisfies the IP address modification condition of the device 3, the network management IP address of the device 3 is modified to IP3, the setting that the state of the device is the IP address modification state is deleted, for example, the state of the device is updated from the IP address modification state to the non-IP address modification state, and then a response packet indicating that the IP address modification is successful is returned to the device 1. Based on the message structure shown in fig. 3, the destination MAC address field of the successful response message for IP address modification is the MAC address of device 1, i.e., MAC1, the source MAC address field of the successful response message for IP address modification is the MAC address of device 3, i.e., MAC3, the message type field of the successful response message for IP address modification is the type value used for indicating the response message, e.g., 0, and an example TLV of the data field of the successful response message for IP address modification is shown in table 6.
Figure BDA0001051165830000111
TABLE 6
As an embodiment, when the device 3 determines that the IP3 carried in the IP address modification message does not satisfy the IP address modification condition of the device 3, the device deletes the setting that the state of the device is the IP address modification state, for example, updates the state of the device from the IP address modification state to the non-IP address modification state, and then returns an IP address modification failure response message to the device 1. Based on the message structure shown in fig. 3, the destination MAC address field of the IP address modification failure response message is the MAC address of the device 1, i.e., MAC1, the source MAC address field of the IP address modification failure response message is the MAC address of the device 3, i.e., MAC3, the message type field of the IP address modification failure response message is a type value used for indicating a response message, e.g., 0, and TLV of the data field of the IP address modification failure response message is exemplified as shown in table 7.
Figure BDA0001051165830000112
Figure BDA0001051165830000121
TABLE 7
When the device 3 judges that the state of the device is the IP address modification state, the device 3 returns a message that the IP address is being modified to the device 1. Based on the message structure shown in fig. 3, the destination MAC address field of the message being modified by the IP address is the MAC address of device 1, i.e., MAC1, the source MAC address field of the message being modified by the IP address is the MAC address of device 3, i.e., MAC3, the message type field of the message being modified by the IP address is a type value for indicating a response message, e.g., 0, and TLV of the data field of the message being modified by the IP address is exemplified as shown in table 8.
Figure BDA0001051165830000122
TABLE 8
The device 1 monitors the message returned by the device 3 in the set monitoring period, wherein when the device 1 monitors the IP address modification success response message sent by the device 3 in the set monitoring period, it is determined that the device 3 has successfully modified the network management IP address from IP2 to IP 3. When the device 1 does not monitor any message returned to the device by the device 3 for the IP address modification message in the set monitoring period, the step of sending the IP address modification message to the opposite terminal device is continued. When the device 1 receives the message that the device 3 returns to the device for modifying the IP address in the set monitoring period, the device 1 returns to the step of sending the IP address modification message to the opposite terminal device when waiting for more than one set monitoring period. And when the device 1 monitors the IP address modification failure response message sent by the device 3 in the set monitoring period, it determines a new modified network management IP address for the device 3 again, and records the new modified network management IP address as IP4, and executes the operation of sending the IP address modification message to the device 3 according to the above-mentioned description, which is not repeated.
The description of the above method embodiment is now complete.
It can be seen from the foregoing embodiments that, in the present application, network devices may collect their MAC addresses, network management IP addresses, and the like through message interaction, and may also dynamically modify their network management IP addresses through message interaction. The purpose of modifying the network management IP address of the network equipment is realized, and all the network equipment in the network is conveniently managed.
The methods provided herein are described above. The following describes the apparatus provided in the present application:
referring to fig. 4, fig. 4 is a diagram illustrating the structure of the apparatus according to the present invention. The apparatus is applied to a network device, and as shown in fig. 4, may include:
the sending module is used for sending an IP address modification message to the opposite terminal equipment when the network management IP address of the opposite terminal equipment is modified from a first network management IP address to a second network management IP address, wherein the IP address modification message at least carries the MAC address of the equipment and the second network management IP address;
and the monitoring module is used for determining that the opposite terminal equipment modifies the network management IP address from the first network management IP address to the second network management IP address when monitoring an IP address modification success response message returned to the equipment by the opposite terminal equipment aiming at the IP address modification message in a set monitoring period.
In one embodiment, as shown in fig. 4, the apparatus further comprises:
the first receiving module is used for receiving the IP address modification message;
and the IP address modification module is used for modifying the network management IP address of the equipment into the network management IP address carried by the IP address modification message received by the receiving module and returning an IP address modification success response message to the MAC address carried by the received IP address modification message.
In one embodiment, as shown in fig. 4, the apparatus further comprises:
and the obtaining module is used for obtaining the network management IP address of the opposite terminal equipment, and the obtained network management IP address is the first network management IP address.
As an embodiment, the obtaining module obtains the network management IP address of the peer device through the following steps:
broadcasting an IP address request message in a network, wherein the IP address request message at least carries an MAC address and a network management IP address of the equipment;
when an IP address response message returned by the opposite terminal equipment aiming at the IP address request message is received in a set request period, the IP address response message is analyzed to obtain the network management IP address of the opposite terminal equipment carried by the IP address response message.
In one embodiment, as shown in fig. 4, the apparatus further comprises:
the second receiving module is used for receiving the IP address request message;
based on this, the sending module further returns an IP address response message to the source MAC address of the received IP address request message, where the IP address response message carries the network management IP address of the device.
In one embodiment, the modification module modifies the network management IP address of the device to the network management IP address specified by the received IP address modification message by:
judging whether the network management IP address specified by the received IP address modification message meets the IP address modification condition of the equipment, wherein the IP address modification condition of the equipment comprises but is not limited to: the network management IP address and the network management IP address of the equipment belong to the same network segment;
if yes, the network management IP address of the equipment is modified to the network management IP address appointed by the received IP address modification message.
In a disclosed embodiment, the modifying module further includes, before modifying the network management IP address of the device to the network management IP address specified by the received IP address modification packet: judging whether the state of the equipment is an IP address modification state, if not, setting the state of the equipment as the IP address modification state, and continuously executing the operation of modifying the network management IP address of the equipment into the network management IP address specified by the received IP address modification message; if yes, returning the message that the IP address is being modified to the source MAC address of the received IP address modification message;
preferably, the modifying module further modifies the network management IP address of the device to the network management IP address specified by the received IP address modification packet, and then includes: the state of the equipment is the setting of an IP address modification state;
in one embodiment, the monitoring module returns to the step of sending the IP address modification packet to the peer device when waiting for more than one set monitoring period to arrive when receiving the IP address modification packet returned to the peer device by the peer device for the IP address modification packet sent by the device within the set monitoring period.
Thus, the description of the apparatus provided by the present invention is completed.
Correspondingly, the application also provides a description of the hardware structure of the device shown in fig. 4. Referring to fig. 5, fig. 5 is a hardware structure diagram of the apparatus shown in fig. 4 provided in the present application. As shown in fig. 5, the hardware structure may include a processing component that further includes one or more processors, and memory resources, represented by memory, for storing instructions, such as application programs, that are executable by the processing component. The application program stored in the memory comprises the sending module, the monitoring module, the first receiving module, the modifying module, the obtaining module and the second receiving module. Further, the processing component is configured to execute instructions to perform the operations performed by the various modules described above.
As shown in fig. 5, the hardware architecture may also include a power component configured to perform power management of the device, a wired or wireless network interface configured to connect the device to a network, and an input-output (I/O) interface.
To this end, the description of the hardware configuration shown in fig. 5 is completed.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (13)

1. A network management method based on link layer is characterized in that the method is applied to network equipment and comprises the following steps:
when the network management IP address of the opposite terminal equipment is the same as the network management IP addresses of other equipment, determining that the network management IP address of the opposite terminal equipment is modified from the current first network management IP address to a second network management IP address, and sending an IP address modification message to the opposite terminal equipment, wherein the IP address modification message carries the second network management IP address;
when monitoring an IP address modification success response message returned to the device by the opposite terminal device aiming at the IP address modification message in a set monitoring period, determining that the opposite terminal device modifies the network management IP address from a first network management IP address to a second network management IP address;
when receiving the IP address modification message returned to the device by the opposite terminal device aiming at the IP address modification message sent by the device in the set monitoring period, returning to the step of sending the IP address modification message to the opposite terminal device when waiting more than one set monitoring period.
2. The method of claim 1, further comprising:
receiving an IP address modification message;
and modifying the network management IP address of the equipment into the network management IP address appointed by the received IP address modification message, and returning an IP address modification success response message to the source MAC address of the received IP address modification message.
3. The method of claim 1, wherein the method is preceded by:
and acquiring a network management IP address of the opposite terminal device, wherein the acquired network management IP address is the first network management IP address.
4. The method of claim 3, wherein the obtaining the network management IP address of the peer device comprises:
broadcasting an IP address request message in a network, wherein the IP address request message carries a network management IP address of the equipment;
and when an IP address response message returned by the opposite terminal equipment aiming at the IP address request message is received in a set request period, acquiring the network management IP address of the opposite terminal equipment carried by the IP address response message according to the IP address response message.
5. The method of claim 1, further comprising:
receiving an IP address request message;
and returning an IP address response message to the source MAC address of the received IP address request message, wherein the IP address response message carries the network management IP address of the equipment.
6. The method according to claim 2, wherein the modifying the network management IP address of the device to the network management IP address specified by the received IP address modification packet comprises:
judging whether the network management IP address specified by the received IP address modification message meets the IP address modification condition of the equipment, wherein the IP address modification condition of the equipment comprises but is not limited to: the network management IP address and the network management IP address of the equipment belong to the same network segment;
if yes, the network management IP address of the equipment is modified to the network management IP address appointed by the received IP address modification message.
7. The method according to claim 2 or 6, wherein the modifying the network management IP address of the device to the network management IP address specified by the received IP address modification message further comprises: judging whether the state of the equipment is an IP address modification state, if not, setting the state of the equipment as the IP address modification state, and continuously executing the operation of modifying the network management IP address of the equipment into the network management IP address specified by the received IP address modification message; if yes, returning the message that the IP address is being modified to the source MAC address of the received IP address modification message;
after the modifying the network management IP address of the device to the network management IP address specified by the received IP address modification packet, the method further includes: and deleting the setting of the state of the equipment as the IP address modification state.
8. A network management device based on link layer is characterized in that the device is applied to network equipment and comprises:
a sending module, configured to send an IP address modification packet to an opposite end device if it is determined that a network management IP address of the opposite end device is modified from a current first network management IP address to a second network management IP address when the network management IP address of the opposite end device is the same as network management IP addresses of other devices, where the IP address modification packet at least carries an MAC address of the device and the second network management IP address;
the monitoring module is used for determining that the opposite terminal equipment modifies the network management IP address from the first network management IP address to the second network management IP address when monitoring an IP address modification success response message returned to the equipment by the opposite terminal equipment aiming at the IP address modification message in a set monitoring period; and the number of the first and second groups,
when receiving the IP address modification message returned to the device by the opposite terminal device aiming at the IP address modification message sent by the device in the set monitoring period, returning to the step of sending the IP address modification message to the opposite terminal device when waiting more than one set monitoring period.
9. The apparatus of claim 8, further comprising:
the first receiving module is used for receiving the IP address modification message;
and the modification module is used for modifying the network management IP address of the equipment into the network management IP address carried by the IP address modification message received by the receiving module and returning an IP address modification success response message to the MAC address carried by the received IP address modification message.
10. The apparatus of claim 8, further comprising:
the acquisition module is used for acquiring a network management IP address of opposite-end equipment, wherein the acquired network management IP address is the first network management IP address;
the acquisition module acquires the network management IP address of the opposite terminal device through the following steps:
broadcasting an IP address request message in a network, wherein the IP address request message at least carries an MC address and a network management IP address of the equipment;
when an IP address response message returned by the opposite terminal equipment aiming at the IP address request message is received in a set request period, the IP address response message is analyzed to obtain the network management IP address of the opposite terminal equipment carried by the IP address response message.
11. The apparatus of claim 8, further comprising:
the second receiving module is used for receiving the IP address request message;
the sending module further returns an IP address response message to the source MAC address of the received IP address request message, and the IP address response message carries the network management IP address of the equipment.
12. The apparatus according to claim 11, wherein the modifying module modifies the network management IP address of the device to the network management IP address specified by the received IP address modification message by:
judging whether the network management IP address specified by the received IP address modification message meets the IP address modification condition of the equipment, wherein the IP address modification condition of the equipment comprises but is not limited to: the network management IP address and the network management IP address of the equipment belong to the same network segment;
if yes, the network management IP address of the equipment is modified to the network management IP address appointed by the received IP address modification message.
13. The apparatus according to claim 9 or 12, wherein the modifying module further comprises, before modifying the network management IP address of the device to the network management IP address specified by the received IP address modification message: judging whether the state of the equipment is an IP address modification state, if not, setting the state of the equipment as the IP address modification state, and continuously executing the operation of modifying the network management IP address of the equipment into the network management IP address specified by the received IP address modification message; if yes, returning the message that the IP address is being modified to the source MAC address of the received IP address modification message;
the modifying module further modifies the network management IP address of the device to the network management IP address specified by the received IP address modification packet, and then: and deleting the setting of the state of the equipment as the IP address modification state.
CN201610565901.4A 2016-07-15 2016-07-15 Network management method and device based on link layer Active CN107623752B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610565901.4A CN107623752B (en) 2016-07-15 2016-07-15 Network management method and device based on link layer
PCT/CN2017/092350 WO2018010616A1 (en) 2016-07-15 2017-07-10 Link layer based network management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610565901.4A CN107623752B (en) 2016-07-15 2016-07-15 Network management method and device based on link layer

Publications (2)

Publication Number Publication Date
CN107623752A CN107623752A (en) 2018-01-23
CN107623752B true CN107623752B (en) 2020-09-08

Family

ID=60952263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610565901.4A Active CN107623752B (en) 2016-07-15 2016-07-15 Network management method and device based on link layer

Country Status (2)

Country Link
CN (1) CN107623752B (en)
WO (1) WO2018010616A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109150724B (en) * 2018-07-02 2021-06-29 新华三信息技术有限公司 Communication method and network card
CN109618021B (en) * 2018-12-27 2023-02-03 新华三技术有限公司 Method and tool box for modifying IP address
CN110677479B (en) * 2019-09-29 2022-06-07 苏州浪潮智能科技有限公司 Equipment management method, system and storage medium of local area network
CN111600970B (en) * 2020-04-09 2022-08-09 南瑞集团有限公司 Method and system for stably controlling device program centralized downloading
CN113438166B (en) * 2021-06-25 2022-07-22 新华三信息安全技术有限公司 Anycast address determination method, anycast address determination device, network equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417973A (en) * 2002-11-01 2003-05-14 北京佳讯飞鸿电气有限责任公司 Method of altering network equipment IP address via network managing equipment
CN101873356A (en) * 2010-05-10 2010-10-27 杭州海康威视***技术有限公司 Method and device for modifying IP address of equipment
CN102164188A (en) * 2011-03-31 2011-08-24 华为技术有限公司 Network address allocation method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417973A (en) * 2002-11-01 2003-05-14 北京佳讯飞鸿电气有限责任公司 Method of altering network equipment IP address via network managing equipment
CN101873356A (en) * 2010-05-10 2010-10-27 杭州海康威视***技术有限公司 Method and device for modifying IP address of equipment
CN102164188A (en) * 2011-03-31 2011-08-24 华为技术有限公司 Network address allocation method, device and system

Also Published As

Publication number Publication date
WO2018010616A1 (en) 2018-01-18
CN107623752A (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN107623752B (en) Network management method and device based on link layer
US6205122B1 (en) Automatic network topology analysis
US9407522B2 (en) Initiating data collection based on WiFi network connectivity metrics
RU2010136044A (en) WIRELESS RADIO CONTROL UNITS USING IDENTIFIERS
CN110635965B (en) IPv6 network quality monitoring method, equipment and storage medium
CN111225080B (en) Method for acquiring gateway down-hanging equipment information
CN113992508A (en) Local area network automatic networking method of intelligent equipment and intelligent equipment
CN111884938B (en) Router information acquisition method and device
CN111064825B (en) Method and device for realizing DPI data acquisition and control based on ARP
CN111064729B (en) Message processing method and device, storage medium and electronic device
CN110381007B (en) TCP acceleration method and device
CN104955153A (en) Method, device and appliances for discovering resources
CN115086276B (en) Address management method, device, equipment and system
CN113783744A (en) Time delay measuring method and device, computer equipment and storage medium
WO2017101028A1 (en) Data transmission method, m2m server, pgw, sgw and serving network node
CN109089301A (en) network data processing system and method
CN106209666B (en) Link multiplexing method and system based on load balancer
WO2016184025A1 (en) Device management method and apparatus
JP2001067291A (en) Network monitor system
CN111404816A (en) Method, device, system and storage medium for sending multicast message across network
CN116708150B (en) Network diagnosis method and electronic equipment
US11606274B1 (en) Method for operations of virtual machines in monitoring cloud activities, system, and device applying the method
TWI778771B (en) Monitoring method, monitoring system and monitoring device of virtual machine operation
CN113794772B (en) Method and system for remotely accessing built-in page of terminal equipment
CN114024895B (en) TR 069-based network route optimization method and system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Xinhua Sanxin Information Technology Co., Ltd.

Address before: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: Huashan Information Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant