text: fig2 shows an exemplary timeslot allocation for traffic to receiver k , while fig3 shows a wavelength usage example . the preferred embodiment is for a network switch that enables a single receiver to accept signals from multiple transmitters , and one transmitter to send signal to multiple receivers , both in tdm ( time - division multiplexing ) mode . a transmitter and receiver ( or called transceiver ) is called a port of the network switch . for the illustration in fig3 , nodes 302 . a through 302 . f are wavelength switching nodes ; 304 . a through 304 . d are the network switching ports which are the focus of the preferred embodiment . the interconnection , either between two switching nodes , or between a network switching port and the optical switching node , are optical paths . the preferred embodiment divides the receiver bandwidth into pre - configured time slots , and assigns the time slots to the connected transmitters . each transmitter is only allowed to transmit to the particular receiver at its assigned time slot . the time slots are allocated based on bandwidth usage policy and / or traffic load , plus network - wide or receiver &# 39 ; s optimization result . this idea is shown in fig2 . for receiver k , it has 3 allocated time slots 202 , 204 , and 206 , which is assigned to transmitter # a , # b , and # c respectively . these transmitters can only transmit in their corresponding time slots , like burst 212 , 214 , and 216 in fig2 . besides the assigned time slot for a transmitter to reach a receiver , there is also wavelength assignment for each receiver . the transmitter can have a tunable laser to set to the proper wavelength . in most cases , the receiver accepts fixed wavelength , especially when the receiver uses coherent detection ; but for network level flexibility and optimization purpose , there may be the needs to receive different wavelengths from each transmitter , in which case a tunable laser is needed to work as lo ( local oscillator ) in receiver side . one wavelength allocation example is shown in fig3 : node 304 . a uses wavelength 316 to transmit to and receive from node 304 . d ; 304 . b receives wavelength 312 from both 304 . a and 304 . d ; 304 . d receives wavelength 316 from 304 . a and 314 from 304 . b . the data communication happens after the path is setup , which involves both the wavelength assignment and time slot allocation . the wavelength , time slot and capacity assignment can be handled by a centralized controller , for example the software - defined networks ( sdn ) controller . bandwidth assignment can be based on service agreement , or based on traffic demand . fig4 shows an exemplary illustration for the transmitter of a network switching port . the network switch port by function is the integration of traditional transponder ( for example , for 100 ge or otn - 4 interface to enable long - haul optical transmission ) and electrical switching / multiplexing interface , where the electrical switching / multiplexing part has its queue management module , to buffer the packet / data in different queues according to their destination ( and qos if to support different service level ). a transmitter uses its allocated time slot ( and with corresponding wavelength if applicable ) to send data to a receiver . the network switching port can be the line card and interface of an electrical switch , or a system that interfaces with another standalone switch . in fig4 . 402 is the queue management module , to organize the received packets or frames in their corresponding buffer based on their destination and service type , for example queue 412 through queue 418 ; 404 is the controller that is responsible for wavelength / time - slot allocation and / or reaction , plus packets read out control ( via path 422 ) and optical transmission control ( like laser tuning , power controlling , through path 424 ); 406 is the optical transmitter that modulates the packet or frame burst into the allocated wavelength and time slot . path 430 is the packet or frame input interface which is either from another equipment interface ( like otn or ethernet ), or from the backplane of an electrical switch . path 432 is data interface from queue management module readout to optical transmitter , for data transmission . 404 uses logical path 428 ( for example , by sharing the optical transceiver ) to interact with receiver and / or network controller to get information for wavelength and time slot assignment . time slot allocation is detailed next . there are three items related to time slot allocation : time offset and transmission latency estimation ; allocation of the particular time slot start / end time ; and bandwidth . next , time offset and transmission latency estimation are detailed . time offset estimation refers to the procedure to measure the time difference between a transmitter and the corresponding receiver , or the difference between the transmitter / receiver and an arbitrator . in one embodiment , transmitter and receiver nodes may use gps clock or network clock if available . under this configuration , the time offset will be small and can be ignored . fig5 shows an exemplary transmission latency illustration . transmission latency refers to the period from the time transmitter logic ( for example module 404 in fig4 ) starts to send signal ( time 502 in fig5 ) to the time it is detected by receiver logic ( time 504 in fig5 ). when a third arbitrator is used for time slot allocation , it will compensate the announced time slot using the corresponding transmission latency . in one embodiment , the receiver sends a probe message and uses the received response to estimate the time offset and / or round - trip delay . this requires a bidirectional connection , either through the same or different paths . when a port is activated for a certain receiver , its transmitter and the corresponding receiver start the estimation process . consider the network in fig3 , let the transponder ( i . e ., that network port ) 304 . b be the newly added port , and one of the ports that it will send traffic to is 304 . a . in one embodiment , 304 . a sends a pulse or a timestamp to the transmitter port . upon detection of the pulse , 304 . b sends out its response immediately . 304 . a calculates the round trip delay . this round - trip delay is considered when time slot is allocated by 302 . a and sent to 304 . b . in one embodiment , 304 . b responses with a timestamp ; 304 . a then uses the probe sending time , received timestamp , and receiving time to calculate the time offset and round trip delay , then to compensate the time slot before notifying 304 . b . time slot allocation is discussed next . three factors affect the time slot allocation : required bandwidth , receiver time slot availability , and transmitter time slot availability . wavelength availability is another factor to consider , but for wdm network with fixed ( or slow changing ) wavelength switching , it is independent of time slot allocation , though the two can be combined in case of fully dynamic and fast changing wdm network . the required bandwidth is usually configured by network operator or using control software and is known by the transmitter or receiver or both before time slot allocation happens . in one embodiment , the transmitter node ( e . g ., 302 . c in fig3 ) sends its available time slots which may include the start time and duration of each unallocated period . the receiver node ( e . g ., 302 . a in fig3 ) then allocates from the overlapping period that is available in both the transmitter and receiver itself . this procedure can also be started from receiver node and decided by transmitter node . this procedure is given in fig6 , which shows an exemplary procedure of time slot allocation , by interaction between transmitter and receiver . in one embodiment , a third arbitrator collects the available time slots information , and allocates to the connected ports . this solution enables the arbitrator to use its global knowledge to achieve network - level optimization , which increases bandwidth usage efficiency . there are two schemes for bandwidth allocation , which further affects the number of allocated time slots or time slot length . one is based on service agreement or other network policy , which is pre - set in a centralized controller or in the transmitter or receiver port ; the second is based on traffic capacity demand . for the latter case , in one embodiment , the transmitter monitors each queue length or traffic amount for each queue , and requests for modification on the allocated bandwidth based on monitoring result . wavelength selection is detailed next . for slow - changing wdm switched network , the optical connection can be treated as fixed path , which means from point a to point b , there is a path with dedicated wavelength . in such network , transmitter has a tunable laser , to select the wavelength for each time slot based on the receiver it wants to reach . each receiver can be a broadband receiver that is able to detect any wavelength . for coherent receiver case , the local oscillator shall be a tunable laser , detect a particular wavelength for each time slot . in wdm path setup phase , the wavelength assignment controller may also consider to have a fixed wavelength for all the transmitters to reach a certain receiver . each transmitter will have the same destination - to - wavelength mapping table , so that the receiver always processes the same wavelength . for a ring - type or broadcast / multicast capable optical network , or optical networks with fast tuning optical switches , the transmitter wavelength can be fixed as well , to either let the wss deliver to the proper destination , or have the receiver select the proper wavelength . turning now to conflict avoidance , during the procedure to estimate time offset and / or round - trip delay ( say using estimating message ), the transmitter may not have information about the available time slot , so it may corrupt the transmission of another port ( fig7 ) which shall be avoided . fig7 shows an exemplary illustration of estimating message confliction with data burst , while fig8 a - 8b show exemplary methods to receive response message in available time slot . in one embodiment , the receiver sends the probe message at the beginning of its available time slot . the round trip delay shall be less than the duration of the time slot , so that no other ports will be transmitting to the receiver ( fig8 a )). alternatively , the receiver may send the probe message t - second before the beginning of an available time slot , with knowledge that the round trip delay will be larger than t ( fig8 b )). this is useful when one port is newly activated . fig9 shows an exemplary frequency / subcarrier division multiplexing for interacting message and data transmission . the more flexible method is using frequency multiplexing such as ofdma ( orthogonal frequency division multiple access ), for regular data sending and time offset / round - trip delay measuring . when no measurement is in process , a transmitter is allowed to use full bandwidth in its allocated time slot . this is given in fig9 . time slot maintenance is the operation to keep the transmitter and / or receiver stay in the assigned time slot . even the transmitter is assigned a time slot , in free - run ( i . e ., transmitter and receiver ports have independent clock ; no adjustment between the two ports ) state , eventually it may have the transmission window completely out of the expected range of the receiver . the solution is to have the receiver send its time information and / or time slot adjustment command . this command sending can be using its assigned transmission slot , or using subcarrier multiplexing . the transmitter may adjust its time slot based on this information . because each transmitter may have multiple connected receivers , the time slot adjustment based on one receiver may make it overlap with the window of the other receivers . this result in the requirement of network level synchronization . time slot modification happens during normal operation , under the circumstances such as allocated bandwidth change , and the time slot shifting for more efficient bandwidth utilization . the procedure can be similar to time slot allocation mentioned above . for the case of time slot removal , which means disconnecting the pair , the sending and receiving paths to a port will be terminated at the same time . this can be done by interaction between the two ports , or by the command from a third arbitrator . the techniques described herein may be implemented in hardware , software , firmware , or any combination thereof . various features described as modules , units or components may be implemented together in an integrated logic device or separately as discrete but interoperable logic devices or other hardware devices , including optical hardware components . in some cases , various features of electronic circuitry may be implemented as one or more integrated circuit devices , such as an integrated circuit chip or chipset . if implemented in hardware , this disclosure may be directed to an apparatus such a processor or an integrated circuit device , such as an integrated circuit chip or chipset . alternatively or additionally , if implemented in software , the techniques may be realized at least in part by a computer - readable medium comprising instructions that , when executed , cause a processor to perform one or more of the methods described above . for example , the computer - readable medium may store such instructions . a computer - readable medium may form part of a computer program product , which may include packaging materials . a computer - readable medium may comprise a computer data storage medium such as random access memory ( ram ), synchronous dynamic random access memory ( sdram ), read - only memory ( rom ), non - volatile random access memory ( nvram ), electrically erasable programmable read - only memory ( eeprom ), flash memory , magnetic or optical data storage media , and the like . the techniques additionally , or alternatively , may be realized at least in part by a computer - readable communication medium that carries or communicates code in the form of instructions or data structures and that can be accessed , read , and / or executed by a computer . the code or instructions may be executed by one or more processors , such as one or more dsps , general purpose microprocessors , asics , field programmable logic arrays ( fpgas ), or other equivalent integrated or discrete logic circuitry . accordingly , the term “ processor ,” as used herein may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein . in addition , in some aspects , functionality described in this disclosure may be provided within software modules or hardware modules . the embodiment or embodiments discussed were chosen and described to provide the best illustration of the principles of the invention and its practical application to thereby enable one of ordinary skill in the art to utilize the invention in various embodiments and with various modifications as are suited to the particular use contemplated . all such modifications and variations are within the scope of the invention as determined by the appended claims when interpreted in accordance with the breadth to which they are fairly and legally entitled . various aspects have been described in this disclosure . these and other aspects are within the scope of the following claims .