CN108055151A - Port management method, device, network node and the storage medium of network node - Google Patents
Port management method, device, network node and the storage medium of network node Download PDFInfo
- Publication number
- CN108055151A CN108055151A CN201711309412.3A CN201711309412A CN108055151A CN 108055151 A CN108055151 A CN 108055151A CN 201711309412 A CN201711309412 A CN 201711309412A CN 108055151 A CN108055151 A CN 108055151A
- Authority
- CN
- China
- Prior art keywords
- network node
- port
- mac address
- node
- multicast group
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/16—Multipoint routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of port management method of network node, including:Multicast group is added in, the MAC Address of present networks node is sent to other network nodes of multicast group, and receives the MAC Address that other network nodes are sent to present networks node, obtains the MAC Address set of network node in multicast group;Obtain the mac address forwarding table of present networks node;The network node MAC Address set that the MAC Address set of network node and the ethernet port of present networks node are connected in multicast group is compared, judges whether the ethernet port of present networks node is connected with the network node in multicast group;If the ethernet port of present networks node does not connect the network node in multicast group, the ethernet port is closed.Correspondingly, the invention also discloses a kind of port management means, network node and storage mediums.Implement the present invention, realize interference of the collaborative work between the network node of identical services type from other network nodes in network.
Description
Technical field
The present embodiments relate to network management technology more particularly to a kind of port management method of network node, device,
Network node and storage medium.
Background technology
For the network type of compounded link, it may require that the apparatus for network node of same type of service cooperates sometimes,
And these specific apparatus for network node holdings be connected with the apparatus for network node of other types of service in network it will cause
Interference.Such as in mine centralized control system, fully mechanized mining can be freely accessed according to the factors such as subsurface environment condition and equipment access demand
Equipment, and access gateway realizes the connection between fully-mechanized mining equipment and backbone looped network;In order to realize that gateway fails are investigated and to network
Performance monitoring is assessed, and to build the connection topology between gateway, and the ethernet port in gateway not only realizes that gateway interconnects, also
Realizing can produce with after (fully-mechanized mining equipment or host with the Ethernet interface) interconnection of non-gateway equipment rather than the access of gateway network equipment
Raw randomness network data, not only easily fluctuates gateway MAC address forwarding table, can also increase unknown broadcast in Topology Discovery
Bag.Therefore existing network topology self-discovery method is used, the randomness for being accessed and being introduced by the non-gateway network equipment is unknown wide
Bag is broadcast, active port in topology probe (i.e. there are the ports of data transmit-receive behavior) can be caused to be difficult to the uniformity by way of gateway
Ensure, so as to influence the accuracy of gateway Topology Discovery.The prior art can not realize the net for excluding other types of service in network
Network node so that the apparatus for network node of same type of service is interference-free when cooperating.
The content of the invention
The present invention provides a kind of port management method of network node, device, network node and storage medium, to realize phase
With the collaborative work between the network node of type of service from the interference of other network nodes in network.
In a first aspect, an embodiment of the present invention provides a kind of port management method of network node, including:
Multicast group is added in, the MAC Address of present networks node is sent to other network nodes of the multicast group, and receives it
The MAC Address that his network node is sent to present networks node obtains the MAC Address set of network node in multicast group;
Obtain the mac address forwarding table of present networks node;Wherein, the mac address forwarding table is used to record present networks section
The network node MAC Address set that the ethernet port of point is connected;
It compares the MAC Address set of network node in the multicast group and the ethernet port of present networks node is connected
Network node MAC Address set, judge whether the ethernet port of present networks node is connected with the network in the multicast group
Node;
If the ethernet port of present networks node does not connect the network node in the multicast group, the ether is closed
Net port.
Second aspect, the embodiment of the present invention additionally provide a kind of port management means of network node, Port Management dress
Put including:
For adding in multicast group, the group of present networks node MAC addr is included to multicast group transmission for complete or collected works' acquisition module
Broadcast member relation message, and receive other network nodes to the multicast group send comprising other network node MAC Address
Multicast member relation message obtains the MAC Address set of network node in multicast group;
Subset acquisition module, for obtaining the mac address forwarding table of present networks node;Wherein, the mac address forwarding table
The network node MAC Address set connected for the ethernet port of minute book network node;
Module is investigated in port, for comparing the MAC Address set of network node in the multicast group and present networks node
The network node MAC Address set that is connected of ethernet port, judge whether the ethernet port of present networks node is connected with
Network node in the multicast group;
Port processing module, if not connecting network in the multicast group for the ethernet port of present networks node
Node then closes the ethernet port.
The third aspect, the embodiment of the present invention additionally provide a kind of network node, which includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processing
Device realizes the port management method for the network node that any embodiment of the present invention provides.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes the port management method for the network node that any embodiment of the present invention provides when the program is executed by processor.
The embodiment of the present invention can realize that the characteristic of group member's self-discovery and MAC Address forward using multicast group technology
Table includes the characteristic for the all-network node MAC addr that network node port is connected, by comparing network node in multicast group
MAC Address set and mac address forwarding table, find network node in be not intended to connection multicast group member port, will
It closes realization and the network node of non-multicast group disconnects so that the network node of identical services type can pass through addition
Multicast group solves the problems, such as to need to exclude other type of service network nodes in network, realizes collaborative work from each other not
The effect disturbed by other network nodes.
Description of the drawings
Fig. 1 is the flow chart of the port management method for the network node that the embodiment of the present invention one provides;
Fig. 2 is the application scenarios schematic diagram of one middle port management method of the embodiment of the present invention;
Fig. 3 is the flow chart of the port management method of network node provided by Embodiment 2 of the present invention;
Fig. 4 is the structure diagram of the port management means for the network node that the embodiment of the present invention three provides;
Fig. 5 is the structure diagram for the network node that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Part related to the present invention rather than entire infrastructure are illustrated only in description, attached drawing.
Embodiment one
Fig. 1 is the flow chart of the port management method for the network node that the embodiment of the present invention one provides, and the present embodiment can fit
For network node, other network nodes unrelated with collaborative work disconnect to cooperate what is be interfered automatically
Situation, this method can be performed by the network node with computer process ability, specifically comprised the following steps:
Step 110 adds in multicast group, and the MAC Address of present networks node is sent to other network nodes of the multicast group,
And the MAC Address that other network nodes are sent to present networks node is received, obtain the MAC Address collection of network node in multicast group
It closes, labeled as complete or collected works As.
Wherein, adding in multicast group can be realized by way of following IGMP multicast protocols.Specifically, network node is write from memory
Recognize multicast address and be set to itself multicast member address, then sent into the network of access to give tacit consent to multicast address as destination
The multicast member relation report message of location, statement add in multicast group.Transmission message is carried in multicast member relation report message
Network node MAC Address, therefore, gateway can obtain the MAC Address collection of network node in multicast group after adding in multicast group
Close As.If the network node of identical services type adds in multicast group, the network node with type of service obtains mutual MAC
Address set.It should be noted that identical services type alleged by the embodiment of the present invention refers to thering is identical function in a network
Network node, need to cooperate the network node or practical application of completing one or more business tasks when specify one
A or multiple network nodes.
Step 120, the mac address forwarding table for obtaining present networks node;
Wherein, the network node that the mac address forwarding table is connected for the ethernet port of minute book network node
MAC Address set, labeled as the subset Ai of port.Specifically, mac address forwarding table is used to receive data transfer task
When, itself corresponding ethernet port is searched according to the destination address of data, data are forwarded from the corresponding ethernet port, because
This, the network node MAC Address set that each ethernet port that mac address forwarding table has recorded present networks node is connected.
Step 130 compares the MAC Address set of network node and the ethernet side of present networks node in the multicast group
The network node MAC Address set that mouth is connected, judges whether the ethernet port of present networks node is connected with the multicast group
Interior network node;
Wherein, complete or collected works As and the subset Ai of port are compared, judges whether the ethernet port of present networks node is connected with group
The network node in group is broadcast, specific practice is to judge whether As ∩ Ai are empty set, if empty set, then the not no connection group of corresponding ports
The network node in group is broadcast, which may be without connection network node, alternatively, being connected to other network nodes.
If the ethernet port of step 140, present networks node does not connect the network node in the multicast group, close
Close the ethernet port.
By will realize and break with the network node of non-multicast group without the port shutdown of the network node in connection multicast group
Open connection so that present networks node only with the network node communication in multicast group, avoids other network nodes to present networks section
The interference of point.
In order to preferably embody the advantageous effect of the present embodiment, illustrate that the present embodiment carries below by specific application scenarios
The principle of the port management method of confession.
Referring to Fig. 2, Fig. 2 is the application scenarios schematic diagram of one middle port management method of the embodiment of the present invention, the application scenarios
For mine fully mechanized mining centralized control system.Mine fully mechanized mining centralized control system is coal production forefront, most complicated link and realizes colliery
The core of production automation.Generally comprise be arranged on working face scene fully-mechanized mining equipment 23 (mobile substation as shown in Figure 2,
The underlying devices such as megaphone, coal mining monitor unit, pumping plant), to fully-mechanized mining equipment implement monitoring of working condition, sensing acquisition, remotely with from
Dynamicization control, central host 21 (the Centralizing inspection host or video monitor host including ground maneuvers platform of visual monitor
Deng) and as communication sub-station or the gateway 22 of data acquisition substation.Gateway is connected between central host and fully-mechanized mining equipment,
It realizes that central host accesses the data relay station of fully-mechanized mining equipment, performs the work such as data protocol conversion.Specifically, gateway accessing bone
The interchanger 24 of dry looped network, backbone looped network include multiple switch node, are respectively used to realize fully-mechanized mining working, crossheading equipment row
The gateway accessing of the geographical zones such as vehicle lane or belt-conveying lane and the connection with central host.
In above-mentioned mine fully mechanized mining centralized control system, central host to gateway is generally ethernet link, gateway and gateway it
Between for ethernet link, and gateway to fully-mechanized mining equipment then largely using fieldbus link.Specifically, gateway includes Ethernet
Port and industrial field bus port;The ethernet port of gateway is used to connect central host, other gateways or with Ethernet
The fully-mechanized mining equipment of port, industrial field bus port have the fully-mechanized mining equipment of industrial field bus port for connecting.Due near
The continuous improvement of mine the degree of automation, fully-mechanized mining equipment are on the increase over year, and position is further scattered, and gateway quantity increases therewith,
So that the docking configuration relation increasingly complex of gateway, gateway management and fault location are also more difficult.And it is limited to live ring
Border, can not according to lay in advance topological diagram placement gateway, it is necessary at the scene according to actual demand and with fully-mechanized mining equipment away from
From the physical arrangement and interconnection for freely determining gateway, so gateway will build the interconnection topology figure of gateway after arranging, and it is artificial
Drafting can expend a large amount of human resources, and therefore, the topological self-discovery between gateway is of great significance.Due to the Ethernet of gateway
Port is applied not only to connect other gateways, is additionally operable to connection fully-mechanized mining equipment and central host, therefore, net spontaneous at this stage in topology
Data packet is mutually passed between pass, data packet can enter the non-gateway network equipment with ethernet port, while non-gateway network is set
It is standby also to send network data to gateway randomness so that during Topology Discovery, a data packet of detection by way of gateway when,
It is non-to be present with the active port for having data transmit-receive behavior by way of gateway, approach gateway is mistaken for, so that topological
Inaccuracy causes to perplex to implementing fault location and investigation.
Implement the present embodiment, after all gateways and startings, multicast group is automatically added to, by the subset for comparing complete or collected works As and port
Ai, automatic identification gateway interconnection port and non-gateway interconnection port.And then it is interconnected in the spontaneous non-gateway that eliminates at this stage of topology
The data transmit-receive of port so that the non-interconnection port by way of gateway is not in data transmit-receive behavior and misjudged during path detection
For by way of gateway.
When it is implemented, the industrial field bus port of gateway includes RS458 ports, RS422 ports, LAN port or CAN
Port.
Clearly for the network node for the phase same trade type that other needs cooperate, the present embodiment can also be implemented and carried
The port management method of confession, is realized and the connection of the network node of different service types disconnects.
In conclusion the technical solution of the present embodiment, the characteristic of group member's self-discovery can be realized using multicast group technology
And mac address forwarding table includes the characteristic for the all-network node MAC addr that network node port is connected, and passes through comparison group
The MAC Address set and mac address forwarding table of network node in group are broadcast, finds to be not intended in network node in connection multicast group
The port of member, is turned off realization and the network node of non-multicast group disconnects so that the network section of identical services type
Point can solve the problems, such as to need to exclude other type of service network nodes in network by adding in multicast group, realize it is mutual it
Between the effect disturbed from other network nodes of collaborative work.
Embodiment two
Fig. 3 is the flow chart of the port management method of network node provided by Embodiment 2 of the present invention, and the present embodiment is in reality
On the basis of applying example one, further technical solution is provided, realization prevents the aging of mac address forwarding table from causing MAC Address
The missing of relevant network node MAC Address in forwarding table.It may be equally applied to network node its unrelated with collaborative work automatically
His network node disconnects situation about being interfered to avoid collaborative work, and this method can be by with computer process ability
Network node perform, specifically comprise the following steps:
Step 310 adds in multicast group, and the MAC Address of present networks node is sent to other network nodes of the multicast group,
And the MAC Address that other network nodes are sent to present networks node is received, obtain the MAC Address collection of network node in multicast group
It closes.
Step 320, the mac address forwarding table for obtaining present networks node;Wherein, the mac address forwarding table is used to record
The network node MAC Address set that the ethernet port of present networks node is connected.
The mac address forwarding table ageing time of present networks node is adjusted to pre-set maximum by step 330.
Step 340 compares the MAC Address set of network node and the ethernet side of present networks node in the multicast group
The network node MAC Address set that mouth is connected, judges whether the ethernet port of present networks node is connected with the multicast group
Interior network node.
If the ethernet port of step 350, present networks node does not connect the network node in the multicast group, close
Close the ethernet port.
In order to maximally utilise addresses forwarding table resource, the true connection status of dynamic reflection network, Ethernet net
Network node updates mac address forwarding table using aging mechanism, is specially:Create mac address forwarding table list item (i.e. port and
The correspondence of MAC Address) when, ageing timer is opened, if not receiving the MAC in the list item in ageing time
The message of address, network node will be the mac address table entry deletions.
During network communication, it is high and dynamically anti-that the timely aging of mac address forwarding table can play resource utilization really
The effect of network connection state is reflected, but the embodiment of the present invention is based on network section in comparison mac address forwarding table and multicast group
MAC Address set is put, identifies the network node interconnection port of same type of service, is lacked if there is mac address forwarding table list item,
Interconnection port may be then identified as to non-interconnected port, so as to directly affect the collaborative work between network node.In order to avoid
When identifying the interconnection port between gateway, list item in mac address table is caused since processor processing time is more than ageing time
Missing, the present embodiment adds step 230 on the basis of embodiment one, by the mac address forwarding table aging of present networks node
Time is adjusted to pre-set maximum.
In addition, what the acquisition of mac address forwarding table was created and safeguarded generally by MAC address learning function, this implementation
Example makes optimization to the process that mac address forwarding table is created by MAC address learning function, to ensure mac address forwarding table not
It is influenced by ageing time and lacks list item.Specifically, step 320, the mac address forwarding table of acquisition present networks node, it is specific to wrap
It includes:
The study bag that Receiving Agent network node is cycled through according to predeterminated frequency records the proxy network node MAC
Address is to receive the network node MAC Address that the port of the study bag is connected;Wherein, the proxy network node is institute
State one of network node in multicast group;
If the destination address of the study bag is different from present networks node MAC addr, from its in addition to receiving port
His the ethernet port broadcast study bag;
If the destination address of the study bag is identical with present networks node MAC addr, wrapped from the study is received
Port send using the proxy network node MAC Address as the study response bag of purpose address;
When receiving the study response bag, the source address for recording the study response bag is connected by the receiving port
Network node MAC Address.
Further, if the destination address of the study response bag is present in present networks node MAC addr forwarding table
In, then the ethernet port corresponding to study response bag destination address recorded from mac address forwarding table forwards this study should
Answer bag;If do not found in MAC forwarding tables this study response bag target MAC (Media Access Control) address, from addition to receiving port other with
It nets very much port and broadcasts the study response bag.
The concrete scheme of above-mentioned steps 220 cycles through study bag according to predeterminated frequency, ensures in ageing time, net
Each port of network node will not be deleted all in active state, list item.
In conclusion the technical solution of the present embodiment, by compare network node in multicast group MAC Address set and
Mac address forwarding table finds to be not intended to the port of connection multicast group member, be turned off realizing and non-group in network node
The network node for broadcasting group disconnects so that the network node of identical services type can solve to need by adding in multicast group
The problem of excluding other type of service network nodes in network, realizes that collaborative work from each other is done from other network nodes
The effect disturbed, and ensure that mac address forwarding table will not be influenced by ageing time and lack list item, preventing will be mutual in multicast group
Even port identification is non-interconnected port, so as to directly affect the collaborative work between network node.
Embodiment three
Fig. 4 is a kind of structure diagram of the port management means for network node that the embodiment of the present invention three provides.The end
Mouth managing device includes:
Complete or collected works' acquisition module 410 for adding in multicast group, is sent to the multicast group comprising present networks node MAC addr
Multicast member relation message, and receive other network nodes to the multicast group send comprising other network nodes MAC
The multicast member relation message of location obtains the MAC Address set of network node in multicast group;
Subset acquisition module 420, for obtaining the mac address forwarding table of present networks node;Wherein, the MAC Address turns
Deliver the network node MAC Address set connected for the ethernet port of minute book network node;
Module 430 is investigated in port, for comparing the MAC Address set of network node in the multicast group and present networks section
The network node MAC Address set that the ethernet port of point is connected, judges whether the ethernet port of present networks node connects
There is the network node in the multicast group;
Port processing module 440, if do not connected in the multicast group for the ethernet port of present networks node
Network node then closes the ethernet port.
Further, the network node of the multicast group is added in be connected to central host and fully mechanized mining in mine centralized control system
Gateway between equipment;
The gateway includes ethernet port and industrial field bus port;The ethernet port of the gateway is used to connect
The central host, other gateways or the fully-mechanized mining equipment with ethernet port, the industrial field bus port are used to connect
Fully-mechanized mining equipment with industrial field bus port.
Further, subset acquisition module 420 includes:
Receiving unit for the study bag that Receiving Agent network node is cycled through according to predeterminated frequency, records the generation
Reason network node MAC Address is to receive the network node MAC Address that the port of the study bag is connected;Wherein, the generation
Network node is managed as one of network node in the multicast group;
Response unit, if the destination address for the study bag is identical with present networks node MAC addr, from reception
It is sent to the port of the study bag using the proxy network node MAC Address as the study response bag of purpose address;
Radio unit, if the destination address for the study bag is different from present networks node MAC addr, from except connecing
Other ethernet ports broadcast study bag outside receiving end mouth;
Recording unit, the source address for when receiving the habit response bag, recording the study response bag connect for this
The network node MAC Address that receiving end mouth is connected.
Further, subset acquisition module 420 further includes:
Response processing unit, if for the destination address for learning response bag with being present in present networks node M AC
In the forwarding table of location, then the ethernet port corresponding to study response bag destination address recorded from mac address forwarding table forwards
This study response bag;If this study response bag target MAC (Media Access Control) address is not found in MAC forwarding tables, from addition to receiving port
Other ethernet ports broadcast the study response bag.Further, the port management means further include:
Aging adjusts module, for the mac address forwarding table ageing time of present networks node to be adjusted to pre-set
Maximum.
The port management means for the network node that the embodiment of the present invention is provided can perform any embodiment of the present invention and be carried
The port management method of confession possesses the corresponding function module of execution method and advantageous effect.
Example IV
Fig. 5 is a kind of structure diagram for network node that the embodiment of the present invention four provides, as shown in figure 5, the network section
Point includes processor 510, memory 520, input unit 530 and output device 540;The quantity of processor 510 in network node
Can be one or more, in Fig. 5 by taking a processor 510 as an example;It is processor 510, memory 520 in network node, defeated
Enter device 530 to connect by bus or other modes with output device 540, in Fig. 5 exemplified by connecting by bus.
Memory 520 is used as a kind of computer readable storage medium, and journey is can perform available for storage software program, computer
Sequence and module, as the corresponding program instruction/module of the port management method of the network node in the embodiment of the present invention (for example,
Function module in the port management means of network node).Processor 510 is stored in the software in memory 520 by operation
Program, instruction and module so as to perform the various function application of network node and data processing, that is, realize above-mentioned network
The port management method of node.
Memory 520 can mainly include storing program area and storage data field, wherein, storing program area can store operation system
Application program needed for system, at least one function;Storage data field can be stored uses created data etc. according to terminal.This
Outside, memory 520 can include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 520 can be into one
Step is included compared with the remotely located memory of processor 510, these remote memories can pass through network connection to network section
Point.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 530 can be used for the number for receiving input or character information and generate to set with the user of network node
It puts and the input of key signals that function control is related.Output device 540 may include the display devices such as display screen.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium for including computer program, and the computer program is by counting
For performing a kind of port management method of network node when calculation machine processor performs, this method includes:
Multicast group is added in, the MAC Address of present networks node is sent to other network nodes of the multicast group, and receives it
The MAC Address that his network node is sent to present networks node obtains the MAC Address set of network node in multicast group;
Obtain the mac address forwarding table of present networks node;Wherein, the mac address forwarding table is used to record present networks section
The network node MAC Address set that the ethernet port of point is connected;
It compares the MAC Address set of network node in the multicast group and the ethernet port of present networks node is connected
Network node MAC Address set, judge whether the ethernet port of present networks node is connected with the network in the multicast group
Node;
If the ethernet port of present networks node does not connect the network node in the multicast group, the ether is closed
Net port.
Certainly, a kind of storage medium for including computer program that the embodiment of the present invention is provided, computer program is not
It is limited to method operation as described above, can also carry out the correlation in the port management method that any embodiment of the present invention is provided
Operate
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many cases
Good embodiment.Based on such understanding, what technical scheme substantially in other words contributed to the prior art
Part can be embodied in the form of software product, which can be stored in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) performs the method described in each embodiment of the present invention.
It is worth noting that, in the embodiment of above-mentioned port management means, included unit and module are simply pressed
It is divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized;In addition,
The specific name of each functional unit is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various apparent variations,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of port management method of network node, which is characterized in that including:
Multicast group is added in, the MAC Address of present networks node is sent to other network nodes of the multicast group, and receives other nets
The MAC Address that network node is sent to present networks node obtains the MAC Address set of network node in multicast group;
Obtain the mac address forwarding table of present networks node;Wherein, the mac address forwarding table is for minute book network node
The network node MAC Address set that ethernet port is connected;
Compare the MAC Address set of network node in the multicast group and net that the ethernet port of present networks node is connected
Network node MAC addr set, judges whether the ethernet port of present networks node is connected with the network node in the multicast group;
If the ethernet port of present networks node does not connect the network node in the multicast group, the ethernet side is closed
Mouthful.
2. the port management method of network node as described in claim 1, which is characterized in that add in the network of the multicast group
Node is the gateway being connected in mine centralized control system between central host and fully-mechanized mining equipment;
The gateway includes ethernet port and industrial field bus port;The ethernet port of the gateway is described for connecting
Central host, other gateways or the fully-mechanized mining equipment with ethernet port, the industrial field bus port have for connecting
The fully-mechanized mining equipment of industrial field bus port.
3. the port management method of network node as claimed in claim 1 or 2, which is characterized in that the acquisition present networks section
The mac address forwarding table of point, specifically includes:
The study bag that Receiving Agent network node is cycled through according to predeterminated frequency records the proxy network node MAC Address
The network node MAC Address connected for the port for receiving the study bag;Wherein, the proxy network node is described group
Broadcast one of network node in group;
If it is described study bag destination address it is different from present networks node MAC addr, from addition to receiving port other with
Net very much the port broadcast study bag;
If the destination address of the study bag is identical with present networks node MAC addr, from the end for receiving the study bag
Mouth is sent using the proxy network node MAC Address as the study response bag of purpose address;
When receiving the study response bag, the net that the source address of the study response bag is connected for the receiving port is recorded
Network node MAC addr.
4. the port management method of network node as claimed in claim 1 or 2, which is characterized in that compare described group described
Broadcast the MAC Address set of network node in group and network node MAC Address that the ethernet port of present networks node is connected
Before set, further include:
The mac address forwarding table ageing time of present networks node is adjusted to pre-set maximum.
5. the port management method of network node as claimed in claim 2, which is characterized in that the industrial field bus port
Including RS458 ports, RS422 ports or CAN port.
6. a kind of port management means of network node, which is characterized in that including:
Complete or collected works' acquisition module, for adding in multicast group, to the multicast group send comprising present networks node MAC addr multicast into
Member's relation message, and receive the multicast for including other network node MAC Address that other network nodes are sent to the multicast group
Member relation message obtains the MAC Address set of network node in multicast group;
Subset acquisition module, for obtaining the mac address forwarding table of present networks node;Wherein, the mac address forwarding table is used for
The network node MAC Address set that the ethernet port of minute book network node is connected;
Module is investigated in port, for compare the MAC Address set of network node in the multicast group and present networks node with
The too network node MAC Address set that is connected of net port, judge present networks node ethernet port whether be connected with it is described
Network node in multicast group;
Port processing module, if not connecting network section in the multicast group for the ethernet port of present networks node
Point then closes the ethernet port.
7. the port management means of network node as claimed in claim 6, which is characterized in that add in the network of the multicast group
Node is the gateway being connected in mine centralized control system between central host and fully-mechanized mining equipment;
The gateway includes ethernet port and industrial field bus port;The ethernet port of the gateway is described for connecting
Central host, other gateways or the fully-mechanized mining equipment with ethernet port, the industrial field bus port have for connecting
The fully-mechanized mining equipment of industrial field bus port.
8. the port management means of network node as claimed in claims 6 or 7, which is characterized in that the subset acquisition module
Including:
Receiving unit for the study bag that Receiving Agent network node is cycled through according to predeterminated frequency, records and described acts on behalf of net
Network node MAC addr is to receive the network node MAC Address that the port of the study bag is connected;Wherein, it is described to act on behalf of net
Network node is one of network node in the multicast group;
Radio unit, if the destination address for the study bag is different from present networks node MAC addr, from except receiving terminal
Other ethernet ports broadcast study bag outside mouthful;
Response unit, if the destination address for the study bag is identical with present networks node MAC addr, from receiving
State study response bag of the port transmission of study bag using the proxy network node MAC Address as purpose address;
Recording unit, the source address for when receiving the study response bag, recording the study response bag is the reception
The network node MAC Address that port is connected.
9. a kind of network node, which is characterized in that the network node includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are performed by one or more of processors so that one or more of processors are real
The now port management method of the network node as described in any in claim 1-5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The port management method of the network node as described in any in claim 1-6 is realized during execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711309412.3A CN108055151B (en) | 2017-12-11 | 2017-12-11 | Port management method and device of network node, network node and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711309412.3A CN108055151B (en) | 2017-12-11 | 2017-12-11 | Port management method and device of network node, network node and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108055151A true CN108055151A (en) | 2018-05-18 |
CN108055151B CN108055151B (en) | 2021-03-02 |
Family
ID=62123863
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711309412.3A Active CN108055151B (en) | 2017-12-11 | 2017-12-11 | Port management method and device of network node, network node and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108055151B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110635945A (en) * | 2019-09-10 | 2019-12-31 | 清华大学 | Data processing method supporting time trigger mechanism and SDN network system |
CN111447126A (en) * | 2019-12-05 | 2020-07-24 | 炬星科技(深圳)有限公司 | Ethernet bus communication method, device, robot, equipment and computer readable storage medium |
CN114629819A (en) * | 2020-12-10 | 2022-06-14 | 中移(苏州)软件技术有限公司 | Network detection method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179478A (en) * | 2006-11-08 | 2008-05-14 | 中国科学院沈阳自动化研究所 | Wireless mesh network multicast communication method for industrial monitoring application |
CN101291294A (en) * | 2008-06-06 | 2008-10-22 | 杭州华三通信技术有限公司 | Biprimary controlled switching apparatus, method and device for distributing retransmitting list |
CN101534231A (en) * | 2009-04-17 | 2009-09-16 | 杭州华三通信技术有限公司 | Method, system and equipment for transmitting data in elastic grouping ring |
CN101883445A (en) * | 2010-06-18 | 2010-11-10 | 昆山诺金传感技术有限公司 | ZigBee-CAN network gateway for coal mine safety monitoring |
CN102383860A (en) * | 2011-10-17 | 2012-03-21 | 山西潞安集团司马煤业有限公司 | Networked wireless gas monitoring system oriented to fully mechanized coal face |
CN104022936A (en) * | 2014-06-20 | 2014-09-03 | 杭州华三通信技术有限公司 | Method and device for establishing tunnel |
US20150334057A1 (en) * | 2012-12-11 | 2015-11-19 | Hangzhou H3C Technologies Co., Ltd. | Packet forwarding |
-
2017
- 2017-12-11 CN CN201711309412.3A patent/CN108055151B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101179478A (en) * | 2006-11-08 | 2008-05-14 | 中国科学院沈阳自动化研究所 | Wireless mesh network multicast communication method for industrial monitoring application |
CN101291294A (en) * | 2008-06-06 | 2008-10-22 | 杭州华三通信技术有限公司 | Biprimary controlled switching apparatus, method and device for distributing retransmitting list |
CN101534231A (en) * | 2009-04-17 | 2009-09-16 | 杭州华三通信技术有限公司 | Method, system and equipment for transmitting data in elastic grouping ring |
CN101883445A (en) * | 2010-06-18 | 2010-11-10 | 昆山诺金传感技术有限公司 | ZigBee-CAN network gateway for coal mine safety monitoring |
CN102383860A (en) * | 2011-10-17 | 2012-03-21 | 山西潞安集团司马煤业有限公司 | Networked wireless gas monitoring system oriented to fully mechanized coal face |
US20150334057A1 (en) * | 2012-12-11 | 2015-11-19 | Hangzhou H3C Technologies Co., Ltd. | Packet forwarding |
CN104022936A (en) * | 2014-06-20 | 2014-09-03 | 杭州华三通信技术有限公司 | Method and device for establishing tunnel |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110635945A (en) * | 2019-09-10 | 2019-12-31 | 清华大学 | Data processing method supporting time trigger mechanism and SDN network system |
CN110635945B (en) * | 2019-09-10 | 2020-12-11 | 清华大学 | Data processing method supporting time trigger mechanism and SDN network system |
CN111447126A (en) * | 2019-12-05 | 2020-07-24 | 炬星科技(深圳)有限公司 | Ethernet bus communication method, device, robot, equipment and computer readable storage medium |
CN111447126B (en) * | 2019-12-05 | 2022-02-22 | 炬星科技(深圳)有限公司 | Ethernet bus communication method, device, robot, equipment and computer readable storage medium |
CN114629819A (en) * | 2020-12-10 | 2022-06-14 | 中移(苏州)软件技术有限公司 | Network detection method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108055151B (en) | 2021-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110661669B (en) | Network topology automatic discovery method of network equipment based on ICMP, TCP and UDP protocols | |
CN101459534B (en) | Network topology collecting method for tree shaped network and network equipment | |
CN101330405B (en) | Method for discovering network topology and related equipment | |
CN104753697B (en) | A kind of method, equipment and system controlling the automatic beginning of the network equipment | |
CN107947994B (en) | Network topology self-discovery method and device, network equipment and computer storage medium | |
CN101778113B (en) | Method for detection of RP state in multicast network, device, RP device and multicast system | |
CN108055151A (en) | Port management method, device, network node and the storage medium of network node | |
CN107959620B (en) | Fully mechanized mining equipment identification method, device, system, gateway and storage medium | |
CN102780779A (en) | Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic | |
CN107852344B (en) | Storage network element discovery method and device | |
CN105245386A (en) | Method and system for automatic positioning of server connection relation | |
CN108966281B (en) | Mesh network processing method, device, equipment and storage medium | |
CN103503413A (en) | Method and device for transmitting network information | |
CN101969395B (en) | Method for configuring code, method and system for detecting path and network equipment | |
CN104301131A (en) | Fault management method and device | |
CN103401787A (en) | Static route issuing method and UPE (Ultimate Provider Edge) | |
CN109873716A (en) | Processing method, device and the storage medium of data | |
CN102143050A (en) | Network connection processing method and device for internet protocol version 6 (IPv6) network | |
CN107708142B (en) | Grouping method, device and system for access device AP | |
CN109951871A (en) | Detection method, device, terminal and the storage medium of node conflict | |
US11888812B1 (en) | Host discovery and addition method and apparatus in data center, and device and medium | |
CN110505648A (en) | A kind of anti-lost line method of wireless device | |
CN106330492A (en) | Method, device and system of configuring user equipment forwarding table | |
CN106686697B (en) | The method of zigbee terminal device node administration | |
CN105119759B (en) | A method of realizing key configuration for specific networking |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |