A network device including a main bridge, a first bridge, a controller, and an ethernet port is provided. When the ethernet port is connected to a mesh network, the processing unit performs the following steps: controlling the ethernet port to transmit a first broadcast packet; when the ethernet port receives a second broadcast packet, parsing the second broadcast packet to extract the packet path information to determine whether a path loop exists; determining, according to the ethernet interface weight (eiw), the slave interface uplink weight (SIUW), and the master device weight (mw) carried by the first broadcast packet and the second broadcast packet, (1) whether the network device plays a master device role, (2) whether the bridge of the ethernet port is set as the main bridge or the first bridge, and (3) whether the ethernet port allows data transmission.
|
1. A first network device, comprising:
a main bridge;
a first bridge different from the main bridge;
an ethernet interface provided with a first ethernet port whose bridge is selectively set as one of the main bridge and the first bridge, wherein the first network device has a split bridge mode in which a plurality of ports, including the first ethernet port, independently use individual bridges, and one of the ports of the first network device with a highest mac address in the split bridge mode is set to a blocking state to avoid a path loop which is a downlink loop, and one of a plurality of ports of a second network device, which has the split bridge mode, is set to a forwarding state to make the first network device and the second network device only master devices in two different local networks respectively; and
a processing unit coupled to the ethernet interface to perform the following steps in response to the first ethernet port being connected to a mesh network:
controlling the first ethernet port to transmit a first broadcast packet carrying a first ethernet interface weight (eiw);
if a second broadcast packet is received within a predetermined period, parsing the second broadcast packet to extract a packet path information to determine whether the path loop exists;
if it is determined that the path loop exists, determining, according to the first eiw and a second eiw carried by the second broadcast packet, whether the bridge of the first ethernet port is set as the first bridge and whether the first ethernet port needs to be set to the blocking state.
10. A first network device:
the first network device selectively set as one of a master device role and a slave device role, wherein if the first network device is set as the master device role, the first network device responds to a network address requesting broadcast packet originated from another network device; if the first network device is set as the slave device role, the first network device transmits the network address requesting broadcast packet to the other network device; and the first network device comprises:
a main bridge;
a first bridge different from the main bridge;
an ethernet interface provided with a first ethernet port whose bridge is selectively set as one of the main bridge and the first bridge, wherein the first network device has a split bridge mode in which a plurality of ports, including the first ethernet port, independently use individual bridges, and one of the ports of the first network device with a highest mac address in the split bridge mode is set to a blocking state to avoid a path loop which is a downlink loop, and one of a plurality of ports of a second network device, which has a split bridge mode, is set to a forwarding state to make the first network device and the second network device only master devices in two different local networks respectively; and
a processing unit coupled to the ethernet interface to perform the following steps in response to the first ethernet port being connected to a mesh network:
controlling the first ethernet port to transmit a first broadcast packet carrying a first mw;
if a second broadcast packet is received within a predetermined period, determining, according to the first mw and a second mw carried by the second broadcast packet, whether the first network device needs to be set as the master device role.
17. A first network device:
the first network device selectively set as one of a master device role and a slave device role, wherein if the first network device is set as the master device role, the first network device responds to a network address requesting broadcast packet originated from another network device; if the first network device is set as the slave device role, the first network device transmits the network address requesting broadcast packet to the other network device; and the first network device comprises:
a main bridge;
a first bridge different from the main bridge;
an ethernet interface provided with a first ethernet port whose bridge is selectively set as one of the main bridge and the first bridge, wherein the first network device has a split bridge mode in which a plurality of ports, including the first ethernet port, independently use individual bridges, and one of the ports of the first network device with a highest mac address in the split bridge mode is set to a blocking state to avoid a path loop which is a downlink loop, and one of a plurality of ports of a second network device, which has a split bridge mode, is set to a forwarding state to make the first network device and the second network device only master devices in two different local networks respectively; and
a processing unit coupled to the ethernet transmission interface, wherein if the first network device is set as the slave device role and the bridge of the first ethernet port is set as the first bridge, the processing unit performs the following steps:
controlling the first ethernet port to transmit a first broadcast packet in response to a predetermined scenario that the first ethernet port is connected to a mesh network;
if a first predetermined period matures but a second broadcast packet is not received, and a second predetermined period matures but a first broadcast packet response responding to the first broadcast packet is not received, setting the bridge of the first ethernet port as the main bridge and re-transmitting the first broadcast packet.
2. The first network device according to
3. The first network device according to
4. The first network device according to
5. The first network device according to
6. The first network device according to
7. The first network device according to
8. The first network device according to
9. The first network device according to
11. The first network device according to
12. The first network device according to
13. The first network device according to
14. The first network device according to
15. The first network device according to
16. The first network device according to
18. The first network device according to
19. The first network device according to
20. The first network device according to
21. The first network device according to
22. The first network device according to
23. The first network device according to
24. The first network device according to
25. The first network device according to
|
This application claims the benefit of Taiwan application Serial No. 108141913, filed Nov. 19, 2019, the subject matter of which is incorporated herein by reference.
The invention relates in general to a network device and a control method using the same, and more particularly to a network device adaptable to a mesh network, and a control method using the same.
The mesh network is a wireless network architecture that has been widely used. The mesh network is provided with the features of self-configuration and self-organization. In a mesh network, the nodes can be freely connected, and the network topology of the mesh network can be dynamically adjusted according to the type of connection between the nodes.
However, if the nodes of the mesh network are connected in an arbitrary manner, a path loop may be formed. When the path loop exists, the packets will circulate in the looping path and generate a broadcast packet storm. Therefore, it has become a prominent task for the industries to provide an effective solution.
The invention is directed to a network device selectively set as one of a master device role and a slave device role. If the network device is set as the master device role, the network device responds a network address requesting broadcast packet originated from another network device. If the network device is set as the slave device role, the network device transmits the network address requesting broadcast packet to another network device. The network device includes a main bridge, a first bridge, a processing unit, and an Ethernet transmission interface. The first bridge is different from the main bridge. The Ethernet interface is provided with a first Ethernet port whose bridge is selectively set as one of the main bridge and the first bridge. The processing unit is coupled to the Ethernet interface to perform the following steps in response to the first Ethernet port being connected to a mesh network: setting the bridge of the first Ethernet port as the first bridge, and setting the first network device as the master device role; controlling the first Ethernet port to transmit a first broadcast packet carrying a first Ethernet interface weight (EIW); if a second broadcast packet is received within a predetermined period, parsing the second broadcast packet to extract the packet path information to determine whether a path loop exists; if it is determined that the path loop exists, determining, according to the first EIW and a second EIW carried by the second broadcast packet, whether the bridge of the first Ethernet port is set as the first bridge and whether the first Ethernet port is set to a blocking state.
According to one embodiment of the present invention, if no broadcast packet is received within the predetermined period, the network device is set as the master device role, the bridge of the first Ethernet port is set as the main bridge, and the first Ethernet port is set to a forwarding state.
According to one embodiment of the present invention, if the parsing of the packet path information determines that no path loop exists, and the second network device is not set as the master device role, the bridge of the first Ethernet port is set as the main bridge, the first Ethernet port is set to the forwarding state, and a broadcast packet response is transmitted in response to the second broadcast packet.
According to one embodiment of the present invention, the first broadcast packet further contains a first master weight (MW), and the second broadcast packet further contains a second MW. If the parsing of the packet path information determines that no path loop exists, and the second network device is currently set as the master device role, whether the first network device needs to be set as the master device is determined according to the first MW and the second MW.
According to a first aspect of the present invention, a first network device selectively set as one of a master device role and a slave device role is disclosed. If the first network device is set as the master device role, the first network device responds to a network address requesting broadcast packet originated from another network device. If the first network device is set as the slave device role, the first network device transmits the network address requesting broadcast packet to the other network device. The first network device includes a main bridge, a first bridge, a processing unit, and an Ethernet transmission interface. The first bridge is different from the main bridge. The Ethernet interface is provided with a first Ethernet port whose bridge is selectively set as one of the main bridge and the first bridge. The processing unit is coupled to the Ethernet interface to perform the following steps in response to the first Ethernet port being connected to a mesh network: setting the bridge of the first Ethernet port as the first bridge, and setting the first network device as the master device role; controlling the first Ethernet port to transmit a first broadcast packet carrying a first MW; if a second broadcast packet is received within a predetermined period, determining, according to the first MW and a second MW carried by the second broadcast packet, whether the first network device needs to be set as the master device.
According to another embodiment of the present invention, if the first MW is larger than the second MW, the first network device is set as the main access point network device, the bridge of the first Ethernet port is set as the main bridge, and a broadcast packet response is transmitted in response to the second broadcast packet.
According to another embodiment of the present invention, if the first MW is smaller than the second MW, and the first network device is not allowed to be set as the slave device role, the first network device is set as the master device, the bridge of the first Ethernet port is set as the first bridge, and the first Ethernet port is set to the blocking state.
According to another embodiment of the present invention, if the first MW is smaller than the second MW, and the first network device is allowed to be set as the slave device role, the first network device is set as the slave device, the bridge of the first Ethernet port is set as the first bridge, and the first Ethernet port is set as a potential uplink path (potential UPth).
According to another embodiment of the present invention, the packet path information contains a source address (SA) and a neighbor address (NA). If the source address and the received address (RA) both belong to the same network device, such as the first network device, it is determined that the path loop exists.
According to another embodiment of the present invention, the first EIW is related to at least one of (a) a user setting, (b) the media access control (MAC) address of the first Ethernet port, (c) the MAC address of the first network device, (d) the name of the first Ethernet port.
According to another embodiment of the present invention, the first MW is related to at least one of (a) a user setting, (b) whether the first Ethernet port is capable of linking up to the Internet, (c) transmission speed to the Internet from the first Ethernet port, (d) the MAC address of the first Ethernet port.
According to a second aspect of the present invention, a first network device selectively set as one of a master device role and a slave device role is disclosed. If the first network device is set as the master device role, the first network device responds a broadcast packet. If the first network device is set as the slave device role, the first network device transmits the broadcast packet. The first network device includes a main bridge, a first bridge, a processing unit, and an Ethernet transmission interface. The first bridge is different from the main bridge. The Ethernet interface is provided with a first Ethernet port whose bridge is selectively set as one of the main bridge and the first bridge. The processing unit is coupled to the Ethernet transmission interface. If the first network device is set as the slave device role, and the bridge of the first Ethernet port is set as the first bridge. The processing unit performs the following steps: controlling the first Ethernet port to transmit a first broadcast packet in response to a predetermined scenario that the first Ethernet port is connected to a mesh network, or the first Ethernet port is just set as a standby uplink path; if a first predetermined period matures but a second broadcast packet is not received, and a second predetermined period matures but a first broadcast packet response responding to the first broadcast packet is not received, setting the bridge of the first Ethernet port as the main bridge and re-transmitting the first broadcast packet.
According to an alternate embodiment of the present invention, the first broadcast packet carries a first Ethernet interface weight. If a second broadcast packet is received within a first predetermined period, the second broadcast packet is parsed to extract the packet path information to determine whether a path loop exists. If it is determined that the path loop exists, whether the bridge of the first Ethernet port is set as the first bridge and whether the first Ethernet port is set to the blocking state is determined according to the first EIW and a second EIW carried by the second broadcast packet.
According to an alternate embodiment of the present invention, if a second broadcast packet is received within the first predetermined period, but the first network device does not have any other uplink path, the bridge of the first Ethernet port is set as the main bridge, and the first Ethernet port is set to the forwarding state.
According to an alternate embodiment of the present invention, the first broadcast packet carries a slave interface uplink weight (SIUW). If the second broadcast packet is received within the first predetermined period, and the first network device is provided with a second uplink path through a second Ethernet port, whether the first Ethernet port is set to the blocking state is determined according to the first SIUW and a second SIUW carried by the second broadcast packet. The first SIUW is related to at least one of (a) a user setting, (b) network transmission speed from the first Ethernet port to a master device, (c) transmission speed of the network media connected to the first Ethernet port.
According to an alternate embodiment of the present invention, if the first SIUW is smaller than the second slave device uplink weight, the first Ethernet port is set to the blocking state, and a standby uplink path (Standby UPth).
According to an alternate embodiment of the present invention, if the first SIUW is larger than the second slave device uplink weight, firstly the second Ethernet port is set to the blocking state, then the bridge of the first Ethernet port is set as the main bridge, and lastly the first Ethernet port is set to a forwarding state.
According to an alternate embodiment of the present invention, the first network device further is provided with a wireless network port, which is activated by the first network device after the first network device is connected to an external master device.
The above and other aspects of the invention will become better understood with regard to the following relevant descriptions of the preferred but non-limiting embodiment(s). The following description is made with reference to the accompanying drawings.
The present invention discloses a master-slave architecture method for role decision and loop prevention. The master-slave architecture method relates to a management technology of local network topology. At the initial establishment stage of a local network, the master-slave architecture method manages the network devices of the entire local network by: selecting one network device among several network devices as a master device role and using the maintaining network devices as slave devices; and preventing the occurrence of path looping. Here, the network devices can be realized by bridges. That is, one of several bridges is selected as a master bridge, and the maintaining bridges are used as slave bridges, and the network link between the bridges prevents the occurrence of path looping.
Referring to
Although five network devices, one gateway and two user devices are illustrated in
In the example of
The gateway 104 can provide gateway service to the network devices 102_1 to 102_5, such as Internet access service or the service for connecting to another wired/wireless network.
Meanwhile, if the connection of the node ports is not suitably defined or updated, path looping could occur to the mesh network 100. As indicated in
Firstly, the technical terms used in the present invention and their abbreviations are listed below, and the meaning of each technical term is explained in the following paragraphs.
EI
Ethernet Interface
EP
Ethernet Port
MAC
Media Access Control Address
BP
Broadcast Packet
BPR
Broadcast Packet Response
MB
Main Bridge
SB
Spilt Bridge, Standby Bridge
SA
Source Address
NA
Neighbor Address
DPth
Downlink Path
UPth
Uplink Path
EIW
Ethernet Interface Weight
SIUW
Slave interface Uplink Weight
MW
Master Weight
MASTER
Master Device
Slave
Slave Device
DISABLED
Disabled State
LEARNING
Learning State
LEARNING_SD
Learning - slave downlink
FORWARDING
Forwarding State
BLOCKING
Blocking State
Relevant descriptions of the uplink path (UPth) and the downlink path (DPth) are disclosed below. If the Ethernet port of a network device can be directly or indirectly connected to the gateway 104, such Ethernet port is categorized as an uplink port. Conversely, if the Ethernet port of a network device cannot be directly or indirectly connected to the gateway 104, such Ethernet port is categorized as a downlink port. For example, the Ethernet port EP1 of the network device 102_1 can be connected to the gateway 104 through the network device 1022, and therefore can be defined as an uplink port. On the other hand, since the Ethernet port EP10 of the network device 102_4 is directly connected to the user device 106_2 and cannot be connected to the gateway 104, the Ethernet port EP10 is defined as a downlink port.
Relevant descriptions of the main bridge mode (MB) and the split bridge mode (SB) are disclosed below. The network device 200 of the present invention is provided with at least two operation modes: (1) the MB mode, and (2) the SB mode.
Referring to
As indicated in
As indicated in
Moreover, when the network device is set to the split bridge mode SB, each port of the network device independently uses an individual bridge, and is assigned with an individual port identification code. For example, if each of the ports has an individual MAC address, the MAC addresses can directly be used as a port identification code. If the ports and the network device share the same MAC address, the port identification code can be a combination of the MAC address (such as 00-05-5D-E8-0F-A3) plus the port name (such as br01), and the obtained port identification code can be: 00-05-5D-E8-0F-A3-br01.
Relevant descriptions of the broadcast packet (BP) and the broadcast packet response (BPR) are disclosed below. The broadcast packet (BP) used in the master-slave architecture method for role decision and loop prevention of the present invention is a network address requesting broadcast packet operated in the level 3 network layer of the Internet protocol. Exemplarily but not restrictively, the broadcast packet is a DHCP packet. Basically, the slave device 200 needs to be capable of transmitting a network address requesting broadcast packet to other network device, and the master device 200 needs to be capable of responding the network address requesting broadcast packet originated from other network device. If the packet needs to be compatible with the products using conventional technology, the DHCP packet is preferred.
Relevant descriptions of the master device (MASTER) and the slave device (Slave) are disclosed below. Within the local network range of
According to the control method of the present invention, when the local network has any topology change, the network device whose port is newly connected to the network or whose classification originally is provided with backup uplink path will firstly check whether the local network has any other master device. If no other master device exists, the network device will set itself as a new master device of the local network. Conversely, if the local network already has a master device, then a comparison based on the weight information between two network devices is made to determine which device is the master device. Thus, under the dynamic management mechanism of the master device, other network device can share the networking work to achieve loading balance, and provide standby function or even provide handover function between different network devices.
Any local network can have only one master device, but can have several slave devices Slave. When a network device is newly connected to the network, the network device will transmit a broadcast packet to explore the entire network topology and check whether its role is the master device role. After the network device confirms that its role is the master device role, the network device being the master device will respond a broadcast packet response BPR to the broadcast packet BP transmitted from other slave devices.
When a slave device Slave detects several potential uplink paths (such as several Ethernets or wireless WI-FI transmission paths), the slave device Slave will compare the slave interface uplink weight (SIUW) carried by different broadcast packets and will select one uplink path as the only uplink path, and the unselected uplink paths will be used as standby uplink paths. On the other hand, the user can set the SIUW value for a particular port and make the particular port carry a larger weight to become the uplink path.
Relevant descriptions of port states are disclosed below. As indicated in
Relevant descriptions of weight are disclosed below. According to the control method of the present invention, when the network device role or the path crashes, which port needs to enter a blocking state, or which path is selected as the uplink path is determined according to three types of weights including (1) the Ethernet interface weight (EIW), (2) the slave interface uplink weight (SIUW), and (3) the master weight (MW). (1) The Ethernet interface weight (EIW) is calculated according to possible relevant parameters including (a) user setting, (b) MAC address of the port, (c) network device MAC address, and (d) port name. (2) The slave interface uplink weight (SIUW) is calculated according to possible relevant parameters including (a) user setting, (b) speed to master, (c) speed of media, and (d) other collected information of the learning state; and the user can set the priority of the uplink path according to the SIUW to obtain a better uplink path, which provides better network experience. (3) The master weight (MW) is calculated according to possible relevant parameters including (a) user setting, (b) capability of Internet, (c) speed to Internet, (d) MAC address of the port.
As indicated in
Step 41: when the first Ethernet port EP1 is connected to the mesh network, if the first network device of the first Ethernet port EP1 is set as the master device, the first Ethernet port EP1 is set to a split bridge mode, the bridge of the Ethernet port EP1 is set as the first bridge br1 and is in a learning state, then the first broadcast packet BP #1 carrying a first EIW in the level 3 network layer of the Internet protocol is transmitted to the mesh network.
Step 43: whether a broadcast packet BP is received by the first Ethernet port EP1 within a predetermined period (Time Out) is checked. If no broadcast packet BP is received within the predetermined period, the method proceeds to step 48. If a broadcast packet BP, such as the second broadcast packet BP #2, is received within the predetermined period, then the method proceeds to step 46 to perform a downlink loop excluding procedure.
Step 46: when a second broadcast packet is received within the predetermined period, the present step being a downlink loop excluding procedure is performed. Details of the present step are disclosed with reference to
Step 47: if it is determined according to the downlink loop excluding procedure of step 46 that the first Ethernet port EP1 does not need to enter the blocking state, this implies that the received broadcast packet BR is not originated from the first network device to which the first Ethernet port EP1 belongs, and it can be confirmed that the received broadcast packet is the second broadcast packet BR #2 originated from a second network device. Therefore, whether the second network device transmitting the second broadcast packet BR #2 currently is the master device is determined. If it is determined that the second network device to which the second Ethernet port EP2 belongs is not the master device, the method proceeds to step 48. If it is determined that the second network device currently is another master device, the method proceeds to step 49 to perform the MW comparison procedure.
Step 48: if no broadcast packet is received within the predetermined period of step 43 or the second network device of step 47 is not set as the master device role, then the first network device is set as the master device role, the bridge of the first Ethernet port EP1 is set as the main bridge br0, a downlink path, and a forwarding state; a broadcast packet response can be transmitted to respond to the broadcast packet originated from other network device.
Step 49: the present step is a MW comparison procedure. Details of the present step are disclosed with reference to
Referring to
Step 51: the two addresses carried by the received second broadcast packet BP #2 (that is, the source address (SA) and the neighbor address (NA)) as well as the received address (RA) (that is, the address of the first Ethernet port EP) are parsed. The neighbor address indicates the address of the last port on the transmission path through which the broadcast packet enters the packet target address.
Step 52: a comparison between the source address SA carried by the second broadcast packet BP #2 and the received address RA of the first Ethernet port EP1 is made to determine whether the network device to which the source address SA belongs and the network device to which the received address RA of the first Ethernet port EP1 belongs have the same MAC address, that is, whether the source address SA and the received address RA belong to the first network device. If yes, the method proceeds to step 53 to determine whether the source address SA and the neighbor address NA belong to the same network device. If yes, it is determined that a downlink loop is formed. If no, the method proceeds to node B to perform step 47.
Step 53: under the circumstance that both the source address SA and the received address RA belong to the same first network device, a comparison between the source address SA and the neighbor address NA is made to determine whether the source address SA and the neighbor address NA belong to the same network device. If the source address SA and the neighbor address NA belong to the same network device, it is determined that the first Ethernet port EP1 and the second Ethernet port EP2 at the two ends of network link both belong to the same network device, and self-looping occurs. That is, if the source address SA and the neighbor address NA belong to the same network device, it is determined that a downlink self-loop is formed, and the method proceeds to step 56. If the source address SA and the neighbor address NA do not belong to the same network device, it is determined that a downlink loop is formed through a second network device, and the method proceeds to step 55.
Step 56: self-looping is explained with reference to
Step 55: the downlink loop formed through the second network device is explained with reference to
Step 57: a comparison the Ethernet interface weight EIW between the ports is made, and at least one port is set to the blocking state. As disclosed above, the Ethernet interface weight EIW is calculated according to possible relevant parameters including (a) user setting, (b) MAC address of the port, (c) MAC address of the network device, (d) port name. In the embodiment of
Referring to
Refer to
Step 61: a comparison between the first master weight MW #1 of the first Ethernet port EP1 and the second master weight MW #2 of the second Ethernet port EP2 is made. If the first master weight MW #1 is larger than the second master weight MW #2, then the method proceeds to step 62; otherwise, the method proceeds to step 63. As disclosed above, the master weight MW is calculated according to possible relevant parameters including (a) user setting, (b) capability of Internet, (c) speed to Internet, (d) MAC address of the port. Suppose the master weight MW is determined according to (d) MAC address of the port only. If the first Ethernet port EP1 has a higher MAC address, the method proceeds to step 62; if the first Ethernet port EP1 has a lower MAC address, the method proceeds to step 63.
Step 62: if the first MW is larger than the second MW, then the first network device to which the first Ethernet port EP1 belongs is set as the master device role, and the bridge of the first Ethernet port EP1 is set as the main bridge br0, a downlink path and the forwarding state; and the first broadcast packet BP #1 is re-transmitted. Suppose the second network device of
Step 63: if the first Ethernet port EP1 of the first master weight MW #1 is smaller than the second master weight MW #2 of the second Ethernet port EP2, whether the first network device to which the first Ethernet port EP1 belongs is enforced as a constant master device Master by the user is checked. If such enforcement exists, this implies that the user does not allow the first network device to be set as a slave device, and the method proceeds to step 65. If the said enforcement does not exist, the method proceeds to step 67.
Step 65: under the circumstance that the first master weight MW #1 of the first Ethernet port EP1 is smaller than the second master weight MW #2 of the second Ethernet port EP2, if the first network device is forced as the master device role by the user, then the first Ethernet port EP1 is set to the split bridge mode and the blocking state to separate two master devices. As indicated in
Step 67: under the circumstance that the first master weight MW #1 of the first Ethernet port EP1 is smaller than the second master weight MW #2 of the second Ethernet port EP2, if the first network device to which the first Ethernet port EP1 belongs is allowed to be set as the slave device role, then the result as indicated in
Step 70: the first network device to which the first Ethernet port EP1 belongs is set as a slave device, and the first Ethernet port EP1 is set to the split bridge mode.
Step 71: in response to a predetermined scenario, a first broadcast packet BP #1 is transmitted by the first Ethernet port EP. The scenario that may trigger the first Ethernet port EP1 to perform step 71 includes: (1) the network link to which the first Ethernet port EP1 is just connected to a mesh network, (2) step 67 is performed, and the first Ethernet port EP1 is just set as a potential uplink path (potential UPth); (3) step 86 is performed, and the first Ethernet port EP1 is just set as a standby uplink path (standby UPth).
Step 73: whether any broadcast packet, such as the second broadcast packet BP #2, is received within the first predetermined period is determined. If no broadcast packet is received within the first predetermined period, the method proceeds to step 75. If a broadcast packet is received within the first predetermined period, the method performs the downlink loop excluding procedure of step 46, but does not perform the MW comparison procedure of step 49. That is, the second broadcast packet is parsed to extract the packet path information to determine whether a path loop exists. If it is determined that the path loop exists, whether the bridge of the first Ethernet port is set as the first bridge br1 and whether the first Ethernet port EP1 needs to be set to a blocking state is determined according to the first EIW carried by the first broadcast packet BP #1 and the second EIW carried by the second broadcast packet BP #2.
Step 75: whether the first broadcast packet response BPR responding to the first broadcast packet BP #1 is received within a second predetermined period is determined. If the first broadcast packet response BPR is not received within the second predetermined period, the method proceeds to step 79; if the first broadcast packet response BPR is received within the second predetermined period, the method performs the uplink loop excluding procedure of step 77. Details of step 77 are explained with reference to
Step 77: the present step is an uplink loop excluding procedure whose details are explained with reference to
Step 79: if the first predetermined period matures but no broadcast packet is received, and the second predetermined period matures but the first broadcast packet response responding to the first broadcast packet is received, the bridge of the first Ethernet port EP1 is set as the main bridge br0, the downlink path and the learning-slave downlink state, and periodically transmits the first broadcast packet BP #1.
Referring to
Step 81: whether the first network device to which the first Ethernet port EP1 belongs currently has any other uplink path is checked. If the first network device does not have any other uplink path, the method proceeds to step 83; if the first network device has other uplink path, the method proceeds to step 85.
Step 83: when the first predetermined period matures but no broadcast packet is received and the first broadcast packet response is received within the second predetermined period, if the first network device does not have any other uplink path, the bridge of the first Ethernet port EP1 is set as the main bridge br0, the uplink path (UPth), and the forwarding state.
Step 85: when the first predetermined period matures but the second broadcast packet is not received, the first broadcast packet response is received within the second predetermined period, if the first network device has other uplink path through other Ethernet port, then a comparison between the slave interface uplink weight (SIUW), the first slave interface uplink weight SIUW #1 of the first Ethernet port EP1, and the second slave interface uplink weight SIUW #2 of the second Ethernet port EP2 is made. If the first slave interface uplink weight SIUW #1 is larger than the second slave interface uplink weight SIUW #2, then the method performs step 87. If the first slave interface uplink weight SIUW #1 is smaller than the second slave interface uplink weight SIUW #2, then the method performs step 86. As disclosed above, the slave interface uplink weight SIUW is calculated according to possible relevant parameters including (a) user setting, (b) speed to master, (c) speed of media, (d) other collected information of the learning state. Suppose the slave interface uplink weight SIUW is determined according to (d) MAC address of the port only. If the first Ethernet port EP1 has a higher MAC address, then the method proceeds to step 87; if the first Ethernet port EP1 has a lower MAC address, then the method proceeds to step 86.
Step 86: if the first SIUW is smaller than the second slave device uplink weight, then the first Ethernet port EP1 is set as a standby uplink path (Standby UPth) and the blocking state.
Step 87: if the first SIUW is larger than the second slave device uplink weight, then the uplink path which originally can be connected to the gateway 104 through other port is blocked. For example, the second Ethernet port EP2 is set to the blocking state.
Step 88: the bridge of the first Ethernet port EP1 is set as the main bridge br0, an uplink path (UPth) and the forwarding state.
Step 89: after the first network device and the master device are connected successfully, a Wi-Fi interface of the downlink wireless network of the first network device can be selectively (but not necessarily) activated.
Referring to
The condition for the Ethernet port to enter the disabled state condition from one of three states, including the learning-slave downlink state (path 1), the forwarding state (path 2), the blocking state (path 3), is: the Ethernet port is linked down.
The condition for the Ethernet port to enter the learning state (path 4) from the disabled state is: the Ethernet port is linked up.
The condition for the Ethernet port to enter the learning-slave downlink state (path 5) from the learning state is: the Ethernet port still does not receive any broadcast packet response (BPR) after the learning state has continued for a predetermined detection period (time out).
The condition for the Ethernet port to enter the blocking state (path 6) from the learning-slave downlink state, to enter the blocking state (path 7) from the learning state, and to maintain at the blocking state (path 8) is: the Ethernet port receives a broadcast packet originated from itself, that is, a self-looping broadcast packet (self BP) is detected, and the comparison shows that the self-looping broadcast packet has a lower Ethernet interface weight (EIW).
The condition for the Ethernet port to enter the forwarding state (path 9) from the learning-slave downlink state is: the Ethernet port receives a broadcast packet response (BPR), and the comparison shows that the received broadcast packet response carries a larger slave interface uplink weight (SIUW).
The condition for the Ethernet port to enter the learning state (path 10) from the blocking state is: the Ethernet port does not receive any broadcast packet response (BPR) after the blocking state has continued for a predetermined detection period (time out).
The condition for the Ethernet port to enter the forwarding state (path 11) from the learning state is: (1) for the master device: the Ethernet port does not receive any broadcast packet response (BPR) after the learning state has continued for a predetermined detection period (time out), or the Ethernet port receives other broadcast packet with lower MW, and maintains as the current master device role; (2) for the slave device: the Ethernet port receives a broadcast packet response (BPR), and the comparison shows that the Ethernet port carries a larger Ethernet interface weight (EIW).
The condition for the Ethernet port to enter the blocking state (path 12) from the forwarding state is: (1) for the master device: the Ethernet port receives a broadcast packet (BP), and the comparison shows that the received broadcast packet carries a larger master device weight (MW); (2) for slave device: the Ethernet port receives a broadcast packet response (BPR), and the comparison shows that the received broadcast packet response carries a larger slave interface uplink weight (SIUW).
As indicated in
On the other hand, as indicated in
While the invention has been described by way of example and in terms of the preferred embodiment(s), it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.
Hsieh, Tsung-Hsien, Huang, Kuo-Shu, Lee, Chih-Fang
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
10841371, | Jul 28 2016 | OBSCHESTVO S OGRANICHENNOI OTVETSTVENNOSTYU VERIMAG | Method and system of organizing a mesh network |
6603769, | May 28 1998 | Cisco Technology, Inc | Method and system for improving traffic operation in an internet environment |
6857027, | Nov 14 2000 | VALTRUS INNOVATIONS LIMITED | Intelligent network topology and configuration verification using a method of loop detection |
6922663, | Mar 02 2000 | INTELLECTUAL DISCOVERY, INC | Intelligent workstation simulation-client virtualization |
20010037422, | |||
20070086361, | |||
20110026394, | |||
20120127855, | |||
20160149799, | |||
20170118041, | |||
20180270140, | |||
20200412598, | |||
WO2020177254, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Aug 11 2020 | HUANG, KUO-SHU | ARCADYAN TECHNOLOGY CORPORATION | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 053923 | /0965 | |
Aug 11 2020 | HSIEH, TSUNG-HSIEN | ARCADYAN TECHNOLOGY CORPORATION | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 053923 | /0965 | |
Aug 11 2020 | LEE, CHIH-FANG | ARCADYAN TECHNOLOGY CORPORATION | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 053923 | /0965 | |
Sep 29 2020 | ARCADYAN TECHNOLOGY CORPORATION | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Sep 29 2020 | BIG: Entity status set to Undiscounted (note the period is included in the code). |
Date | Maintenance Schedule |
Sep 19 2026 | 4 years fee payment window open |
Mar 19 2027 | 6 months grace period start (w surcharge) |
Sep 19 2027 | patent expiry (for year 4) |
Sep 19 2029 | 2 years to revive unintentionally abandoned end. (for year 4) |
Sep 19 2030 | 8 years fee payment window open |
Mar 19 2031 | 6 months grace period start (w surcharge) |
Sep 19 2031 | patent expiry (for year 8) |
Sep 19 2033 | 2 years to revive unintentionally abandoned end. (for year 8) |
Sep 19 2034 | 12 years fee payment window open |
Mar 19 2035 | 6 months grace period start (w surcharge) |
Sep 19 2035 | patent expiry (for year 12) |
Sep 19 2037 | 2 years to revive unintentionally abandoned end. (for year 12) |