Summary of the invention
Disclosure of the Invention a kind of automatic smoothing of realizing switch the method for multiple network topological structure, be implemented in topological structure switching and remote access and the configuration of carrying out centralized control working group pattern or unitary device mode of operation between the multiple network structure.
The present invention also provides the device that adapts with this method, finish according to demand and guaranteeing under the normal communication state, being implemented in multiple network topological structure moment dynamically switches, when having solved the switching of conventional method network packet, frequent jumper connection netting twine easily punctures the network equipment, it is bigger to wear and tear, and influences network equipment useful life and service behaviour problem.
The present invention realizes the method switched between the multiple network topological structure, solution is as follows: many computers or the network equipment are by connecting with the network interface of corresponding switch unit, network signal is sent to the network isolation transformer signal input part of switch unit, network isolation transformer carries out the noise Filtering Processing to the network signal of simulation, be sent to the physical chip that the upper end is connected, physical chip receives the analog network signal that network isolation transformer sends, carry out network signal sampling processing, and the corresponding digital network signals of generation is sent to the network exchanging chip that the upper end is connected to simulation;
The network exchanging chip of switch unit receives the digital network signals that the physics synusia sends, study Media Access Control address (MAC), the network interface mapping table of real-time servicing and index Media Access Control address (MAC) and switch unit, each network interface all has the VLAN ID value of a correspondence;
The topological switching key of foreground trigger element is to the microprocessor input control signal of control unit, trigger microprocessor corresponding N+1 kind network topology structure information in the LCDs transmitter register of foreground control trigger element respectively, and transmit control signal to the network exchanging chip of switch unit;
Network exchanging chip is controlled by the control signal of control unit, the virtual local area network technology of supporting in the application network exchange chip sheet (VLAN), and the network interface VLAN ID value of each switch unit of establishment/change, network topology structure changes;
The network interface of the switch unit that VLAN ID value is identical sends/the receiving network data message each other, and the network port that VLAN ID value is different is in isolation each other.
In the described method, the dip-switch package of control unit is to microprocessor input state set control signal, microprocessor reads the N kind network topology structure that comprises in the software version pattern corresponding in the sheet, and will be to should originally being written into register cell in the sheet by the software sheet, the N kind network topology structure that this software version pattern that operation is written into comprises.
In the described method, one group of I/O control of control unit centralized control interface one end and microprocessor pin is connected, the centralized control Application of Interface DB-9 interface of the other end and multiple network topological structure switching device shifter is interconnected, command reception/transmission command function that the on-line file topological structure of implement device switches.
Realize the network equipment of the method for the invention, it is characterized in that: many computers or the network equipment adopt the network twisted pair media by connecting with the network interface of corresponding switch unit, network signal is sent to the network isolation transformer signal input part of switch unit, network isolation transformer carries out the noise Filtering Processing to the network signal of simulation, the analog signal I/O pin of the physical chip that is connected on signal output part is sent to, physical chip receives the analog network signal that network isolation transformer sends, carry out the network signal data sampling of simulation is handled, and generate the signal I/O pin that corresponding digital network signals is sent to the network exchanging chip that the upper end connected; The signal I/O pin of the network exchanging chip of switch unit receives the digital network signals end that the physics synusia sends, the study Media Access Control address, the network interface mapping table of real-time servicing and index Media Access Control address and switch unit, each network interface all have the VLAN ID value of a correspondence;
One group of I/O control of the topological switching key of foreground trigger element and the microprocessor of control unit pin is connected input control signal, trigger one group of I/O control of microprocessor pin forward platform control corresponding N+1 kind network topology structure information in LCDs Serial Peripheral Interface (SPI) transmitter register of trigger element; Synchronous one group of I/O control pin of microprocessor sends pulse signal to the control unit buzzer; The network exchanging chip media data control/media data input/output interface (MDC/MDIO) of synchronous another group I/O control pin connection switching unit of microprocessor transmits control signal; Network exchanging chip is controlled by the control signal of control unit, the virtual local area network technology of supporting in the application network exchange chip sheet (VLAN), and the network interface VLAN ID value of each switch unit of establishment/change, network topology structure changes.
Described network equipment, it is characterized in that: the electric erazable programmable memory stores Media Access Control address of switch unit and other state parameter, use the twin wire universal serial bus and connect network exchanging chip, the realization computer is consulted the information inquiry of device identify label by the network interface of switch unit.
Described network equipment, it is characterized in that: the centralized control button of foreground trigger element and centralized control indicator light are connected the controlled function that the on-line file topological structure of implement device switches with two groups of I/O control of microprocessor pin of control unit respectively.
Described network equipment is characterized in that: one group of I/O control of the dip-switch package of control unit and microprocessor pin is connected input control signal; Debugging interface one end of control unit is connected with the USB (USB) of process computer or serial line interface (COM), the other end is connected with the microprocessor JTAG pin interface, the integrating and developing platform (IDE) by computer operating system realize to flash memory cell program debugging in the microprocessor sheet, renewal, etc. the programming operation.
Described network equipment, it is characterized in that: the RJ-45 connector of control end computer application reverse signal alignment control unit sends command signal, the serial communication control chip converts RS-232 communication protocol signal to by the command signal that receives the RJ-45 connector, be sent to the synchronous and asynchronous serial reception/forwarding interface pin (USART) of microprocessor general-purpose, realize the long-range function of joining.
Described network equipment, it is characterized in that: the dip-switch package of control unit is to microprocessor input state set control signal, microprocessor reads the network topology structure that comprises in the corresponding software version pattern in the sheet, and will be to should originally being written into register cell in the sheet by the software sheet, the network topology structure that this software version pattern that operation is written into comprises.
Described network equipment, it is characterized in that: one group of I/O control of control unit centralized control interface one end and microprocessor pin is connected, the centralized control Application of Interface DB-9 serial bus interface of the other end and multiple network topological structure switching device shifter is interconnected, the centralized control button of foreground trigger element is to one group of I/O control valve of microprocessor human hair combing waste control signal of control unit, microprocessor opens or cuts out circulation switch-over control signal state latch to the centralized control interface, and another group control pin of microprocessor sends signal to the centralized control indicator light of buzzer and foreground trigger control unit respectively.
The concrete course of work
Device connects the netting twine operating state:
Many the computers or the network equipment adopt the network twisted pair media by connecting with the network interface of corresponding switch unit, network isolation transformer 2 receives the network signal of simulation, carry out the noise Filtering Processing and be sent to the physical chip 3 that the upper strata connects, physical chip receives the analog network signal that network isolation transformer sends, carry out network signal sampling processing, and the corresponding digital network signals of generation is sent to the network exchanging chip that the upper end is connected to simulation.Network exchanging chip real-time servicing and index medium Freshwater-fish ask the network interface mapping table (Address Table) of control address (MAC) with switch unit, each network interface all has the VLAN ID value of a correspondence, network exchanging chip Data Control/input/output interface (DC/MDIO) is controlled by the control signal of control unit, based on virtual local area network technology (VLAN), to receive medium access address, source (MAC) and be forwarded to destination media reference address (MAC), network interface mapping table (Address Table) in the network exchanging chip Lookup Engine query piece, be about to the source data message and be sent to phy chip and network isolation transformer thereof, be sent to the object-computer or the network equipment by network interface.
The physical chip input receives the network signal that network exchanging chip sends, and one group of input/output interface pin of physical chip is to Network Physical Separator output network signal, and another group input/output interface pin transmits control signal to the network interface indicator light.
Above-mentioned is that the computer or the network equipment send a data message, and device is handled the processing procedure that exports the object-computer or the network equipment to by network signal.
2. switching state between the plant network topological structure:
9 one groups of I/O control of the topological switching key 8 of foreground trigger element and the microprocessor of control unit pin is connected, input control signal triggers one group of I/O control of microprocessor pin corresponding N+1 kind network topology structure information in LCDs 10 Serial Peripheral Interface (SPI) transmitter register of platform control trigger element forward.The synchronous one group of I/O control of microprocessor pin sends pulse signal to control unit buzzer 11, long of buzzer ring.The microprocessor network exchanging chip 4 media data control/media data input/output interfaces (MDC/MDIO) of another group I/O control pin connection switching unit synchronously transmits control signal.Network exchanging chip is controlled by the control signal of control unit, the virtual local area network technology of supporting in the application network exchange chip sheet (VLAN), and the network interface VLAN ID value of each switch unit of establishment/change, network topology structure changes.
3. install centrally controlled network topology switching state:
9 one groups of I/O control of control unit centralized control interface 20 1 ends and microprocessor pin is connected, the centralized control Application of Interface DB-9 serial bus interface of the other end and multiple network topological structure switching device shifter is interconnected, the centralized control button 14 of foreground trigger element is to one group of I/O control valve of microprocessor human hair combing waste control signal of control unit, microprocessor opens or cuts out circulation switch-over control signal state latch to the centralized control interface, device realizes that correspondence is subordinate to working group's centrally controlled network topological structure switch mode, or disengaging working group unitary device network topology structure switch mode, another group control pin of microprocessor sends signal to the centralized control indicator light 15 of buzzer 11 and foreground trigger control unit synchronously, and prompting is to the success of device centrally controlled network topological structure handover operation.The topological switching key 8 of foreground trigger element send control signal to one group of I/O control valve of microprocessor human hair combing waste of control unit, one group of I/O control of microprocessor pin transmits control signal to the network exchanging chip 4 of switch unit, the network interface VLAN ID value of each switch unit of establishment/change, multiple network topological structure switching device shifter is interconnected by the centralized control Application of Interface DB-9 serial bus interface of table apparatus control unit therewith, the multiple network topological structure device for switching unlatching centralized control interface network topology structure of table apparatus therewith changes synchronously, and the plant network topological structure of control interface does not change in the closure set.
4. install multiple program version switching state:
The dip-switch package 18 of control unit is to microprocessor 9 input state set control signals, microprocessor reads the N kind network topology structure that comprises in the corresponding X kind software version pattern in the sheet, and corresponding X kind software sheet originally is written into register cell in the sheet, the N kind network topology structure that the X kind software version pattern that operation is written into comprises.
5. install long-range allotment of labor and make state:
The RJ-45 connector that computer (control end) is used reverse signal alignment control unit connects, RJ-45 connector upper end is connected with serial communication control chip 16 inputs, computer (control end) operating system hyperterminal software, serial ports connection attribute parameter is set, the command signal that serial communication controlling chip input receiving computer (control end) sends converts RS-232 communication protocol signal to, be sent to microprocessor 9 universal synchronous and asynchronous serial reception/forwarding interface pin (USART), to device embedded software parameter configuration and the long-range function of joining.
6. install the remote access operating conditions:
Electric erazable programmable memory 17 storage medium accessing to control address (MAC) and other state parameters of switch unit, use twin wire universal serial bus (I2C) and connect network exchanging chip, the topological switching key 8 of foreground trigger element makes device switch to predetermined network topology structure pattern to microprocessor 9 input control signals of control unit.Computer adopts netting twine to be connected with the network interface of switch unit, computer operating system is installed Wincap software, and move supporting telemanagement software (RMT), computer is by sending the request of connecting to device, the network signal of 2 pairs of simulations of network isolation transformer carries out the noise Filtering Processing, send the physical chip 3 that connects, physical chip receives the analog network signal that network isolation transformer sends, and the digital network signals that generates correspondence is sent to the network exchanging chip 4 of connection, network exchanging chip reads electric erazable programmable memory medium accessing to control address (MAC) and other state parameter by universal serial bus (I2C), be sent to computer by physical chip and network isolation transformer, set up long-range connection, computer is consulted the running state information of device, and the parameter configuration operation.
The present invention has the following advantages:
(1) the corresponding multiple network topological structure of built-in various software version guarantees under the normal communication state, and by using topological switching key, the circulation of dynamic network topology structure is switched, and need not the power-off restoration operation;
(2) obtaining wide model in education experiment uses and promotes, in the switching of finishing the heterogeneous networks topological structure, switch to the pattern of setting, support length of run visit formula, realization is to the parameter configuration operation of device, and then cultivate the student and start experimental ability, really accomplish the novel teaching pattern of integrating theory with practice; Universal asynchronous receiving-transmitting interface (UART): this port communication pattern is a serial line interface speed, by being connected fast with computer serial port (COM), conveniently carry out setting and debugging, be convenient to use, reach software release upgrade, maintenance work in various teaching cases to this device;
(3) focus control mode between support will be installed more, promptly to the dynamic switching of unitary device network configuration, meanwhile, other device that connects by centralized control interface (I2C) is concentrated and is finished corresponding network topology structure synchronously and dynamically switch, and supports maximum 12 table apparatus centralized control.By the centralized control button operation, and the prompting of working station indicator, realize apparatus operating is in separate unit mode of operation or two kinds of mode of operations of centralized control;
(4) the foreground trigger element is used LCDs, and display unit is in which kind of network topology structure in which kind of pattern, and other device information.With digitized representation map network topological structure, device state informations such as version number and icon, unmanned in N unit interval second to the device button operation, to LCDs circulation dispensing device current state information;
(5) use the netting twine jumper connection, can the changed network topological structure, but adopt the jumper connection netting twine, easily produce static shock and damage and wear electronic devices and components.Adopt this Intelligent Network Element that wear rate is hanged down to minimum, moment dynamically switches, and application operating is simple, the response time is quick;
(6) control unit is carried the debugging interface for JTAG, the needs of conveniently debugging, safeguarding and develop fast, but the expanded application function is stronger;
(7) use buzzer: switching key set operation, the long sound of buzzer prompting operation success synchronously;
(8) use dip-switch package, realize the default of the corresponding X kind of N kind software version network topology structure; (a kind of software version comprises the multiple network topological structure)
The present invention does not adopt the relay technology, and Applied Physics layer chip, switching chip in conjunction with the single board computer control technology, form the digitizer design based on integrated circuit (IC) chip, and reduces network equipment wearing and tearing.Alternative universal network switch reduces the fund overlapping investment, improves application efficiency;
Embodiment
Embodiment 1
According to shown in Figure 1, form by 1 switch unit (INTS-1), 1 control unit (INTS-2) and 1 foreground trigger element (Font).Many the computers or the network equipment adopt the network twisted pair media by connecting (RJ-45) 1,5,12,21 with the network interface of corresponding switch unit, network isolation transformer (81FB-22NL) 2 receives the network signal of simulation, carry out the noise Filtering Processing and be sent to the physical chip (RTL8208BF-LF) 3 that the upper strata connects, physical chip receives the analog network signal that network isolation transformer sends, carry out network signal sampling processing, and the corresponding digital network signals of generation is sent to the network exchanging chip (RTL8310P-LF) 4 that the upper end is connected to simulation.The network interface mapping table (Address Table) of network exchanging chip real-time servicing and index Media Access Control address (MAC) and switch unit, each network interface all has the VLAN ID value of a correspondence, network exchanging chip Data Control/input/output interface (MDC/MDIO) is controlled by the control signal of control unit, based on virtual local area network technology (VLAN), to receive medium access address, source (MAC) and be forwarded to destination media reference address (MAC), network interface mapping table (Address Table) in the network exchanging chip Lookup Engine query piece, be about to source data message and flow triggering command signal and be sent to phy chip and network isolation transformer thereof, network interface is sent to the object-computer or the network equipment with data message, network interface flow lamp (LED) 6,7,13,22 receive flow triggering command signal once glimmers, and is forwarded to the computer or the network equipment of connection by network interface according to message with registration.
Electric erazable programmable memory (AT24C08) 17 its MAC Address key assignments have global uniqueness, do not repeat mutually.Computer adopts netting twine to be connected (RJ-45) 1 with the network interface of switch unit, 5,12,21, computer operating system is installed Wincap software, and move supporting telemanagement software (RMT), computer is by sending the request of connecting to device, the network signal of 2 pairs of simulations of network isolation transformer (81FB-22NL) carries out the noise Filtering Processing, send the physical chip (RTL8208BF-LF) 3 that connects, physical chip receives the analog network signal that network isolation transformer sends, and the digital network signals that generates correspondence is sent to the network exchanging chip (RTL8310P-LF) 4 of connection, network exchanging chip reads electric erazable programmable memory medium accessing to control address (MAC) and other state parameter by universal serial bus (I2C), be sent to computer by physical chip and network isolation transformer, set up long-range connection, computer is consulted the running state information of device, and the parameter configuration operation.
The topological switching key 8 of foreground trigger element is connected with 9 one groups of I/O control of microprocessor (ATmega64L-8AU) pin of control unit, input control signal triggers one group of I/O control of microprocessor pin corresponding N+1 kind network topology structure information in LCDs (MzL05-12864) 10 Serial Peripheral Interface (SPI) transmitter register of platform control trigger element forward.The synchronous one group of I/O control of microprocessor pin sends pulse signal to control unit buzzer (TMB12A) 11, long of buzzer ring.Microprocessor network exchanging chip (RTL8310P-LF) the 4 media data control/media data input/output interfaces (MDC/MDIO) of another group I/O control pin connection switching unit synchronously transmits control signal.Network exchanging chip is controlled by the control signal of control unit, the virtual local area network technology of supporting in the application network exchange chip sheet (VLAN), the network interface VLAN ID value of each switch unit of establishment/change, the centralized control button 14 of foreground trigger element is to microprocessor 9 input control signals, trigger microprocessor 2 kinds of State Control are opened or closed to centralized control interface (DB-9) 20, microprocessor is to centralized control indicator light (LED) 15 output control signals.
Control unit dip-switch package (3P) 18 is written into register cell in the sheet, the N kind network topology structure that the software version pattern that operation is written into comprises to microprocessor (ATmega64L-8AU) 9 input set control signals.Microprocessor provides debugging interface (JTAG) 19, and the process computer USB port connects the fever writes input port, and the fever writes output port is connected with debugging interface, is implemented in line writing (ISP) function.The control end computer is set up with serial communication control chip (SP3220EUEY/TR) 16 by the RJ-45 connector and is communicated by letter, serial ports control communication chip received signal difference processing forms RS-232 communication protocol signal, be sent to the serial ports (USART) of microprocessor general-purpose reception/transmission asynchronous transmission information, computer realization and device are set up remote access and configuration parameter function.