CN106357832B - Looped network address list item update mechanism method and device - Google Patents

Looped network address list item update mechanism method and device Download PDF

Info

Publication number
CN106357832B
CN106357832B CN201610723312.4A CN201610723312A CN106357832B CN 106357832 B CN106357832 B CN 106357832B CN 201610723312 A CN201610723312 A CN 201610723312A CN 106357832 B CN106357832 B CN 106357832B
Authority
CN
China
Prior art keywords
port
arp
response message
address
looped network
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
CN201610723312.4A
Other languages
Chinese (zh)
Other versions
CN106357832A (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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201610723312.4A priority Critical patent/CN106357832B/en
Publication of CN106357832A publication Critical patent/CN106357832A/en
Application granted granted Critical
Publication of CN106357832B publication Critical patent/CN106357832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • H04L61/2553Binding renewal aspects, e.g. using keep-alive messages

Landscapes

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

Abstract

The application provides a kind of looped network address list item update mechanism method and device, and applied to the network equipment in looped network, the network equipment includes master port and auxiliary port, this method comprises: blocking the auxiliary port when the looped network is normal;In the ring network fault, the auxiliary port is opened, the IP address construction ARP broadcasting packet based on other each equipment in the looped network being locally stored simultaneously is broadcasted by master port and auxiliary port;It receives other each equipment in looped network and is directed to the ARP unicast response message that received ARP broadcasting packet unicast returns;Pass through the ARP unicast response message of the another port broadcast reception in addition to the port for receiving ARP unicast response message.Each node is updated without waiting for passive again after address list item aging in the application looped network, but rapidly, actively update local address list item.

Description

Looped network address list item update mechanism method and device
Technical field
This application involves data communication field more particularly to a kind of looped network address list item update mechanism method and devices.
Background technique
In video monitoring, by a specified network equipment and it is multiple without management interchanger connect and compose looped network.Wherein, refer to Determine network equipment similar network interchanger, there are main and auxiliary ports, and when network is normal, auxiliary port is in close state, in network Auxiliary port is opened when abnormal.Be inexpensive interchanger without management interchanger, by administrator be configured to most basic two layers of network/ Three layers of forwarding device and dispose in a network.Fig. 1 shows the specified network equipment and connects composition without management interchanger with multiple Ring network structure figure.It is sent under message access switch 2 with the PC (personal computer, personal computer) under interchanger 6 Monitoring device (IPC, Internet Protocol Camra, i.e. web camera) for, when network is normal, specify network The auxiliary port of equipment is in close state, and the message that PC is sent reaches interchanger 2 according to following path (being labeled as path 1) forwarding Under monitoring device: PC- > interchanger 6- > interchanger 5- > interchanger 4- > interchanger 3- > interchanger 2- > monitoring device.
When link failure between network failure such as interchanger 5 and interchanger 4, the network equipment is specified to decontrol auxiliary port, At this point, the message that PC is sent need to reach the monitoring device under interchanger 2: PC- > interchanger via following path (being denoted as path 2) 6- > interchanger 7- > specified the network equipment (auxiliary the port) -> specified network equipment (master port) -> interchanger 1- > interchanger 2- > prison Control equipment.Each interchanger on path 2 is needed to refresh local address list item such as ARP (Address when E-Packeting according to path 2 Resolution Protocol, address resolution protocol) or MAC Address (Media Access Control, physical address) table , but the address list item of each interchanger does not refresh on path 2 at this time, could brush after the existing address performance aging such as need Newly, this waiting process is generally long, causes in network failure, and each switch device can not fast refresh address list item.
Summary of the invention
In view of this, the application provides a kind of looped network address list item update mechanism method and device, to solve the prior art Present in when looped network sends network failure, the address list item of each equipment refreshes slower problem in looped network.
Specifically, the application is achieved by the following technical solution:
A kind of looped network address list item update mechanism method, applied to the network equipment in looped network, the network equipment includes Master port and auxiliary port, this method comprises:
When the looped network is normal, block the auxiliary port;
In the ring network fault, the opening auxiliary port, the IP based on other each equipment in the looped network being locally stored Location constructs ARP broadcasting packet and is broadcasted by master port and auxiliary port;
It receives other each equipment in looped network and is directed to the ARP unicast response message that received ARP broadcasting packet unicast returns;
Pass through the ARP unicast response of the another port broadcast reception in addition to the port for receiving ARP unicast response message Message, wherein when the port for receiving ARP unicast response message is master port, port supplemented by the another port;Work as reception To when port, the another port is master port supplemented by the port of ARP unicast response message.
Further, the another port broadcast reception by addition to the port for receiving ARP unicast response message ARP unicast response message include:
Received ARP unicast response message is revised as broadcasting packet, and receives ARP unicast response message by removing Another port except port is sent.
Further, described to receive the ARP unicast sound that other each equipment are returned for received ARP broadcasting packet in looped network The message is answered to further comprise:
Obtain the source IP address of received ARP unicast response message and by the IP address of equipment each in the looped network being locally stored It is substituted for the source IP address of the acquisition;
This method further include:
When ring network fault is eliminated, the auxiliary port opened is closed;
It is broadcasted based on each IP address construction ARP broadcasting packet being locally stored and by master port;
Receive the ARP unicast response that other each equipment are returned for the ARP broadcasting packet unicast that this equipment is sent in looped network Message obtains the source IP address of received ARP unicast response message and replaces the IP address of equipment each in the looped network being locally stored Received ARP unicast response message is revised as broadcasting packet and is broadcasted by master port by the source IP address for changing the acquisition into.
Further, received ARP unicast response message is revised as broadcasting packet includes:
Two layers of target MAC (Media Access Control) address of received ARP unicast response message are revised as to the broadcast MAC address of setting, it is described Source MAC in ARP unicast response message is constant, and modified ARP unicast response message is broadcasting packet.
Further, the detection looped network network failure is determined by following steps:
Pass through master port transmission link state-detection message;
When not receiving the link state detection messages by auxiliary port within the set time, it is determined that looped network network therefore Barrier.
Corresponding to the looped network address list item update mechanism method of the application, the application also provides a kind of looped network address list item more New mechanism device.
A kind of looped network address list item update mechanism device, applied to the network equipment in looped network, the network equipment includes Master port and auxiliary port, the device include:
Port control modules block the auxiliary port, and in the ring network fault when the looped network is normal, open The auxiliary port;
The IP address of each equipment of other in looped network is locally stored in memory module;
Broadcasting packet constructing module, if the port control modules open the auxiliary port, based on the ring being locally stored The IP address of each equipment of other in net constructs ARP broadcasting packet;
Sending module broadcasts the ARP broadcasting packet by master port and auxiliary port;
Receiving module receives other each equipment in looped network and rings for the ARP unicast that received ARP broadcasting packet unicast returns Answer message;
The sending module passes through the another port broadcast reception in addition to the port for receiving ARP unicast response message ARP unicast response message, wherein when the port for receiving ARP unicast response message is master port, supplemented by the another port Port;Supplemented by the port for receiving ARP unicast response message when port, the another port is master port.
Further, further includes:
Received ARP unicast response message is revised as broadcasting packet by message format conversion module;
The sending module is sent described wide by the another port in addition to the port for receiving ARP unicast response message Casting text.
Further, the memory module obtains the source IP address of received ARP unicast response message and will be locally stored Looped network in the IP address of each equipment be substituted for the source IP address of the acquisition;
The port control modules close the auxiliary port opened when ring network fault is eliminated;
The broadcasting packet constructing module constructs ARP broadcasting packet based on each IP address being locally stored;
The sending module broadcasts the ARP broadcasting packet by master port;
The receiving module receives what other each equipment in looped network were returned for the ARP broadcasting packet unicast that this equipment is sent ARP unicast response message;
The memory module obtains the source IP address of received ARP unicast response message and will be each in the looped network being locally stored The IP address of equipment is substituted for the source IP address of the acquisition;
Received ARP unicast response message is revised as broadcasting packet by the message format conversion module;
The sending module broadcasts the broadcasting packet by master port.
Further, the message format conversion module includes:
Two layers of target MAC (Media Access Control) address of received ARP unicast response message are revised as to the broadcast MAC address of setting, it is described Source MAC in ARP unicast response message is constant, and modified ARP unicast response message is broadcasting packet.
Further, the Network Fault Detection module includes:
Message sending submodule is detected, master port transmission link state-detection message is passed through;
Detection sub-module, detects whether auxiliary port receives the link state detection messages within the set time;
Judging submodule, when not receiving the link state detection messages by auxiliary port within the set time, then really Determine looped network network failure.
The application's after looped network network failure the utility model has the advantages that decontrols auxiliary port, and it is wide to forge each equipment of other in looped network Free ARP broadcasting packet is broadcast, the active unicast after judging address conflict of each equipment returns to ARP unicast response message to network Equipment, so that the network equipment obtains the address learning port of each equipment of other in looped network in real time, and by removing address learning port Except another port forward the device address of each equipment into looped network, enable each equipment in looped network rapidly, actively more New local address list item, without passively being updated again after waiting address list item aging.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the video monitoring ring network structure of the prior art;
Fig. 2 is a kind of looped network address list item update mechanism method flow diagram provided in this embodiment;
Fig. 3 is the format chart of ARP broadcasting packet provided in this embodiment;
Fig. 4 is a kind of structure chart of looped network address list item update mechanism device provided in this embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
Referring to fig. 2, a kind of looped network address list item update mechanism method provided in this embodiment, applied to the network in looped network Equipment, the network equipment include master port and auxiliary port.Wherein, multiple nothings are connected between the master port of the network equipment and auxiliary port Manage interchanger (each without the corresponding node of management interchanger), it is each without management interchanger can connect multiple equipment (such as PC, IPC etc.).
The looped network address list item update mechanism method of the present embodiment includes the following steps:
S101 blocks auxiliary port when looped network is normal;
Wherein, blocking auxiliary port, to be equivalent to auxiliary port connectionless with loop network link, is merely able to receive from master port Link state detects message, but does not have other functions.
S102, in ring network fault, the opening auxiliary port, the IP based on other each equipment in the looped network being locally stored Location constructs ARP broadcasting packet and is broadcasted by master port and auxiliary port;
Wherein, ARP is the TCP that physical address is obtained according to (Internet Protocol, the network protocol) address IP (Transmission Control Protocol transmission control protocol)/IP agreement.
In the present embodiment, the network equipment judges whether there is failure to looped network network real-time detection, for example, two nodes it Between communication link disconnect so that cannot be communicated between equipment under the two nodes, it is determined that looped network network failure.
The deterministic process of network equipment progress looped network network failure are as follows:
Pass through master port transmission link state-detection message;
When not receiving link state detection messages by auxiliary port within the set time, it is determined that looped network network failure.
The size of the timing can be set as needed.In one embodiment, setting time 50ms, master port Periodically (50ms) transmission link state-detection message is into looped network network, to identify network failure state in time, with more rapidly Ground carries out the refreshing of each node storage address list item.
In 50ms, if auxiliary port can receive the link state detection messages sent from master port, show in looped network Link normal communication between each node, looped network network are normal;It is examined when not receiving link state by auxiliary port in 50ms Observe and predict text, it is determined that looped network network failure.
In this implementation, when network is normal, the network equipment collects the equipment letter of other each equipment in looped network under each node Breath (including at least IP address) is simultaneously locally stored.Wherein, the facility information of each equipment further include the equipment MAC Address and Address learning port.Referring to table 1, the master port of the network equipment can be by the IP address of each equipment of other in looped network, MAC Address and ground Location study port, which corresponds, to be stored in local data base, when facilitating looped network to communicate, learns to obtain address by master port Information.
Table 1
IP address MAC Address Address learning port
192.168.25.8 48-ea-63-0b-fb-36 Master port
192.168.25.9 48-ea-63-0b-fb-37 Master port
It is the format of ARP broadcasting packet referring to Fig. 3.The network equipment is exempted from by the IP address construction of each equipment in table 1 The IP address of each equipment is specifically respectively filled in ARP broadcasting packet " transmitting terminal IP address " and " destination IP by the ARP taken The two fields of location " issue gratuitous ARP broadcasting packet to forge the equipment.
After having constructed the ARP broadcasting packet of each equipment, the network equipment passes through the master port of itself and the broadcast of auxiliary port These gratuitous ARP broadcasting packets.
S103 receives other each equipment in looped network and is directed to the ARP unicast response report that received ARP broadcasting packet unicast returns Text;
In the present embodiment, other each equipment are forged due to the network equipment and send gratuitous ARP advertisement message, other respectively set It is standby to be directed to the ARP broadcasting packet received, judge the IP address conflict of the IP address and this equipment in ARP broadcasting packet, then Unicast returns to ARP unicast response message to the network equipment, which carries source IP address and the source of each equipment MAC Address.
Specifically, each equipment fills in the source IP address of the equipment and source MAC after judging address conflict In ARP unicast response message, and the ARP unicast response message message unicast is responded to the network equipment, realization disappears Cease the timeliness of feedback.
After the device address message that the network equipment receives other each equipment feedbacks, received ARP unicast response is obtained The source IP address of message and the source IP address that the IP address of equipment each in the looped network being locally stored is substituted for the acquisition, referring to table 2, the IP address of other each equipment, MAC Address and address learning port are corresponded and are stored in database by the network equipment, are covered Cover original table 1.
Table 2
IP address MAC Address Address learning port
192.168.25.8 48-ea-63-0b-fb-36 Master port
192.168.25.9 48-ea-63-0b-fb-37 Auxiliary port
As indicated shown in 2, other each equipment in looped network are from master port learned addresses list item when looped network network is normal , after ring network fault, then equipment component will become from auxiliary port learned addresses list item, and another part equipment continues to keep from master Port learned addresses list item.
The port of the ARP unicast response message of each equipment feedback of other in the looped network that the network equipment receives is the equipment Address learning port, to realize after looped network breaks down, the network equipment can obtain it in time, and to learn other in looped network each The port of device address information.
S104 passes through the ARP unicast of the another port broadcast reception in addition to the port for receiving ARP unicast response message Response message, wherein when the port for receiving ARP unicast response message is master port, port supplemented by the another port;When When receiving port supplemented by the port of ARP unicast response message, the another port is master port.
In the present embodiment, received ARP unicast response message is revised as broadcasting packet by the network equipment, and by except reception Another port except to the port of ARP unicast response message is sent.
In one embodiment, received ARP unicast response message is revised as the realization of broadcasting packet by the network equipment Steps are as follows:
The broadcast MAC that two layers of target MAC (Media Access Control) address of received ARP unicast response message are revised as setting by the network equipment Location, the source MAC in ARP unicast response message is constant, and modified ARP unicast response message is broadcasting packet.By ARP When unicast response message is revised as broadcasting packet, without modification, i.e., the content inside two layers encapsulation remains as original to message content The real IP address and MAC Address of the other equipment carried inside ARP unicast response message.Each equipment being capable of Active Learning broadcast Source IP address and MAC Address inside message (without two layers of encapsulation), due to being that looped network is respectively exchanged without management inside broadcasting packet The real IP address and MAC Address of each equipment under machine, all devices within the scope of two layers can learn to each to hand over without management The real IP address and MAC Address of each equipment under changing planes simultaneously update local ARP table or MAC Address list item, thus actively, rapidly Refresh local address list item.
In one embodiment, a real-time IP address without the equipment under management interchanger is 192.168.25.8, MAC Address is 48-ea-63-0b-fb-36, and the network equipment arrives the address information of the equipment by master port study, then the network equipment The ARP unicast response message of the equipment is converted into broadcasting packet, is broadcasted from auxiliary port, by being returned from the auxiliary port of the network equipment The equipment for returning ARP unicast response message receives and refreshes local address list item, and learning the equipment, (real-time IP address is 192.168.25.8 MAC Address 48-ea-63-0b-fb-36) address information.
In still another embodiment, a real-time IP address without the equipment under management interchanger is 192.168.25.9, Source MAC is 48-ea-63-0b-fb-37, and the network equipment arrives the address information of the equipment by the study of auxiliary port, then network The ARP unicast response message of the equipment is converted to broadcasting packet by equipment, is broadcasted from master port, by from network equipment main side Mouthful equipment for returning to ARP unicast response message receives and refreshes local address list item, and learning the equipment, (real-time IP address is 192.168.25.9 source MAC 48-ea-63-0b-fb-37) address information.
Certainly, if some two sidelinks without management interchanger in looped network all break down, this is without pipe Reason interchanger, which then thoroughly loses, exchange the abilities of information without management interchanger with other in looped network, this is without managing interchanger then not It can learn the ability of the address information of each equipment under other interchangers without management in looped network by the connecting interface of itself.
Looped network address list item update mechanism method provided in this embodiment further includes following steps:
The network equipment in real time detects looped network network, if detect ring network fault eliminate, close opened it is auxiliary Restore the speed of looped network network communication so that other each equipment in looped network network can only be learnt by master port in port.
After closing the auxiliary port opened, the network equipment is performed the following operations:
It is broadcasted based on each IP address construction ARP broadcasting packet being locally stored and by master port;
Receive the ARP unicast response that other each equipment are returned for the ARP broadcasting packet unicast that this equipment is sent in looped network Message obtains the source IP address of received ARP unicast response message and replaces the IP address of equipment each in the looped network being locally stored Received ARP unicast response message is revised as broadcasting packet and is broadcasted by master port, made by the source IP address for changing the acquisition into After looped network changes, each equipment of other in looped network do not have to it is passive etc. to be refreshed, but actively, quickly update local address List item.
The looped network address list item update mechanism method of the present embodiment, decontrols auxiliary port, and forge after looped network network failure ARP unicast response report is responded in the free ARP broadcasting packet of each device broadcasts, the active unicast after judging address conflict of each equipment Text so that the network equipment obtains the address learning port of each equipment of other in looped network in real time, and is learned by the address except the equipment The another port broadcast arp unicast response message except port is practised, so that other each equipment in looped network can be rapid, main It is dynamic to update local address list item, without passively being updated again after waiting address list item aging.
Referring to fig. 4, the present embodiment also provides a kind of looped network address list item update mechanism device, with above-mentioned looped network address list item Update mechanism method is corresponding, can refer to the embodiment of above-mentioned looped network address list item update mechanism method to understand or explain the ring The content of net address list item update mechanism device.The looped network address list item update mechanism device of the present embodiment includes port controlling mould Block 101, memory module 102, broadcasting packet constructing module 103, sending module 104 and receiving module 105.
Wherein, port control modules 101 block auxiliary port when looped network is normal, and in ring network fault, open auxiliary port;
In the present embodiment, which further includes Network Fault Detection module (not shown), the Network Fault Detection mould Block, to detect looped network network and judge whether looped network network breaks down.The fault detection module of the present embodiment is timing (example Such as 50ms) transmission link state-detection message is into looped network network, according to detecting whether auxiliary port receives in the given time Failure can be judged whether there is in time to link state detection messages, so that the local address list item stored in each equipment After network failure, real-time update can be carried out.
The Network Fault Detection module of the present embodiment includes detection message sending submodule (not shown), detection submodule Block (not shown) and judging submodule (not shown).
Wherein, detection message sending submodule passes through master port transmission link state-detection message;
Detection sub-module detects whether auxiliary port receives the link state detection messages within the set time;
Judging submodule determines whether looped network network breaks down according to the judging result of detection sub-module, when setting The link state detection messages are not received by auxiliary port in time, it is determined that looped network network failure.
In the present embodiment, detection message sending submodule passes through master port timing (50ms) transmission link state-detection report Whether text, detection sub-module auxiliary port of detection in setting time (50ms) receive link state detection messages, judge submodule Block then judges looped network network with the presence or absence of failure according to the testing result of detection sub-module.Specifically, if within the set time The link state detection messages are received by auxiliary port, it is determined that looped network network is normal;Conversely, if not leading within the set time It crosses auxiliary port and receives the link state detection messages, it is determined that looped network network failure.
IP address of the memory module 102 each equipment of other in looped network is locally stored;
After port control modules 101 open auxiliary port, broadcasting packet constructing module 103 is then protected based on memory module 102 The IP address of each equipment of other in the looped network deposited constructs ARP broadcasting packet;
Sending module 104 broadcasts the ARP that broadcasting packet constructing module 103 constructs by master port and auxiliary port and broadcasts report Text;
Receiving module 105 receives other each equipment in looped network and is directed to the ARP unicast that received ARP broadcasting packet unicast returns Response message;
In the present embodiment, after other each equipment receive the ARP broadcasting packet that sending module 104 is broadcasted in looped network, meeting Judge address conflict, then, each equipment returns to ARP unicast response message to the network equipment by the unicast of address learning port Receiving module 105.
Memory module 102 obtains the source IP address of received ARP unicast response message and will be each in the looped network being locally stored The IP address of equipment is substituted for the source IP address of the acquisition.
Sending module 104 passes through another in addition to the port (i.e. address learning port) for receiving ARP unicast response message The ARP unicast response message of Single port broadcast reception, wherein when the port for receiving ARP unicast response message is master port, Port supplemented by the another port;Supplemented by the port for receiving ARP unicast response message when port, based on the another port Port.
In one embodiment, which further includes format converting module (not shown), and format converting module will Received ARP unicast response message is revised as broadcasting packet, then passes through to remove by sending module 104 and receive ARP unicast response report Another port except text sends broadcasting packet, other each equipment in looped network is enabled actively, rapidly to refresh its ground stored Location list item.Specifically, message format conversion module includes: to repair two layers of target MAC (Media Access Control) address of received ARP unicast response message It is changed to the broadcast MAC address of setting, the source MAC in ARP unicast response message is constant, modified ARP unicast response report Text is broadcasting packet.
In the present embodiment, if Network Fault Detection module detects that ring network fault is eliminated, port control modules 101 are closed The auxiliary port opened, to restore the communication speed of looped network network.
After port control modules 101 close the auxiliary port opened, port control modules 101 are eliminated in ring network fault When, close the auxiliary port opened;
Broadcasting packet constructing module 103 constructs ARP broadcasting packet based on each IP address that memory module 102 saves;
Sending module 104 broadcasts the ARP broadcasting packet that broadcasting packet constructing module 103 constructs by master port;
Receiving module 105 receives what other each equipment in looped network were returned for the ARP broadcasting packet unicast that this equipment is sent ARP unicast response message;
Memory module 102 obtains the source IP address of received ARP unicast response message and will be each in the looped network being locally stored The IP address of equipment is substituted for the source IP address of the acquisition;
Received ARP unicast response message is revised as broadcasting packet by message format conversion module;
Sending module 104 passes through the broadcasting packet that master port broadcasting packet format converting module obtains.So that being sent out in looped network After changing, each equipment of other in looped network is without passive etc. to be refreshed, but active, quickly update local address list item.
The looped network address list item update mechanism device of the present embodiment, decontrols auxiliary port, and forge after looped network network failure ARP unicast response report is responded in the free ARP broadcasting packet of each device broadcasts, the active unicast after judging address conflict of each equipment Text so that the network equipment obtains the address learning port of each equipment of other in looped network in real time, and is learned by the address except the equipment The another port broadcast arp unicast response message except port is practised, so that other each equipment in looped network can be rapid, main It is dynamic to update local address list item, without passively being updated again after waiting address list item aging.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (10)

1. a kind of looped network address list item update mechanism method, applied to the network equipment in looped network, the network equipment includes master Port and auxiliary port, which is characterized in that this method comprises:
When the looped network is normal, block the auxiliary port;
In the ring network fault, the auxiliary port, the IP address structure based on other each equipment in the looped network being locally stored are opened It makes ARP broadcasting packet and is broadcasted by master port and auxiliary port;
It receives other each equipment in looped network and is directed to the ARP unicast response message that received ARP broadcasting packet unicast returns;
By the ARP unicast response message of the another port broadcast reception in addition to the port for receiving ARP unicast response message, Wherein, when the port for receiving ARP unicast response message is master port, port supplemented by the another port;When receiving ARP Supplemented by the port of unicast response message when port, the another port is master port.
2. looped network address list item update mechanism method as described in claim 1, which is characterized in that described to be received by removing The ARP unicast response message of another port broadcast reception except the port of ARP unicast response message includes:
Received ARP unicast response message is revised as broadcasting packet, and by except the port for receiving ARP unicast response message Except another port send.
3. looped network address list item update mechanism method as described in claim 1, which is characterized in that other in the reception looped network The ARP unicast response message that each equipment is returned for received ARP broadcasting packet further comprises:
It obtains the source IP address of received ARP unicast response message and replaces the IP address of equipment each in the looped network being locally stored At the source IP address of the acquisition;
This method further include:
When ring network fault is eliminated, the auxiliary port opened is closed;
It is broadcasted based on each IP address construction ARP broadcasting packet being locally stored and by master port;
The ARP unicast response message that other each equipment are returned for the ARP broadcasting packet unicast that this equipment is sent in looped network is received, It obtains the source IP address of received ARP unicast response message and the IP address of equipment each in the looped network being locally stored is substituted for this Received ARP unicast response message is revised as broadcasting packet and is broadcasted by master port by the source IP address of acquisition.
4. looped network address list item update mechanism method as claimed in claim 2 or claim 3, which is characterized in that by received ARP unicast Response message is revised as broadcasting packet
Two layers of target MAC (Media Access Control) address of received ARP unicast response message are revised as to the broadcast MAC address of setting, the ARP is mono- The source MAC broadcast in response message is constant, and modified ARP unicast response message is broadcasting packet.
5. looped network address list item update mechanism method as described in claim 1, which is characterized in that the looped network network failure is logical Following steps are crossed to determine:
Pass through master port transmission link state-detection message;
When not receiving the link state detection messages by auxiliary port within the set time, it is determined that looped network network failure.
6. a kind of looped network address list item update mechanism device, applied to the network equipment in looped network, the network equipment includes master Port and auxiliary port, which is characterized in that the device includes:
Port control modules block the auxiliary port, and in the ring network fault, described in opening when the looped network is normal Auxiliary port;
The IP address of each equipment of other in looped network is locally stored in memory module;
Broadcasting packet constructing module, if the port control modules open the auxiliary port, based in the looped network being locally stored The IP address of other each equipment constructs ARP broadcasting packet;
Sending module broadcasts the ARP broadcasting packet by master port and auxiliary port;
Receiving module receives other each equipment in looped network and is directed to the ARP unicast response report that received ARP broadcasting packet unicast returns Text;
The ARP that the sending module passes through the another port broadcast reception in addition to the port for receiving ARP unicast response message Unicast response message, wherein when the port for receiving ARP unicast response message is master port, held supplemented by the another port Mouthful;Supplemented by the port for receiving ARP unicast response message when port, the another port is master port.
7. looped network address list item update mechanism device as claimed in claim 6, which is characterized in that further include:
Received ARP unicast response message is revised as broadcasting packet by message format conversion module;
The sending module sends the broadcast by the another port in addition to the port for receiving ARP unicast response message and reports Text.
8. looped network address list item update mechanism device as claimed in claim 7, which is characterized in that the memory module acquisition connects The IP address of equipment each in the looped network being locally stored simultaneously is substituted for the acquisition by the source IP address of the ARP unicast response message of receipts Source IP address;
The port control modules close the auxiliary port opened when ring network fault is eliminated;
The broadcasting packet constructing module is based on each IP address in local second tables of data and constructs ARP broadcasting packet;
The sending module broadcasts the ARP broadcasting packet by master port;
The receiving module receives the ARP that other each equipment are returned for the ARP broadcasting packet unicast that this equipment is sent in looped network Unicast response message;
The memory module obtains the source IP address of received ARP unicast response message and by equipment each in the looped network being locally stored IP address be substituted for the source IP address of the acquisition;
Received ARP unicast response message is revised as broadcasting packet by the message format conversion module;
The sending module broadcasts the broadcasting packet by master port.
9. looped network address list item update mechanism device as claimed in claim 7 or 8, which is characterized in that the message format turns Changing the mold block includes:
Two layers of target MAC (Media Access Control) address of received ARP unicast response message are revised as to the broadcast MAC address of setting, the ARP is mono- The source MAC broadcast in response message is constant, and modified ARP unicast response message is broadcasting packet.
10. looped network address list item update mechanism device as claimed in claim 6, which is characterized in that described device further includes net Network fault detection module, to detect looped network network and judge whether looped network network breaks down, the Network Fault Detection mould Block includes:
Message sending submodule is detected, master port transmission link state-detection message is passed through;
Detection sub-module, detects whether auxiliary port receives the link state detection messages within the set time;
Judging submodule, when not receiving the link state detection messages by auxiliary port within the set time, it is determined that ring Net network failure.
CN201610723312.4A 2016-08-24 2016-08-24 Looped network address list item update mechanism method and device Active CN106357832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610723312.4A CN106357832B (en) 2016-08-24 2016-08-24 Looped network address list item update mechanism method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610723312.4A CN106357832B (en) 2016-08-24 2016-08-24 Looped network address list item update mechanism method and device

Publications (2)

Publication Number Publication Date
CN106357832A CN106357832A (en) 2017-01-25
CN106357832B true CN106357832B (en) 2019-10-18

Family

ID=57854463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610723312.4A Active CN106357832B (en) 2016-08-24 2016-08-24 Looped network address list item update mechanism method and device

Country Status (1)

Country Link
CN (1) CN106357832B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112187646B (en) * 2020-09-25 2022-07-29 新华三信息安全技术有限公司 Message table item processing method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022390A (en) * 2007-03-21 2007-08-22 华为技术有限公司 Method, system and equipment for protecting double-return switch-in RRPP loop network
CN101252503A (en) * 2008-02-05 2008-08-27 华为技术有限公司 Method and apparatus for switching traffic of looped network
CN101442465A (en) * 2007-11-23 2009-05-27 中兴通讯股份有限公司 Address update method for Ethernet looped network failure switching
CN101465782A (en) * 2009-01-12 2009-06-24 杭州华三通信技术有限公司 Method for switching optimizing link of RRPP loop, system and network node
CN101873244A (en) * 2010-06-09 2010-10-27 神州数码网络(北京)有限公司 Automatic multi-loop protection method
CN102480409A (en) * 2010-11-22 2012-05-30 杭州华三通信技术有限公司 Method for realizing rapid ring protection protocol (RRPP) loop shunting uplink, RRPP loop and device
CN102710492A (en) * 2012-03-29 2012-10-03 浙江宇视科技有限公司 Method and device for looped network protection
CN102868605A (en) * 2012-09-05 2013-01-09 浙江宇视科技有限公司 Looped network data protection method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127673A (en) * 2006-08-16 2008-02-20 华为技术有限公司 Ethernet automatic protection switching method
CN101141364A (en) * 2006-09-07 2008-03-12 华为技术有限公司 Method and device for implementing protection rearrangement in ring ethernet
CN101001192B (en) * 2007-01-17 2010-04-21 华为技术有限公司 Method, system and equipment for protecting ring network link
CN101217445B (en) * 2008-01-21 2011-07-06 杭州华三通信技术有限公司 A method of loop generation protection and Ethernet ring system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022390A (en) * 2007-03-21 2007-08-22 华为技术有限公司 Method, system and equipment for protecting double-return switch-in RRPP loop network
CN101442465A (en) * 2007-11-23 2009-05-27 中兴通讯股份有限公司 Address update method for Ethernet looped network failure switching
CN101252503A (en) * 2008-02-05 2008-08-27 华为技术有限公司 Method and apparatus for switching traffic of looped network
CN101465782A (en) * 2009-01-12 2009-06-24 杭州华三通信技术有限公司 Method for switching optimizing link of RRPP loop, system and network node
CN101873244A (en) * 2010-06-09 2010-10-27 神州数码网络(北京)有限公司 Automatic multi-loop protection method
CN102480409A (en) * 2010-11-22 2012-05-30 杭州华三通信技术有限公司 Method for realizing rapid ring protection protocol (RRPP) loop shunting uplink, RRPP loop and device
CN102710492A (en) * 2012-03-29 2012-10-03 浙江宇视科技有限公司 Method and device for looped network protection
CN102868605A (en) * 2012-09-05 2013-01-09 浙江宇视科技有限公司 Looped network data protection method and device

Also Published As

Publication number Publication date
CN106357832A (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN104935516B (en) Communication system and method based on software defined network
CN103929461B (en) Mac address information synchronous method and device in pile system
CN100512148C (en) Convergence method and device based on VPLS dual home full connection network
CN102197627B (en) The improvement of flux of multicast convergence
CN101651578B (en) Bidirectional forwarding detection method by cross-domain forwarding and PE devices
CN101877671B (en) Sending method of mirror image message, switch chip and Ethernet router
CN103516609B (en) Method and equipment for transmitting service messages
CN102299835B (en) Ring network fault switching method and apparatus
CN101854283B (en) Communication method and equipment of RPR (Resilient Packet Ring) looped network
CN101674249A (en) Method for forwarding provider backbone bridge (PBB) traffic and device thereof
CN101577722A (en) Method for realizing MAC forced forwarding function and device
CN101459534A (en) Network topology collecting method for tree shaped network and network equipment
CN103873333B (en) Ring network three-layer convergence method and device
CN102594943B (en) Method and device for realizing address resolution protocol (ARP) interception
CN101252503B (en) Method and apparatus for switching traffic of looped network
CN101321095A (en) Communication system implementing link measurement and its link measuring method
CN103747026A (en) Alarm method and alarm device of openflow flow table
CN100525244C (en) Method for realizing FEC bidirectional forwarding detection
CN101115071A (en) Apparatus and method for UPNP service in public network environment
CN106101008A (en) The transmission method of a kind of message and device
CN105991795A (en) ARP (address resolution protocol) table item updating method and device
CN105847147A (en) Data transmission method and device
US11716221B2 (en) Switchboard management system using ring network
CN106357832B (en) Looped network address list item update mechanism method and device
CN101729312A (en) Method and system for detecting a link based on ARP protocol

Legal Events

Date Code Title Description
C06 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