CN110300043A - A kind of industrial ethernet switch looped network quickly solves network method, system and storage medium - Google Patents

A kind of industrial ethernet switch looped network quickly solves network method, system and storage medium Download PDF

Info

Publication number
CN110300043A
CN110300043A CN201910396948.6A CN201910396948A CN110300043A CN 110300043 A CN110300043 A CN 110300043A CN 201910396948 A CN201910396948 A CN 201910396948A CN 110300043 A CN110300043 A CN 110300043A
Authority
CN
China
Prior art keywords
looped network
interchanger
port
packet
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.)
Pending
Application number
CN201910396948.6A
Other languages
Chinese (zh)
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.)
Guizhou Power Grid Co Ltd
Original Assignee
Guizhou Power Grid 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 Guizhou Power Grid Co Ltd filed Critical Guizhou Power Grid Co Ltd
Priority to CN201910396948.6A priority Critical patent/CN110300043A/en
Publication of CN110300043A publication Critical patent/CN110300043A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

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

Abstract

The invention discloses a kind of industrial ethernet switch looped networks quickly to solve network method, system and storage medium, wherein method includes: to set identical state for the corresponding ports of each interchanger in looped network and looped network mark, loop network link powers on, and each interchanger sends looped network packet to the interchanger connecting with itself;Compare MAC Address size, when the looped network packet MAC Address that interchanger receives is smaller than itself, then it is changed to slave, it is simultaneously stopped and sends looped network packet, current SWITCH supports two ports of looped network to be in opening state, and forwards communication data, and the data message that other interchangers receive current SWITCH in the looped network is also changed to slave, the port of each slave in the looped network in addition to host is in an open state, and realizes the quick solution net of looped network.The present invention changes the state of itself by comparing MAC Address size, realizes the quick solution net of looped network by the way that the port of each interchanger and looped network mark are preset as same state.

Description

