CN103095541A - Method achieving ring-shaped Ethernet through intelligent orientation - Google Patents

Method achieving ring-shaped Ethernet through intelligent orientation Download PDF

Info

Publication number
CN103095541A
CN103095541A CN2013100459357A CN201310045935A CN103095541A CN 103095541 A CN103095541 A CN 103095541A CN 2013100459357 A CN2013100459357 A CN 2013100459357A CN 201310045935 A CN201310045935 A CN 201310045935A CN 103095541 A CN103095541 A CN 103095541A
Authority
CN
China
Prior art keywords
thread
passage
gateway
ethernet
loop
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013100459357A
Other languages
Chinese (zh)
Other versions
CN103095541B (en
Inventor
肖超
李先林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANXI SHANSHUI OPTOELECTRONIC TECHNOLOGY CO., LTD.
Original Assignee
JIANGXI SHANSHUI OPTOELECTRONICS TECHNOLOGY 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 JIANGXI SHANSHUI OPTOELECTRONICS TECHNOLOGY Co Ltd filed Critical JIANGXI SHANSHUI OPTOELECTRONICS TECHNOLOGY Co Ltd
Priority to CN201310045935.7A priority Critical patent/CN103095541B/en
Publication of CN103095541A publication Critical patent/CN103095541A/en
Application granted granted Critical
Publication of CN103095541B publication Critical patent/CN103095541B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method achieving ring-shaped Ethernet through intelligent orientation. The method achieving the ring-shaped Ethernet through the intelligent orientation at least comprises two websites and a ring-shaped channel. Each website is provided with a user business process, an exchanging process and an intelligent orientation process in an operated mode. In each website, the exchanging process which accepts the user business process enters into the ring-shaped channel after the control of the intelligent orientation process to form the ring-shaped Ethernet. In the ring-shaped Ethernet formed though the intelligent orientation, the exchanging process of each website only can enter into the ring-shaped channel after the control of the intelligent orientation process, and each website achieves real-time monitoring for the ring-shaped channel through uninterrupted jump coding and jump detecting to directly acquire linking information and accurately orientate user business. Accordingly, a broadcast storm of the ring-shaped Ethernet is avoided. When the channel fails to work, the acceptance and the orientation of business can be redefined through analyzing and processing results made by a loop processing thread to a loop. The method is good in instantaneity, high in bandwidth usage efficiency and low in cost.

Description

A kind of method that realizes loop ethernet by intelligent positioning
Technical field
The present invention relates to a kind of method that realizes loop ethernet by intelligent positioning, belong to network communications technology field.
Background technology
Ethernet, as internet, enterprise network, campus network, by a large amount of application, and in the rapidly development with ever-increasing speed.Yet be structured in the Ethernet on the physical channel of loop configuration, when namely realizing loop ethernet, broadcast mechanism due to Ethernet switch, very easily produce broadcast storm, namely ethernet frame in the circular passage, is had an opportunity again and again, is ceaselessly circulated, with regard to as snowball, cumulative, finally form broadcast storm, cause the paralysis of whole Ethernet.
therefore, the reluctant establishment loop ethernet of those skilled in the art, like best the networking mode with star, but present transmission network both domestic and external and Access Network main body are all or the SDH net, and SDH net great majority are loop configuration, from present case, a lot of Ethernets all framework on the physical channel of existing SDH, and also there is its very important advantage the physical channel of annular, compare with the networking of other form, the physical channel of annular is resource-saving more very significantly, more economize the engineering expense, it can roundabout property, make network more healthy and stronger, be easy to self-healing, to the protection of business with switch very convenient and quick, switching time is not more than 50 milliseconds, even so without the SDH passage, and the new Ethernet of setting up also also has many channel designs of all adopting annular in addition.
In prior art, one of known method that realizes loop ethernet is, each switching node is commonly called as website, all adopts high-end Ethernet switch, with the circular passage with they looping Ethernets that directly links.
The known way of broadcast storm of avoiding roughly has two kinds, the first is to adopt known virtual local area network technology, loop ethernet is divided into different VLANs, but within whole loop ethernet all belongs to same VLAN and can not divide again the time, virtual local area network technology is just helpless, and known virtual local area network technology has no ability and avoids the interior broadcast storm of same VLAN.
The second is that each website in ring-like Ethernet all moves mutually collaborative Spanning-Tree Protocol process or other process, and the most typical and the most commonly used is the Spanning-Tree Protocol process, as Figure of description 1 and accompanying drawing 3.in Fig. 1, it is the structural representation that adopts the loop ethernet of known Spanning-Tree Protocol formation, three processes in the dotted line frame form the switch of an operation Spanning-Tree Protocol, the dotted line frame is switch, switch can be a plurality of, in Fig. 1, four switches have formed a loop ethernet, switch in net in the industry cycle is called as node, be commonly called as and be website, wherein some nodes are root node, automatically determined by the Spanning-Tree Protocol process, dynamic, so do not mark in Fig. 1, in Fig. 1, arrow represents the interconnecting channels between each switch, they are directly with switch head and the tail phase chain, 4 become the up time needle ring at interior arrow, 4 arrows outside become the inverse time needle ring.Exchange process in Fig. 1 is completed the exchange of each User traffic frame in switch, User traffic frame commutes between exchange process and each customer service process, only draws 1 business process in Fig. 1, generally has a plurality of.In Fig. 1, the Spanning-Tree Protocol frame is also to forward between each switch by the exchange process.In Fig. 1, the Spanning-Tree Protocol process of each switch, the exchange process transmission of information of each switch of process is also implemented cross complaint.State between switch is controlled by Spanning-Tree Protocol, and the Spanning-Tree Protocol frame must lean on switch through the passage transmission, and the interlocking risk is arranged, and the time of convergence is also longer.In Figure of description 3, be the code stream schematic diagram in the interconnecting channels in known method, original traffic frame is ethernet user's frame, they are serial transfer for the numeral 1 in original traffic frame and 2 explanations.The primitive frame interval is both there is no ethernet user's frame, the sky when also there is no the Spanning-Tree Protocol frame every, can be full 0, complete 1 or other pattern.The Spanning-Tree Protocol frame is for the operation Spanning-Tree Protocol, by switch, and transmission of information and implement the specific ethernet format frame of cross complaint between the Spanning-Tree Protocol process.Contain the Spanning-Tree Protocol frame in the known method code stream, the Spanning-Tree Protocol frame is the frame that the ethernet format of certain time length is arranged, and the Spanning-Tree Protocol frame not only implements the interaction of instruction and state, but also will imply the condition information of passage, so the frame frequency that requires is higher, incur loss through delay otherwise work will occur.
In addition, known Spanning-Tree Protocol before agreement is effective and among the implementation process of controlling, all will send, accept, forward, analyze, consult, return the specific two layers of frame of feedback in passage.Clearly, this also will bring following shortcoming: one, and it has tied up user's service bandwidth; Two, the Spanning-Tree Protocol process only leans on two layers of frame of specific Spanning-Tree Protocol of self initiating to come the link information of interchange channel, and in a large amount of traffic frame communication period, this is also a large amount of periods of passage, there is no the transmission of Spanning-Tree Protocol frame; Be namely when communicating by letter without business, only otherwise send the Spanning-Tree Protocol frame, it also just can't perceptual channel link information at that time, so its real-time is relatively poor; Three, propagation and the processing of the specific two layers of frame of Spanning-Tree Protocol, its shortest time is not less than the shortest frame length duration, and interframe also must leave certain frame period, and this also can reduce its real-time.In addition, each website, different producers, different Spanning-Tree Protocol versions brings compatible trouble sometimes.
Summary of the invention
In order to solve the deficiencies in the prior art, the invention provides a kind of by intelligent positioning realize the annular with method, process of the present invention is quick, can eliminate reliably the intrinsic broadcast storm of loop ethernet, and can also greatly reduce the implementation method to the Ethernet of the delay of user service data, reduced the tying up of user service data bandwidth, reduced the requirement to node.In this loop ethernet of realizing by intelligent positioning, the exchange process of each website must be by just entering ring-like passage after the control of intelligent positioning process, each website is realized Real-Time Monitoring to ring-like physical channel by continual saltus step coding and transition detection, directly obtain link information on passage, accurate directional user's business is so can avoid the broadcast storm of loop ethernet.Can redefine accepting and orientation of business by analysis and the result of loop processed thread to loop when passage breaks down, this method real-time is better, and bandwidth availability ratio is higher, and cost is lower.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of method that realizes loop ethernet by intelligent positioning, at least comprise two websites and circular passage, each website has all moved user's business process, exchange process and intelligent positioning process, the exchange process of each website accepted user business process is linked into the circular passage, the looping Ethernet after controlling through the intelligent positioning process.
The intelligent positioning process comprise at least webmaster thread, initialize process, gateway instruction process thread, service interval processing threads, saltus step coding thread, transition detection thread, saltus step decoding thread, loop processed thread, loop directed control thread, channel status Shen accuse thread, channel multiplexing drive thread, passage receive forward thread, Ethernet service accepts thread and Ethernet service forwards thread.
The webmaster thread by user's definition, is made as gateway or slave station with website, and configures respectively each website Intelligent Process and system-wide parameter, monitors their state, and the NM server with the upper strata carries out alternately simultaneously;
Initialize process carries out initialization operation to system;
Gateway instruction in the acceptance of gateway instruction process thread and analysis channel bit stream also generates the gateway instruction at gateway simultaneously, and it is imposed the saltus step coding, and the bit length of gateway instruction is not more than 64 bits;
The service interval processing threads is processed the frame period that there is no the Ethernet service frame;
Saltus step coding thread is implemented the saltus step coding to Ethernet service frame and Ethernet service frame period, also to gateway instruction and state Shen announcement enforcement saltus step coding, and they are encoded into the continual bit stream that represents with 0 and 1, in bit stream, 0 and 1 bit length all is not more than 32 bits;
The continuity of transition detection thread monitoring channel bit stream, saltus step and connect 0 and connect 1 bit length, and judge accordingly the linking status of passage;
Saltus step decoding thread monitoring channel bit stream is implemented saltus step decoding to bit stream, also original subscriber's Ethernet service frame;
The loop processed thread generates the passage processing instruction to the directed thread of controlling of loop according to linking status and the instruction process result of passage;
The directed thread of controlling of loop is implemented directed and redirects user's Ethernet service frame;
The channel status Shen is accused thread and is used for accusing according to generate the channel status Shen according to the linking status of passage and instruction process result, and it is imposed the saltus step coding, and the bit length that accuse the state Shen is not more than 64 bits;
The channel multiplexing drive thread is collected gateway instruction, state Shen announcement and user's Ethernet service frame of our station, and the interval of idle Ethernet service frame, need collect also that gateway instruction through the our station transfer, state Shen is accused, the interval of user's Ethernet service frame and idle Ethernet service frame, and all data-drivens of collecting are the continual bit stream admission passage with 0 and 1 expression, in bit stream, 0 and 1 bit length all is not more than 32 bits;
Passage receives and forwards the thread reception or to the bit stream of next stop forwarding from passage, belong to the Data dissemination of our station to transition detection thread, gateway instruction process thread and saltus step decoding thread; Data in the our station transfer are distributed to the channel multiplexing drive thread of opposite side and drive admission passage by it;
Ethernet service is accepted thread is accepted needs to arrive through passage long-range destination in the local user traffic process Ethernet service frame;
Ethernet service forwards thread will be forwarded to the local user traffic process from the long-range Ethernet service frame that is reduced.
As above by intelligent positioning realize loop ethernet method, comprise the following steps:
(1) initialization: the initialization of each website is by the initialize process realization of each website, and in initialization procedure, the webmaster thread is gateway by user preset with one of them site configuration, and all the other site configuration are slave station; The intelligent positioning process stops accepting the data of exchange process and customer service process, until after service handling and orientation;
(2) the first inspection of passage: the intelligent positioning process detected linking status and the idle interval of passage before the data of accepting exchange process and customer service process;
(3) service handling and orientation: after the first inspection of passage was completed, gateway and each slave station were examined result according to head and are begun service handling, to user's Ethernet service frame directive sending and reception;
(4) passage is patrolled and examined in real time: in service handling and service operation, the intelligent positioning process is patrolled and examined ring-like passage incessantly;
(5) business is redirected: the result that gateway and slave station are patrolled and examined in real time according to passage; when loop ethernet breaks down, the directed thread of controlling of loop will be judged nature of trouble and abort situation, determine countermeasure by step (3); the business of implementing accurately is redirected, for customer service provides protection.
Each step of method is specially as mentioned above:
(1) initialization: after system reset, webmaster thread in the intelligent positioning process will be set to gateway by one of them website of user preset, all the other websites are set to slave station, in whole system, the webmaster thread is distributed, each website all has the webmaster thread of each self-operating, after system starts, initialize process in gateway stops Ethernet service and forwards the operation that thread and Ethernet service are accepted thread, the directed control line process control of loop channel multiplexing drive thread stops accepting the data of exchange process and customer service process, gateway instruction process thread in the intelligent positioning process records initialized result, initialize process in slave station stops Ethernet service forwarding thread and Ethernet service to accept the operation of thread, and the gateway instruction process thread of intelligent positioning process records initialized result,
(2) the first inspection of passage: after the initialization of gateway is completed, service interval processing threads in the intelligent positioning process monitors the frame period of Ethernet service, and encode thread with the rear frame period of frame period generation coding by saltus step, saltus step coding thread is implemented the saltus step coding to the interval of Ethernet service frame and the Ethernet service frame of free time, be the continual bit stream that represents with 0 and 1 with the space coding of Ethernet service frame and the Ethernet service frame of free time thereof, in bit stream, 0 and 1 bit length all is not more than 32 bits; Gateway instruction process thread sends the instruction code character of saltus step coded system, the channel multiplexing drive thread of the directed control line process control self of loop both sides is sent instruction code character and the rear frame period of coding simultaneously to the passage of both sides, the instruction code character is received to forward by the passage of each slave station gets back to gateway after thread is accepted and forwarded, and forms the taking turn code character; The passage of gateway receives and forwards the passage that thread is monitored its both sides all the time, the state Shen by after saltus step coding thread coding that the taking turn code character that after the coding that the transition detection thread sends slave station, frame period, slave station return and slave station send is accused and is detected simultaneously, detect the continuity, saltus step of these bit streams and connect 0 and connect 1 bit length, and the result after detecting sends to gateway instruction process thread, loop processed thread and channel status Shen announcement thread; After the initialization of each slave station is completed, the passage of slave station both sides receives and forwards the thread one side two-way transfer taking turn of website code character rearwards, on the other hand the transition detection thread of slave station to the coding of receiving after frame period and taking turn code character detect, detect the continuity, saltus step of these bit streams and connect 0 and connect 1 bit length, and send to testing result gateway instruction process thread, loop processed thread, channel status Shen to accuse thread; Gateway instruction process thread is accepted the instruction that gateway is sent, the loop processed thread is analyzed the state of loop, connect 0 or when connecting 1 bit length greater than 32 bit in bit stream being detected, the channel status Shen is accused thread and is sent the Shen to gateway and accuse, and reports to the local network management thread; In the service interval period, each slave station sends the rear frame period of coding to both sides;
(3) service handling and orientation: after gateway and each slave station were worked in coordination with and completed the first inspection of passage, gateway and each slave station result of examining first according to passage began service handling, to user's Ethernet service frame directive sending and reception; Passage when gateway or the slave station left and right sides has fault, and gateway or slave station send critical alarm; Passage when gateway or the slave station left and right sides is all unobstructed, and gateway is to any side transmitting-receiving user's Ethernet service frame; Be unobstructed when gateway only has the passage on left side or right side, gateway is received and dispatched user's Ethernet service frame on a unobstructed side, and the webmaster thread sends indicative alarm; When being unobstructed near the channel part of gateway, be out of order away from the channel part of gateway, gateway is received and dispatched user's Ethernet service frame simultaneously in both sides, forwards user's Ethernet service frame by unobstructed passage; Be unobstructed when gateway only has the half-duplex channel of counterclockwise loop or clockwise loop, gateway is received and dispatched user's Ethernet service frame on unobstructed ring, and the webmaster thread sends critical alarm; Slave station all receives the channel data of the left and right sides all the time, when even the passage of its left and right sides breaks down, when if the passage of any side of slave station breaks down, this wing passage is stopped paying out user's Ethernet service frame, recovers until receive the gateway instruction that this wing passage business sends; Ethernet service is accepted thread and is accepted the customer service that the exchange process is sent, and customer service is after saltus step coding thread, and is under the directed control of controlling thread of loop, multiplexing and be driven into passage and send to long-range destination by the channel multiplexing drive thread; Received by passage from long-range Ethernet service frame through passage and forward the thread reception, and be reduced to ethernet frame format through saltus step decoding thread, forward thread by Ethernet service and send to the local user traffic process by the exchange process;
(4) passage is patrolled and examined in real time: after service handling, running has been realized and entered to loop ethernet, user's Ethernet service frame transmits between the website of looped network, in operating condition, the intelligent positioning process is patrolled and examined in real time to the circular passage, by step (2), ring-like Ethernet is patrolled and examined in real time, in patrolling and examining, increased the saltus step of Ethernet service frame coding, and to the transition detection of the rear Ethernet service frame of encoding;
(5) business is redirected: the result that gateway and slave station are patrolled and examined in real time according to passage; determine whether customer service is redirected; when loop ethernet breaks down; the directed control of loop thread will be according to the analysis of loop processed thread; judge nature of trouble and abort situation; determine countermeasure by step (3), the business of implementing accurately is redirected, for customer service provides protection.
Intelligent positioning method provided by the invention makes the exchange process of each website in the circular passage enter ring-like passage by the intelligent positioning process, due to the exchange process data be not directly to enter the circular passage, but be controlled by the intelligent positioning process, ethernet frame is not the ghost of a chance closed loop circulation again and again in the circular passage, so the intelligent positioning process can stop broadcast storm.Realize Real-Time Monitoring to ring-like physical channel by saltus step coding and transition detection, directly obtain link information on the circular passage, when passage breaks down, can be by analysis and the result of loop processed thread to loop, redefine accepting and orientation of business, the present invention than the beneficial effect that prior art has is:
1. the intelligent positioning process in this method makes the exchange process be sent to the data of passage, can not form closed loop in the circular passage all the time, can not circulate again and again, thereby effectively avoid broadcast storm;
2. the interconnecting channels code stream of this method generation is referring to accompanying drawing 4, compare with the interconnecting channels code stream in accompanying drawing 3, this method is to user's Ethernet service frame and do not have the gapping interval of traffic frame all to implement unified saltus step coding, and between the station, instruction and state Shen are accused and are also all contained unified saltus step coding, form the bit stream of successive and saltus step, particularly during gapping interval, still be formed with the bit stream of saltus step in this method, the transition detection of the bit stream by can not being interrupted, come the link information of Acquisition channel, when section in office, no matter whether the user takies, can monitor the real-time status of physical channel, therefore this method detection speed is faster, has better real-time, cost is lower, and the length of gateway instruction and state Shen announcement instruction is not more than 64 bits, much smaller than the agreements such as spanning tree minimum frame length used, more easily implement,
3. the direct Acquisition channel link information on passage of this method, in the known method in Figure of description 1, each exchange process directly and passage link, Spanning-Tree Protocol process exchanged process is isolated.The Spanning-Tree Protocol frame must lean on the transmission of exchange process, be generated tree protocol control and respectively exchange state of a process, time takies longer, and the risk that has interlocking and agreement computing to be difficult to restrain, directly towards the physical channel of annular, but it can in the very first time, directly monitor the linking status of passage to the intelligent positioning process of the inventive method, can not interlock, effective and rapid;
4. this method has realized intelligent positioning and has been redirected, the data of exchange process are controlled by the intelligent positioning process, the intelligent positioning process makes the not directly intercommunication of exchange process of each website, intercommunication between them is subjected to orientation and the redirected Thread control of intelligent positioning process, the foundation of controlling comes from the loop processed thread to analysis and the result of loop, based on to linking status, especially to the real-time location of various faults, the data of exchange process can be provided good protection for customer service by intelligent positioning and redirected;
5. this method can be applicable to various physical channels, be not subjected to the restriction of medium kind, can be wireless or wired, it can be the passage of SDH passage or other character, comprise known naked passage or help secretly, need not extra path overhead, needn't be greater than the shared bandwidth of customer service self to the requirement of bandwidth chahnel, the cost of required passage is very low, and is high to a hundred per cent to the bandwidth availability ratio of passage;
6. this method can realize with programmable hardware or low side microprocessor, and the intelligent positioning advance ratio in this method is more succinct, can realize with hardware description language NOR operation system, can save more complicated embedded hardware and operating system, is conducive to reduce costs
Description of drawings
Fig. 1 is the structural representation that adopts the loop ethernet of known Spanning-Tree Protocol formation;
Fig. 2 is the structural representation of the loop ethernet of the inventive method formation;
Fig. 3 is the code stream schematic diagram in interconnecting channels in known method;
Fig. 4 is the code stream schematic diagram of the interconnecting channels in the inventive method;
Fig. 5 is the flow chart of the intelligent positioning process in the inventive method.
Embodiment
The invention will be further described below in conjunction with drawings and Examples.
Realize loop ethernet on the circular passage, two websites and link passage therebetween will be arranged at least.According to the actual conditions of number of users and distribution, the required website quantity of user can be more than two.
In the loop ethernet of the present embodiment, with reference to Fig. 2, choose four websites, respectively represent a website with four dotted line frame A, B, C, D, arrow between the dotted line frame represents the link passage between website, the flow direction of the direction indication data of arrow, four clockwise arrows consist of a clockwise loop, four anticlockwise arrows consist of a counterclockwise loop, loop refers to the reception business of website in its a certain side, and the transmission business makes the reception of data and forwards to form clockwise loop or counterclockwise loop at its opposite side.In four websites, can establish a website by the user is gateway, and establishing website A in the present embodiment is gateway, and all the other website B, C and D are slave station.
The inventive method is applicable to various physical channels, chooses in the present embodiment the simplest known optical channel, and this optical channel only needs known optical transceiver module, need not extra intelligent device.The bandwidth of optical channel is binary bits speed 100 Mbit/S, need not extra overhead byte, can absolutely satisfy user's 100 m ethernet linear speed demand.Each website moves a customer service process and an exchange process at least, and their quantity can be a plurality of, depends on that the family is required, for ease of explanation, only provides a customer service process and an exchange process in the dotted line frame of the present embodiment.Each website moves an intelligent positioning process at least, and the exchange process of each website can not directly be linked on passage but be linked to passage after controlling through the intelligent positioning process again.Comparison diagram 2 and Fig. 1, fully different towards the process of passage from known method, this link can be avoided the risk in known method.The intelligent positioning process externally has two sides, is called left side and right side, respectively towards the passage of its both sides, the link of each adjacent sites is to arrive another right side with the left link of one of them website, claims head and the tail phase chain, in other words, form exactly aforesaid clockwise loop and counterclockwise loop.
The intelligent positioning process of moving in each website, with reference to Fig. 5, in figure, arrow represents going forward one by one of advancing of process and parameter.The two pairs of arrow I and II, the access of expression to interconnecting channels, in Fig. 5, the passage that points in the intelligent positioning process receives the arrow group I that forwards thread, and the expression bit stream comes from passage, and arrow is marked with left, from left channel; Indicate rightly, from right channel, in figure, arrow group II is pointed to passage by the channel multiplexing drive thread in the intelligent positioning process, indicate left, the whereabouts left channel; Indicate right, the whereabouts right channel.A pair of arrow III and IV represent the access to customer service, and the arrow III forwards thread by Ethernet service and points to the exchange process, and expression is forwarded to the local exchange process via passage from long-range user's Ethernet service frame; The arrow IV is pointed to Ethernet service and is accepted thread, and expression needs to go to through passage user's Ethernet service frame of long-range destination, is submitted to Ethernet service by the local exchange process and accepts thread.
With reference to Fig. 2 and Fig. 5, in the present embodiment, each website has all moved user's business process, exchange process, intelligent positioning process, and their concrete operating procedure is as follows: initialization, passage first inspection, service handling and orientation, passage are patrolled and examined in real time, business is redirected.
At first, initialization: after system powers on or resets, webmaster thread website A in the intelligent positioning process is set to gateway, and B, C, D website are set to slave station, and then their customer service process, exchange process, intelligent positioning process are carried out parameter configuration and monitored their state.In whole system, the webmaster thread is distributed, and each website all moves webmaster thread separately.After system starts, initialize process in gateway A and slave station B, C and D website, the Ethernet service that stops them forwarding the operation that thread and Ethernet service are accepted thread, and the directed control line process control of loop channel multiplexing drive thread stops accepting the data of exchange process and customer service process; Gateway instruction process thread in the intelligent positioning process records initialized result.
then, the first inspection of passage: after the initialization of gateway A is completed, service interval processing threads in the intelligent positioning process monitors the frame period of Ethernet service, and encode thread with the rear frame period of frame period generation coding by saltus step, saltus step coding thread is implemented the saltus step coding to Ethernet service frame and idle Ethernet service frame period, be the continual bit stream that represents with 0 and 1 with the space coding of Ethernet service frame and the Ethernet service frame of free time thereof, in bit stream, 0 and 1 bit length all is not more than 32 bits, gateway instruction process thread sends the instruction code character of saltus step coded system, the multiplexing drive thread of the directed control line process control of the loop passage of both sides to the left and right sends instruction code character and the rear frame period of coding simultaneously, they form the continuous bit stream that replaces saltus step between 1 and 0, and in bit stream, 0 and 1 bit length all is not more than 32 bits, the instruction code character is got back to gateway A after being received the acceptance of forwarding thread and forwarding by the passage of each slave station, forms the taking turn code character, after the passage of gateway A receives above-mentioned instruction code character that being forwarded by slave station of forwarding that thread will receive return and coding, frame period is delivered to local transition detection thread and gateway instruction process thread, the transition detection thread to the coding of receiving after frame period and taking turn code character detect, detect the continuity, saltus step of these bit streams and connect 0 and connect 1 bit length, and give gateway instruction process thread, loop processed thread, channel status Shen testing result and accuse thread, gateway instruction process thread is accepted the instruction of forward, and the loop processed thread is analyzed the state of loop, connects 0 and when connecting 1 bit length greater than 32 bit in bit stream being detected, accuses thread by the channel status Shen and sends the Shen and accuse and report to the local network management thread, each slave station B, after the initialization of C and D is completed, the passage reception forwarding thread of slave station is accepted the bit stream from two wing passages simultaneously, on the one hand, inwardly the both direction of outer ring forwards the taking turn code character to the website of back, the passage of slave station receives the forwarding thread data of receiving is delivered to local transition detection thread and gateway instruction process thread on the other hand, the transition detection thread to the coding of receiving after frame period and taking turn code character detect, detect the continuity of these bit streams, saltus step and the bit length that connects 0 and even 1, and testing result is sent to gateway instruction process thread, the loop processed thread, thread is accused in the channel status Shen, gateway instruction process thread is accepted the instruction that gateway is sent, and the loop processed thread is analyzed the state of loop, connect 0 or when connecting 1 bit length greater than 32 bit in bit stream being detected, accuse thread by the channel status Shen and send the Shen to gateway A and accuse, and report to the local network management thread, in the service interval period, each slave station sends the rear frame period of coding to both sides.
Then, operation service handling and orientation: after the first inspection of passage is completed, according to the transition detection thread to the transition detection result of channel bit and the gateway instruction process thread result to instruction, the linking status of loop processed thread analysis judgement passage, and then generation passage processing instruction gives loop the directed thread of controlling.Determine whether the business of accepting and and then determine how to accept business, the how to confirm business is directed; Passage when gateway A and each slave station left and right sides has fault, does not does not accept business, and gateway A and slave station send critical alarm, otherwise, will accept business and it will be carried out orientation;
The a certain user An at gateway A station will communicate by letter with a certain user Cn that C stands, as sends and receive e-mail.Passage when the gateway A left and right sides is all unobstructed, gateway A is after the Ethernet service frame of accepting the user An that the exchange process comes, just only can transmit it on a predetermined wing passage, the right side of gateway A for example, simultaneously, receive those and will be sent to the Ethernet service frame of user An on this wing passage, the not direct transfer ethernet frame of gateway A.Therefore the user An of gateway A is sent to the data of the user Cn at C station, is to be sent from right channel by the A station, i.e. loop direction clockwise arrives the C station through the forwarding at D station, and it hands to Cn to the exchange process at C station the most at last.The reply of user Cn to An by counterclockwise channel direction, still through the D station, got back to the A station, finally gives user An, with reference to Fig. 2.
Service handling and directed more detailed step are: with reference to Fig. 2 and Fig. 5, at first the Ethernet service frame of the user An at gateway A station arrives the customer service process at A station, then arrives the intelligent positioning process at A station through the exchange process at A station.arrive the intelligent positioning process, the Ethernet service that namely enters the intelligent positioning process is accepted thread, processed the duration at these traffic frames interval by the service interval processing threads, implement the saltus step coding at saltus step coding thread, then accurately be directed to the channel multiplexing drive thread by the directed thread of controlling of loop, be sent to corresponding passage, namely be sent to the right channel of A, the channel multiplexing drive thread is collected the gateway instruction of our station, the interval of the Ethernet service frame of user's Ethernet service frame and free time, and all data-drivens of collecting are the continual bit stream admission passage with 0 and 1 expression, in bit stream, 0 and 1 bit length all is not more than 32 bits.
Conversely, the user Cn at C station, be sent to the Ethernet service frame of A station user An, being sent to C stands in the face of the passage at D station, the channel multiplexing drive thread at C station is collected the state Shen announcement of our station and the interval of user's Ethernet service frame and the Ethernet service frame of free time, collect also that gateway instruction through the our station transfer, state Shen is accused, the interval of user's Ethernet service frame and idle Ethernet service frame, and all data-drivens of collecting are the continual bit stream admission passage with 0 and 1 expression, in bit stream, 0 and 1 bit length all is not more than 32 bits.
Through D station transfer, at first the passage that enters the intelligent positioning process at A station receives and forwards thread, user's Ethernet service frame by its reception, give saltus step decoding thread, implement saltus step decoding by saltus step decoding thread, be reduced to the former ethernet frame format of standard, then forward thread by Ethernet service, pass out to the customer service process by the exchange process, finally arrive destination user An.
When the gateway A judgement, it is unobstructed only having the passage on its left side or right side, and gateway A is is just received and dispatched user's Ethernet service frame on a unobstructed wing passage, and the webmaster thread can send indicative alarm.For example, between gateway A and slave station D, namely the right channel of gateway A has fault, and the left side is unobstructed, and just communicating by letter without the D station of user An and user Cn, but through B station transfer still satisfied communicating by letter of user An and user Cn.
When the gateway A judgement, it is unobstructed only having its contiguous passage, and passage is out of order at a distance, and gateway A just receives and send user's Ethernet service frame simultaneously on two wing passages, but directly do not forward ethernet frame, the webmaster thread also can send indicative alarm.For example, the passage between slave station C and D has fault, and communicating by letter through B station transfer of user An and user Cn still satisfied communicating by letter of user An and user Cn.
When the gateway A judgement, the passage that only has interior ring or outer shroud is unobstructed, and gateway is is just only received and dispatched user's Ethernet service frame on unobstructed loop, and the webmaster thread also can send indicative alarm; For example, slave station C can not receive the data of slave station D, and perhaps slave station B can not receive the data of slave station C, or two kinds of situations occur simultaneously, namely in ring namely clockwise loop fault is arranged, and outer shroud is unobstructed, user An just is directed to outer shroud with communicating by letter of user Cn, still can satisfy communicating by letter of user An and user Cn, at this moment, the sending and receiving of gateway A and slave station C is all to carry out in both sides, by counterclockwise, one side is received, and opposite side is sent out, and gateway A is not direct transfer ethernet frame also.
Usually slave station quantity far more than the quantity of gateway, is utilized this quantity difference that often has, and the intelligent positioning process is more simplified in the operation of gateway in the operating ratio of slave station.
With regard to each slave station, they always receive simultaneously and send on two wing passages.If slave station is judged a certain side, fault is arranged, just stop paying out this side, and send the Shen to gateway and accuse, wait for again the recovery instruction of gateway after stopping paying out.
Follow again, the operation passage is patrolled and examined in real time: after service handling, loop ethernet forms and enters running, and the Ethernet service frame of user An and user Cn transmits between source user and purpose user by looped network, under operating condition, still to patrol and examine in real time passage; Patrol and examine in real time on the aforementioned channels basis in first inspection stage, then increased to the saltus step coding of traffic frame and to the transition detection of the rear traffic frame of encoding.Whether or not tube passage is not idle, do not have instruction or Shen to accuse in tube passage, and all constant to the detection of all passages, this and known Spanning-Tree Protocol process form obvious difference, and the present invention is more timely more reliable to the control of passage.
At last, the operation business is redirected: the result that gateway A and slave station B, C and D patrol and examine in real time according to passage, if passage changes, just analyze and judge the occurrence positions of character and the fault of fault, redefine countermeasure according to top service handling and orientation step, guarantee user's proper communication, in the present embodiment, namely change bang path and direction of transfer, continue to guarantee that user An communicates by letter with user Cn smooth and easy.
This shows, under passage occurred than the complex fault situation, the present invention still provided the chance of guaranteeing user's proper communication.In all cases, due to gateway A direct transfer ethernet frame, any ethernet frame all can not closed loop circulation in net, thereby has eliminated the formation passage mechanism of ring network broadcast storm fully, has avoided reliably broadcast storm.

Claims (5)

1. method that realizes loop ethernet by intelligent positioning, it is characterized in that: comprise at least two websites and circular passage, each website has all moved user's business process, exchange process and intelligent positioning process, the exchange process of each website accepted user business process is linked into the circular passage, the looping Ethernet after controlling through the intelligent positioning process.
2. method according to claim 1 is characterized in that: the intelligent positioning process comprise at least webmaster thread, initialize process, gateway instruction process thread, service interval processing threads, saltus step coding thread, transition detection thread, saltus step decoding thread, loop processed thread, loop directed control thread, channel status Shen accuse thread, channel multiplexing drive thread, passage receive forward thread, Ethernet service accepts thread and Ethernet service forwards thread.
3. method according to claim 2 is characterized in that:
The webmaster thread by user's definition, is made as gateway or slave station with website, and configures respectively each website Intelligent Process and system-wide parameter, monitors their state, and the NM server with the upper strata carries out alternately simultaneously;
Initialize process carries out initialization operation to system;
Gateway instruction in the acceptance of gateway instruction process thread and analysis channel bit stream also generates the gateway instruction at gateway simultaneously, and it is imposed the saltus step coding, and the bit length of gateway instruction is not more than 64 bits;
The service interval processing threads is processed the frame period that there is no the Ethernet service frame;
Saltus step coding thread is implemented the saltus step coding to Ethernet service frame and Ethernet service frame period, also to gateway instruction and state Shen announcement enforcement saltus step coding, and they are encoded into the continual bit stream that represents with 0 and 1, in bit stream, 0 and 1 bit length all is not more than 32 bits;
The continuity of transition detection thread monitoring channel bit stream, saltus step and connect 0 and connect 1 bit length, and judge accordingly the linking status of passage;
Saltus step decoding thread monitoring channel bit stream is implemented saltus step decoding to bit stream, also original subscriber's Ethernet service frame;
The loop processed thread generates the passage processing instruction to the directed thread of controlling of loop according to linking status and the instruction process result of passage;
The directed thread of controlling of loop is implemented directed and redirects user's Ethernet service frame;
The channel status Shen is accused thread and is used for accusing according to generate the channel status Shen according to the linking status of passage and instruction process result, and it is imposed the saltus step coding, and the bit length that accuse the state Shen is not more than 64 bits;
The channel multiplexing drive thread is collected gateway instruction, state Shen announcement and user's Ethernet service frame of our station, and the interval of idle Ethernet service frame, need collect also that gateway instruction through the our station transfer, state Shen is accused, the interval of user's Ethernet service frame and idle Ethernet service frame, and all data-drivens of collecting are the continual bit stream admission passage with 0 and 1 expression, in bit stream, 0 and 1 bit length all is not more than 32 bits;
Passage receives and forwards the thread reception or to the bit stream of next stop forwarding from passage, belong to the Data dissemination of our station to transition detection thread, gateway instruction process thread and saltus step decoding thread; Data in the our station transfer are distributed to the channel multiplexing drive thread of opposite side and drive admission passage by it;
Ethernet service is accepted thread is accepted needs to arrive through passage long-range destination in the local user traffic process Ethernet service frame;
Ethernet service forwards thread will be forwarded to the local user traffic process from the long-range Ethernet service frame that is reduced.
4. according to claim 2 or 3 described methods is characterized in that comprising the following steps:
(1) initialization: the initialization of each website is by the initialize process realization of each website, and in initialization procedure, the webmaster thread is gateway by user preset with one of them site configuration, and all the other site configuration are slave station; The intelligent positioning process stops accepting the data of exchange process and customer service process, until after service handling and orientation;
(2) the first inspection of passage: the intelligent positioning process detected linking status and the idle interval of passage before the data of accepting exchange process and customer service process;
(3) service handling and orientation: after the first inspection of passage was completed, gateway and each slave station were examined result according to head and are begun service handling, to user's Ethernet service frame directive sending and reception;
(4) passage is patrolled and examined in real time: in service handling and service operation, the intelligent positioning process is patrolled and examined ring-like passage incessantly;
(5) business is redirected: the result that gateway and slave station are patrolled and examined in real time according to passage; when loop ethernet breaks down, the directed thread of controlling of loop will be judged nature of trouble and abort situation, determine countermeasure by step (3); the business of implementing accurately is redirected, for customer service provides protection.
5. method according to claim 4 is characterized in that above each step is specially:
(1) initialization: after system reset, webmaster thread in the intelligent positioning process will be set to gateway by one of them website of user preset, all the other websites are set to slave station, in whole system, the webmaster thread is distributed, each website all has the webmaster thread of each self-operating, after system starts, initialize process in gateway stops Ethernet service and forwards the operation that thread and Ethernet service are accepted thread, the directed control line process control of loop channel multiplexing drive thread stops accepting the data of exchange process and customer service process, gateway instruction process thread in the intelligent positioning process records initialized result, initialize process in slave station stops Ethernet service forwarding thread and Ethernet service to accept the operation of thread, and the gateway instruction process thread of intelligent positioning process records initialized result,
(2) the first inspection of passage: after the initialization of gateway is completed, service interval processing threads in the intelligent positioning process monitors the frame period of Ethernet service, and encode thread with the rear frame period of frame period generation coding by saltus step, saltus step coding thread is implemented the saltus step coding to the interval of Ethernet service frame and the Ethernet service frame of free time, be the continual bit stream that represents with 0 and 1 with the space coding of Ethernet service frame and the Ethernet service frame of free time thereof, in bit stream, 0 and 1 bit length all is not more than 32 bits; Gateway instruction process thread sends the instruction code character of saltus step coded system, the channel multiplexing drive thread of the directed control line process control self of loop both sides is sent instruction code character and the rear frame period of coding simultaneously to the passage of both sides, the instruction code character is received to forward by the passage of each slave station gets back to gateway after thread is accepted and forwarded, and forms the taking turn code character; The passage of gateway receives and forwards the passage that thread is monitored its both sides all the time, the state Shen by after saltus step coding thread coding that the taking turn code character that after the coding that the transition detection thread sends slave station, frame period, slave station return and slave station send is accused and is detected simultaneously, detect the continuity, saltus step of these bit streams and connect 0 and connect 1 bit length, and the result after detecting sends to gateway instruction process thread, loop processed thread and channel status Shen announcement thread; After the initialization of each slave station is completed, the passage of slave station both sides receives and forwards the thread one side two-way transfer taking turn of website code character rearwards, on the other hand the transition detection thread of slave station to the coding of receiving after frame period and taking turn code character detect, detect the continuity, saltus step of these bit streams and connect 0 and connect 1 bit length, and send to testing result gateway instruction process thread, loop processed thread, channel status Shen to accuse thread; Gateway instruction process thread is accepted the instruction that gateway is sent, the loop processed thread is analyzed the state of loop, connect 0 or when connecting 1 bit length greater than 32 bit in bit stream being detected, the channel status Shen is accused thread and is sent the Shen to gateway and accuse, and reports to the local network management thread; In the service interval period, each slave station sends the rear frame period of coding to both sides;
(3) service handling and orientation: after gateway and each slave station were worked in coordination with and completed the first inspection of passage, gateway and each slave station result of examining first according to passage began service handling, to user's Ethernet service frame directive sending and reception; Passage when gateway or the slave station left and right sides has fault, and gateway or slave station send critical alarm; Passage when gateway or the slave station left and right sides is all unobstructed, and gateway is to any side transmitting-receiving user's Ethernet service frame; Be unobstructed when gateway only has the passage on left side or right side, gateway is received and dispatched user's Ethernet service frame on a unobstructed side, and the webmaster thread sends indicative alarm; When being unobstructed near the channel part of gateway, be out of order away from the channel part of gateway, gateway is received and dispatched user's Ethernet service frame simultaneously in both sides, forwards user's Ethernet service frame by unobstructed passage; Be unobstructed when gateway only has the half-duplex channel of counterclockwise loop or clockwise loop, gateway is received and dispatched user's Ethernet service frame on unobstructed ring, and the webmaster thread sends critical alarm; Slave station all receives the channel data of the left and right sides all the time, when even the passage of its left and right sides breaks down, when if the passage of any side of slave station breaks down, this wing passage is stopped paying out user's Ethernet service frame, recovers until receive the gateway instruction that this wing passage business sends; Ethernet service is accepted thread and is accepted the customer service that the exchange process is sent, and customer service is after saltus step coding thread, and is under the directed control of controlling thread of loop, multiplexing and be driven into passage and send to long-range destination by the channel multiplexing drive thread; Received by passage from long-range Ethernet service frame through passage and forward the thread reception, and be reduced to ethernet frame format through saltus step decoding thread, forward thread by Ethernet service and send to the local user traffic process by the exchange process;
(4) passage is patrolled and examined in real time: after service handling, running has been realized and entered to loop ethernet, user's Ethernet service frame transmits between the website of looped network, in operating condition, the intelligent positioning process is patrolled and examined in real time to the circular passage, by step (2), ring-like Ethernet is patrolled and examined in real time, in patrolling and examining, increased the saltus step of Ethernet service frame coding, and to the transition detection of the rear Ethernet service frame of encoding;
(5) business is redirected: the result that gateway and slave station are patrolled and examined in real time according to passage; determine whether customer service is redirected; when loop ethernet breaks down; the directed control of loop thread will be according to the analysis of loop processed thread; judge nature of trouble and abort situation; determine countermeasure by step (3), the business of implementing accurately is redirected, for customer service provides protection.
CN201310045935.7A 2013-02-05 2013-02-05 A kind of method being realized loop ethernet by intelligent positioning Active CN103095541B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310045935.7A CN103095541B (en) 2013-02-05 2013-02-05 A kind of method being realized loop ethernet by intelligent positioning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310045935.7A CN103095541B (en) 2013-02-05 2013-02-05 A kind of method being realized loop ethernet by intelligent positioning

Publications (2)

Publication Number Publication Date
CN103095541A true CN103095541A (en) 2013-05-08
CN103095541B CN103095541B (en) 2015-10-28

Family

ID=48207698

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310045935.7A Active CN103095541B (en) 2013-02-05 2013-02-05 A kind of method being realized loop ethernet by intelligent positioning

Country Status (1)

Country Link
CN (1) CN103095541B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986673A (en) * 2014-05-19 2014-08-13 江苏新瑞峰信息科技有限公司 Improved network switch
CN105847147A (en) * 2016-03-17 2016-08-10 浙江宇视科技有限公司 Data transmission method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859220A (en) * 2006-06-07 2006-11-08 杭州华为三康技术有限公司 Method for backup of main station point and backup station point
CN101163038A (en) * 2007-08-16 2008-04-16 中兴通讯股份有限公司 Ethernet equipment link protecting method
US20110116365A1 (en) * 2008-03-10 2011-05-19 Zte Corporation Method and a system for preventing a network storm from presenting in a multi-ring ethernet
WO2011076012A1 (en) * 2009-12-25 2011-06-30 中兴通讯股份有限公司 Methods, system and apparatus for protecting control virtual local network in ethernet ring network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859220A (en) * 2006-06-07 2006-11-08 杭州华为三康技术有限公司 Method for backup of main station point and backup station point
CN101163038A (en) * 2007-08-16 2008-04-16 中兴通讯股份有限公司 Ethernet equipment link protecting method
US20110116365A1 (en) * 2008-03-10 2011-05-19 Zte Corporation Method and a system for preventing a network storm from presenting in a multi-ring ethernet
WO2011076012A1 (en) * 2009-12-25 2011-06-30 中兴通讯股份有限公司 Methods, system and apparatus for protecting control virtual local network in ethernet ring network
EP2518948A1 (en) * 2009-12-25 2012-10-31 ZTE Corporation Methods, system and apparatus for protecting control virtual local network in ethernet ring network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
徐明,等: "《环形以太网——一种合理的分散式厂站自动化系统组网模式》", 《电力自动化设备》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986673A (en) * 2014-05-19 2014-08-13 江苏新瑞峰信息科技有限公司 Improved network switch
CN105847147A (en) * 2016-03-17 2016-08-10 浙江宇视科技有限公司 Data transmission method and device
CN105847147B (en) * 2016-03-17 2019-04-30 浙江宇视科技有限公司 A kind of transmission method and device of data

Also Published As

Publication number Publication date
CN103095541B (en) 2015-10-28

Similar Documents

Publication Publication Date Title
CN101132320A (en) Method for detecting interface trouble and network node equipment
CN110413591A (en) A kind of industrial data acquisition method and edge calculations gateway
CN108156023A (en) A kind of time sensitivity network analysis system and method based on redundancy scheme
CN100495985C (en) Method for rapidly detecting Ethernet exchanger loop failure
CN105227393B (en) A kind of bidirectional forwarding detection (BFD) method
CN102946260B (en) Automatic meter reading system and communication link quality detecting method thereof
EP2999168B1 (en) Collaboration method and system in a drni,distributed resilient network interconnect, system
CN104869028A (en) Network device and loop detection method
CN101425941B (en) Loop network link convergence time and recovery time test system
CN107070708A (en) A kind of transformer station process layer network communication performance emulation mode based on OPNET
CN105553795B (en) A method of the transmission standard Ethernet data in Industrial Ethernet
CN103095541B (en) A kind of method being realized loop ethernet by intelligent positioning
CN102438017A (en) Routing function-based conversion apparatus of Modbus protocol and BACnet Ethernet protocol and conversion method thereof
CN105897580B (en) A kind of unrelated forwarding network quick fault testing of agreement and traffic protection switching method
CN102710482B (en) Method and device for looped network protection
CN104320322A (en) Message control method and equipment
CN103782549B (en) information transmission network and corresponding network node
CN106603364A (en) Ethernet communication method for real-time transmission
CN103618630B (en) A kind of data safe transmission method and equipment based on double up-links
CN103222230A (en) Multicast duplication method, device and system
CN107005440A (en) A kind of method of link failure positioning, apparatus and system
CN203301517U (en) Node device for access to ring Ethernet
CN109257263B (en) Data transmission method of on-site protection device based on double-loop network
CN101540692B (en) Dynamic multicast configuration method and node equipment
CN102006239B (en) Ethernet circuit exchange device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee
CP03 Change of name, title or address

Address after: 332000 No. 1010 Anping Road, eco industrial city, Mount Lu District, Jiangxi, Jiujiang

Patentee after: SHANXI SHANSHUI OPTOELECTRONIC TECHNOLOGY CO., LTD.

Address before: 332000 No. 1010 Anping Road, eco industrial park, Mount Lu District, Jiangxi, Jiujiang

Patentee before: Jiangxi Shanshui Optoelectronics Technology Co., Ltd.