CN104601225B - Wave length detection method and device - Google Patents

Wave length detection method and device Download PDF

Info

Publication number
CN104601225B
CN104601225B CN201510053389.0A CN201510053389A CN104601225B CN 104601225 B CN104601225 B CN 104601225B CN 201510053389 A CN201510053389 A CN 201510053389A CN 104601225 B CN104601225 B CN 104601225B
Authority
CN
China
Prior art keywords
wavelength
response data
channel
sdn controllers
instruction
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.)
Active
Application number
CN201510053389.0A
Other languages
Chinese (zh)
Other versions
CN104601225A (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510053389.0A priority Critical patent/CN104601225B/en
Publication of CN104601225A publication Critical patent/CN104601225A/en
Application granted granted Critical
Publication of CN104601225B publication Critical patent/CN104601225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Optical Communication System (AREA)

Abstract

The invention provides a wave length detection method and device. A channel analyzer comprises a processor and a memory which is connected with the processor; a wave length sheet for receiving channels is arranged inside the memory; the wave length sheet comprises a plurality of wave lengths. The wave length detection method comprises the following steps of S11 enabling the processor to receive a wave length set command sent by an SDN controller; S12 reading the wave length sheet in the memory according to the wave length setting command, setting a wave length selection switch of the receiving channel to be in a target wave length which is not been set in the wave length sheet and sending a setting result to the SDN controller; S13 monitoring response data returned by handshake commands sent by the SDN controller aiming at the SDN controller through the target wavelength on the receiving channel, sending the response data to the SDN controller if the response data is monitored to enable succeed detection to be determined when verification of the response data through the SDN controller is correct and executing S11 to S13 if not until succeed detection is determined. The scheme of the wave length detection method can detect the fixed wave length of an optical fiber interchanger.

Description

A kind of wavelength detection method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of wavelength detection method and device.
Background technology
With the continuous development of computer communication technology, a kind of new network framework is occurred in that, the new network framework bag Include:Channel resolver, it is connected with channel resolver as transmission medium and using annular wire laying mode using multi-core fiber SDN that multiple optical fiber switch are connected with each port of channel resolver (Software Defined Network, it is soft Part defines network) controller.This network architecture is simple, and autgmentability is preferable.
For the working method of the above-mentioned network architecture includes:SDN controllers are using the Tx ports of channel resolver to each Optical fiber switch sends control data, and response data is sent to channel parsing by optical fiber switch paired domination number according to being responded Device, so that channel resolver is transmitted to SDN controllers.
Because optical fiber switch when response data is sent is transmitted using the light beam of fixed wave length, therefore, frequency Road resolver needs to pre-set the fixed wave length, and with the response data of reception optical fiber switch, otherwise, channel resolver is by nothing Method gets the response data of optical fiber switch, so as to the control for causing SDN controllers fails.
The content of the invention
In view of this, the present invention provides a kind of wavelength detection method and device, to solve prior art in because obtaining To the response data of optical fiber switch, and cause the problem of the control failure of SDN controllers.
The invention provides a kind of wavelength detection method, applies on channel resolver, wherein, the channel resolver bag Include:The internal memory that processor is connected with the processor, arranges the wavelength table of receiving channel, the wavelength in the internal memory Table includes multiple wavelength, including:
S11:The processor receives the wavelength setting instruction that SDN controllers send;
S12:Arranged according to the wavelength and instructed, the wavelength table in the internal memory is read, by the wavelength of receiving channel Selecting switch is set to the target wavelength not being set in the wavelength table, and is sent to SDN controllers by result is arranged;
S13:In receiving channel optical fiber switch is monitored for shaking hands that SDN controllers send using the target wavelength The returned response data of order, if monitoring the response data, and is sent to SDN controllers by the response data, with When making SDN controllers correct to response data checking, it is determined that detecting successfully;Otherwise, S11-S13 is performed, until it is determined that visiting Survey successfully.
Preferably, the wavelength table also includes:The flag bit corresponding with each wavelength respectively;In reception SDN controls The wavelength that device processed sends is arranged before instruction, is further included:
S10:The wavelength reading instruction that SDN controllers send is received, instruction is read according to the wavelength and is read the wavelength Table;When all flag bits are 0 in being the wavelength table in reading result, the reading result is sent to into SDN controllers, and is held The wavelength that the row reception SDN controllers send arranges instruction.
Preferably, the determination is detected successfully, including:
S14:The processor receives the wavelength table modification instruction that SDN controllers send, and is referred to according to wavelength table modification Order, is revised as 1, it is determined that detecting successfully by the flag bit corresponding to the successful target wavelength of the detection in the modification table.
Present invention also offers a kind of wavelength detection method, applies on SDN controllers, arrange in channel resolver and connect The wavelength table of passage is received, wherein, the wavelength table includes multiple wavelength, including:
S21:SDN controllers send wavelength and arrange instruction to channel resolver, so that the channel resolver is according to described Wavelength arranges instruction, the target wavelength that the wavelength-selective switches of receiving channel are set to be not set in the wavelength table;
S22:SDN servers receive the setting result that channel resolver sends, and send order of shaking hands to optical fiber switch, And cause channel resolver to monitor the response data that optical fiber switch is returned;
S23:The monitoring result that channel resolver sends is received, it is right when carrying the response data in monitoring result The response data is verified, if the result is that the response data is correct, detected successfully;If the result is described Response data mistake or the monitoring result then perform S21-S23, until detecting successfully not monitor the response data.
Preferably, the wavelength table also includes:Respectively at the corresponding flag bit of each wavelength;Described to channel parsing Device sends wavelength and arranges before instruction, further includes:
S20:Wavelength is sent to channel resolver and read instruction, so as to channel resolver reads instruction according to the wavelength read Take the wavelength table;When the reading result for receiving the transmission of channel resolver is that all flag bits are 0 in the wavelength table, and hold Row is described to send wavelength setting instruction to channel resolver.
Present invention also offers a kind of wavelength detection device, is applied to channel resolver, wherein, channel resolver includes: The internal memory that processor is connected with the processor, including:
The processor, for the wavelength table for arranging receiving channel in internal memory, the wavelength table includes multiple wavelength;With In the wavelength for receiving the transmission of SDN controllers, instruction is set;Arranged according to the wavelength and instructed, read the ripple in the internal memory Long table, the target wavelength that the wavelength-selective switches of receiving channel are set to be not set in the wavelength table, and will arrange As a result SDN controllers are sent to;Optical fiber switch is monitored in receiving channel using the target wavelength to send out for SDN controllers The response data that the order of shaking hands sent is returned, if monitoring the response data, and is sent to SDN controls by the response data Device processed, during so that SDN controllers are correct to response data checking, it is determined that detecting successfully;Otherwise, the process is continued executing with The implementation procedure of device, until it is determined that detecting successfully.
Preferably, also include in the wavelength table:Respectively during the flag bit corresponding with each wavelength, the processor, Wavelength for receiving the transmission of SDN controllers reads instruction, reads instruction according to the wavelength and reads the wavelength table;Reading When being as a result 0 for all flag bits in the wavelength table, the reading result is sent to into SDN controllers, and is connect described in performing Receive the wavelength setting instruction that SDN controllers send.
Preferably, the processor, for receiving the wavelength table modification instruction of SDN controllers transmission, according to the wavelength Table modification instruction, by the flag bit corresponding to the successful target wavelength of the detection in the modification table 1 is revised as, it is determined that visiting Survey successfully.
Present invention also offers a kind of wavelength detection device, is applied to SDN controllers, including:
Control unit, for the wavelength table for arranging receiving channel in channel resolver, wherein, the wavelength table includes many Individual wavelength;
Transmitting element, arranges instruction, so that the channel resolver is according to described for sending wavelength to channel resolver Wavelength arranges instruction, the target wavelength that the wavelength-selective switches of receiving channel are set to be not set in the wavelength table;
Receiving unit, for receiving the setting result of channel resolver transmission, and sends order of shaking hands to optical fiber switch, And cause channel resolver to monitor the response data that optical fiber switch is returned;
Authentication unit, for receiving the monitoring result that channel resolver sends according to receiving unit, takes in monitoring result During with the response data, the response data is verified, if the result is that the response data is correct, detected Success;If the result is the response data mistake or the monitoring result not monitor the response data, perform The implementation procedure of control unit, transmitting element, receiving unit and authentication unit, until detecting successfully.
Preferably, also include in the wavelength table:When each wavelength corresponding flag bit, the transmission list Unit, for sending wavelength to channel resolver instruction is read, so that channel resolver reads instruction according to the wavelength reads institute State wavelength table;When the reading result for receiving the transmission of channel resolver is that all flag bits are 0 in the wavelength table, and perform institute State to channel resolver and send wavelength setting instruction.
A kind of wavelength detection method and device is embodiments provided, by arranging wavelength in channel resolver Table, and wavelength-selective switches are set in receiving channel, channel resolver enters traveling wave according to wavelength table to wavelength-selective switches It is long to select, with the response data returned using the wavelength monitoring optical fiber switch of the setting, exchange with optical fiber in the wavelength for selecting When the fixed wave length of machine transmission response data is equal, channel resolver will monitor response data, and the response data is right The response of the order of shaking hands that SDN controllers send so that SDN controllers are successfully controlled to optical fiber switch.
Description of the drawings
Fig. 1 is method flow diagram provided in an embodiment of the present invention;
Fig. 2 is the method flow diagram that another embodiment of the present invention is provided;
Fig. 3 is the method flow diagram that yet another embodiment of the invention is provided;
Fig. 4 is system construction drawing provided in an embodiment of the present invention;
Fig. 5 is wavelength table provided in an embodiment of the present invention;
Fig. 6 is the corresponding two-dimensional chain table of wavelength table provided in an embodiment of the present invention;
Fig. 7 is the hardware structure figure of device place provided in an embodiment of the present invention equipment;
Fig. 8 is apparatus structure schematic diagram provided in an embodiment of the present invention;
Fig. 9 is the hardware structure figure of the device place equipment that another embodiment of the present invention is provided;
Figure 10 is the apparatus structure schematic diagram that another embodiment of the present invention is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described.Obviously, described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.Based on this Embodiment in invention, the every other reality that those of ordinary skill in the art are obtained under the premise of creative work is not made Example is applied, the scope of protection of the invention is belonged to.
As shown in figure 1, embodiments providing a kind of wavelength detection method, apply on channel resolver, wherein, The channel resolver includes:The internal memory that processor is connected with the processor, arranges receiving channel in the internal memory Wavelength table, the wavelength table includes multiple wavelength;Wavelength-selective switches are set in receiving channel, and the method can include following Step:
Step 101:Processor receives the wavelength setting instruction that SDN controllers send.
Step 102:Arranged according to wavelength and instructed, the wavelength table in internal memory is read, by the wavelength-selective switches of receiving channel The target wavelength not being set in wavelength table is set to, and SDN controllers are sent to by result is arranged.
Step 103:In receiving channel optical fiber switch is monitored for shaking hands that SDN controllers send using target wavelength The returned response data of order, if monitoring response data, and is sent to SDN controllers by response data, so that SDN controls When device is correct to response data checking, it is determined that detecting successfully;Otherwise, execution step 101- step 103, until it is determined that detecting into Work(.
According to such scheme, by arranging wavelength table in channel resolver, and wavelength choosing is set in receiving channel Switch is selected, channel resolver carries out wavelength selection according to wavelength table to wavelength-selective switches, with using the wavelength monitoring of the setting The response data that optical fiber switch is returned is equal with the fixed wave length that optical fiber switch sends response data in the wavelength for selecting When, channel resolver will monitor response data, and the response data is the sound of the order of shaking hands sent to SDN controllers Should so that SDN controllers are successfully controlled to optical fiber switch.
As shown in Fig. 2 embodiments providing a kind of wavelength detection method, apply on SDN controllers, in channel The wavelength table of receiving channel is set in resolver, wherein, wavelength table includes multiple wavelength;Arrange wavelength in receiving channel to select Switch, the method may comprise steps of:
Step 201:SDN controllers send wavelength and arrange instruction to channel resolver, so that channel resolver is according to wavelength Instruction, the target wavelength that the wavelength-selective switches of receiving channel are set to be not set in wavelength table are set.
Step 202:SDN servers receive the setting result that channel resolver sends, and shake hands to optical fiber switch transmission Order, and cause the response data of channel resolver monitoring optical fiber switch return.
Step 203:The monitoring result that channel resolver sends is received, it is right when carrying response data in monitoring result Response data is verified, if the result is that response data is correct, detected successfully;If the result is response data mistake Or monitoring result is not to monitor response data, then execution step 201- step 203, until detecting successfully.
According to such scheme, by arranging wavelength table in channel resolver, and wavelength choosing is set in receiving channel Switch is selected, channel resolver carries out wavelength selection according to wavelength table to wavelength-selective switches, with using the wavelength monitoring of the setting The response data that optical fiber switch is returned is equal with the fixed wave length that optical fiber switch sends response data in the wavelength for selecting When, channel resolver will monitor response data, and the response data is the sound of the order of shaking hands sent to SDN controllers Should so that SDN controllers are successfully controlled to optical fiber switch.
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings and specific embodiment to this Invention is described in further detail.
As shown in figure 3, embodiments providing a kind of wavelength detection, the method may comprise steps of:
Step 301:The wavelength table of receiving channel is set in channel resolver, wherein, channel resolver includes:Process Device, the internal memory being connected with processor respectively, nonvolatile memory;Wavelength table includes:Multiple wavelength and respectively with often The corresponding flag bit of individual wavelength.
As shown in figure 4, the system construction drawing provided for the present embodiment.
Wherein, multiple optical fiber switch adopt multi-core fiber as transmission medium, and each single-core fiber is logical for one Road, common n passage, i.e. C1To Cn.Wherein, Cn passages are sendaisle, are that control plane is special, and SDN controllers are logical using sending Data is activation of the road to optical fiber switch.C1To Cn-1For receiving channel, optical fiber switch is using receiving channel to channel resolver Response data is sent, and in optical fiber switch when response data is sent, by wavelength-division multiplex technique, using fixed wave length light Beam, its wavelength is λ.Wherein, n is the integer not less than 1, CnFor n-th passage.
Wherein, channel resolver can be divided into three parts according to function:Multiport network switch, photoelectricity and electro-optic conversion With the wavelength-selective switches in each receiving channel.Multiport network switch is connected with SDN controllers, to realize data Function of exchange.Its all of the port can be divided into two working fields, i.e. Transformation Domain and link field according to function.The port of Transformation Domain is equal It is set to half work mode of operation, one of TxPort is sending port, remaining RxPort is receiving port.The institute of link field There is port to be full-duplex port, the port of each link field can connect SDN controllers.And the port of any one link field Can arbitrarily be set to the bandwidth not less than 1G.
In the present embodiment, the wavelength table of setting includes multiple wavelength and the corresponding flag bit of each wavelength, wherein, mark Position is 0, shows that the corresponding wavelength of this flag bit is not the fixed wave length that optical fiber switch sends response data, if flag bit is 1, show that the corresponding wavelength of this flag bit is the fixed wave length that optical fiber switch sends response data.
In a preferred embodiment, if different optical fiber switch fixed ripple for using when response data is returned Length is identical, can be respectively provided with a wavelength table for each receiving channel;If different optical fiber switch is returning number of responses According to when the fixed wave length that uses it is different, can be that one wavelength table is set for all receiving channels.It is assumed that being all receiving channels It is provided with a wavelength table, then the wavelength table of receiving channel is as shown in Figure 5.
In a preferred embodiment, wavelength table can be arranged in internal memory.In order to after system power failure, still The wavelength table can be preserved, it is also possible to wavelength table is arranged in the nonvolatile memory, and wavelength table is deposited from non-volatile Copy in internal memory in reservoir.
In a preferred embodiment, the wavelength table in internal memory can form two-dimensional chain table structure, to improve reading The convenience write.Wherein, as shown in fig. 6, being two-dimensional chain table structural representation.
Step 302:SDN controllers send wavelength and read instruction to channel resolver.
Wherein, wavelength reads instruction and reads wavelength table for indicating channel resolver.
Step 303:Channel resolver reads the wavelength table in instruction reading internal memory according to wavelength, and to SDN controls Device sends and reads result.
Step 304:SDN controllers are parsed when it is determined that all flag bits are 0 during reading result is wavelength table to channel Device sends wavelength and arranges instruction.
In the present embodiment, when all flag bits are 0 in wavelength table, show not yet to send response to optical fiber switch The fixed wave length of data is detected;Have in all flag bits in wavelength table arbitrary flag bit be 1 when, show to have detected Optical fiber switch sends the fixed wave length of response data.It is determined that not yet sending the fixed wave length of response data to optical fiber switch When being detected, send wavelength to channel resolver and instruction is set.
In a preferred embodiment, if the fixed wave length that optical fiber switch sends response data can always not Become, or SDN controllers are carried out being required to before each secondary control detecting an optical fiber switch and existed to optical fiber switch The fixed wave length of response is sent next time.
Step 305:Channel resolver arranges instruction and the wavelength-selective switches of receiving channel is set to into wavelength according to wavelength The target wavelength not being set in table, and return to SDN controllers by result is arranged.
In the present embodiment, if different optical fiber switch fixed wave length for using when response data is returned is different, that Channel resolver can arrange instruction and first the wavelength-selective switches of C1 receiving channels is set in wavelength table not according to wavelength The target wavelength being set, is the λ shown in Fig. 5 for example1
Step 306:SDN controllers from using Tx ports to CnSendaisle to optical fiber switch sends order of shaking hands.
Wherein, order of shaking hands is the HandShake of OpenFlow agreements.
Wherein, the order of shaking hands of the signal of telecommunication is converted to the light beam that wavelength is λ by multiport network switch, is sent to CnSend out Send passage.
Step 307:Optical fiber switch is received when shaking hands order, and execution is shaken hands order, and using each receiving channel to The response data of a length of λ of channel resolver send wave.
Step 308:Wavelength of the channel resolver according to set by wavelength-selective switches, monitors the sound that optical fiber switch is returned Data are answered, if monitoring the response data that optical fiber switch is returned, execution step 309;Otherwise, execution step 304.
Step 309:Then the response data of light beam is converted into into the response data of the signal of telecommunication, and response data is sent to SDN controllers, SDN controllers are verified according to order of shaking hands to response data, if authentication failed, execution step 304, if Checking is correct, then execution step 310.
Step 310:SDN controllers to channel resolver sends wavelength table modification instruction, and channel resolver is according to wavelength table Flag bit corresponding to target wavelength in wavelength table in internal memory is revised as 1 by modification instruction.
In the present embodiment, after the wavelength table in internal memory changes, by the wavelength table in nonvolatile memory It is also carried out corresponding modification.
In a preferred embodiment, if different optical fiber switch fixed ripple for using when response data is returned Length is identical, then when the fixed wave length of the corresponding optical fiber switch of one of receiving channel is detected, without the need for being further continued for visiting Survey, or, after all wavelengths have been respectively provided with the wavelength table of one of receiving channel, still will not detect optical fiber friendship The fixed wave length changed planes, then prompting user is detected.What if different optical fiber switch was used when response data is returned Fixed wave length is different, then when the fixed wave length of the corresponding optical fiber switch of one of receiving channel is detected, in addition it is also necessary to Continue the fixed wave length for detecting the corresponding optical fiber switch of other receiving channels.
According to this programme, by arranging wavelength table in channel resolver, and wavelength selection is set in receiving channel Switch, channel resolver carries out wavelength selection according to wavelength table to wavelength-selective switches, with using the wavelength monitoring light of the setting The response data that fine switch is returned, when the wavelength for selecting is equal with the fixed wave length that optical fiber switch sends response data, Channel resolver will monitor response data, and the response data is the response of the order of shaking hands sent to SDN controllers, is made Obtain SDN controllers to be successfully controlled optical fiber switch.
As shown in Figure 7, Figure 8, a kind of wavelength detection device is embodiments provided, channel resolver is applied to, is filled Putting embodiment can be realized by software, it is also possible to be realized by way of hardware or software and hardware combining.From hardware view Speech, as shown in fig. 7, for a kind of hardware structure diagram of embodiment of the present invention wavelength detection device place equipment, except shown in Fig. 7 Outside processor, internal memory, network interface and nonvolatile memory, the equipment that device is located in embodiment generally can be with Including other hardware, such as it is responsible for processing the forwarding chip of message.As a example by implemented in software, as shown in figure 8, patrolling as one The device in meaning is collected, is to be read corresponding computer program instructions in nonvolatile memory by the CPU of its place equipment Get what operation in internal memory was formed.The wavelength detection device 80 that the present embodiment is provided includes:Processor 801 and the processor 801 internal memories 802 being connected,
The processor 801, for the wavelength table for arranging receiving channel in internal memory, the wavelength table includes multiple ripples It is long;Wavelength for receiving the transmission of SDN controllers arranges instruction;Arranged according to the wavelength and instructed, in reading the internal memory The wavelength table, the target wavelength that the wavelength-selective switches of receiving channel are set to be not set in the wavelength table, and Result will be set and be sent to SDN controllers;Optical fiber switch is monitored in receiving channel using the target wavelength to control for SDN The response data that the order of shaking hands that device processed sends is returned, if monitoring the response data, and the response data is sent SDN controllers are given, during so that SDN controllers are correct to response data checking, it is determined that detecting successfully;Otherwise, continue executing with The implementation procedure of the processor, until it is determined that detecting successfully.
Further, also include in the wavelength table:Respectively during the flag bit corresponding with each wavelength, the processor 801, the wavelength for receiving the transmission of SDN controllers reads instruction, reads instruction according to the wavelength and reads the wavelength table; When reading result is that all flag bits are 0 in the wavelength table, the reading result is sent to into SDN controllers, and performs institute State and receive the wavelength setting instruction that SDN controllers send.
Further, the processor 801, for receiving the wavelength table modification instruction of SDN controllers transmission, according to described Wavelength table modification instruction, is revised as 1, really by the flag bit corresponding to the successful target wavelength of the detection in the modification table Detect successfully calmly.
As shown in Figure 9, Figure 10, a kind of wavelength detection device is embodiments provided, SDN controllers are applied to, is filled Putting embodiment can be realized by software, it is also possible to be realized by way of hardware or software and hardware combining.From hardware view Speech, as shown in figure 9, for a kind of hardware structure diagram of embodiment of the present invention wavelength detection device place equipment, except shown in Fig. 9 Outside processor, internal memory, network interface and nonvolatile memory, the equipment that device is located in embodiment generally can be with Including other hardware, such as it is responsible for processing the forwarding chip of message.As a example by implemented in software, as shown in Figure 10, as one Device on logical meaning, is by corresponding computer program instructions in nonvolatile memory by the CPU of its place equipment Read what operation in internal memory was formed.The wavelength detection device 100 that the present embodiment is provided includes:
Control unit 1001, for the wavelength table for arranging receiving channel in channel resolver, wherein, the wavelength table bag Include multiple wavelength;
Transmitting element 1002, for channel resolver send wavelength arrange instruction so that the channel resolver according to The wavelength arranges instruction, the target ripple that the wavelength-selective switches of receiving channel are set to be not set in the wavelength table It is long;
Receiving unit 1003, shakes hands for receiving the setting result of channel resolver transmission, and sending to optical fiber switch Order, and cause the response data of channel resolver monitoring optical fiber switch return;
Authentication unit 1004, for receiving the monitoring result that channel resolver sends according to receiving unit, in monitoring result In when carrying the response data, the response data is verified, if the result is that the response data is correct, Detect successfully;If the result is the response data mistake or the monitoring result not monitor the response data, The implementation procedure of control unit, transmitting element, receiving unit and authentication unit is performed, until detecting successfully.
Further, also include in the wavelength table:When each wavelength corresponding flag bit, the transmission list Unit 1002, for sending wavelength to channel resolver instruction is read, so as to channel resolver reads instruction according to the wavelength read Take the wavelength table;When the reading result for receiving the transmission of channel resolver is that all flag bits are 0 in the wavelength table, and hold Row is described to send wavelength setting instruction to channel resolver.
The contents such as the information exchange between each unit, implementation procedure in the said equipment, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation makes a distinction with another entity or operation, and not necessarily require or imply presence between these entities or operation Any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to non- Exclusiveness is included, so that a series of process, method, article or equipment including key elements not only includes those key elements, But also including other key elements being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element for being limited by sentence " including ", does not arrange Except also there is other same factor in including the process of the key element, method, article or equipment.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of said method embodiment can pass through Completing, aforesaid program can be stored in the storage medium of embodied on computer readable the related hardware of programmed instruction, the program Upon execution, the step of including said method embodiment is performed;And aforesaid storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, the skill of the present invention is merely to illustrate Art scheme, is not intended to limit protection scope of the present invention.All any modifications made within the spirit and principles in the present invention, Equivalent, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of wavelength detection method, it is characterised in that apply on channel resolver, wherein, the channel resolver includes: The internal memory that processor is connected with the processor, arranges the wavelength table of receiving channel, the wavelength table bag in the internal memory Multiple wavelength are included, including:
S11:The processor receives the wavelength setting instruction that software defined network SDN controllers send;
S12:Arranged according to the wavelength and instructed, read the wavelength table in the internal memory, the wavelength of receiving channel is selected Switch is set to the wavelength not being set in the wavelength table, and is sent to SDN controllers by result is arranged;
S13:The life of shaking hands sent for SDN controllers using the wavelength monitoring optical fiber switch of current setting in receiving channel The returned response data of order, if monitoring the response data, and is sent to SDN controllers by the response data, so that When SDN controllers are correct to response data checking, it is determined that detecting successfully;Otherwise, S11-S13 is performed, until it is determined that detection Success.
2. method according to claim 1, it is characterised in that the wavelength table also includes:It is relative with each wavelength respectively The flag bit answered;Before the wavelength that the reception SDN controllers send arranges instruction, further include:
S10:The wavelength reading instruction that SDN controllers send is received, instruction is read according to the wavelength and is read the wavelength table; When reading result is that all flag bits are 0 in the wavelength table, the reading result is sent to into SDN controllers, and performs institute State and receive the wavelength setting instruction that SDN controllers send;Wherein, when flag bit is 0, the corresponding wavelength of this flag bit is shown not It is the fixed wave length of optical fiber switch transmission response data.
3. method according to claim 1, it is characterised in that the determination is detected successfully, including:
S14:The processor receives the wavelength table modification instruction that SDN controllers send, and is instructed according to wavelength table modification, will The flag bit corresponding to the successful wavelength of the detection in the wavelength table is revised as 1, it is determined that detecting successfully;Wherein, indicate When position is 1, show that the corresponding wavelength of this flag bit is the fixed wave length that optical fiber switch sends response data.
4. a kind of wavelength detection method, it is characterised in that apply on software defined network SDN controllers, in channel resolver The middle wavelength table that receiving channel is set, wherein, the wavelength table includes multiple wavelength, including:
S21:SDN controllers send wavelength and arrange instruction to channel resolver, so that the channel resolver is according to the wavelength Instruction, the wavelength that the wavelength-selective switches of receiving channel are set to be not set in the wavelength table are set;
S22:SDN controllers receive the setting result that channel resolver sends, and send order of shaking hands to optical fiber switch, and make Obtain the response data that channel resolver monitoring optical fiber switch is returned;
S23:The monitoring result that channel resolver sends is received, when carrying the response data in monitoring result, to described Response data is verified, if the result is that the response data is correct, detected successfully;If the result is the response Error in data or the monitoring result then perform S21-S23, until detecting successfully not monitor the response data.
5. method according to claim 4, it is characterised in that the wavelength table also includes:It is relative with each wavelength respectively The flag bit answered;Before the transmission wavelength setting instruction to channel resolver, further include:
S20:Wavelength is sent to channel resolver and read instruction, so that channel resolver reads instruction according to the wavelength reads institute State wavelength table;When the reading result for receiving the transmission of channel resolver is that all flag bits are 0 in the wavelength table, and perform institute State to channel resolver and send wavelength setting instruction;Wherein, when flag bit is 0, show that the corresponding wavelength of this flag bit is not Optical fiber switch sends the fixed wave length of response data.
6. a kind of wavelength detection device, it is characterised in that be applied to channel resolver, wherein, channel resolver includes:Process The internal memory that device is connected with the processor, including:
The processor, for the wavelength table for arranging receiving channel in internal memory, the wavelength table includes multiple wavelength;For connecing Receive the wavelength setting instruction that software defined network SDN controllers send;Arranged according to the wavelength and instructed, in reading the internal memory The wavelength table, the wavelength that the wavelength-selective switches of receiving channel are set to be not set in the wavelength table, and will Result is set and is sent to SDN controllers;Wavelength monitoring optical fiber switch using current setting in receiving channel is controlled for SDN The response data that the order of shaking hands that device processed sends is returned, if monitoring the response data, and the response data is sent SDN controllers are given, during so that SDN controllers are correct to response data checking, it is determined that detecting successfully;Otherwise, continue executing with The implementation procedure of the processor, until it is determined that detecting successfully.
7. device according to claim 6, it is characterised in that also include in the wavelength table:Respectively with each wavelength phase During corresponding flag bit, the processor, the wavelength for receiving the transmission of SDN controllers reads instruction, is read according to the wavelength The wavelength table is read in instruction fetch;When all flag bits are 0 in being the wavelength table in reading result, the reading result is sent out SDN controllers are given, and performs the wavelength setting instruction that the reception SDN controllers send;Wherein, when flag bit is 0, show The corresponding wavelength of this flag bit is not the fixed wave length that optical fiber switch sends response data.
8. device according to claim 6, it is characterised in that the processor, for receiving the ripple of SDN controllers transmission Long table modification instruction, instructs, by corresponding to the successful wavelength of the detection in the wavelength table according to wavelength table modification Flag bit be revised as 1, it is determined that detecting successfully;Wherein, when flag bit is 1, show that the corresponding wavelength of this flag bit is optical fiber Switch sends the fixed wave length of response data.
9. a kind of wavelength detection device, it is characterised in that be applied to software defined network SDN controllers, including:
Control unit, for the wavelength table for arranging receiving channel in channel resolver, wherein, the wavelength table includes multiple ripples It is long;
Transmitting element, arranges instruction, so that the channel resolver is according to the wavelength for sending wavelength to channel resolver Instruction, the wavelength that the wavelength-selective switches of receiving channel are set to be not set in the wavelength table are set;
Receiving unit, for receiving the setting result of channel resolver transmission, and sends order of shaking hands to optical fiber switch, and makes Obtain the response data that channel resolver monitoring optical fiber switch is returned;
Authentication unit, for receiving the monitoring result that channel resolver sends according to receiving unit, carries in monitoring result During the response data, the response data is verified, if the result is that the response data is correct, detected into Work(;If the result is the response data mistake or the monitoring result not monitor the response data, control is performed The implementation procedure of unit processed, transmitting element, receiving unit and authentication unit, until detecting successfully.
10. device according to claim 9, it is characterised in that also include in the wavelength table:Respectively with each wavelength phase During corresponding flag bit, the transmitting element reads instruction, so that channel resolver root for sending wavelength to channel resolver Instruction is read according to the wavelength read the wavelength table;The reading result for receiving the transmission of channel resolver is institute in the wavelength table When having flag bit to be 0, and perform described to the transmission wavelength setting instruction of channel resolver;Wherein, when flag bit is 0, show The corresponding wavelength of this flag bit is not the fixed wave length that optical fiber switch sends response data.
CN201510053389.0A 2015-02-02 2015-02-02 Wave length detection method and device Active CN104601225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510053389.0A CN104601225B (en) 2015-02-02 2015-02-02 Wave length detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510053389.0A CN104601225B (en) 2015-02-02 2015-02-02 Wave length detection method and device

Publications (2)

Publication Number Publication Date
CN104601225A CN104601225A (en) 2015-05-06
CN104601225B true CN104601225B (en) 2017-05-03

Family

ID=53126773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510053389.0A Active CN104601225B (en) 2015-02-02 2015-02-02 Wave length detection method and device

Country Status (1)

Country Link
CN (1) CN104601225B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789355A (en) * 2017-02-10 2017-05-31 太仓鼎诚电子科技有限公司 A kind of experiment microwave measurement system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946325A (en) * 2012-11-14 2013-02-27 中兴通讯股份有限公司 Network diagnosis method, system and equipment based on software defined network
CN104320270A (en) * 2014-10-08 2015-01-28 武汉邮电科学研究院 Elastic optical network control system based on SDN architecture and method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002223197A (en) * 2001-01-25 2002-08-09 Hitachi Ltd Optical network system having quality control function
US9094126B2 (en) * 2012-11-07 2015-07-28 Nec Laboratories America, Inc. QoS-aware united control protocol for optical burst switching in software defined optical networks

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946325A (en) * 2012-11-14 2013-02-27 中兴通讯股份有限公司 Network diagnosis method, system and equipment based on software defined network
CN104320270A (en) * 2014-10-08 2015-01-28 武汉邮电科学研究院 Elastic optical network control system based on SDN architecture and method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
软件定义网络及其应用分析;沈庆国等;《计算机与现代化》;20140415;第133-137,147页 *

Also Published As

Publication number Publication date
CN104601225A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
WO2018006789A1 (en) Parameter checking method and apparatus, and network management server and computer storage medium
CN103475682B (en) File transfer method and file transfer equipment
CN104915296A (en) Buried point testing method, data query method and device
CN105306414A (en) Port vulnerability detection method, device and system
CN106233210A (en) Dynamic and configurable production line and/or distribution line control system and for its method
CN102571492A (en) Method and device for detecting failure of routing equipment
CN105897911A (en) File downloading method and device and user terminal
US11018797B2 (en) Fiber optic light intensity encryption
CN107104782A (en) Data transmission method and device
CN109471706A (en) A kind of response method and system of testing test
CN107846449A (en) Method, apparatus, readable storage medium storing program for executing and the equipment of calling system instrument
CN104601225B (en) Wave length detection method and device
CN104579548B (en) Transmission method and device based on management data input and output multi-source agreement
CN112600703B (en) Network equipment remote access fault positioning method and device
CN114168159A (en) Intelligent contract deployment method, transaction method and device and electronic equipment
CN102801686A (en) Equipment control method, main equipment, secondary equipment as well as main-secondary equipment group
CN105988949A (en) Terminal equipment and data interactive processing method and system
CN104869062A (en) Data packet forwarding method and device
CN101272211B (en) Service cross software test method and system
CN106470070B (en) The method and apparatus for detecting link state
JP6598989B2 (en) Pilot setting method and apparatus
CN112436983B (en) Analog wide area network data transmission method and device, electronic equipment and storage medium
CN103067053A (en) Method and device for Bluetooth node processing
CN110224950A (en) Stacking system detection system, method, apparatus and computer readable storage medium
CN102932376B (en) File transfer system 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
GR01 Patent grant
GR01 Patent grant