A kind of industrial ethernet switch looped network quickly solves network method, system and storage medium
Technical field
The invention belongs to field of communication technology, especially a kind of industrial ethernet switch looped network quickly solves network method, system And storage medium.
Background technique
With the development of society, the development that Internet technology is advanced by leaps and bounds, people are by internet in family Electric appliance is remotely controlled, and same people also can use the machinery equipment in the working space that internet cannot go people into remote Process control, the higher working environment of the danger coefficients such as high temperature, high pressure workshop, this requires in industrial production or system It is remotely controlled during making, internet will be built based on long-range control.
Industrial ethernet switch is the core networked devices of Ethernet, is mainly used for industrial networking platform group, is had certainly Diagnostic function can be diagnosed in a short period of time and is out of order, and can cracking carry out self-healing recovery.Industrial ethernet switch tool There is the ring-like network data exchange function of the redundancy between ethernet signal.Existing algorithm has: RSTP, various algorithms are realized now Carry out complicated, the double bandwidth of PRP/HSR algorithm occupancy, it is difficult to meet the power industry securely and reliably network of efficient low delay and industry Requirement of the grade to the time.
Summary of the invention
In order to solve at least one above-mentioned technical problem, the invention proposes a kind of industrial ethernet switch looped network is quick Solve network method, system and storage medium.
To achieve the goals above, first aspect present invention provides a kind of industrial ethernet switch looped network and quickly solves net Method, comprising:
Identical state is set by the corresponding ports of each interchanger in looped network and looped network mark, loop network link powers on, Each interchanger is used as host to send looped network packet to the interchanger connecting with itself;
Each interchanger is respectively by the looped network packet MAC Address received compared with the MAC Address of itself in the looped network;
When the looped network packet MAC Address that interchanger receives is bigger than the MAC Address of itself, then current SWITCH Status Change It for slave, is simultaneously stopped and sends looped network packet, current SWITCH supports two ports of looped network to be in opening state, and forwards logical Letter data, change oneself state is also slave by the data message that other interchangers receive current SWITCH in the looped network, The port of each slave in the looped network in addition to host is in an open state, to realize the solution net of looped network.
In the present solution, setting identical state for the port of each interchanger in looped network, specifically include: will be in looped network Interchanger sorts according to the size of MAC Address, loop network link connection set after powering on each interchanger in loop it is equal based on Machine, i.e., each interchanger, which all assumes that, itself, for the maximum interchanger of MAC Address in the looped network of place, concurrently sets having for each interchanger A port obstruction, a port are opened.
In the present solution, each interchanger includes two identity: host or the maximum exchange of MAC Address in the looped network Machine, the host are the maximum interchanger of MAC Address in the looped network.
In the present solution, connectivity port will be in the open state when only one port of interchanger connects in the looped network, break It is ported to be in blocked state, when two ports of the interchanger of access looped network disconnect, the big data communication of port numbers Forwarding will obstruction.
In the present solution, the port of interchanger is opened, the slave when interchanger in the looped network is in slave status Only forwarding looped network packet, the another port that the looped network packet received from a port of slave is forwarded to slave changes simultaneously looped network packet Target MAC (Media Access Control) address, the forwarding of the looped network packet specifically includes: a port of slave receives BPDU packet then in another port Non- BPDU packet is forwarded, slave receives non-BPDU packet in a port and then forwards BPDU packet, and the same sequence in another port Number packet only forward once.
In the present solution, in the looped network interchanger slave become host satisfaction condition include:
A. port status of the slave in looped network changes, and specifically includes: the port becomes double from single-stranded line state Link state or the port become single-stranded line state from double-strand line state;
B. the protocol massages packet MAC Address received when the slave that port status is in single-stranded line state is than self MAC Location is small, and the slave is converted to host at once;
The slave that the address C.MAC maximum mark is 1 receives that port status is dual link and two ports are connection shape The looped network packet of state, the slave become host, and the identical packet of looped network packet Status Flag sent and received.
In the present solution, the host in the looped network includes the port for being in blocked state, the host is simultaneously Non- BPDU packet and BPDU packet are sent, the non-BPDU packet and BPDU packet packet number having the same, host port blocked are not sent out Changing, whether needing aging mark position 0 when giving out a contract for a project;Host port blocked changes, when giving out a contract for a project whether need it is old Change home position 1, and one address aging ID of band, each state change of aging ID is both needed to add 1, if aging ID is 0, needs Add 2.
This programme second aspect additionally provides a kind of system that industrial ethernet switch realization looped network quickly solves net, this is System includes: memory, processor, quickly solves net including industrial ethernet switch looped network in the memory and holds back method program, The industrial ethernet switch looped network quickly solves when network method program is executed by the processor and realizes following steps:
Identical state is set by the corresponding ports of each interchanger in looped network and looped network mark, loop network link powers on, Each interchanger is used as host to send looped network packet to the interchanger connecting with itself;
Each interchanger is respectively by the looped network packet MAC Address received compared with the MAC Address of itself in the looped network;
When the looped network packet MAC Address that interchanger receives is bigger than the MAC Address of itself, then current SWITCH Status Change It for slave, is simultaneously stopped and sends looped network packet, current SWITCH supports two ports of looped network to be in opening state, and forwards logical Letter data, change oneself state is also slave by the data message that other interchangers receive current SWITCH in the looped network, The port of each slave in the looped network in addition to host is in an open state, to realize the quick solution net of looped network.
In the present solution, setting identical state for the port of each interchanger in looped network, specifically include: will be in looped network Interchanger sorts according to the size of MAC Address, loop network link connection set after powering on each interchanger in loop it is equal based on Machine, i.e., each interchanger, which all assumes that, itself, for the maximum interchanger of MAC Address in the looped network of place, concurrently sets having for each interchanger A port obstruction, a port are opened.
This programme third aspect additionally provides a kind of computer readable storage medium, in the computer readable storage medium Network method program is quickly solved including industrial ethernet switch looped network, the industrial ethernet switch looped network quickly solves network method When program is executed by processor, realize that industrial ethernet switch looped network as described in any one of the above embodiments quickly solves the step of network method Suddenly.
The present invention carries out MAC Address sequence by the interchanger preset in looped network, while by the port status of each interchanger It is preset as identical, the protocol massages MAC Address that receives by comparing and the MAC Address size of itself and then comes with looped network mark The state for changing itself operates, the port of each slave in the looped network in addition to host by the comparison of interchanger in looped network It is in an open state, to realize the quick solution net of looped network.
Detailed description of the invention
Fig. 1 shows industrial ethernet switch looped network and quickly solves network method flow chart.
Fig. 2 shows industrial ethernet switch looped network schematic diagrames.
Fig. 3 shows industrial ethernet switch and realizes that looped network quickly solves the system block diagram of net.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below Specific embodiment limitation.
Fig. 1 shows a kind of industrial ethernet switch looped network of the present invention and quickly solves network method, comprising:
S102: identical state, loop network link are set by the corresponding ports of each interchanger in looped network and looped network mark It powers on, each interchanger is used as host to send looped network packet to the interchanger connecting with itself;
S104: each interchanger is respectively by the MAC Address ratio of the looped network packet MAC Address received and itself in the looped network Compared with;
S106: when the looped network packet MAC Address that interchanger receives is bigger than the MAC Address of itself, then current SWITCH shape State is changed to slave, is simultaneously stopped and sends looped network packet, and current SWITCH supports two ports of looped network to be in opening state, and Communication data is forwarded, the data message that other interchangers receive current SWITCH in the looped network will also change oneself state and be The port of slave, each slave in the looped network in addition to host is in an open state, to realize the solution net of looped network.
It should be noted that looped network mark includes the Status Flag of 1 byte, and occupy the MAC Address of 6 bytes, The position the bit7 meaning of middle Status Flag are as follows: when single port connection go to dual-port connection when the position 1, other when be 0, the mark Will can only keep 30ms;The position bit6 for wherein comparing mark is 1 expression single port, i.e. two ports of the interchanger of group ring only have One in connection status;Comparing the position bit5 of mark is two ports of the interchanger of 1 expression group ring all in connection status.
In the present solution, setting identical state for the port of each interchanger in looped network, specifically include: will be in looped network Interchanger sorts according to the size of MAC Address, loop network link connection set after powering on each interchanger in loop it is equal based on Machine, i.e., each interchanger, which all assumes that, itself, for the maximum interchanger of MAC Address in the looped network of place, concurrently sets having for each interchanger A port obstruction, a port are opened.
For example, setting MAC Address size is as follows: SW-X1 (MAC Address of the X1 interchanger) > SW-X2 (MAC of X2 interchanger Address) > SW-X3 (MAC Address of X3 interchanger) > SW-X4 (MAC Address of X4 interchanger).
After loop network link connection powers on, X1, X2, X3, X4 interchanger are all host, and all think it oneself is MAC in looped network The maximum interchanger in address;And block a port e, open the port w.
In the present solution, each interchanger includes two identity: host or the maximum exchange of MAC Address in the looped network Machine, the host are the maximum interchanger of MAC Address in the looped network.
In the present solution, connectivity port will be in the open state when only one port of interchanger connects in the looped network, break It is ported to be in blocked state, when two ports of the interchanger of access looped network disconnect, the big data communication of port numbers Forwarding will obstruction.
In the present solution, the port of interchanger is opened, the slave when interchanger in the looped network is in slave status Only forwarding looped network packet, the another port that the looped network packet received from a port of slave is forwarded to slave changes simultaneously looped network packet Target MAC (Media Access Control) address, the forwarding of the looped network packet specifically includes: a port of slave receives BPDU packet then in another port Non- BPDU packet is forwarded, slave receives non-BPDU packet in a port and then forwards BPDU packet, and the same sequence in another port Number packet only forward once.
In the present solution, in the looped network interchanger slave become host satisfaction condition include:
A. port status of the slave in looped network changes, and specifically includes: the port becomes double from single-stranded line state Link state or the port become single-stranded line state from double-strand line state;
B. the protocol massages packet MAC Address received when the slave that port status is in single-stranded line state is than self MAC Location is small, and the slave is converted to host at once;
The slave that the address C.MAC maximum mark is 1 receives that port status is dual link and two ports are connection shape The looped network packet of state, the slave become host, and the identical packet of looped network packet Status Flag sent and received.
In the present solution, the host in the looped network includes the port for being in blocked state, the host is simultaneously Non- BPDU packet and BPDU packet are sent, the non-BPDU packet and BPDU packet packet number having the same, host port blocked are not sent out Changing, whether needing aging mark position 0 when giving out a contract for a project;Host port blocked changes, when giving out a contract for a project whether need it is old Change home position 1, and one address aging ID of band, each state change of aging ID is both needed to add 1, if aging ID is 0, needs Add 2.
It should be noted that only have host to give out a contract for a project in the looped network, and the every 10 milliseconds hair of preceding 30 packets is primary, it is subsequent It is primary to wrap 2 seconds hairs.
It should be noted that the frame format of looped network packet is as follows:
6, the head byte of looped network packet is the address BPDU or the non-address BPDU, and follow six bytes on head closely is 6 words The MAC Address of section indicates that byte is the MAC Address of the host or slave given out a contract for a project, and then 8902 accounts for 2 bytes;Looped network mark accounts for 7 bytes, specifically include: the Status Flag of 1 byte and the MAC Address of 6 bytes;The aging flag byte of 1 byte;1 word The address aging ID of section;The packet number of 2 bytes, wherein the BPDU of host is consistent with non-BPDU packet number.
As described above, the interchanger in looped network is given out a contract for a project, since the interchanger in looped network is dual link, looped network exchange The Status Flag byte of machine is just the same, only need to compare MAC Address, after X2 interchanger receives the packet of X1 interchanger, X2 interchanger As slave, stop giving out a contract for a project at once, two ports of X2 interchanger are all opened, while X3 interchanger when receiving X2 interchanger packet As slave, after same X4 interchanger receives the packet of X1 interchanger, also become slave, in this way in addition to the e mouth of X1 interchanger is resistance Plug, other ports are all open, and the looped network unlinks.
If the cable at this time between X2, X3 disconnects, X2, X3 interchanger become host simultaneously, while sending out Status Flag bit6 For 1 packet, after X1 interchanger receives, become slave at once, but the MAC Address maximum mark of X1 interchanger is still that 1, X1 is handed over The e mouth changed planes is opened.After X3 interchanger receives the packet of X2 interchanger, since the looped network ID than X2 interchanger is small, become slave.It is whole A link is still integrally formed.
If the disconnecting link of X2, X3 restore at this time again, X3 can become host again, and the variation of X2 Host Status can also be again Give out a contract for a project, at this moment state bit7 sets 1, at this time X1 interchanger due to MAC maximum mark be 1 because receiving an X2 or X3 interchanger Packet also becomes host.The packet that bit7 is 1 is sent out, X2, X3 is made to become slave, link-recovery rapidly.
As shown in figure 3, this programme second aspect, which additionally provides a kind of industrial ethernet switch, realizes that looped network quickly solves net System, which includes: memory 31, processor 32, includes that industrial ethernet switch looped network is quick in the memory Network method program is solved, the industrial ethernet switch looped network is quickly solved and realized such as when network method program is executed by the processor Lower step:
S102: identical state, loop network link are set by the corresponding ports of each interchanger in looped network and looped network mark It powers on, each interchanger is used as host to send looped network packet to the interchanger connecting with itself;
S104: each interchanger is respectively by the MAC Address ratio of the looped network packet MAC Address received and itself in the looped network Compared with;
S106: when the looped network packet MAC Address that interchanger receives is bigger than the MAC Address of itself, then current SWITCH shape State is changed to slave, is simultaneously stopped and sends looped network packet, and current SWITCH supports two ports of looped network to be in opening state, and Communication data is forwarded, the data message that other interchangers receive current SWITCH in the looped network will also change oneself state and be The port of slave, each slave in the looped network in addition to host is in an open state, to realize the quick solution net of looped network.
In the present solution, setting identical state for the port of each interchanger in looped network, specifically include: will be in looped network Interchanger sorts according to the size of MAC Address, loop network link connection set after powering on each interchanger in loop it is equal based on Machine, i.e., each interchanger, which all assumes that, itself, for the maximum interchanger of MAC Address in the looped network of place, concurrently sets having for each interchanger A port obstruction, a port are opened.
It should be noted that looped network mark includes the epidemic situation comparison mark of 1 byte, and with occupying the MAC of 6 bytes Location, wherein comparing the position the bit7 meaning of mark are as follows: when single port connection go to dual-port connection when the position 1, other when be 0, which can only keep 30ms;The position bit6 for wherein comparing mark is 1 expression single port, i.e. two ends of the interchanger of group ring Mouthful only one in connection status;Comparing the position bit5 of mark is two ports of the interchanger of 1 expression group ring all in connection shape State.
After loop network link connection powers on, X1, X2, X3, X4 interchanger are all host, and all think it oneself is MAC in looped network The maximum interchanger in address;And block a port e, open the port w.
For example, setting MAC Address size is as follows: SW-X1 (MAC Address of the X1 interchanger) > SW-X2 (MAC of X2 interchanger Address) > SW-X3 (MAC Address of X3 interchanger) > SW-X4 (MAC Address of X4 interchanger).
In the present solution, each interchanger includes two identity: host or the maximum exchange of MAC Address in the looped network Machine, the host are the maximum interchanger of MAC Address in the looped network.
In the present solution, connectivity port will be in the open state when only one port of interchanger connects in the looped network, break It is ported to be in blocked state, when two ports of the interchanger of access looped network disconnect, the big data communication of port numbers Forwarding will obstruction.
In the present solution, the port of interchanger is opened, the slave when interchanger in the looped network is in slave status Only forwarding looped network packet, the another port that the looped network packet received from a port of slave is forwarded to slave changes simultaneously looped network packet Target MAC (Media Access Control) address, the forwarding of the looped network packet specifically includes: a port of slave receives BPDU packet then in another port Non- BPDU packet is forwarded, slave receives non-BPDU packet in a port and then forwards BPDU packet, and the same sequence in another port Number packet only forward once.
In the present solution, in the looped network interchanger slave become host satisfaction condition include:
A. port status of the slave in looped network changes, and specifically includes: the port becomes double from single-stranded line state Link state or the port become single-stranded line state from double-strand line state;
B. the protocol massages packet MAC Address received when the slave that port status is in single-stranded line state is than self MAC Location is small, and the slave is converted to host at once;
The slave that the address C.MAC maximum mark is 1 receives that port status is dual link and two ports are connection shape The looped network packet of state, the slave become host, and the identical packet of looped network packet Status Flag sent and received.
In the present solution, the host in the looped network includes the port for being in blocked state, the host is simultaneously Non- BPDU packet and BPDU packet are sent, the non-BPDU packet and BPDU packet packet number having the same, host port blocked are not sent out Changing, whether needing aging mark position 0 when giving out a contract for a project;Host port blocked changes, when giving out a contract for a project whether need it is old Change home position 1, and one address aging ID of band, each state change of aging ID is both needed to add 1, if aging ID is 0, needs Add 2.
It should be noted that only have host to give out a contract for a project in the looped network, and the every 10 milliseconds hair of preceding 30 packets is primary, it is subsequent It is primary to wrap 2 seconds hairs.
It should be noted that the frame format of looped network packet is as follows:
6, the head byte of looped network packet is the address BPDU or the non-address BPDU are sent out followed by the MAC Address of 6 bytes The host of packet or the MAC Address of slave;Followed by 8902 account for 2 bytes;Looped network mark accounts for 7 bytes, specifically includes: 1 word The MAC Address of the Status Flag of section and 6 bytes;The aging flag byte of 1 byte;The address aging ID of 1 byte;2 bytes Packet number, wherein the BPDU of host is consistent with non-BPDU packet number.
As described above, the interchanger in looped network is given out a contract for a project, since the interchanger in looped network is dual link, ring exchanger Status Flag byte is just the same, only need to compare MAC Address, after X2 interchanger receives the packet of X1 interchanger, X2 interchanger becomes Slave stops giving out a contract for a project at once, and two ports of X2 interchanger are all opened, while when X3 interchanger receives X2 interchanger packet has become Slave after same X4 interchanger receives the packet of X1 interchanger, also becomes slave, in this way in addition to the e mouth of X1 interchanger is obstruction, Other ports are all open, and the looped network unlinks.
If the cable at this time between X2, X3 disconnects, X2, X3 interchanger become host simultaneously, while sending out Status Flag bit6 For 1 packet, after X1 interchanger receives, become slave at once, but the MAC Address maximum mark of X1 interchanger is still that 1, X1 is handed over The e mouth changed planes is opened.After X3 interchanger receives the packet of X2 interchanger, since the looped network ID than X2 interchanger is small, become slave.It is whole A link is still integrally formed.
If the link of X2, X3 have restored connection at this time again, X3 can become host again, and the variation of X2 Host Status can also be again Give out a contract for a project, at this moment state bit7 sets 1, at this time X1 interchanger due to MAC maximum mark be 1 because receiving an X2 or X3 interchanger Packet also becomes host.The packet that bit7 is 1 is sent out, X2, X3 is made to become slave, link-recovery rapidly.
This programme third aspect additionally provides a kind of computer readable storage medium, in the computer readable storage medium Network method program is quickly solved including industrial ethernet switch looped network, the industrial ethernet switch looped network quickly solves network method When program is executed by processor, realize that industrial ethernet switch looped network as described in any one of the above embodiments quickly solves the step of network method Suddenly.
The present invention carries out MAC Address sequence by the interchanger preset in looped network, while by the port status of each interchanger It is preset as identical, the protocol massages MAC Address that receives by comparing and the MAC Address size of itself and then comes with looped network mark The state for changing itself operates, the port of each slave in the looped network in addition to host by the comparison of interchanger in looped network It is in an open state, to realize the quick solution net of looped network.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit The component shown can be or may not be physical unit;Both it can be located in one place, and may be distributed over multiple network lists In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in one processing unit, it can also To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, which exists When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: movable storage device, read-only deposits Reservoir (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or The various media that can store program code such as CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the present invention is implemented Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words, The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention. And storage medium above-mentioned includes: that movable storage device, ROM, RAM, magnetic or disk etc. are various can store program code Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of industrial ethernet switch looped network quickly solves network method characterized by comprising
Identical state is set by the corresponding ports of each interchanger in looped network and looped network mark, loop network link powers on, each to hand over It changes planes and sends looped network packet to the interchanger connecting with itself as host;
Each interchanger is respectively by the looped network packet MAC Address received compared with the MAC Address of itself in the looped network;
When the looped network packet MAC Address that interchanger receives is bigger than the MAC Address of itself, then current SWITCH Status Change be from Machine is simultaneously stopped and sends looped network packet, and current SWITCH supports two ports of looped network to be in opening state, and forwards communication number According to change oneself state is also slave by the data message that other interchangers receive current SWITCH in the looped network, described The port of each slave in looped network in addition to host is in an open state, to realize the solution net of looped network.
2. a kind of industrial ethernet switch looped network according to claim 1 quickly solves network method, which is characterized in that by ring The port of each interchanger in net is set as identical state, specifically includes: by the interchanger in looped network according to the big of MAC Address Small sequence, each interchanger that the loop network link connection is set in loop after powering on is host, i.e., each interchanger all assumes that certainly As the maximum interchanger of MAC Address in the looped network of place, concurrently set each interchanger has a port obstruction, a port It opens.
3. a kind of described in any item industrial ethernet switch looped networks quickly solve network method according to claim 1, feature exists In each interchanger includes two identity in the looped network: host or the maximum interchanger of MAC Address, the host are institute State the maximum interchanger of MAC Address in looped network.
4. a kind of industrial ethernet switch looped network according to claim 1 quickly solves network method, which is characterized in that described When only one port of interchanger connects in looped network, connectivity port will be in the open state, and blocked state will be in by disconnecting port, When two ports of the interchanger of access looped network disconnect, the big data communication forwarding of port numbers will obstruction.
5. a kind of industrial ethernet switch looped network according to claim 1 quickly solves network method, which is characterized in that described When interchanger in looped network is in slave status, the port of interchanger is opened, and the slave only forwards looped network packet, from slave The another port that the looped network packet that a port receives is forwarded to slave changes simultaneously the target MAC (Media Access Control) address of looped network packet, the ring The forwarding of net packet specifically includes: a port of slave receives BPDU packet and then forwards non-BPDU packet in another port, and slave exists A port receives non-BPDU packet and then forwards BPDU packet in another port, and the packet of the same sequence number only forwards once.
6. a kind of industrial ethernet switch looped network according to claim 1 quickly solves network method, which is characterized in that described In looped network interchanger slave become host satisfaction condition include:
A. port status of the slave in looped network changes, and specifically includes: the port becomes dual link from single-stranded line state State or the port become single-stranded line state from double-strand line state;
B. the protocol massages packet MAC Address received when the slave that port status is in single-stranded line state is smaller than own MAC address, The slave is converted to host at once;
The slave that the address C.MAC maximum mark is 1 receives that port status is dual link and two ports are connection status Looped network packet, the slave become host, and the identical packet of looped network packet Status Flag sent and received.
7. a kind of industrial ethernet switch looped network according to claim 5 quickly solves network method, which is characterized in that described Host in looped network includes the port for being in blocked state, and the host sends non-BPDU packet and BPDU packet simultaneously, Whether the non-BPDU packet and BPDU packet packet number having the same, host port blocked do not change, needing when giving out a contract for a project Want aging mark position 0;Host port blocked changes, whether needing aging home position 1, and one ground of band when giving out a contract for a project Location aging ID, each state change of aging ID are both needed to add 1, if aging ID is 0, need to add 2.
8. a kind of industrial ethernet switch realizes the system that looped network quickly solves net, which is characterized in that the system includes: storage Device, processor include quickly solving network method program, the industry ether with industrial ethernet switch looped network in the memory Network switch looped network quickly solves when network method program is executed by the processor and realizes following steps:
Identical state is set by the corresponding ports of each interchanger in looped network and looped network mark, loop network link powers on, each to hand over It changes planes and sends looped network packet to the interchanger connecting with itself as host;
Each interchanger is respectively by the looped network packet MAC Address received compared with the MAC Address of itself in the looped network;
When the looped network packet MAC Address that interchanger receives is bigger than the MAC Address of itself, then current SWITCH Status Change be from Machine is simultaneously stopped and sends looped network packet, and current SWITCH supports two ports of looped network to be in opening state, and forwards communication number According to change oneself state is also slave by the data message that other interchangers receive current SWITCH in the looped network, described The port of each slave in looped network in addition to host is in an open state, to realize the quick solution net of looped network.
9. the system that a kind of industrial ethernet switch looped network according to claim 8 quickly solves net, which is characterized in that will The port of each interchanger in looped network is set as identical state, specifically includes: by the interchanger in looped network according to MAC Address Size sequence, each interchanger that the loop network link connection is set in loop after powering on is host, i.e., each interchanger all assumes that It itself is the maximum interchanger of MAC Address in the looped network of place, concurrently set each interchanger has a port obstruction, an end Mouth is opened.
10. a kind of computer readable storage medium, which is characterized in that include industrial ether in the computer readable storage medium Network switch looped network quickly solves network method program, and the industrial ethernet switch looped network quickly solves network method program by processor When execution, realize that the industrial ethernet switch looped network as described in any one of claims 1 to 7 quickly solves the step of network method Suddenly.
CN201910396948.6A 2019-05-14 2019-05-14 A kind of industrial ethernet switch looped network quickly solves network method, system and storage medium Pending CN110300043A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910396948.6A CN110300043A (en) 2019-05-14 2019-05-14 A kind of industrial ethernet switch looped network quickly solves network method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910396948.6A CN110300043A (en) 2019-05-14 2019-05-14 A kind of industrial ethernet switch looped network quickly solves network method, system and storage medium

Publications (1)

Publication Number Publication Date
CN110300043A true CN110300043A (en) 2019-10-01

Family

ID=68026782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910396948.6A Pending CN110300043A (en) 2019-05-14 2019-05-14 A kind of industrial ethernet switch looped network quickly solves network method, system and storage medium

Country Status (1)

Country Link
CN (1) CN110300043A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282001A (en) * 2015-12-10 2016-01-27 深圳市源拓光电技术有限公司 Network opening method for industrial Ethernet switch
CN106612207A (en) * 2016-11-16 2017-05-03 广东电网有限责任公司中山供电局 Method and device for managing and controlling RSTP (Rapid Spanning Tree Protocol) information of Ethernet equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105282001A (en) * 2015-12-10 2016-01-27 深圳市源拓光电技术有限公司 Network opening method for industrial Ethernet switch
CN106612207A (en) * 2016-11-16 2017-05-03 广东电网有限责任公司中山供电局 Method and device for managing and controlling RSTP (Rapid Spanning Tree Protocol) information of Ethernet equipment

Similar Documents

Publication Publication Date Title
CN105706393B (en) The method and system of operator's order is supported in link aggregation group
CN103581164B (en) For can carry out in the industrial communication network of redundant operation the method for message transmission and for can redundant operation industrial communication network communication equipment
CN104735001B (en) Link discovery method, apparatus and system in software defined network
CN102916857B (en) Stacking and splitting quick detection method and device
CN101997735A (en) Monocylic network topology reconstruction method and system thereof
CN107911297B (en) SDN network in-band control channel establishment method and device
US9019959B2 (en) Node, switch, and system
JP5987971B2 (en) Communication system, switch, control device, control channel construction method and program
CN104350707B (en) Method and apparatus for handling the message in heterogeneous network
CN103780510A (en) Flow path negotiation method and device in link aggregation group
CN101854283A (en) Communication method and equipment of RPR (Resilient Packet Ring) looped network
CN102546391B (en) energy efficient networking
EP3264707B1 (en) Data processing method and apparatus
CN110300043A (en) A kind of industrial ethernet switch looped network quickly solves network method, system and storage medium
CN104883337B (en) The implementation method and device of looped network user security
CN110266575A (en) A kind of electric power Special industrial Ethernet switch looped network method for rapidly converging, system and storage medium
CN111163003A (en) Topology discovery method of wireless multi-control-domain SDN
Schlesinger et al. VABS-A new approach for Real Time Ethernet
CN104854912A (en) Shared media bridging
JP7447263B2 (en) Network structures and methods for transmitting/receiving packets between network elements within a network
CN115913822A (en) Network connection method, network connection system, development board, and storage medium
CN103812794B (en) The setting system and method to set up of switch ports themselves
CN102075374A (en) Method and system for reconstructing single-ring network topology
CN102244612B (en) Method and device for receiving data, and communication system
CN110891020B (en) Flow table quantity optimization method of SDN in-band control network

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191001