WO2015184587A1 - 光分组的发送方法、设备、处理方法及光交换设备 - Google Patents

光分组的发送方法、设备、处理方法及光交换设备 Download PDF

Info

Publication number
WO2015184587A1
WO2015184587A1 PCT/CN2014/079085 CN2014079085W WO2015184587A1 WO 2015184587 A1 WO2015184587 A1 WO 2015184587A1 CN 2014079085 W CN2014079085 W CN 2014079085W WO 2015184587 A1 WO2015184587 A1 WO 2015184587A1
Authority
WO
WIPO (PCT)
Prior art keywords
optical
label
optical packet
packet payload
optical label
Prior art date
Application number
PCT/CN2014/079085
Other languages
English (en)
French (fr)
Inventor
杨小玲
王岩
马会肖
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to JP2016571143A priority Critical patent/JP6353932B2/ja
Priority to EP14893899.6A priority patent/EP3142275A4/en
Priority to PCT/CN2014/079085 priority patent/WO2015184587A1/zh
Priority to CN201480077406.8A priority patent/CN106464412B/zh
Priority to KR1020167036569A priority patent/KR102030573B1/ko
Publication of WO2015184587A1 publication Critical patent/WO2015184587A1/zh
Priority to US15/367,458 priority patent/US10149025B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J14/00Optical multiplex systems
    • H04J14/02Wavelength-division multiplex systems
    • H04J14/0201Add-and-drop multiplexing
    • H04J14/0202Arrangements therefor
    • H04J14/021Reconfigurable arrangements, e.g. reconfigurable optical add/drop multiplexers [ROADM] or tunable optical add/drop multiplexers [TOADM]
    • H04J14/0212Reconfigurable arrangements, e.g. reconfigurable optical add/drop multiplexers [ROADM] or tunable optical add/drop multiplexers [TOADM] using optical switches or wavelength selective switches [WSS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0066Provisions for optical burst or packet networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0075Arrangements for synchronising receiver with transmitter with photonic or optical means
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0077Labelling aspects, e.g. multiprotocol label switching [MPLS], G-MPLS, MPAS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0083Testing; Monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation

Definitions

  • the present invention relates to the field of optical switching technologies, and in particular, to a method, a device, a processing method, and an optical switching device for transmitting optical packets.
  • an optical label serial transmission scheme that is, an edge packet device processes an optical packet signal to be exchanged, and transmits an optical label and an optical packet payload to the optical source in a serial manner.
  • Switching equipment Please refer to FIG. 1 , which is a timing diagram of serial transmission of optical tags in the prior art. As shown in the figure, the optical tags are separated from the corresponding optical packet loads in time, and the optical tags are sent first, and then the corresponding lights are transmitted. Packet load, and a certain time interval is reserved between the optical label and the transmitted optical packet payload. The time interval is called the protection duration. The protection duration needs to be greater than or equal to the optical switching device receiving the optical label, generating the control signal, and establishing the transmission optical packet. The time required for the optical link of the load.
  • the protection duration takes hundreds of nanoseconds.
  • the optical switching device needs to run a complex algorithm to establish an optical link, it takes a longer protection period.
  • the link between the edge device and the optical switching device is not Any valid data will be transmitted, resulting in wasted link resources and low utilization of link resources.
  • the embodiments of the present invention provide a method, a device, a processing method, and an optical switching device for transmitting an optical packet, which can improve the utilization rate of a transmission link that improves optical tags and optical packet payloads.
  • an embodiment of the present invention provides a device for sending an optical packet, including: a processor, configured to obtain a first optical packet payload and/or a third optical label, and obtain a second optical label and a second optical packet load corresponding to the second optical label;
  • an output unit configured to send the third optical label and/or the obtained by the processor to the optical switching device during a protection duration between sending the second optical label and transmitting the second optical packet payload Determining a first optical packet load, so that the optical switching device performs an exchange process of a third optical packet load corresponding to the third optical label according to the third optical label, and/or, in order to facilitate the optical switching
  • the device performs the exchange processing of the first optical packet load according to the first optical label corresponding to the first optical packet payload;
  • the second optical label is sent first, and the second optical packet is sent after being loaded; the first optical packet payload is light corresponding to the first optical label that has been sent before the second optical label is sent.
  • a packet load, the third optical tag being an optical tag corresponding to a third optical packet load after the second optical packet load.
  • the processor specifically includes: a first converter, configured to receive an input first optical signal, and perform photoelectric conversion processing on the first optical signal, to Obtaining an electrical signal;
  • a parser configured to perform parsing processing on the electrical signal obtained by the first converter to obtain routing information of a first data frame and/or a third data frame, and obtain a second data frame and a second data frame Routing information;
  • a first generator configured to generate the third optical label according to routing information of the third data frame obtained by the parser, and/or a second generator, configured to obtain according to the parser Generating the first optical packet payload by the first data frame;
  • the first generator is further configured to generate the second optical label according to the routing information of the second data frame obtained by the parser;
  • the second generator is further configured to generate the second optical packet payload according to the second data frame obtained by the parser.
  • the output device includes: a scheduler, a sub-output device, and a second converter; ,
  • the scheduler is configured to monitor the first generator to obtain a generated state of the third optical tag, and/or to monitor the second generator to obtain the first light a generation state of the packet payload; the generation state includes or has not been generated;
  • the scheduler is further configured to: after the sending the second optical label, determine the protection duration according to the generated state of the first optical packet payload and/or the generated state of the first optical label, a first transmission time of the first optical packet payload and/or a third transmission timing of the third optical label;
  • the scheduler is further configured to: after sending the second optical label, start a preset timer, where the timer starts timing;
  • the scheduler is further configured to: when the timer reaches the first sending moment, generate a first control indication; and/or, further, when the timer reaches the third sending moment, generate Third control indication;
  • the sub-outputter configured to send the first optical packet payload to a second converter according to the first control indication generated by the scheduler, and/or for generating according to the scheduler a third control indication, sending the third optical label to the second converter;
  • the second converter is configured to perform electro-optical conversion processing on the third optical tag and/or the first optical packet payload sent by the sub-output device to obtain a corresponding second optical signal, and
  • the optical switching device transmits the second optical signal.
  • the output device includes: a scheduler and a second converter;
  • the scheduler is configured to monitor the first generator to obtain a generated state of the third optical tag, and/or to monitor the second generator to obtain the first light a generation state of the packet payload; the generation state includes or has not been generated;
  • the scheduler is further configured to: after the second optical label is sent, determine the protection duration according to the generated state of the first optical packet payload and/or the generated state of the third optical label, a first transmission time of the first optical packet payload and/or a third transmission timing of the third optical label;
  • the scheduler is further configured to: after sending the second optical label, start a preset timer, where the timer starts timing;
  • the scheduler is further configured to: when the timer reaches the first sending moment, generate a first control indication; and/or, further, when the timer reaches the third sending moment, generate Third control indication;
  • the first generator is further configured to send the third optical label to the second converter according to the three control indications generated by the scheduler, and/or the second generator, further And transmitting, according to the first control indication generated by the scheduler, the first optical packet payload to the second converter;
  • the second converter is further configured to perform an electro-optical conversion process on the third optical tag sent by the first generator and/or the first optical packet payload sent by the second generator to obtain Corresponding second optical signal, and transmitting the second optical signal to the optical switching device.
  • the scheduler is specifically used In:
  • the first generator is specifically configured to:
  • the first optical label includes an optical label delimiter, a destination port information, a priority information, and length information.
  • the optical label delimiter is used to indicate a start position of the first optical label, and the destination port information is used.
  • the priority information is used to indicate a priority of the first optical packet payload corresponding to the first optical label, where the length information is used to indicate a destination port of the first optical packet payload corresponding to the first optical label, where the length information is used to indicate a priority of the first optical packet payload corresponding to the first optical label, where the length information is used. Indicates the length of the first optical tag.
  • the second generator is specifically configured to:
  • the first optical packet payload includes a terminator, the data frame, an initiator, and a preamble
  • the end character is used to indicate a start position of the data frame
  • the start character is used to indicate an end position of the data frame
  • the preamble is used by a receiving device to perform clock synchronization processing according to the preamble To accurately receive the data frame.
  • the second aspect of the present invention further provides an optical switching device, including:
  • a controller a third optical label and/or a first optical packet payload sent by the sending device for receiving the optical packet, within a protection duration between sending the second optical label and transmitting the corresponding second optical packet payload;
  • the second optical label is sent first, and the second optical packet is sent after being loaded;
  • the first optical packet payload is an optical packet payload corresponding to the first optical label that has been sent before the second optical label is sent.
  • the third optical tag is an optical tag corresponding to the third optical packet load after the second optical packet load;
  • the controller obtains corresponding third control information according to the third optical label, where the third control information is used by the optical switch matrix to perform the third according to the third control information obtained by the controller.
  • the controller is specifically configured to: obtain corresponding third control information according to the third optical label, and send the optical switch to the optical switch according to a preset first duration Transmitting, by the matrix, the third control information;
  • the optical switch matrix is specifically configured to: establish, according to the third control information sent by the controller, an optical link that transmits a third optical packet payload, and after obtaining the third optical packet payload, by using the The optical link performs an exchange process of the third optical packet load corresponding to the third optical label.
  • the controller is specifically configured to: obtain corresponding third control information according to the third optical label, and send the third control information to the optical switch matrix according to a preset first duration;
  • the optical switch matrix is specifically configured to: establish, according to the third control information sent by the controller, an optical link that transmits a third optical packet payload, and after obtaining the third optical packet payload, by using the The optical link performs an exchange process of the third optical packet load corresponding to the third optical label.
  • the controller sends the third control to the optical switch matrix according to a preset first duration
  • the information specifically includes: after obtaining the third control information, starting a timer, the timer starts counting; when the timer reaches the first duration, sending the third control information to the optical switch matrix .
  • the third optical label includes length information
  • the controller is configured according to the preset first duration
  • the sending the third control information by the optical switch matrix specifically includes:
  • an embodiment of the present invention provides a method for transmitting an optical packet, including: obtaining a first optical packet payload and/or a third optical label;
  • the optical switching device performs an exchange process of the third optical packet load corresponding to the third optical label according to the third optical label, and/or, so that the optical switching device corresponds to the first optical packet payload.
  • a first optical label performing an exchange process of the first optical packet load
  • the second optical label is sent first, and the second optical packet is sent after being loaded; the first optical packet payload is light corresponding to the first optical label that has been sent before the second optical label is sent.
  • a packet load, the third optical tag being an optical tag corresponding to a third optical packet load after the second optical packet load.
  • the obtaining, by the optical switching device, the obtained the first time in a protection duration between sending the second optical label and transmitting the second optical packet payload includes:
  • the generated state includes whether it has been generated or not generated
  • the second optical label After the second optical label is sent, determining, according to the generated state of the first optical packet payload and/or the generated state of the first optical label, the first time of the first optical packet load a transmission time and/or a third transmission time of the third optical tag;
  • a preset timer is started, and the timer starts counting; And when the timer reaches the first sending moment, performing electro-optical conversion processing on the first optical packet load to obtain a corresponding second optical signal; and/or, when the timer reaches the third When the time is transmitted, the third optical tag performs an electro-optical conversion process to obtain a corresponding second optical signal;
  • the generating state according to the first optical packet load and/or the first optical label The generating state, determining the first sending time of the first optical packet load and/or the third sending time of the third optical label, including:
  • the embodiment of the present invention further provides a method for processing an optical packet, including: sending, by a sending device that receives an optical packet, a protection duration between sending a second optical label and transmitting a corresponding second optical packet payload, sending The third optical label and/or the first optical packet payload; wherein the second optical label is sent first, and the second optical packet is sent after the load; the first optical packet load is sent by the second optical The optical packet corresponding to the first optical label that has been sent before the label, the third optical label is the optical label corresponding to the third optical packet load after the second optical packet load; and obtained according to the third optical label Corresponding third control information; according to the third control And performing, according to the first control information, an exchange process of the third optical packet payload, where the first control information is exchanged; and/or, according to the first control information, the first control information Obtained according to the first optical label.
  • the performing, by the third control information, the exchange processing of the third optical packet load corresponding to the third optical label including: according to a preset Establishing, by the first duration and the third control information, an optical link for transmitting a third optical packet payload;
  • the performing the processing of the first optical packet load according to the first control information includes:
  • the third optical label includes length information, and the first duration and the first The third control information establishes an optical link for transmitting the third optical packet payload, including:
  • the length information is less than or equal to the length threshold, establishing, according to the third control information, an optical link that transmits a third optical packet payload; If the length information is greater than the length threshold, after obtaining the third control information, start a timer, so that the timer starts timing, and when the timer reaches the first duration, according to the The third control information is set up to establish an optical link for transmitting the third optical packet payload.
  • the foregoing technical solution is capable of transmitting, during a protection time of transmitting the optical label and transmitting the corresponding optical packet payload.
  • Other optical tags and/or other optical packet payloads, other optical packet payloads are optical packet payloads corresponding to other optical labels that have been sent before the optical label is sent, and other optical labels are light corresponding to other optical packet payloads after the optical packet payload.
  • the label can be used to establish a corresponding optical link according to the optical label that is transmitted in advance. Therefore, the waste of link resources between the edge device and the optical switching device in the protection duration is reduced, and the utilization of link resources is improved.
  • FIG. 2 is a functional block diagram of a transmission system for an optical packet according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an optical label format provided by an embodiment of the present invention
  • FIG. 5 is a schematic diagram of an optical packet payload format according to an embodiment of the present invention
  • FIG. Figure 7 is a functional block diagram of an optical switching device according to an embodiment of the present invention
  • Figure 8 is a schematic structural diagram of an optical switching device according to an embodiment of the present invention
  • Figure 10 is a light tag and optical package provided by an embodiment of the present invention. Schematic diagram of the transmission timing of the load;
  • FIG. 11 is a first schematic diagram of a transmission sequence of an optical label and an optical packet load when n is equal to 1 according to an embodiment of the present invention
  • FIG. 13 is a second schematic diagram of a transmission timing of an optical label and an optical packet load when n is equal to 1 according to an embodiment of the present invention
  • FIG. 14 is a third schematic diagram of a transmission timing of an optical tag and an optical packet load according to an embodiment of the present invention.
  • 15 is a fourth schematic diagram of a transmission timing of an optical tag and an optical packet load according to an embodiment of the present invention.
  • 16 is a fifth schematic diagram of a transmission timing of an optical tag and an optical packet load according to an embodiment of the present invention.
  • FIG. 17 is a sixth schematic diagram of a transmission sequence of an optical label and an optical packet load according to an embodiment of the present invention.
  • first, second, third, etc. may be used to describe various durations, optical labels, and optical packet loads in embodiments of the present invention, these durations, optical labels, and optical envelope loads should not be limited to these terms. These terms are only used to distinguish between duration, optical label, and optical packet load.
  • the first optical tag may also be referred to as a second optical tag without departing from the scope of the embodiments of the present invention.
  • the second optical tag may also be referred to as a first optical tag.
  • the word “if” as used herein may be interpreted as “at time” or “when” or “in response to determination” or “in response to detection”.
  • the phrase “if determined” or “if detected (conditions or events stated)” can be interpreted as “when determined” or “in response to determination” or “when detected (stated condition or event) When “or” is in response to a test (stated condition or event).
  • the transmission system of the optical packet includes a transmitting device of an optical packet, an optical switching device, and a receiving device of an optical packet.
  • the transmitting device of the optical packet and the receiving of the optical packet The device is located between the user side device and the optical switching device, or the transmitting device of the optical packet and the receiving device of the optical packet are integrated in the user side device, and the user side device may be a server or a machine rejecting the top device, etc., each user side.
  • the device sends an optical label and/or an optical packet payload to the transmitting device and the optical sub-device of the optical group.
  • the optical packet is processed by the optical switching device and sent to the receiving device of the optical packet corresponding to the other user-side device.
  • the optical packet transmission technique divides the transmitted optical data into a number of optical packets.
  • a packet header is included in each optical packet, and the packet header is an optical label in the embodiment of the present invention.
  • the portion of the optical packet other than the packet header is the optical packet payload in the embodiment of the present invention, and the packet header is used to indicate The destination port to which the packet is sent, and then the optical switching device forwards the packet to the destination port according to the packet header of each packet. This process is called optical packet switching.
  • Block diagram As shown in the figure, the transmitting device of the optical packet includes:
  • the processor 30 is configured to obtain a first optical packet payload and/or a third optical label, and obtain a second optical label and a second optical packet load corresponding to the second optical label;
  • the output unit 31 is configured to send the third optical label obtained by the processor 30 to the optical switching device during a protection duration between sending the second optical label and transmitting the second optical packet payload Or the first optical packet load, so that the optical switching device performs an exchange process of the third optical packet load corresponding to the third optical label according to the third optical label, and/or, in order to facilitate the The optical switching device performs the exchange processing of the first optical packet load according to the first optical label corresponding to the first optical packet payload;
  • the second optical label is sent first, and the second optical packet is sent after being sent; the first optical packet payload is opposite to the first optical label that has been sent before the second optical label is sent.
  • the optical packet load is the optical label corresponding to the third optical packet load after the second optical packet load.
  • the processor 30 further includes a first converter 301, a parser 302, a first generator 303, and a second generator 304.
  • the outputter 31 further includes a scheduler 31 1 , a sub-outputter 312 and a second converter 313 ; or the outputter 31 further includes a scheduler 31 1 and a second converter 313 .
  • the first converter 301 is configured to receive the input first optical signal, and perform photoelectric conversion processing on the first optical signal to obtain an electrical signal. Specifically, the first converter 301 receives the first optical signal sent by the user side device by using the optical medium between the user side device, and then performs photoelectric conversion processing on the first optical signal to obtain a corresponding electrical signal. The obtained electrical signal is then sent to the parser 302.
  • the parser 302 is configured to perform parsing processing on the electrical signal obtained by the first converter 301 to obtain routing information of the first data frame and/or the third data frame, and obtain the second data frame and the second data frame Routing information for data frames.
  • the parser 302 receives the electrical signal sent by the first converter 301, parses the electrical signal, obtains routing information of the first data frame and/or the third data frame, and obtains the second data frame and Routing information of the second data frame.
  • the obtained routing information of the third data frame is used to generate a third optical label; the routing information of the third data frame may include a destination port address and length information.
  • the parser 302 may further cache the routing information of the data frame and the data frame obtained after the parsing, and the parser 302 may separately send the routing information and the data frame of the data frame under the control of the scheduler 31 1 . Giving the first generator 303 and the second generator 304 to trigger the first The generator 303 generates a third optical tag and/or the second generator 304 generates a first optical packet payload, and the first generator 303 generates a second optical tag, and the second generator 304 generates a second optical packet payload.
  • Ethernet packet is parsed to obtain the media access control.
  • MAC Medium/Media Access Control
  • a first generator 303 configured to generate the third optical label according to routing information of the third data frame obtained by the parser 302, and/or a second generator 303, configured to use the parser according to the parser
  • the first data frame obtained by the 302 generates the first optical packet payload; and is further configured to generate the second optical label according to the routing information of the second data frame obtained by the parser.
  • the routing information of the data frame is used by the controller of the optical switching device to generate control information to control the optical switch matrix of the optical switching device to establish an optical link.
  • the first generator 303 receives the routing information of the third data frame sent by the parser 302, and generates a third optical label according to the routing information of the third data frame and the preset optical label format.
  • FIG. 4 is a schematic diagram of an optical label format provided by an embodiment of the present invention.
  • the generated third optical label may include an optical label delimiter, destination port information, and length information. information.
  • the first generator 303 can generate the destination port information shown in FIG. 4 according to the received destination port address, and generate the length information shown in FIG. 4 according to the received length information.
  • the optical label delimiter is used to indicate a start position of the third optical label
  • the destination port information is used to indicate a destination port of the third optical packet payload corresponding to the third optical label, where the length information is used.
  • the optical switching device can complete the scheduling operation of the third optical packet load exchange according to the destination port information, indicating the length of the third optical packet payload corresponding to the third optical label.
  • the length of the third optical label is fixed, and the transmission time of the third optical label is assumed in the embodiment of the present invention. For t tabel .
  • the first generator 303 may further cache the generated third optical label, so that under the control of the scheduler 31 1 , the first generator 303 may send to the sub-output 312, and the sub-output 312
  • the second generator 313 is sent to the second converter 313; or, under the control of the scheduler 31 1 , the first generator 303 can be directly sent to the second converter 313.
  • a second generator 304 configured to generate the first optical packet payload according to the first data frame obtained by the parser; and configured to generate the first data frame according to the second data frame obtained by the parser Two optical packet load.
  • the second generator 304 receives the first data frame sent by the parser 302, and generates the first optical packet payload according to the first data frame and a preset optical packet payload format.
  • FIG. 5 is a schematic diagram of an optical packet payload format according to an embodiment of the present invention.
  • the generated first optical packet payload may include a terminator, a data frame, an initiator, and a preamble.
  • the second generator 304 takes the received data frame as the MAC frame shown in FIG. 5, and adds the start character, the terminator, and the preamble.
  • the terminator is used to indicate a start position of the data frame
  • the start code is used to indicate an end position of the data frame.
  • the preamble is used by a receiving device to perform clock synchronization processing according to the preamble. To accurately receive the data frame. It should be noted that when the first optical packet payload is received by the receiving device of the optical packet, the receiving device needs to perform clock synchronization according to the preamble and prepare to receive the actual data frame.
  • the exchanged optical packet load from different optical packet sources, and through different switching paths, makes the signal amplitude and phase between the received optical packet loads different, and the clocks of different optical packet sources also have Therefore, the receiving device needs to lock the clock phase and recover the decision threshold for each optical packet payload. Before the locking and recovery, the data cannot be correctly received, that is, the locking and recovery require a certain overhead, and the preamble is used as the preamble.
  • the second generator 304 may further perform scrambling processing on the generated first optical packet payload to ensure stability and accuracy of the first optical packet payload during transmission.
  • the outputter 31 is specifically configured to:
  • the scheduler 31 1 is configured to monitor the first generator 303, obtain a generation status of the third optical label, and/or, and monitor the second generator 304 to obtain the first a generation state of an optical packet load; the generation state includes or has not been generated.
  • the scheduler 31 1 is further configured to: after transmitting the second optical label, determine the protection duration according to the generated state of the first optical packet payload and/or the generated state of the first optical label, a first transmission time of the first optical packet payload and/or a third transmission timing of the third optical label.
  • the scheduler 31 1 is further configured to: after sending the second optical label, turn on a preset timer, and the timer starts timing.
  • the scheduler 31 1 is further configured to: when the timer reaches the first sending moment, generate a first control indication; and/or, further, when the timer reaches the third sending moment , generating a third control indication.
  • the preset timer is started, so that the timer starts timing.
  • the timer reaches a preset first duration, determining a first sending moment that reaches the first optical packet load, generating a first control indication of the first optical packet payload, and indicating the first control
  • the sub-output 312 is sent to the sub-output 312 to cause the sub-output 312 to output a first optical packet load to the second converter 313.
  • the sub-outputter 312 is configured to send the first optical packet payload to the second converter 313 according to the first control indication generated by the scheduler 31 1 , and/or for using the scheduler according to the scheduler
  • the third control indication generated by 31 1 transmits the third optical tag to the second converter 313.
  • the sub-outputter 312 can multiplex the third optical tag and the first optical packet payload on one transmission link in a time division multiplexing manner, and the sub-outputter 312 and the first generator 303 and the second generation.
  • the routers 304 are respectively connected to each other, and may select to send the first optical label provided by the first generator 303 to the second converter 313, or may select to send the first optical packet payload provided by the second generator 304 to the second converter 313.
  • the sub-outputter 312, after receiving the control instruction of the scheduler 31 1 selects whether to transmit the third optical tag or the first optical packet payload to the second converter 313 according to the control indication.
  • the second converter 313 is configured to send the third light to the sub-outputter 312
  • the tag and/or the first optical packet payload are subjected to an electro-optical conversion process to obtain a corresponding second optical signal, and the second optical signal is transmitted to the optical switching device.
  • the second converter 313 receives the third optical tag and/or the first optical packet payload sent by the outputter 312, and then performs the electro-optical conversion processing on the third optical tag and/or the first optical packet payload, so that The tri-optical tag and/or the first optical packet payload is converted into a corresponding optical signal, and finally the obtained optical signal is transmitted to the optical switching device through the optical medium between the second converter 313 and the optical switching device.
  • the outputter 31 further includes a scheduler 31 1 and a second converter 313, the outputter 31 is specifically configured to:
  • the scheduler 31 1 is configured to monitor the first generator 303 to obtain a generated state of the third optical tag, and/or to monitor the second generator 304 to obtain A generation state of the first optical packet load; the generated state includes or has not been generated.
  • the scheduler 31 1 is further configured to: after transmitting the second optical label, determine the protection duration according to the generated state of the first optical packet payload and/or the generated state of the third optical label, a first transmission time of the first optical packet payload and/or a third transmission timing of the third optical label.
  • the scheduler 31 1 is further configured to: after sending the second optical label, turn on a preset timer, and the timer starts timing.
  • the scheduler 31 1 is further configured to: when the timer reaches the first sending moment, generate a first control indication; and/or, further, when the timer reaches the third sending moment , generating a third control indication.
  • the preset meter is started. a timer to cause the timer to start timing. When the timer reaches a preset first duration, determining a first sending moment that reaches the first optical packet payload, generating a first control indication of the first optical packet payload, and sending the first control indication
  • the second generator 304 is given to cause the second generator 304 to output a first optical packet load to the second converter 313.
  • the scheduler 31 1 can schedule the protection time between the second optical tag and the corresponding second optical packet payload, and let the first generator 303 and/or the second generator 304 output the first time according to a certain timing.
  • the second generator 304 is a device for generating all optical packet loads in the present invention in the transmitting device of the optical packet, and therefore, the second optical tag is generated by the first generator 303, The two-beam payload is generated by the second generator 304.
  • the first generator 303 is further configured to send the third optical label to the second converter 313 according to the three control indications generated by the scheduler 31 1
  • the second generator 304 is further configured to send the first optical packet payload to the second converter 313 according to the first control indication generated by the scheduler 31 1 .
  • the first generator 303 and the second generator 304 are respectively connected to the second converter 313.
  • the first generator 303 buffers the third optical tag
  • the second generator 304 buffers the first optical packet payload
  • the first control indication sent by the scheduler 31 1 is received
  • the cached first An optical packet payload is sent to the second converter 313.
  • the second converter 313 is further configured to perform electro-optical conversion processing on the third optical tag sent by the first generator 303 and/or the first optical packet payload sent by the second generator 304. Obtaining a corresponding second optical signal, and transmitting the second optical signal to the optical switching device.
  • the second converter 313 receives the third optical tag sent by the first generator 303, and/or receives the first optical packet payload sent by the second generator 304; then the second converter 313 sets the third optical tag. And/or the first optical packet load is subjected to an electro-optical conversion process, so that the third optical tag and/or the first optical packet load can be converted into a corresponding optical signal; the second converter 313 passes through the second converter 313 and the optical switching device Between the optical medium, the obtained optical signal is sent to the optical switching device.
  • the first converter 301 and the second converter 313 may be implemented by using a transceiver.
  • the parser 302, the first generator 303, the second generator 304, the scheduler 313, and the sub-outputter 312 respectively It can be realized by Field Programmable Gate Array (FPGA) chip or Application Specific Integrated Circuits (ASIC), but the program on the chip or ASIC can make the chip or integrated circuit have different functions. . schematic diagram. As shown in the figure, the transmitting device of the optical packet includes: a memory 601, configured to store information including a program routine;
  • the processor 602 is coupled to the memory 601 and the transmitter 603, and is configured to control execution of the program routine, specifically: obtaining a first optical packet payload and/or a third optical label, and obtaining a second optical label and a second optical packet load corresponding to the second optical label;
  • the transmitter 603 is configured to send the third optical label obtained by the processor 30 to the optical switching device during a protection duration between sending the second optical label and transmitting the second optical packet payload. Or the first optical packet load, so that the optical switching device performs an exchange process of the third optical packet load corresponding to the third optical label according to the third optical label, and/or, in order to facilitate the The optical switching device performs the exchange processing of the first optical packet load according to the first optical label corresponding to the first optical packet payload;
  • the second optical label is sent first, and the second optical packet is sent after being loaded; the first optical packet payload is light corresponding to the first optical label that has been sent before the second optical label is sent.
  • a packet load, the third optical tag being an optical tag corresponding to a third optical packet load after the second optical packet load.
  • FIG. 7 is a functional block diagram of an optical switching device according to an embodiment of the present invention.
  • the optical switching device includes:
  • the controller 701 is configured to: send, by the sending device that receives the optical packet, a third optical label and/or a first optical packet payload within a protection duration between sending the second optical label and transmitting the corresponding second optical packet payload;
  • the second optical label is sent first, and the second optical packet is sent after being loaded;
  • the first optical packet payload is an optical packet payload corresponding to the first optical label that has been sent before the second optical label is sent,
  • the third optical tag is an optical tag corresponding to a third optical packet load after the second optical packet load;
  • the controller 701 obtains corresponding third control information according to the third optical label,
  • the third control information is used by the optical switch matrix 702 to perform the exchange processing of the third optical packet load corresponding to the third optical label according to the third control information obtained by the controller 701; and/or
  • the optical switch matrix 702 is configured to perform, according to the first control information, an exchange process of the first optical packet load, where the first control information is obtained by the controller according to the first optical label.
  • the controller 701 is configured to: obtain corresponding third control information according to the third optical label, and send the third control information to the optical switch matrix according to a preset first duration;
  • the optical switch matrix 702 is specifically configured to: establish, according to the third control information sent by the controller, an optical link that transmits a third optical packet payload, and after obtaining the third optical packet payload, pass the The optical link performs an exchange process of the third optical packet payload corresponding to the third optical label.
  • the sending, by the controller 701, the first control information to the optical switch matrix 702 according to the preset first duration includes: after obtaining the third control information, starting a timer, where the timer starts timing; When the timer reaches the first duration, the third control information is sent to the optical switch matrix 702.
  • the optical splitter extracts the third optical label in the optical packet, and then provides the third optical label to the controller 701, so that the controller 701 can send the optical packet to the sending device.
  • the third optical label and extracts the destination port information and the length information from the third optical label, and then performs path calculation according to the destination port information to obtain corresponding third control information.
  • the controller 701 may perform collision detection according to the destination port information, and calculate an optical link that transmits the third optical packet payload corresponding to the third optical label according to the detection result.
  • the controller 701 After obtaining the first control information, the controller 701 starts a timer to cause the timer to start timing; when the timer reaches a preset first duration, the controller 701 sends the optical switch matrix 702 to the optical switch matrix 702. The first control information. In this way, the optical switch matrix 702 can establish an optical link between the source port and the destination port of the first optical packet payload according to the first control information.
  • the controller 701 may further control the optical switch matrix 702 according to the length information, so that the optical switch matrix 702 can maintain the optical link according to the control of the controller 701. That is, it is determined the time that needs to be maintained after the optical link is established. Additionally, other information in the third optical tag can be used by controller 701 for collision detection.
  • the third optical label includes the length information
  • the sending, by the controller 701, the third control information to the optical switch matrix according to the preset first duration includes: comparing the previous light of the third optical label The length information included in the label and the preset length threshold; if the length information is less than or equal to the length threshold, the third control information is sent to the optical switch matrix 702; if the length information is greater than the length a threshold value, after the third control information is obtained, a timer is started to cause the timer to start timing, and when the timer reaches a preset second duration, the optical switch matrix 702 is sent The third control information is described.
  • the controller 701 compares the length information included in the previous optical label with a preset length threshold, and if the length information is less than or equal to the length threshold, the The third control information is sent to the optical switch matrix 702; if the length information is greater than the length threshold, after obtaining the third control information, a timer is started, so that the timer starts timing, when When the timer reaches the preset second duration, the third control information is sent to the optical switch matrix 702, so that the optical switch matrix 702 establishes the third light between the source port and the destination port according to the third control information.
  • Package The optical link of the load.
  • the first optical packet payload enters the receiving device of the optical packet after being transmitted by the optical link, and the receiving device of the optical packet performs processing such as burst reception, data frame recovery, and data frame transmission on the first optical packet payload.
  • the burst receiving process refers to converting the received first optical packet payload into an electrical signal, and obtaining a data frame according to the start and end characters in the first optical packet payload, and then converting the data frame.
  • the frame format that can be recognized by the destination device is then sent to the destination device; for example, the destination device can be an Ethernet device.
  • FIG. 8 is a schematic structural diagram of an optical switching device according to an embodiment of the present invention. As shown, the optical switching device includes:
  • the second optical label is sent first, and the second optical packet is sent after being loaded;
  • the first optical packet payload is an optical packet payload corresponding to the first optical label that has been sent before the second optical label is sent,
  • the third optical tag is an optical tag corresponding to the third optical packet load after the second optical packet load;
  • a memory 802 configured to store information including a program routine
  • the processor 803 is coupled to the memory 802 and the receiver 801 respectively for controlling the execution of the program routine, and the method includes: obtaining, according to the third optical label, corresponding third control information, according to the third control information. And performing an exchange process of the third optical packet payload corresponding to the third optical label; and/or performing, according to the first control information, an exchange processing of the first optical packet payload, where the first control information is The controller is obtained according to the first optical tag.
  • Embodiments of the present invention further provide a method implementation for implementing each unit in the foregoing device embodiment. example.
  • FIG. 9 is a schematic flowchart of a method for sending an optical packet according to an embodiment of the present invention. As shown in FIG. 9, the method includes the following steps:
  • Step 901 The transmitting device of the optical packet obtains the first optical packet payload and/or the third optical label; and obtains the second optical label and the second optical packet payload corresponding to the second optical label. Receiving a first optical signal, and performing photoelectric conversion processing on the first optical signal to obtain a corresponding electrical signal.
  • the transmitting device of the optical packet performs parsing processing on the obtained electrical signal to obtain routing information of the first data frame and/or the third data frame, and obtain routing information of the second data frame and the second data frame.
  • the routing information of the third data frame is used to generate a third optical label, where the first data frame is used to generate a first optical packet payload.
  • the second data frame is used to generate a second optical packet payload, and the routing information of the second data frame is used to generate a second optical label.
  • the routing information of the data frame may include a destination port address and length information.
  • the sending device of the optical packet may further cache the routing information of the data frame and the data frame obtained after parsing.
  • the transmitting device of the optical packet generates the third optical label according to the obtained routing information of the third data frame, and/or the transmitting device of the optical packet generates the first according to the obtained first data frame.
  • Optical packet load
  • the transmitting device of the optical packet generates the second optical label according to the obtained routing information of the second data frame, and the transmitting device of the optical packet generates the second optical packet payload according to the obtained second data frame.
  • the third optical label is used by the optical switching device to generate third control information to control the optical switch matrix to establish an optical link.
  • the transmitting device of the optical packet generates a third optical label according to the routing information of the third data frame and the preset optical label format.
  • FIG. 4 is a schematic diagram of an optical label format provided by an embodiment of the present invention.
  • the generated third optical label may include an optical label delimiter, destination port information, and length information. information.
  • the transmitting device of the optical packet obtains the destination port information shown in FIG.
  • the optical switching device may complete the scheduling operation of the third optical packet payload exchange according to the destination port information.
  • the length of the third optical tag is fixed.
  • the transmission time of the third optical tag is t tabe i.
  • the sending device of the optical packet may further cache the generated third optical label.
  • the transmitting device of the optical packet generates the first optical packet payload according to the data frame and the preset optical packet payload format.
  • FIG. 5 is a schematic diagram of an optical packet payload format according to an embodiment of the present invention.
  • the generated first optical packet payload may include a terminator, a data frame, an initiator, and a preamble.
  • the transmitting device of the optical packet uses the data frame as the data frame shown in FIG. 5, and sets the start character, the terminator, and the preamble.
  • the terminator and the start character respectively indicate a start position and an end position of the data frame.
  • the receiving device When the first optical packet payload is received by the receiving device of the optical signal, the receiving device needs to perform clock synchronization and preparation according to the preamble. Receiving an actual data frame; for example, adjusting a clock according to a preamble, etc., so as to be able to correctly receive data; optionally, the optical packet transmitting device can also load the generated first optical packet into Line scrambling processing is used to ensure the stability and accuracy of the first optical packet load during transmission. Step 902: The transmitting device of the optical packet sends the obtained third optical label and/or the obtained optical switching device to the optical switching device within a protection duration between the sending of the second optical label and the sending of the second optical packet payload.
  • the optical switching device performs an exchange process of a third optical packet load corresponding to the third optical label according to the third optical label, and/or, in order to facilitate the optical switching device Performing the first optical packet load exchange process according to the first optical label corresponding to the first optical packet payload; wherein the second optical label is sent first, and the second optical packet is sent after being sent;
  • the optical packet payload is an optical packet payload corresponding to the first optical label that has been transmitted before the second optical label is sent, and the third optical label is a third optical packet load after the second optical packet is loaded. Corresponding light label.
  • the sending device of the optical packet monitors the first generator to obtain a generated state of the third optical tag, and/or is configured to monitor the second generator to obtain the a generation state of the first optical packet load; the generated state includes or has not been generated.
  • the transmitting device of the optical packet transmits the second optical tag, determining, according to the generated state of the first optical packet payload and/or the generated state of the first optical tag, the protection duration a first transmission time of an optical packet payload and/or a third transmission timing of the third optical label.
  • a preset timer is started, and the timer starts counting; when the timer reaches the first sending moment, performing electro-optical conversion on the first optical packet load Processing, to obtain a corresponding second optical signal; and/or, when the timer reaches the third sending moment, the third optical label performs an electro-optical conversion process to obtain a corresponding second optical signal;
  • the optical switching device transmits the second optical signal. For example, after the sending device of the optical packet sends the second optical tag, a preset timer is started, so that the timer starts timing.
  • the transmitting device of the optical packet can perform scheduling within the guard time between the second optical tag and the corresponding second optical packet payload, and output the third optical tag and/or the first optical packet payload according to a certain timing.
  • the transmitting device of the optical packet may buffer the third optical label and/or the first optical packet payload, and perform electro-optical conversion processing on the buffered third optical label and/or the first optical packet payload after generating the control indication.
  • FIG. 10 is a schematic diagram of a transmission sequence of an optical label and an optical packet payload according to an embodiment of the present invention.
  • a transmitting device of an optical packet sends the optical label shown in FIG. 10 to the optical switching device by using the foregoing method.
  • an optical packet load wherein n optical labels are transmitted during a protection time between the transmission optical label i (corresponding to the second optical label) and the transmission optical packet load i (corresponding to the second optical packet load)
  • n optical packet loads correspond to the first optical packet load described above
  • the protection time between the optical label i and the corresponding optical packet payload i is greater than or equal to the length of time that the optical switching device generates the control signal according to the optical label i and the optical switching device according to the control signal.
  • the sum of the durations of the optical links is established, so the guard time is divided into t at 2 .
  • the optical label i is sent before the optical packet load i - n, so that the protection time between the optical label i and the optical packet load i is no longer idle time, but n optical labels are sent and / or n optical packet loads.
  • n Satisfy tcontrol > n > 1 t. m m a a x x is the transmission of the longest optical packet load
  • Time therefore, is required to be greater than or equal to the time length t e at which the optical switching device receives the optical tag i and generates a control signal in accordance with the optical tag i. Nt)1 , it is also necessary to satisfy that at least one other optical packet payload and/or at least one other optical label can be transmitted within a guard time between the transmitting optical label i and the transmitting optical packet payload i-1.
  • the t 2 needs to be greater than or equal to the length t switch required by the optical switching device to establish an optical link for transmitting the optical packet payload, and needs to be greater than or equal to the transmission duration t tabel required for an optical tag. It should be noted that, according to t e .
  • Nt )1 can determine the range of values of n, when the control used by the optical switching device is more complicated, t c . ntn) 1 value is large, the value n can be within a wide range, embodiments of the present invention may be set in advance based on the value of n in the range of n, a transmission apparatus of an optical signal preset parameters.
  • FIG. 1 1 is a first schematic diagram of a transmission sequence of an optical label and an optical packet load when n is equal to 1 according to an embodiment of the present invention. As shown in the figure, the embodiment uses n equal to 1 as an example for optical signals.
  • the optical tag i corresponds to the second optical tag
  • the optical packet load i corresponds to the second optical packet load
  • the optical tag i + 1 corresponds to the third optical tag
  • the packet payload i-1 corresponds to the first optical packet payload
  • the optical label i+1 is an optical label corresponding to the optical packet payload i+1 after the optical packet payload i
  • the optical label i_1 corresponding to the optical packet payload i_1 has been Send noon.
  • Step 1201 After the optical packet sending device sends the optical label i to the optical switching device, the timer is reset, so that the timer starts counting.
  • Step 1202 The transmitting device of the optical packet determines whether the optical packet payload i-1 has been sent to the optical switching device; if not, performs step 1203, and if it has been sent, performs step 1204.
  • Step 1203 When the timer reaches the preset first duration 7, where the optical signal transmitting device sends the optical packet payload, then step 1204 is performed.
  • the first time length t gap is a time interval between the transmitting optical tag i and the transmitting optical packet payload i - 1.
  • needs to be greater than or equal to the optical tag device receiving the optical tag i and the duration of the control signal generated according to the optical tag i tc ⁇ t ⁇ , t tabel is the transmission time required for an optical tag, t 2 needs to be greater than or equal to the optical switching device to establish transmission
  • the length of the optical link required for the optical packet load is t switch and needs to be greater than or equal to the length of time t tabel required to transmit an optical tag.
  • Step 1206 After transmitting the optical packet payload i, the transmitting device of the optical packet waits for the optical label i+1 to be generated, and after the optical label i+1 is generated, performs step 1207.
  • Step 1207 The transmitting device of the optical packet sends the optical label i+1 to the optical switching device, and then step 1208 is performed.
  • the value method of ⁇ can include:
  • FIG. 13 is a transmission timing of the optical tag and the optical packet load when n is equal to 1 according to an embodiment of the present invention.
  • the second schematic diagram, t gap 0 in the transmission timing shown in FIG.
  • ⁇ -2 is a tswitch.
  • the optical tag i is transmitted before the optical packet load i-1, so that the optical signal corresponding to the optical packet load i enters the transmitting device of the optical signal, and is generated.
  • the optical packet payload il Before the corresponding optical label i, the optical packet payload il has been buffered, and a timer is set. When the timer expires, the optical label i is generated, and then the optical packet payload il is sent after the optical label i is sent, otherwise the buffer is The optical packet payload i-1 is sent to the optical switching device because the timer expires.
  • the transmission timing of the optical label and the optical packet payload is related to the rate of the optical label and the transmitting device of the optical packet payload entering the optical packet, that is, the optical packet.
  • the load of the transmitting device of the optical packet exists in the following four cases:
  • FIG. 14 is a third schematic diagram of a transmission timing of an optical label and an optical packet payload according to an embodiment of the present invention.
  • the optical label i + 1 can be generated in the +l ⁇ - t gap - t label time after the optical tag i is sent, so that the optical tag i is always sent to the optical switching device before the optical packet load i - 1, and the corresponding execution is performed.
  • the process includes: Step 1201 - Step 1202 - Step 1203 - Step 1204 - Step 1207 ⁇ Step 1208.
  • Case 2 The transmitting device of the optical packet changes from a high load state to a low load state.
  • FIG. 15 is a fourth schematic diagram of a transmission sequence of an optical label and an optical packet payload according to an embodiment of the present invention.
  • the optical label i is transmitted before the optical packet payload i - 1 , and ti+t 2 - t gap - t labe ⁇ after the optical label i is transmitted.
  • the optical tag i + 1 is not generated in the day.
  • the corresponding execution flow includes: Step 1201 ⁇ Step 1202 ⁇ Step 1203 ⁇ Step 1204 ⁇ Step 1205 ⁇ Step 1206 ⁇ Step 1207—Step 1208.
  • FIG. 16 is a fifth schematic diagram of a transmission sequence of an optical label and an optical packet payload according to an embodiment of the present invention.
  • the transmitting device of the optical packet is in a continuous low load state
  • the optical label i after the transmission is completed + l ⁇ - t gap - the time t label light tag i + 1 always has not been generated, so that the front light tag i generated optical packet payload i - 1 has been transmitted to the optical switching device, the corresponding execution process
  • the method includes the following steps: Step 1201 - Step 1202 - Step 1204 - Step 1205 - Step 1206 - Step 1207 -> Step 1208.
  • Case 4 The transmitting device of the optical packet changes from a low load state to a high load state.
  • FIG. 17 is a sixth schematic diagram of a transmission sequence of an optical label and an optical packet payload according to an embodiment of the present invention.
  • the optical packet payload i - 1 has been sent to the optical switching device, and the optical label i + 1 has been generated in the +l ⁇ - t gap - t labe ⁇ after the optical label i is sent.
  • the corresponding execution flow includes: Step 1201 - Step 1202 ⁇ Step 1204 - Step 1207 - Step 1208.
  • the transmitting device of the optical packet when the load of the transmitting device of the optical packet is high, the transmitting device of the optical packet fully utilizes the guard time between the transmitting optical label i and the optical packet payload i corresponding to the transmission, and transmits a complete optical packet.
  • the load i - 1 and a complete optical label i + 1 are such that the link resources are not wasted during the protection time.
  • the actual number of optical labels or the number of optical packet loads between the optical label and the corresponding optical packet payload is equal to n. .
  • the load of the transmitting device of the optical packet becomes higher, the load of the transmitting device of the optical packet is lower, or the load of the transmitting device of the optical packet is lower, the load is higher.
  • the time limit of the optical packet load is increased. If the optical label i + 1 has not been generated yet, the optical labeling device needs to send the optical packet payload i. At this time, the optical label and the corresponding optical packet are sent.
  • the number of optical packet loads or the number of optical tags is less than n.
  • is equal to t C . Ntt .
  • Step 1801 After the optical packet sending device sends the optical label i to the optical switching device, the timer is reset, so that the timer starts counting.
  • Step 1802 The transmitting device of the optical packet determines whether the optical packet payload i-1 has been sent to the optical switching device. If not, step 1803 is performed. If it has been sent, step 1804 is performed.
  • Step 1803 when the timer reaches the preset first duration 7, wherein the transmitting device of the optical signal transmits the optical packet payload and then performs step 1804.
  • the first time length t gap is a time interval between the transmitting optical tag i and the transmitting optical packet payload i - 1.
  • Step 1804 The transmitting device of the optical packet compares the length information Li_ ⁇ carried in the optical label i-1 with the length threshold L thresh .
  • the comparison result of ld update the current!
  • the value of ⁇ is equivalent to the dynamic adjustment of the optical packet transmission device based on the length information of the optical packet payload!
  • the value of ⁇ can reduce the waste of link resources and improve the utilization of link resources.
  • the transmitting device of the optical packet may convert the received optical signal to obtain an electrical signal, and then parse the electrical signal to obtain routing information of the data frame, where the routing information includes the length.
  • Information the transmitting device of the optical packet can obtain the length information Li ⁇ included in the optical tag i-1, and the length information refers to the length information in the optical packet payload i-1 corresponding to the optical tag i-1.
  • Step 1807 After transmitting the optical packet payload i, the transmitting device of the optical packet waits for the cursor to sign i + 1 to generate, and after the optical label i + 1 is generated, step 1808 is performed.
  • Step 1808 the transmitting device of the optical packet sends the optical label i + 1 to the optical switching device, and then performs step 1809.
  • the optical packet load i-1 is transmitted for less than the preset transmission time threshold T tl ⁇ esh .
  • the time interval between the transmission optical tag i and the optical packet payload i corresponding to the transmission is t 2 + t control , when the transmission time of the optical packet payload i - 1 is greater than or equal to the preset transmission time threshold T thresh .
  • the time interval between the transmission optical label i and the optical packet payload i corresponding to the transmission is 1: 2 + t pi — , such that only when the transmission time of the optical packet payload i - 1 is less than the preset transmission time threshold T Tl ⁇ esh .
  • the embodiment of the present invention provides a method for processing an optical packet.
  • FIG. 19 it is a schematic flowchart of a method for processing an optical packet according to an embodiment of the present invention. As shown in FIG. 19, the method includes the following steps:
  • Step 1901 The third optical label and/or the first optical packet payload sent by the sending device that receives the optical packet by the optical switching device after transmitting the second optical label and transmitting the corresponding second optical packet payload.
  • the second optical label is sent first, and the second optical packet is sent after being loaded;
  • the first optical packet payload is an optical packet payload corresponding to the first optical label that has been sent before the second optical label is sent,
  • the third optical tag is an optical tag corresponding to a third optical packet load after the second optical packet load.
  • Step 1902 Obtain corresponding third control information according to the third optical label.
  • the third control information is performed, and the third optical packet load exchange process corresponding to the third optical tag is performed; and/or, according to the first control information, the first optical packet load exchange process is performed, where The first control information is obtained according to the first optical tag.
  • the optical switching device extracts the destination port information and the length information from the first optical label, and then performs path calculation according to the destination port information to obtain the third control information.
  • the collision detection may be performed according to the destination port information, and the optical link that transmits the third optical packet payload corresponding to the third optical label is calculated according to the detection result.
  • the optical switching device establishes an optical link that transmits a third optical packet load according to the preset first duration and the third control information, and then performs the third optical label by using the optical link. Corresponding exchange processing of the third optical packet payload.
  • establishing an optical link for transmitting the third optical packet load according to the preset first duration and the third control information may include the following two methods:
  • Method 1 After the optical switching device obtains the third control information, start a timer, so that the timer starts timing. When the timer reaches the preset first duration 7, the optical link for transmitting the third optical packet load is established according to the third control information; thus, the optical switching device can establish the third control information according to the third control information.
  • Method 2 The optical switching device compares the length information contained in the previous optical label i-1 of the third optical label i with a preset length threshold L th ⁇ esh . LD; if the length is less than or equal to the length information value width, i tag according to the third light corresponding to the third control information, the establishment of the third light transmitting optical packet payload link i; i if before a light tag - 1 contains length information greater than the length threshold L thresh .
  • the tag i to obtain a third light corresponding to the third control information, starts the timer, so the timer is started, and the timer reaches a predetermined first
  • the time T is long, an optical link for transmitting the third optical packet load is established according to the third control information, so that the previous optical packet load i can be exchanged through the optical link.
  • the optical switching device may further maintain a state of the optical link according to length information carried in the third optical tag.
  • optical tags and/or other optical packet payloads can be transmitted during the protection time of transmitting the optical tag and transmitting the corresponding optical packet payload, and the other optical packet payloads are corresponding to other optical tags that have been sent before the optical tag is transmitted.
  • the optical packet load, the other optical label is the optical label corresponding to the other optical packet payload after the optical packet payload, and the optical link can be established according to the optical label transmitted in advance, thereby reducing the edge device and the optical switching device during the protection duration.
  • the waste of inter-link resources improves the utilization of link resources.
  • the fiber delay line is no longer needed to obtain the protection time, and the integration degree of the optical switching device can be improved, and the miniaturization requirement of the optical switching device can be satisfied.
  • the protection duration between the optical packet sending device and the optical packet payload corresponding to the optical packet needs to be adjusted.
  • the optical packet sending device can automatically adjust according to the protection duration.
  • the number of optical tags and/or optical packet payloads transmitted during the protection period so that the link utilization can be maintained at a high level without causing a decrease in link utilization caused by an increase in the protection duration;
  • the number of the optical packet load can be dynamically adjusted according to the protection duration, so that the technical solution of the embodiment of the present invention can be flexibly applied to various application scenarios to meet the requirements of various optical switching devices.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Optical Communication System (AREA)

Abstract

本发明实施例提供了一种光分组的发送方法、设备、处理方法及光交换设备,发送设备包括:处理器,用于获得第一光包载荷和/或第三光标签,获得第二光标签和与所述第二光标签对应的第二光包载荷;输出器,用于在发送所述第二光标签与发送所述第二光包载荷之间的保护时长内,向光交换设备发送所述处理器获得的所述第三光标签和/或所述第一光包载荷,以便于所述光交换设备依据所述第三光标签,进行所述第三光标签对应的第三光包载荷的交换处理,和/或,以便于所述光交换设备依据第一光包载荷对应的第一光标签,进行所述第一光包载荷的交换处理。本发明实施例提供的技术方案,用以实现提高光标签和光包载荷的传输链路的利用率。

Description

光分组的发送方法、 设备、 处理方法及光交换设备 技术领域
本发明涉及光交换技术领域, 尤其涉及一种光分组的发送方法、 设 备、 处理方法及光交换设备。
背景技术
目前, 光分组交换 ( Optical Packet Switch , OPS ) 系统中, 有一 种光标签串行传输方案, 即边缘设备对待交换的光包信号进行处理, 并 利用串行方式将光标签和光包载荷发送给光交换设备。请参考图 1 ,其为 现有技术中光标签串行传输的时序示意图, 如图所示, 光标签与对应的 光包载荷在时间上是分开的, 先发送光标签, 再发送对应的光包载荷, 且发送光标签与发送光包载荷之间预留一定的时间间隔, 该时间间隔称 为保护时长, 保护时长需要大于或者等于光交换设备接收光标签、 生成 控制信号以及建立传输光包载荷的光链路所需要的时间。
然而, 通常情况下保护时长需要上百纳秒, 当光交换设备需要运行 复杂算法建立光链路时, 需要更长的保护时长, 在保护时长内边缘设备 与光交换设备之间的链路不会传输任何有效数据,导致链路资源的浪费, 链路资源的利用率较低。
发明内容
有鉴于此, 本发明实施例提供了一种光分组的发送方法、 设备、 处 理方法及光交换设备, 可以实现提高光标签和光包载荷的传输链路的利 用率。
第一方面, 本发明实施例提供了一种光分组的发送设备, 包括: 处理器, 用于获得第一光包载荷和 /或第三光标签, 以及获得第二光 标签和与所述第二光标签对应的第二光包载荷;
输出器, 用于在发送所述第二光标签与发送所述第二光包载荷之间 的保护时长内, 向光交换设备发送所述处理器获得的所述第三光标签和 / 或所述第一光包载荷, 以便于所述光交换设备依据所述第三光标签, 进 行所述第三光标签对应的第三光包载荷的交换处理, 和 /或, 以便于所述 光交换设备依据第一光包载荷对应的第一光标签, 进行所述第一光包载 荷的交换处理;
其中, 所述第二光标签先发送, 所述第二光包载荷后发送; 所述第 一光包载荷为与在发送所述第二光标签之前已经发送的第一光标签所对 应的光包载荷, 所述第三光标签为与所述第二光包载荷之后的第三光包 载荷所对应的光标签。
在第一方面的第一种可能的实现方式中, 所述处理器具体包括: 第一转换器, 用于接收输入的第一光信号, 以及对所述第一光信号 进行光电转换处理, 以获得电信号;
解析器, 用于对所述第一转换器获得的所述电信号进行解析处理, 以获得第一数据帧和 /或第三数据帧的路由信息, 以及获得第二数据帧和 第二数据帧的路由信息;
第一生成器, 用于依据所述解析器获得的所述第三数据帧的路由信 息生成所述第三光标签, 和 /或, 第二生成器, 用于依据所述解析器获得 的所述第一数据帧生成所述第一光包载荷;
所述第一生成器, 还用于依据所述解析器获得的所述第二数据帧的 路由信息生成所述第二光标签; 所述第二生成器, 还用于依据所述解析器获得的所述第二数据帧生 成所述第二光包载荷。
结合第一方面或第一方面的第一种可能的实现方式, 在第一方面的 第二种可能的实现方式中, 所述输出器具体包括调度器、 子输出器和第 二转换器; 其中,
所述调度器, 用于对所述第一生成器进行监控, 获得所述第三光标 签的生成状态, 和 /或, 用于对所述第二生成器进行监控, 获得所述第一 光包载荷的生成状态; 所述生成状态包括已经生成或者没有生成;
所述调度器, 还用于发送所述第二光标签之后, 依据所述第一光包 载荷的生成状态和 /或所述第一光标签的生成状态,确定所述保护时长内, 所述第一光包载荷的第一发送时刻和 /或所述第三光标签的第三发送时 刻;
所述调度器,还用于发送所述第二光标签之后,开启预设的计时器, 所述计时器开始计时;
所述调度器, 还用于当所述计时器到达所述第一发送时刻时, 生成 第一控制指示; 和 /或, 还用于当所述计时器到达所述第三发送时刻时, 生成第三控制指示;
所述子输出器, 用于依据所述调度器生成的所述第一控制指示向第 二转换器发送所述第一光包载荷, 和 /或, 用于依据所述调度器生成的所 述第三控制指示, 向第二转换器发送所述第三光标签;
所述第二转换器, 用于对所述子输出器发送的所述第三光标签和 / 或所述第一光包载荷进行电光转换处理, 以获得对应的第二光信号, 以 及向所述光交换设备发送所述第二光信号。 结合第一方面的第一种可能的实现方式中, 在第一方面的第三种可 能的实现方式中, 所述输出器具体包括调度器和第二转换器; 其中,
所述调度器, 用于对所述第一生成器进行监控, 获得所述第三光标 签的生成状态, 和 /或, 用于对所述第二生成器进行监控, 获得所述第一 光包载荷的生成状态; 所述生成状态包括已经生成或者没有生成;
所述调度器, 还用于发送所述第二光标签之后, 依据所述第一光包 载荷的生成状态和 /或所述第三光标签的生成状态,确定所述保护时长内, 所述第一光包载荷的第一发送时刻和 /或所述第三光标签的第三发送时 刻;
所述调度器,还用于发送所述第二光标签之后,开启预设的计时器, 所述计时器开始计时;
所述调度器, 还用于当所述计时器到达所述第一发送时刻时, 生成 第一控制指示; 和 /或, 还用于当所述计时器到达所述第三发送时刻时, 生成第三控制指示;
所述第一生成器, 还用于依据所述调度器生成的所述三控制指示, 向所述第二转换器发送所述第三光标签, 和 /或, 所述第二生成器, 还用 于依据所述调度器生成的所述第一控制指示, 向所述第二转换器发送所 述第一光包载荷;
所述第二转换器, 还用于对所述第一生成器发送的所述第三光标签 和 /或所述第二生成器发送的所述第一光包载荷进行电光转换处理, 以获 得对应的第二光信号, 以及向所述光交换设备发送所述第二光信号。
结合第一方面的第二种可能的实现方式或第一方面的第三种可能的 实现方式, 在第一方面的第四种可能的实现方式中, 所述调度器具体用 于:
发送所述第二光标签之后, 启动预设的计时器, 以使得所述计时器 开始计时;
当所述计时器到达预设的第一时长时, 确定到达所述第一光包载荷 的第一发送时刻, 则生成所述第一光包载荷的第一控制指示;
当所述计时器到达预设的第二时长时, 确定到达所述第三光标签的 第三发送时刻, 若所述第三光标签已经生成, 生成所述第三光标签的第 三控制指示, 若所述第三光标签没有生成, 生成所述第二光包载荷的第 二控制指示, 以及在所述第三光标签生成后, 生成所述第三光标签的第 三控制指示。
结合第一方面的第一种可能的实现方式, 在第一方面的第五种可能 的实现方式中, 所述第一生成器具体用于:
依据所述数据帧的路由信息和预设的光标签格式, 生成所述第一光 标签;
其中, 所述第一光标签包括光标签定界符、 目的端口信息、 优先级 信息、 长度信息; 所述光标签定界符用于指示第一光标签的开始位置, 所述目的端口信息用于指示所述第一光标签对应的第一光包载荷的目的 端口, 所述优先级信息用于指示所述第一光标签对应的第一光包载荷的 优先级, 所述长度信息用于指示所述第一光标签的长度。
结合第一方面的第一种可能的实现方式, 在第一方面的第六种可能 的实现方式中, 所述第二生成器具体用于:
依据所述数据帧和预设的光包载荷格式, 生成所述第一光包载荷; 其中, 所述第一光包载荷包括结束符、 所述数据帧、 起始符和前导 码; 所述结束符用于指示所述数据帧的开始位置, 所述起始符用于指示 所述数据帧的结束位置, 所述前导码用于接收设备依据所述前导码进行 时钟同步处理, 以准确接收所述数据帧。
第二方面, 本发明实施例还提供了一种光交换设备, 包括:
控制器, 用于接收光分组的发送设备在发送第二光标签与发送对应 的第二光包载荷之间的保护时长内,发送的第三光标签和 /或第一光包载 荷; 其中, 所述第二光标签先发送, 所述第二光包载荷后发送; 所述第 一光包载荷为在发送所述第二光标签之前已经发送的第一光标签对应的 光包载荷, 所述第三光标签为所述第二光包载荷之后的第三光包载荷所 对应的光标签;
所述控制器, 依据所述第三光标签获得对应的第三控制信息, 所述 第三控制信息用于光开关矩阵依据所述控制器获得的所述第三控制信息, 进行所述第三光标签对应的所述第三光包载荷的交换处理; 和 /或, 所述 光开关矩阵, 用于依据第一控制信息, 进行所述第一光包载荷的交换处 理, 所述第一控制信息为所述控制器依据所述第一光标签获得的。
在第二方面的第一种可能的实现方式中, 所述控制器具体用于: 依 据所述第三光标签获得对应的第三控制信息, 以及依据预设的第一时长 向所述光开关矩阵发送所述第三控制信息;
所述光开关矩阵具体用于: 依据所述控制器发送的所述第三控制信 息,建立传输第三光包载荷的光链路,以及在获得所述第三光包载荷后, 通过所述光链路进行所述第三光标签对应的所述第三光包载荷的交换处 理。
结合第二方面的第一种可能的实现方式, 在第二方面的第二种可能 的实现方式中, 所述控制器具体用于: 依据所述第三光标签获得对应的 第三控制信息, 以及依据预设的第一时长向所述光开关矩阵发送所述第 三控制信息;
所述光开关矩阵具体用于: 依据所述控制器发送的所述第三控制信 息,建立传输第三光包载荷的光链路,以及在获得所述第三光包载荷后, 通过所述光链路进行所述第三光标签对应的所述第三光包载荷的交换处 理。
结合第二方面的第二种可能的实现方式, 在第二方面的第三种可能 的实现方式中, 所述控制器依据预设的第一时长向所述光开关矩阵发送 所述第三控制信息具体包括: 获得所述第三控制信息后, 启动计时器, 所述计时器开始计时; 当所述计时器到达所述第一时长时, 向所述光开 关矩阵发送所述第三控制信息。
结合第二方面的第二种可能的实现方式, 在第二方面的第四种可能 的实现方式中, 所述第三光标签包含长度信息, 所述控制器依据预设的 第一时长向所述光开关矩阵发送所述第三控制信息具体包括:
比较所述第三光标签的前一个光标签包含的长度信息与预设的长度 阔值;
若所述长度信息小于或者等于所述长度阈值, 将所述第三控制信息 发送给所述光开关矩阵;
若所述长度信息大于所述长度阈值, 在获得所述第三控制信息后, 启动计时器, 所述计时器开始计时, 以及在所述计时器到达所述第一时 长时, 向所述光开关矩阵发送所述第三控制信息。 第三方面, 本发明实施例提供了一种光分组的发送方法, 包括: 获得第一光包载荷和 /或第三光标签;
获得第二光标签和与所述第二光标签对应的第二光包载荷;
在发送所述第二光标签与发送所述第二光包载荷之间的保护时长内, 向光交换设备发送获得的所述第三光标签和 /或所述第一光包载荷, 以便 于所述光交换设备依据所述第三光标签, 进行所述第三光标签对应的第 三光包载荷的交换处理, 和 /或, 以便于所述光交换设备依据第一光包载 荷对应的第一光标签, 进行所述第一光包载荷的交换处理;
其中, 所述第二光标签先发送, 所述第二光包载荷后发送; 所述第 一光包载荷为与在发送所述第二光标签之前已经发送的第一光标签所对 应的光包载荷, 所述第三光标签为与所述第二光包载荷之后的第三光包 载荷所对应的光标签。
在第三方面的第一种可能的实现方式中, 所述在发送所述第二光标 签与发送所述第二光包载荷之间的保护时长内, 向光交换设备发送获得 的所述第三光标签和 /或所述第一光包载荷, 包括:
对所述第一生成器进行监控, 获得所述第三光标签的生成状态, 和 / 或, 用于对所述第二生成器进行监控, 获得所述第一光包载荷的生成状 态; 所述生成状态包括已经生成或者没有生成;
发送所述第二光标签之后, 依据所述第一光包载荷的生成状态和 / 或所述第一光标签的生成状态, 确定所述保护时长内, 所述第一光包载 荷的第一发送时刻和 /或所述第三光标签的第三发送时刻;
发送所述第二光标签之后, 开启预设的计时器, 所述计时器开始计 时; 当所述计时器到达所述第一发送时刻时, 对所述第一光包载荷进行 电光转换处理, 以获得对应的第二光信号; 和 /或, 当所述计时器到达所 述第三发送时刻时, 所述第三光标签进行电光转换处理, 以获得对应的 第二光信号;
向所述光交换设备发送所述第二光信号。
结合第三方面的第一种可能的实现方式, 在第三方面的第二种可能 的实现方式中, 所述依据所述第一光包载荷的生成状态和 /或所述第一光 标签的生成状态, 确定所述保护时长内, 所述第一光包载荷的第一发送 时刻和 /或所述第三光标签的第三发送时刻, 包括:
发送所述第二光标签之后, 启动预设的计时器, 以使得所述计时器 开始计时;
当所述计时器到达预设的第一时长时,确定发送所述第一光包载荷; 当所述计时器到达预设的第二时长时,且所述第三光标签已经生成, 确定发送所述第三光标签, 若所述第三光标签没有生成, 确定发送所述 第二光包载荷, 以及在所述第三光标签生成后, 确定发送所述第三光标 签。
第四方面, 本发明实施例还提供了一种光分组的处理方法, 包括: 接收光分组的发送设备在发送第二光标签与发送对应的第二光包载 荷之间的保护时长内, 发送的第三光标签和 /或第一光包载荷; 其中, 所 述第二光标签先发送, 所述第二光包载荷后发送; 所述第一光包载荷为 在发送所述第二光标签之前已经发送的第一光标签对应的光包载荷, 所 述第三光标签为所述第二光包载荷之后的第三光包载荷所对应的光标签; 依据所述第三光标签获得对应的第三控制信息; 依据所述第三控制 信息, 进行所述第三光标签对应的所述第三光包载荷的交换处理; 和 / 或, 依据第一控制信息, 进行所述第一光包载荷的交换处理, 所述第一 控制信息为依据所述第一光标签获得的。
在第四方面的第一种可能的实现方式中, 所述依据所述第三控制信 息, 进行所述第三光标签对应的所述第三光包载荷的交换处理, 包括: 依据预设的第一时长和所述第三控制信息, 建立传输第三光包载荷 的光链路;
通过所述光链路进行所述第三光标签对应的所述第三光包载荷的交 换处理。
结合第四方面的第一种可能的实现方式, 在第四方面的第二种可能 的实现方式中, 所述依据第一控制信息, 进行所述第一光包载荷的交换 处理, 包括:
获得所述第一控制信息后, 启动计时器, 以使得所述计时器开始计 时;
当所述计时器到达所述第一时长时, 依据所述第一控制信息, 建立 传输第一光包载荷的光链路。
结合第四方面的第一种可能的实现方式, 在第四方面的第三种可能 的实现方式中, 所述第三光标签包含长度信息, 所述依据预设的第一时 长和所述第三控制信息, 建立传输第三光包载荷的光链路, 包括:
比较所述第三光标签的前一个光标签包含的长度信息与预设的长度 阔值;
若所述长度信息小于或者等于所述长度阔值, 依据所述第三控制信 息, 建立传输第三光包载荷的光链路; 若所述长度信息大于所述长度阈值, 在获得所述第三控制信息后, 启动计时器, 以使得所述计时器开始计时, 以及在所述计时器到达所述 第一时长时,依据所述第三控制信息,建立传输第三光包载荷的光链路。
结合第四方面的第二种可能的实现方式, 在第四方面的第四种可能 的实现方式中, 通过上述技术方案, 在发送光标签与发送对应的光包载荷的保护时 间内, 能够传输其他光标签和 /或其他光包载荷, 其他光包载荷是在发送 该光标签之前已经发送的其他光标签对应的光包载荷, 其他光标签是光 包载荷之后的其他光包载荷对应的光标签, 可以依据提前传输的光标签 建立对应的光链路, 因此, 减少在保护时长内边缘设备与光交换设备之 间链路资源的浪费, 提高链路资源的利用率。
附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例中所 需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性 劳动性的前提下, 还可以根据这些附图获得其它的附图。
图 1是现有技术中光标签串行传输的时序示意图;
图 2是本发明实施例所提供的光分组的传输系统的功能方块图; 图 4是本发明实施例所提供的光标签格式的示意图;
图 5是本发明实施例所提供的光包载荷格式的示意图; 图 7是本发明实施例所提供的光交换设备的功能方块图; 图 8是本发明实施例所提供的光交换设备的结构示意图; 图 10是本发明实施例所提供的光标签与光包载荷的发送时序示意 图;
图 1 1是本发明实施例所提供 n等于 1时光标签与光包载荷的发送时 序的第一示意图; 程示意图;
图 13是本发明实施例所提供 n等于 1时光标签与光包载荷的发送时 序的第二示意图;
图 14是本发明实施例所提供的光标签与光包载荷的发送时序的第 三示意图;
图 15是本发明实施例所提供的光标签与光包载荷的发送时序的第 四示意图;
图 16是本发明实施例所提供的光标签与光包载荷的发送时序的第 五示意图;
图 17是本发明实施例所提供的光标签与光包载荷的发送时序的第 六示意图; 程示意图; 具体实施方式 为了更好的理解本发明的技术方案, 下面结合附图对本发明实施例 进行详细描述。
应当明确, 所描述的实施例仅仅是本发明一部分实施例, 而不是全 部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出 创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的, 而非旨在限制本发明。 在本发明实施例和所附权利要求书中所使用的单 数形式的 "一种" 、 "所述" 和 "该" 也旨在包括多数形式, 除非上下 文清楚地表示其他含义。 还应当理解, 本文中使用的术语 "和 /或" 是指 并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解, 尽管在本发明实施例中可能釆用术语第一、 第二、 第三 等来描述各种时长、 光标签和光包载荷, 但这些时长、 光标签和光包载 荷不应限于这些术语。 这些术语仅用来将时长、 光标签和光包载荷彼此 区分开。 例如, 在不脱离本发明实施例范围的情况下, 第一光标签也可 以被称为第二光标签, 类似地, 第二光标签也可以被称为第一光标签。
取决于语境, 如在此所使用的词语 "如果"可以被解释成为 "在 ... ... 时" 或 "当……时" 或 "响应于确定" 或 "响应于检测" 。 类似地, 取 决于语境, 短语 "如果确定" 或 "如果检测 (陈述的条件或事件) " 可 以被解释成为 "当确定时" 或 "响应于确定" 或 "当检测 (陈述的条件 或事件) 时" 或 "响应于检测 (陈述的条件或事件) " 。
请参考图 2, 其为本发明实施例所提供的光分组的传输系统的功能 方块图。 如图所示, 该光分组的传输系统包括光分组的发送设备、 光交 换设备和光分组的接收设备。 其中, 光分组的发送设备和光分组的接收 设备位于用户侧设备与光交换设备之间, 或者, 光分组的发送设备和光 分组的接收设备集成于用户侧设备中, 所述用户侧设备可以为服务器或 机拒顶端设备等, 每个用户侧设备都对应一组光分组的发送设备和光分 设备发送光标签和 /或光包载荷, 该光包载荷被光交换设备处理后, 发往 其他用户侧设备对应的光分组的接收设备。
光分组交换技术中将传送的光数据划分成若干光分组。 在每个光分 组中包含一个分组头, 该分组头为本发明实施例中的光标签, 该光分组 中除分组头以外的部分是本发明实施例中的光包载荷, 分组头用以指示 该分组发往的目的端口, 然后由光交换设备根据每个分组的分组头, 将 分组转发至目的端口, 这一过程称为光分组交换。 方块图。 如图所示, 该光分组的发送设备包括:
处理器 30 , 用于获得第一光包载荷和 /或第三光标签, 以及获得第 二光标签和与所述第二光标签对应的第二光包载荷;
输出器 31 , 用于在发送所述第二光标签与发送所述第二光包载荷之 间的保护时长内, 向光交换设备发送所述处理器 30获得的所述第三光 标签和 /或所述第一光包载荷, 以便于所述光交换设备依据所述第三光标 签, 进行所述第三光标签对应的第三光包载荷的交换处理, 和 /或, 以便 于所述光交换设备依据第一光包载荷对应的第一光标签, 进行所述第 ― 光包载荷的交换处理;
其中, 所述第二光标签先发送, 所述第二光包载荷后发送; 所述第 一光包载荷为与在发送所述第二光标签之前已经发送的第一光标签所对 应的光包载荷, 所述第三光标签为与所述第二光包载荷之后的第三光包 载荷所对应的光标签。
优选的, 所述处理器 30进一步包括第一转换器 301、 解析器 302、 第一生成器 303和第二生成器 304。
优选的, 所述输出器 31进一步包括调度器 31 1、 子输出器 312和 第二转换器 313; 或者, 所述输出器 31进一步包括调度器 31 1和第二 转换器 313。
第一转换器 301 , 用于接收输入的第一光信号, 以及对所述第一光 信号进行光电转换处理, 以获得电信号。 具体的: 第一转换器 301通过 与用户侧设备的之间的光介质接收用户侧设备发来的第一光信号, 然后 对该第一光信号进行光电转换处理, 以获得对应的电信号, 然后将获得 的电信号发送给解析器 302。
解析器 302 , 用于对所述第一转换器 301获得的所述电信号进行解 析处理, 以获得第一数据帧和 /或第三数据帧的路由信息, 以及获得第二 数据帧和第二数据帧的路由信息。
具体的, 解析器 302接收第一转换器 301发送的电信号, 对该电信 号进行解析处理, 获取其中的第一数据帧和 /或第三数据帧的路由信息, 以及获得第二数据帧和第二数据帧的路由信息。
本发明实施例中, 获得的第三数据帧的路由信息用于生成第三光标 签; 所述第三数据帧的路由信息可以包括目的端口地址和长度信息。 可 选的, 所述解析器 302还可以对解析后获得的数据帧和数据帧的路由信 息进行緩存,解析器 302在调度器 31 1的控制下可以将数据帧的路由信 息和数据帧分别发送给第一生成器 303和第二生成器 304 , 以触发第一 生成器 303生成第三光标签和 /或第二生成器 304生成第一光包载荷, 以及第一生成器 303生成第二光标签,第二生成器 304生成第二光包载 荷。
例如, 将以太网数据包解析后获得其中的介质访问控制
( Medium/Media Access Control , MAC )帧,然后从 MAC帧中获取 MAC 帧的路由信息, MAC帧的路由信息中包括目的 MAC地址和长度信息。
第一生成器 303, 用于依据所述解析器 302获得的所述第三数据帧 的路由信息生成所述第三光标签, 和 /或, 第二生成器 303, 用于依据所 述解析器 302获得的所述第一数据帧生成所述第一光包载荷; 还用于依 据所述解析器获得的所述第二数据帧的路由信息生成所述第二光标签。
具体的,数据帧的路由信息用于光交换设备的控制器生成控制信息, 来控制光交换设备的光开关矩阵进行光链路的建立。 第一生成器 303接 收解析器 302发送的第三数据帧的路由信息, 依据该第三数据帧的路由 信息和预设的光标签格式, 生成第三光标签。 请参考图 4 , 其为本发明 实施例所提供的光标签格式的示意图, 如图所示, 生成的第三光标签可 以包括光标签定界符、目的端口信息和长度信息;还可以包括其他信息。 其中, 第一生成器 303可以依据收到的目的端口地址生成图 4所示的目 的端口信息 ,以及依据收到的长度信息生成图 4所示的长度信息。其中, 所述光标签定界符用于指示第三光标签的开始位置, 所述目的端口信息 用于指示所述第三光标签对应的第三光包载荷的目的端口, 所述长度信 息用于指示该第三光标签对应的第三光包载荷的长度, 光交换设备可以 依据目的端口信息完成第三光包载荷交换的调度操作。 一般情况下, 第 三光标签的长度是固定的, 本发明实施例中假设第三光标签的传输时间 为 ttabel。可选的,第一生成器 303还可以对生成的第三光标签进行緩存, 这样, 在调度器 31 1的控制下, 第一生成器 303可以发送给子输出器 312 , 由子输出器 312再发送给第二转换器 313; 或者, 在调度器 31 1 的控制下, 第一生成器 303可以直接发送给第二转换器 313。
第二生成器 304 , 用于依据所述解析器获得的所述第一数据帧生成 所述第一光包载荷; 还用于依据所述解析器获得的所述第二数据帧生成 所述第二光包载荷。
具体的, 第二生成器 304接收解析器 302发送的第一数据帧, 依据 该第一数据帧和预设的光包载荷格式, 生成所述第一光包载荷。 请参考 图 5, 其为本发明实施例所提供的光包载荷格式的示意图, 如图所示, 生成的第一光包载荷可以包括结束符、数据帧、起始符和前导码。例如, 第二生成器 304将收到的数据帧作为图 5所示的 MAC帧, 并添加起始 符、 结束符和前导码。 其中, 所述结束符用于指示所述数据帧的开始位 置, 所述起始符用于指示所述数据帧的结束位置; 所述前导码用于接收 设备依据所述前导码进行时钟同步处理, 以准确接收所述数据帧。 需要 说明的是, 第一光包载荷被光分组的接收设备接收时, 接收设备需要依 据前导码进行时钟同步并准备接收实际的数据帧。 经过交换后的光包载 荷, 来自不同的光包信号源, 并经过不同的交换路径, 使得接收到的光 包载荷之间的信号幅度和相位有差异, 同时不同的光包信号源的时钟也 有差异, 因此接收设备对于每个光包载荷都需要进行时钟相位的锁定和 判决阔值的恢复, 在锁定和恢复之前, 不能正确接收数据, 即锁定和恢 复都需要一定的开销, 利用前导码作为开销, 依据前导码调整接收设备 中的放大器的增益和时钟相位的锁定, 避免了在锁定和恢复之前牺牲光 包载荷中的有效数据。 可选的, 第二生成器 304还可以对生成的第一光 包载荷进行加扰处理, 用以保证第一光包载荷在传输过程中的稳定性和 准确性。
优选的, 所述输出器 31进一步包括调度器 31 1、 子输出器 312和 第二转换器 313时, 所述输出器 31具体用于:
调度器 31 1 , 用于对所述第一生成器 303进行监控, 获得所述第三 光标签的生成状态, 和 /或, 用于对所述第二生成器 304进行监控, 获得 所述第一光包载荷的生成状态; 所述生成状态包括已经生成或者没有生 成.
所述调度器 31 1 , 还用于发送所述第二光标签之后, 依据所述第一 光包载荷的生成状态和 /或所述第一光标签的生成状态,确定所述保护时 长内, 所述第一光包载荷的第一发送时刻和 /或所述第三光标签的第三发 送时刻。
所述调度器 31 1 , 还用于发送所述第二光标签之后, 开启预设的计 时器, 所述计时器开始计时。
所述调度器 31 1 , 还用于当所述计时器到达所述第一发送时刻时, 生成第一控制指示; 和 /或, 还用于当所述计时器到达所述第三发送时刻 时, 生成第三控制指示。
具体的, 所述调度器 31 1发送所述第二光标签之后, 启动预设的计 时器, 以使得所述计时器开始计时。 当所述计时器到达预设的第一时长 时, 确定到达所述第一光包载荷的第一发送时刻, 则生成所述第一光包 载荷的第一控制指示, 并将第一控制指示发送给子输出器 312 , 以使子 输出器 312向第二转换器 313输出第一光包载荷。 当所述计时器到达预 设的第二时长时, 确定到达所述第三光标签的第三发送时刻, 若所述第 三光标签已经生成, 生成所述第三光标签的第三控制指示, 并将第三控 制指示发送给子输出器 312 , 以使子输出器 312向第二转换器 313输出 第三光标签; 然而, 若所述第三光标签还没有生成, 生成所述第二光包 载荷的第二控制指示, 并将第二控制指示发送给子输出器 312 , 以使子 输出器 312向第二转换器 313输出第二光包载荷,并在所述第三光标签 生成后, 生成所述第三光标签的第三控制指示, 并将第三控制指示发送 给子输出器 312,以使子输出器 312向第二转换器 313输出第三光标签。 这样, 调度器 31 1就可以在第二光标签和对应的第二光包载荷之间的保 护时间内进行调度, 让子输出器 312按照一定的时序输出第三光标签和 /或第一光包载荷。
所述子输出器 312 , 用于依据所述调度器 31 1生成的所述第一控制 指示向第二转换器 313发送所述第一光包载荷, 和 /或, 用于依据所述调 度器 31 1生成的所述第三控制指示, 向第二转换器 313发送所述第三光 标签。
具体的, 子输出器 312可以釆用时分复用的方式将第三光标签与第 一光包载荷复用在一个传输链路上发送, 子输出器 312与第一生成器 303和第二生成器 304分别相连, 可以选择将第一生成器 303提供的第 一光标签发送给第二转换器 313, 也可以选择将第二生成器 304提供的 第一光包载荷发送给第二转换器 313; 其中, 子输出器 312 , 在收到调 度器 31 1的控制指示后, 依据该控制指示选择发送第三光标签还是发送 第一光包载荷给第二转换器 313。
所述第二转换器 313, 用于对所述子输出器 312发送的所述第三光 标签和 /或第一光包载荷进行电光转换处理, 以获得对应的第二光信号, 以及向所述光交换设备发送所述第二光信号。
具体的,第二转换器 313接收输出器 312发送的第三光标签和 /或第 一光包载荷, 然后将第三光标签和 /或第一光包载荷进行电光转换处理, 从而可以将第三光标签和 /或第一光包载荷转换为对应的光信号, 最后通 过第二转换器 313与光交换设备之间的光介质, 将获得的光信号发送到 光交换设备。
或者,所述输出器 31进一步包括调度器 31 1和第二转换器 313时, 所述输出器 31具体用于:
所述调度器 31 1 , 用于对所述第一生成器 303进行监控, 获得所述 第三光标签的生成状态, 和 /或, 用于对所述第二生成器 304进行监控, 获得所述第一光包载荷的生成状态; 所述生成状态包括已经生成或者没 有生成。
所述调度器 31 1 , 还用于发送所述第二光标签之后, 依据所述第一 光包载荷的生成状态和 /或所述第三光标签的生成状态,确定所述保护时 长内, 所述第一光包载荷的第一发送时刻和 /或所述第三光标签的第三发 送时刻。
所述调度器 31 1 , 还用于发送所述第二光标签之后, 开启预设的计 时器, 所述计时器开始计时。
所述调度器 31 1 , 还用于当所述计时器到达所述第一发送时刻时, 生成第一控制指示; 和 /或, 还用于当所述计时器到达所述第三发送时刻 时, 生成第三控制指示。
具体的, 所述调度器 31 1发送所述第二光标签之后, 启动预设的计 时器, 以使得所述计时器开始计时。 当所述计时器到达预设的第一时长 时, 确定到达所述第一光包载荷的第一发送时刻, 生成所述第一光包载 荷的第一控制指示, 并将第一控制指示发送给第二生成器 304 , 以使第 二生成器 304向第二转换器 313输出第一光包载荷。 当所述计时器到达 预设的第二时长时, 确定到达所述第三光标签的第三发送时刻, 若所述 第三光标签已经生成, 生成所述第三光标签的第三控制指示, 并将第三 控制指示发送给第一生成器 303,以使第一生成器 303向第二转换器 313 输出第三光标签; 然而, 若所述第三光标签还没有生成, 生成所述第二 光包载荷的第二控制指示, 并将第二控制指示发送给第二生成器 304 , 以使第二生成器 304向第二转换器 313输出第二光包载荷,并在所述第 三光标签生成后, 生成所述第三光标签的第三控制指示, 并将第三控制 指示发送给第一生成器 303, 以使第一生成器 303向第二转换器 313输 出第三光标签。 这样, 调度器 31 1就可以在第二光标签和对应的第二光 包载荷之间的保护时间内进行调度,让第一生成器 303和 /或第二生成器 304按照一定的时序输出第三光标签和 /或第一光包载荷。 需要说明的是, 器件, 同理, 第二生成器 304是光分组的发送设备中用于生成本发明中 所有光包载荷的器件, 因此, 第二光标签由第一生成器 303生成, 第二 光包载荷由第二生成器 304生成。
所述第一生成器 303, 还用于依据所述调度器 31 1生成的所述三控 制指示, 向所述第二转换器 313发送所述第三光标签, 和 /或, 所述第二 生成器 304 , 还用于依据所述调度器 31 1生成的所述第一控制指示, 向 所述第二转换器 313发送所述第一光包载荷。 具体的, 第一生成器 303和第二生成器 304分别与第二转换器 313 相连, 第一生成器 303对第三光标签緩存后, 若收到调度器 31 1发送的 第三控制指示, 将緩存的第三光标签发送给第二转换器 313, 同理, 第 二生成器 304对第一光包载荷緩存后,若收到调度器 31 1发送的第一控 制指示, 将緩存的第一光包载荷发送给第二转换器 313。
所述第二转换器 313, 还用于对所述第一生成器 303发送的所述第 三光标签和 /或所述第二生成器 304发送的所述第一光包载荷进行电光 转换处理, 以获得对应的第二光信号, 以及向所述光交换设备发送所述 第二光信号。
具体的, 第二转换器 313接收第一生成器 303发送的第三光标签, 和 /或, 接收第二生成器 304发送的第一光包载荷; 然后第二转换器 313 将第三光标签和 /或第一光包载荷进行电光转换处理,从而可以将第三光 标签和 /或第一光包载荷转换为对应的光信号;第二转换器 313通过第二 转换器 313与光交换设备之间的光介质, 将获得的光信号发送到光交换 设备。
需要说明的是, 上述第一转换器 301和第二转换器 313可以利用收 发器 (Transceiver ) 实现, 解析器 302、 第一生成器 303、 第二生成器 304、调度器 313和子输出器 312分别可以利用现场可编程门列阵( Field Programmable Gate Array, FPGA )芯片或者专用集成电路( Application Specific Integrated Circuits, ASIC ) 实现, 只是芯片或者 ASIC上的程 序不同, 可以使得芯片或者集成电路具有不同的功能。 示意图。 如图所示, 该光分组的发送设备包括: 存储器 601 , 用于存储包括程序例程的信息;
处理器 602 , 与存储器 601、 发射器 603耦合, 用于控制所述程序 例程的执行, 具体包括: 获得第一光包载荷和 /或第三光标签, 以及获得 第二光标签和与所述第二光标签对应的第二光包载荷;
发射器 603, 用于在发送所述第二光标签与发送所述第二光包载荷 之间的保护时长内, 向光交换设备发送所述处理器 30获得的所述第三 光标签和 /或所述第一光包载荷, 以便于所述光交换设备依据所述第三光 标签, 进行所述第三光标签对应的第三光包载荷的交换处理, 和 /或, 以 便于所述光交换设备依据第一光包载荷对应的第一光标签, 进行所述第 一光包载荷的交换处理;
其中, 所述第二光标签先发送, 所述第二光包载荷后发送; 所述第 一光包载荷为与在发送所述第二光标签之前已经发送的第一光标签所对 应的光包载荷, 所述第三光标签为与所述第二光包载荷之后的第三光包 载荷所对应的光标签。
请参考图 7, 其为本发明实施例所提供的光交换设备的功能方块图。 如图所示, 该光交换设备包括:
控制器 701 , 用于接收光分组的发送设备在发送第二光标签与发送 对应的第二光包载荷之间的保护时长内,发送的第三光标签和 /或第一光 包载荷; 其中, 所述第二光标签先发送, 所述第二光包载荷后发送; 所 述第一光包载荷为在发送所述第二光标签之前已经发送的第一光标签对 应的光包载荷, 所述第三光标签为所述第二光包载荷之后的第三光包载 荷所对应的光标签;
所述控制器 701 , 依据所述第三光标签获得对应的第三控制信息, 所述第三控制信息用于光开关矩阵 702依据所述控制器 701获得的所述 第三控制信息, 进行所述第三光标签对应的所述第三光包载荷的交换处 理; 和 /或, 所述光开关矩阵 702, 用于依据第一控制信息, 进行所述第 一光包载荷的交换处理, 所述第一控制信息为所述控制器依据所述第 ― 光标签获得的。
优选的, 所述控制器 701具体用于: 依据所述第三光标签获得对应 的第三控制信息, 以及依据预设的第一时长向所述光开关矩阵发送所述 第三控制信息;
所述光开关矩阵 702具体用于: 依据所述控制器发送的所述第三控 制信息, 建立传输第三光包载荷的光链路, 以及在获得所述第三光包载 荷后, 通过所述光链路进行所述第三光标签对应的所述第三光包载荷的 交换处理。
优选的, 所述控制器 701依据预设的第一时长向光开关矩阵 702发 送所述第一控制信息具体包括:获得所述第三控制信息后,启动计时器, 所述计时器开始计时; 当所述计时器到达所述第一时长时, 向所述光开 关矩阵 702发送所述第三控制信息。
具体的, 光分组进入光交换设备后, 先经过分光器处理, 分光器提 取光分组中的第三光标签, 然后提供给控制器 701 , 这样控制器 701就 可以接收到光分组的发送设备发送的第三光标签, 并从第三光标签中提 取目的端口信息和长度信息, 然后依据目的端口信息, 进行路径计算, 以获得对应的第三控制信息。例如,控制器 701可以依据目的端口信息, 进行冲突检测, 依据检测结果计算传输第三光标签对应的第三光包载荷 的光链路。 控制器 701获得所述第一控制信息后, 启动计时器, 以使得所述计 时器开始计时; 当所述计时器到达预设的第一时长时, 控制器 701向所 述光开关矩阵 702发送所述第一控制信息。 这样, 光开关矩阵 702可以 依据第一控制信息建立第一光包载荷的源端口与目的端口之间的光链路。 可选的, 光开关矩阵 702建立所述光链路之后, 控制器 701还可以依据 上述长度信息来控制光开关矩阵 702, 以使得光开关矩阵 702可以依据 控制器 701的控制来保持光链路,即确定光链路建立后需要保持的时间。 另外, 第三光标签中的其他信息可以用于控制器 701进行冲突检测。
优选的, 所述第三光标签包含长度信息, 所述控制器 701依据预设 的第一时长向光开关矩阵发送所述第三控制信息具体包括: 比较所述第 三光标签的前一个光标签包含的长度信息与预设的长度阈值; 若所述长 度信息小于或者等于所述长度阈值, 将所述第三控制信息发送给所述光 开关矩阵 702; 若所述长度信息大于所述长度阔值, 在获得所述第三控 制信息后, 启动计时器, 以使得所述计时器开始计时, 以及在所述计时 器到达预设的第二时长时, 向所述光开关矩阵 702发送所述第三控制信 息。
具体的, 控制器 701在接收到第三光标签后, 将前一个光标签中包 含的长度信息与预设的长度阈值进行比较, 如果长度信息小于或者等于 所述长度阔值, 立即将所述第三控制信息发送给所述光开关矩阵 702; 如果所述长度信息大于所述长度阈值, 在获得所述第三控制信息后, 启 动计时器, 以使得所述计时器开始计时, 当所述计时器到达预设的第二 时长时, 才向所述光开关矩阵 702发送所述第三控制信息, 以便于光开 关矩阵 702依据第三控制信息建立源端口与目的端口之间传输第三光包 载荷的光链路。
第一光包载荷经过光链路的传输后进入到光分组的接收设备, 光分 组的接收设备对第一光包载荷进行突发接收、 数据帧恢复和数据帧发送 等处理。 其中, 突发接收处理指的是将收到的第一光包载荷转换成电信 号, 并依据第一光包载荷中的起始符和结束符, 获得其中的数据帧, 然 后将数据帧转换为与目的设备能够识别的帧格式, 然后发往目的设备; 例如, 目的设备可以是以太网设备。
请参考图 8, 其为本发明实施例所提供的光交换设备的结构示意图。 如图所示, 该光交换设备包括:
接收器 801 , 接收光分组的发送设备在发送第二光标签与发送对应 的第二光包载荷之间的保护时长内,发送的第三光标签和 /或第一光包载 荷; 其中, 所述第二光标签先发送, 所述第二光包载荷后发送; 所述第 一光包载荷为在发送所述第二光标签之前已经发送的第一光标签对应的 光包载荷, 所述第三光标签为所述第二光包载荷之后的第三光包载荷所 对应的光标签;
存储器 802 , 用于存储包括程序例程的信息;
处理器 803, 与存储器 802和接收器 801分别耦合, 用于控制所述 程序例程的执行, 具体包括: 依据所述第三光标签获得对应的第三控制 信息, 依据所述第三控制信息, 进行所述第三光标签对应的所述第三光 包载荷的交换处理; 和 /或, 依据第一控制信息, 进行所述第一光包载荷 的交换处理, 所述第一控制信息为所述控制器依据所述第一光标签获得 的。
本发明实施例进一步给出实现上述设备实施例中各单元的方法实施 例。
本发明实施例给出一种光分组的发送方法, 请参考图 9, 其为本发 明实施例所提供的光分组的发送方法的流程示意图; 如图 9所示, 该方 法包括以下步骤:
步骤 901 , 光分组的发送设备获得第一光包载荷和 /或第三光标签; 获得第二光标签和与所述第二光标签对应的第二光包载荷。 质接收第一光信号, 对该第一光信号进行光电转换处理, 以获得对应的 电信号。
然后, 光分组的发送设备对获得的所述电信号进行解析处理, 以获 得第一数据帧和 /或第三数据帧的路由信息, 以及获得第二数据帧和第二 数据帧的路由信息。
其中, 该第三数据帧的路由信息用于生成第三光标签, 所述第一数 据帧用于生成第一光包载荷。 第二数据帧用于生成第二光包载荷, 第二 数据帧的路由信息用于生成第二光标签。 优选的, 所述数据帧的路由信 息可以包括目的端口地址和长度信息。 可选的, 光分组的发送设备还可 以对解析后获得的数据帧和数据帧的路由信息进行緩存。
接着, 光分组的发送设备依据获得的所述第三数据帧的路由信息生 成所述第三光标签, 和 /或, 光分组的发送设备依据获得的所述第一数据 帧生成所述第一光包载荷。
光分组的发送设备依据获得的所述第二数据帧的路由信息生成所述 第二光标签, 且光分组的发送设备依据获得的所述第二数据帧生成所述 第二光包载荷。 举例说明, 第三光标签用于光交换设备生成第三控制信息, 来控制 光开关矩阵进行光链路的建立。 光分组的发送设备依据第三数据帧的路 由信息和预设的光标签格式, 生成第三光标签。 请参考图 4, 其为本发 明实施例所提供的光标签格式的示意图, 如图所示, 生成的第三光标签 可以包括光标签定界符、 目的端口信息和长度信息; 还可以包括其他信 息。 其中, 光分组的发送设备依据收到的目的端口地址获得图 4所示的 目的端口信息, 依据收到的长度信息获得图 4所示的长度信息。 其中, 所述光标签定界符用于指示第三光标签的开始位置, 所述目的端口信息 用于指示所述第三光标签对应的第三光包载荷的目的端口, 所述长度信 息用于指示该第三光标签对应的第三光包载荷的长度信息, 光交换设备 可以依据目的端口信息完成第三光包载荷交换的调度操作。一般情况下, 第三光标签的长度是固定的, 本发明实施例中假设第三光标签的传输时 间为 ttabei。 可选的, 光分组的发送设备还可以对生成的第三光标签进行 緩存。
同理, 光分组的发送设备依据数据帧和预设的光包载荷格式, 生成 所述第一光包载荷。 请参考图 5, 其为本发明实施例所提供的光包载荷 格式的示意图, 如图所示, 生成的第一光包载荷可以包括结束符、 数据 帧、 起始符和前导码。 其中, 光分组的发送设备将数据帧作为图 5所示 的数据帧, 并设置起始符、 结束符和前导码。 其中, 所述结束符和所述 起始符分别指示所述数据帧的开始位置和结束位置; 第一光包载荷被光 信号的接收设备接收时, 接收设备需要依据前导码进行时钟同步并准备 接收实际的数据帧; 例如, 依据前导码调节时钟等, 以便于能够正确的 接收数据; 可选的, 光分组的发送设备还可以对生成的第一光包载荷进 行加扰处理, 用以保证第一光包载荷在传输过程中的稳定性和准确性。 步骤 902 , 光分组的发送设备在发送所述第二光标签与发送所述第 二光包载荷之间的保护时长内, 向光交换设备发送获得的所述第三光标 签和 /或所述第一光包载荷, 以便于所述光交换设备依据所述第三光标签, 进行所述第三光标签对应的第三光包载荷的交换处理, 和 /或, 以便于所 述光交换设备依据第一光包载荷对应的第一光标签, 进行所述第一光包 载荷的交换处理; 其中, 所述第二光标签先发送, 所述第二光包载荷后 发送; 所述第一光包载荷为与在发送所述第二光标签之前已经发送的第 一光标签所对应的光包载荷, 所述第三光标签为与所述第二光包载荷之 后的第三光包载荷所对应的光标签。
具体的, 首先, 光分组的发送设备对所述第一生成器进行监控, 获 得所述第三光标签的生成状态,和 /或,用于对所述第二生成器进行监控, 获得所述第一光包载荷的生成状态; 所述生成状态包括已经生成或者没 有生成。
然后, 光分组的发送设备发送所述第二光标签之后, 依据所述第一 光包载荷的生成状态和 /或所述第一光标签的生成状态,确定所述保护时 长内, 所述第一光包载荷的第一发送时刻和 /或所述第三光标签的第三发 送时刻。
最后, 发送所述第二光标签之后, 开启预设的计时器, 所述计时器 开始计时; 当所述计时器到达所述第一发送时刻时, 对所述第一光包载 荷进行电光转换处理, 以获得对应的第二光信号; 和 /或, 当所述计时器 到达所述第三发送时刻时, 所述第三光标签进行电光转换处理, 以获得 对应的第二光信号; 向所述光交换设备发送所述第二光信号。 举例说明, 光分组的发送设备发送所述第二光标签之后, 启动预设 的计时器, 以使得所述计时器开始计时。 当所述计时器到达预设的第一 时长时, 确定发送所述第一光包载荷, 生成所述第一光包载荷的控制指 示, 并输出第一光包载荷给光交换设备。 当所述计时器到达预设的第二 时长时, 且所述第三光标签已经生成, 生成所述第三光标签的第三控制 指示, 并输出第三光标签给光交换设备; 然而, 若所述第三光标签还没 有生成, 生成所述第二光包载荷的第二控制指示, 并输出第二光包载荷 给光交换设备, 并在所述第三光标签生成后, 生成所述第三光标签的第 三控制指示, 并输出第三光标签给光交换设备。 这样, 光分组的发送设 备就可以在第二光标签和对应的第二光包载荷之间的保护时间内进行调 度, 按照一定的时序输出第三光标签和 /或第一光包载荷。
优选的, 光分组的发送设备可以对第三光标签和 /或第一光包载荷进 行緩存, 在生成控制指示后, 对緩存的第三光标签和 /或第一光包载荷进 行电光转换处理, 以获得对应的第二光信号, 通过与光交换设备之间的 光介质, 将获得的光信号发送到光交换设备。
请参考图 10 , 其为本发明实施例所提供的光标签与光包载荷的发送 时序示意图, 如图所示, 光分组的发送设备利用上述方法向光交换设备 发送图 10所示的光标签和光包载荷, 其中, 在发送光标签 i (相当于上 述第二光标签)与发送光包载荷 i (相当于上述第二光包载荷)之间的保 护时间内, 发送了 n个光标签(相当于上述第三光标签)和 /或 n个光包载 荷 (相当于上述第一光包载荷) , 其中 n为大于或者等于 1的整数。 如 图 10所示, 光标签 i与对应的光包载荷 i之间的保护时间大于或者等于光 交换设备依据光标签 i生成控制信号的时长与光交换设备依据控制信号 建立光链路的时长的和, 因此将保护时间分为 t at2。 如图 10所示, 光 标签 i提前至光包载荷 i - n之前发送, 这样, 光标签 i与光包载荷 i之间的 保护时间不再是空闲时间, 而是发送了 n个光标签和 /或 n个光包载荷。
优选的, 需要大于或者等于光交换设备接收光标签 i以及依据光标 签 i生成控制信号的时长 tc^t^ , ^P ti > tcontrol , 可以依据 t^nt^确定 n的 取值, 即 n满足 tcontrol > n > 1 , 其中, t。mmaaxx为最长的光包载荷的传输
Lp_max
时间, 因此, 需要大于或者等于光交换设备接收光标签 i以及依据光标 签 i生成控制信号的时长 tent )1, 同时还需要满足在发送光标签 i与发送光 包载荷 i - 1之间的保护时间内可以发送至少一个其他光包载荷和 /或至 少一个其他光标签。 t2需要大于或者等于光交换设备建立传输光包载荷 的光链路所需要的时长 tswitch , 且需要大于或者等于一个光标签所需要 的传输时长 ttabel。 需要说明的是, 依据 tent )1可以确定 n的取值范围, 当光交换设备所 利用的控制算比较复杂时, tcntn)1取值较大,则 n可以在较大范围内取值, 本发明实施例中, 可以依据 n的取值范围预先设置 n的取值, 作为光信号 的发送设备的预设参数。
实施例一
请参考图 1 1 , 其为本发明实施例所提供 n等于 1时光标签与光包载 荷的发送时序的第一示意图, 如图所示, 本实施例以 n等于 1为例, 对 光信号的发送设备在发送第二光标签与发送对应的第二光包载荷之间的 保护时长内, 向光交换设备发送获得的所述第三光标签和 /或所述第一光 包载荷的方法进行说明, 图 1 1 中光标签 i相当于上述第二光标签, 光包 载荷 i相当于上述第二光包载荷, 光标签 i + 1相当于上述第三光标签, 光 包载荷 i - 1相当于上述第一光包载荷, 光标签 i + 1是与光包载荷 i之后的 光包载荷 i + 1对应的光标签, 光包载荷 i_ 1对应的光标签 i_ 1已经发送 午。 例一的流程示意图, 如图所示, 该方法包括以下步骤:
步骤 1201, 光分组的发送设备发送光标签 i给光交换设备后, 复位 计时器, 以使得计时器开始计时。
步骤 1202,光分组的发送设备判断光包载荷 i- 1是否已经发送给光 交换设备;如果没发送,执行步骤 1203,如果已经发送,执行步骤 1204。
步骤 1203, 当计时器到达预设的第一时长7 时, 其中 ^二 ^叩, 光 信号的发送设备发送光包载荷 然后执行步骤 1204。 其中, 第一时 长 tgap为发送光标签 i与发送光包载荷 i - 1之间的时间间隔。
步骤 1204, 当计时器到达预设的第二时长丁2时, 其中 = ^+112— tgap - tlabel时, 光分组的发送设备判断光标签 i + 1是否已经生成, 如果 没有生成, 执行步骤 1205, 如果已经生成, 执行步骤 1207。 其中, !^需 要大于或者等于光交换设备接收光标签 i以及依据光标签 i生成控制信号 的时长 tc^t^, ttabel为一个光标签所需要的传输时长, t2需要大于或者 等于光交换设备建立传输光包载荷的光链路所需要的时长 tswitch, 且需 要大于或者等于传输一个光标签所需要的时长 ttabel
步骤 1205, 当计时器到达第三时长丁3时, 其中 7^ = ^ + 1:2时, 计时 器停止计时, 光分组的发送设备发送光包载荷 i, 然后执行步骤 1206。
步骤 1206, 光分组的发送设备在发送完光包载荷 i之后, 等待光标 签 i + 1生成, 并在光标签 i + 1生成后, 执行步骤 1207。 步骤 1207, 光分组的发送设备发送光标签 i + 1给光交换设备, 然后 执行步骤 1208。
步骤 1208, 光分组的发送设备计 i = i + 1, 然后执行步骤 1201。 举例说明, !^和!^的取值方法可以包括:
当 tcontroi <tp— 时, ti =tp max, 此时, tgap = 0, 请参考图 13, 其为本发明实施例所提供 n等于 1时光标签与光包载荷的发送时序的第 二示意图, 图 13所示的发送时序中 tgap = 0。
当 tCOntrol ― tp— max时, ^-1 一 ^-control ' 。 < ^gap ― ^-control ― tp— max。
当 tjabel + ^gap < tswitch时, ^-2 一 tswitch。
当 tjabel + ^gap ― tSwitch时, ^-2 一 ^iabel + tgap。
需要说明的是,如图 11和图 13所示,将光标签 i提前至光包载荷 i- l 之前发送, 因此在与光包载荷 i对应的光信号进入到光信号的发送设备, 并生成对应的光标签 i之前, 光包载荷 i-l已经进行緩存, 并设置了计时 器, 当计时器到时, 光标签 i已生成, 则在发送光标签 i之后发送光包载荷 i-l, 否则緩存中的光包载荷 i - 1因为计时器超时而被发送到光交换设 备, 因此, 光标签与光包载荷的发送时序与光标签和光包载荷进入光分 组的发送设备的速率大小有关,即与光分组的发送设备的负载高低有关, 本发明实施例中, 光分组的发送设备的负载存在以下四种情况:
情况一: 光分组的发送设备是持续高负载状态:
请参考图 14, 其为本发明实施例所提供的光标签与光包载荷的发送 时序的第三示意图, 如图所示, 当光分组的发送设备是持续高负载状态 时,光标签 i + 1能够在光标签 i发送完毕后的 +l^ - tgap - tlabel时间内生 成, 这样光标签 i总在光包载荷 i - 1之前发送给光交换设备, 对应的执行 流程包括: 步骤 1201 —步骤 1202—步骤 1203—步骤 1204—步骤 1207 →步骤 1208。
情况二: 光分组的发送设备是高负载状态变成低负载状态: 请参考图 15, 其为本发明实施例所提供的光标签与光包载荷的发送 时序的第四示意图, 如图所示, 当光分组的发送设备由高负载状态变为 低负载状态时, 光标签 i先于光包载荷 i - 1发送, 在光标签 i发送完毕后的 ti+t2 - tgap - tlabe^†间内没有生成光标签 i + 1, 对应的执行流程包括: 步骤 1201→步骤 1202→步骤 1203→步骤 1204→步骤 1205→步骤 1206 →步骤 1207—步骤 1208。
情况三: 光分组的发送设备是持续低负载状态:
请参考图 16, 其为本发明实施例所提供的光标签与光包载荷的发送 时序的第五示意图, 如图所示, 当光分组的发送设备是持续低负载状态 时,在光标签 i发送完毕后的 +l^ - tgap - tlabel时间内光标签 i + 1总是还 未生成, 这样光标签 i生成前, 光包载荷 i - 1已经发送给光交换设备, 对 应的执行流程包括: 步骤 1201 —步骤 1202—步骤 1204—步骤 1205— 步骤 1206—步骤 1207→步骤 1208。
情况四: 光分组的发送设备是低负载状态变成高负载状态: 请参考图 17, 其为本发明实施例所提供的光标签与光包载荷的发送 时序的第六示意图, 如图所示, 光标签 i生成前, 光包载荷 i - 1已经发送 至光交换设备,且在光标签 i发送完毕后的 +l^ - tgap - tlabe^†间内已经 生成光标签 i + 1, 对应的执行流程包括: 步骤 1201 -步骤 1202→步骤 1204—步骤 1207—步骤 1208。
如图 14~图 17可以看出,光标签与对应的光包载荷之间的保护时间 内, 可以传输 n个光标签和 /或 n个光包载荷, 本实施例中 n = l , 而实际 应用中,保护时间内传输的光标签的数目 n和 /或光包载荷的数目 n还与光 信号的发送设备的实际负载状态有关系。
如图 14所示, 当光分组的发送设备的负载较高时, 光分组的发送设 备充分利用发送光标签 i与发送对应的光包载荷 i之间的保护时间,发送了 一个完整的光包载荷 i - 1和一个完整的光标签 i + 1 , 使得保护时间内链 路资源没有被浪费, 此时光标签与对应的光包载荷之间实际的光标签的 数目或者光包载荷的数目等于 n。 如图 15~图 17所示, 当光分组的发送 设备的负载较高变为负载较低、 光分组的发送设备的负载较低或者光分 组的发送设备的负载较低变为负载较高时, 为了避免由于光包载荷 i + 1 对应的光信号迟迟不到达光信号的发送设备, 导致的光包载荷 i在光信号 的发送设备緩存时间较长的问题, 增加了光包载荷的时限, 在光标签 i发 送后的一定时间内, 如果光标签 i + 1还没有生成, 则不再等待, 光分组 的发送设备需要发出光包载荷 i, 此时发送光标签与发送对应的光包载荷 i之间的保护时间内, 光包载荷的数目或者光标签的数目小于 n。
实施例二
实施例一中, ^等于 tCntt。^tp— 中的最大值, 即
ti = max (tpmax, tcontrol) , 1^是固定的, 也就是说 , 当 tcntIOl < tp—„^时 , 无论当前光包载荷的长度是多大, 都需要占用最长的光包载荷的传输时 间, 因此浪费了一定的链路资源, 如图 15中所示的虚线。 因此, 本实 施例基于 tcntIOl < tpmax的情况下, 釆用动态调整 1^的方式, 实现光分组 的发送设备在发送第二光标签与发送对应的第二光包载荷之间的保护时 长内, 向光交换设备发送所述第一光标签和 /或所述第一光包载荷。 例二的流程示意图, 如图所示, 该方法包括以下步骤:
步骤 1801 , 光分组的发送设备发送光标签 i给光交换设备后, 复位 计时器, 以使得计时器开始计时。
步骤 1802 ,光分组的发送设备判断光包载荷 i - 1是否已经发送给光 交换设备,如果没发送,执行步骤 1803,如果已经发送,执行步骤 1804。
步骤 1803, 当计时器到达预设的第一时长7 时, 其中 ^ 二 ^叩, 光 信号的发送设备发送光包载荷 然后执行步骤 1804。 其中, 第一时 长 tgap为发送光标签 i与发送光包载荷 i - 1之间的时间间隔。
步骤 1804 , 光分组的发送设备比较光标签 i - 1中携带的长度信息 Li—丄与长度阔值 Lthreshld的大小, 如果 Lthreshld > Li_! , UHi = tcontrol, 若 LthreSh。ld < Li_! , t = tp.^ ;其中, tpi—表示光包载荷 Ϊ— 1的传输时长。 这里, 依据长度信息 与长度阔值 Ltl^eshld的比较结果, 更新当前!^的 取值, 相当于依据光包载荷的长度信息, 在光分组的发送设备中动态调 整!^的取值, 能够减少链路资源的浪费, 提高链路资源的利用率。
举例说明, 光分组的发送设备可以对接收到的光信号进行转换, 以 获得电信号, 然后对电信号进行解析处理, 获取其中的数据帧的路由信 息, 该数据帧的路由信息中包括上述长度信息, 因此光分组的发送设备 可以获得光标签 i - 1中包含的长度信息 Li^ , 该长度信息 指的是光标 签 i - 1对应的光包载荷 i - 1中的长度信息。
步骤 1805, 当计时器到达预设的第二时长丁2时, 其中 = ^ +112 - tgap - tlabel时, 光分组的发送设备判断光标签 i + 1是否已经生成, 如果 没有生成, 执行步骤 1806, 如果已经生成, 执行步骤 1808。 步骤 1806, 当计时器到达第三时长丁3时, 其中 7^ = ^ + 1:2时, 计时 器停止计时, 光分组的发送设备发送光包载荷 i, 然后执行步骤 1807。
步骤 1807, 光分组的发送设备在发送完光包载荷 i之后, 等待光标 签 i + 1生成, 并在光标签 i + 1生成后, 执行步骤 1808。
步骤 1808, 光分组的发送设备发送光标签 i + 1给光交换设备, 然后 执行步骤 1809。
步骤 1809, 光分组的发送设备计 i = i + 1, 然后执行步骤 1801。 当光包载荷 i - 1的传输时间小于预设的传输时间阔值 Ttl^eshld时, 发送光标签 i与发送对应的光包载荷 i之间的时间间隔是 t2 + tcontrol , 当光 包载荷 i - 1的传输时间大于或者等于预设的传输时间阔值 Tthreshld时, 发送光标签 i与发送对应的光包载荷 i之间的时间间隔1:2 + tpi— , 这样, 仅 当光包载荷 i - 1的传输时间小于预设的传输时间阔值 Ttl^eshld时, 才会 有少量的链路资源被浪费, 因此能够提高链路资源的利用率。
本发明实施例给出一种光分组的处理方法, 请参考图 19, 其为本发 明实施例所提供的光分组的处理方法的流程示意图; 如图 19所示, 该 方法包括以下步骤:
步骤 1901 ,光交换设备接收光分组的发送设备在发送第二光标签与 发送对应的第二光包载荷之间的保护时长内,发送的第三光标签和 /或第 一光包载荷;其中,所述第二光标签先发送,所述第二光包载荷后发送; 所述第一光包载荷为在发送所述第二光标签之前已经发送的第一光标签 对应的光包载荷, 所述第三光标签为所述第二光包载荷之后的第三光包 载荷所对应的光标签。
步骤 1902 , 依据所述第三光标签获得对应的第三控制信息; 依据所 述第三控制信息, 进行所述第三光标签对应的所述第三光包载荷的交换 处理; 和 /或, 依据第一控制信息, 进行所述第一光包载荷的交换处理, 所述第一控制信息为依据所述第一光标签获得的。
具体的,光交换设备从第一光标签中提取目的端口信息和长度信息, 然后依据目的端口信息, 进行路径计算, 以获得第三控制信息。 例如, 可以依据目的端口信息, 进行冲突检测, 依据检测结果计算传输第三光 标签对应的第三光包载荷的光链路。
本发明实施例中, 光交换设备依据预设的第一时长和所述第三控制 信息, 建立传输第三光包载荷的光链路, 然后通过所述光链路进行所述 第三光标签对应的所述第三光包载荷的交换处理。
优选的, 依据预设的第一时长和所述第三控制信息, 建立传输第三 光包载荷的光链路可以包括以下两种方法:
方法一: 光交换设备获得所述第三控制信息后, 启动计时器, 以使 得所述计时器开始计时。 当所述计时器到达预设的所述第一时长 7 时, 依据所述第三控制信息, 建立传输第三光包载荷的光链路; 这样, 光交 换设备可以依据第三控制信息建立第三光包载荷的源端口与目的端口之 间的光链路。 这里, 第一时长7 = 1^— tcontrol
方法二: 光交换设备比较所述第三光标签 i的前一个光标签 i - 1包含 的长度信息与预设的长度阔值 Lth^eshld; 若所述长度信息小于或者等于 所述长度阔值, 依据第三光标签 i对应的所述第三控制信息, 建立传输第 三光包载荷 i的光链路; 若前一个光标签 i - 1包含的长度信息大于所述长 度阔值 Lthreshld, 在获得第三光标签 i对应的所述第三控制信息后, 启动 计时器, 以使得所述计时器开始计时, 以及在所述计时器到达预设的第 一时长 T 时,依据所述第三控制信息,建立传输第三光包载荷的光链路, 这样, 前一个光包载荷 i就可以通过该光链路完成交换。 这里, 第一时长
Ti 一 tpi_1 ― tControl。
可选的,光交换设备还可以依据所述第三光标签中携带的长度信息, 保持所述光链路的状态。
本发明实施例提供的技术方案具体有以下技术效果:
1、在发送光标签与发送对应的光包载荷的保护时间内, 能够传输其 他光标签和 /或其他光包载荷, 其他光包载荷是在发送光标签之前已经发 送的其他光标签所对应的光包载荷, 其他光标签是光包载荷之后的其他 光包载荷对应的光标签 ,可以依据提前传输的光标签建立对应的光链路, 因此, 减少在保护时长内边缘设备与光交换设备之间链路资源的浪费, 提高链路资源的利用率。
2、与目前利用光线延迟线对光包载荷进行延迟处理的技术方案相比, 不再需要光纤延迟线来获取保护时间, 能够提高光交换设备的集成度, 满足光交换设备的小型化要求。
3、 当光交换设备中运行的算法发生变化时, 光分组的发送设备发送 光标签与发送对应的光包载荷之间的保护时长需要进行调整, 光分组的 发送设备可以依据保护时长, 自动调整保护时长内发送的光标签和 /或光 包载荷的数目, 从而能够始终保持较高的链路利用率, 而不会导致保护 时长增加导致的链路利用率下降的问题; 而且, 光标签和 /或光包载荷的 数目可以根据保护时长进行动态调整, 使得本发明实施例的技术方案能 够灵活地适用于各种应用场景, 满足各种光交换设备的要求。
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡 在本发明的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均 应包含在本发明保护的范围之内。

Claims

权利要求书
1、 一种光分组的发送设备, 其特征在于, 所述设备包括:
处理器, 用于获得第一光包载荷和 /或第三光标签, 以及获得第二光 标签和与所述第二光标签对应的第二光包载荷;
输出器, 用于在发送所述第二光标签与发送所述第二光包载荷之间 的保护时长内, 向光交换设备发送所述处理器获得的所述第三光标签和 / 或所述第一光包载荷, 以便于所述光交换设备依据所述第三光标签, 进 行所述第三光标签对应的第三光包载荷的交换处理, 和 /或, 以便于所述 光交换设备依据第一光包载荷对应的第一光标签, 进行所述第一光包载 荷的交换处理;
其中, 所述第二光标签先发送, 所述第二光包载荷后发送; 所述第 一光包载荷为与在发送所述第二光标签之前已经发送的第一光标签所对 应的光包载荷, 所述第三光标签为与所述第二光包载荷之后的第三光包 载荷所对应的光标签。
2、根据权利要求 1所述的设备,其特征在于,所述处理器具体包括: 第一转换器, 用于接收输入的第一光信号, 以及对所述第一光信号 进行光电转换处理, 以获得电信号;
解析器, 用于对所述第一转换器获得的所述电信号进行解析处理, 以获得第一数据帧和 /或第三数据帧的路由信息, 以及获得第二数据帧和 第二数据帧的路由信息;
第一生成器, 用于依据所述解析器获得的所述第三数据帧的路由信 息生成所述第三光标签, 和 /或, 第二生成器, 用于依据所述解析器获得 的所述第一数据帧生成所述第一光包载荷; 所述第一生成器, 还用于依据所述解析器获得的所述第二数据帧的 路由信息生成所述第二光标签;
所述第二生成器, 还用于依据所述解析器获得的所述第二数据帧生 成所述第二光包载荷。
3、 根据权利要求 1或 2所述的设备, 其特征在于, 所述输出器具 体包括调度器、 子输出器和第二转换器; 其中,
所述调度器, 用于对所述第一生成器进行监控, 获得所述第三光标 签的生成状态, 和 /或, 用于对所述第二生成器进行监控, 获得所述第一 光包载荷的生成状态; 所述生成状态包括已经生成或者没有生成;
所述调度器, 还用于发送所述第二光标签之后, 依据所述第一光包 载荷的生成状态和 /或所述第一光标签的生成状态,确定所述保护时长内, 所述第一光包载荷的第一发送时刻和 /或所述第三光标签的第三发送时 刻;
所述调度器,还用于发送所述第二光标签之后,开启预设的计时器, 所述计时器开始计时;
所述调度器, 还用于当所述计时器到达所述第一发送时刻时, 生成 第一控制指示; 和 /或, 还用于当所述计时器到达所述第三发送时刻时, 生成第三控制指示;
所述子输出器, 用于依据所述调度器生成的所述第一控制指示向第 二转换器发送所述第一光包载荷, 和 /或, 用于依据所述调度器生成的所 述第三控制指示, 向第二转换器发送所述第三光标签;
所述第二转换器, 用于对所述子输出器发送的所述第三光标签和 / 或所述第一光包载荷进行电光转换处理, 以获得对应的第二光信号, 以 及向所述光交换设备发送所述第二光信号。
4、 根据权利要求 2所述的设备, 其特征在于, 所述输出器具体包括 调度器和第二转换器; 其中,
所述调度器, 用于对所述第一生成器进行监控, 获得所述第三光标 签的生成状态, 和 /或, 用于对所述第二生成器进行监控, 获得所述第一 光包载荷的生成状态; 所述生成状态包括已经生成或者没有生成;
所述调度器, 还用于发送所述第二光标签之后, 依据所述第一光包 载荷的生成状态和 /或所述第三光标签的生成状态,确定所述保护时长内, 所述第一光包载荷的第一发送时刻和 /或所述第三光标签的第三发送时 刻;
所述调度器,还用于发送所述第二光标签之后,开启预设的计时器, 所述计时器开始计时;
所述调度器, 还用于当所述计时器到达所述第一发送时刻时, 生成 第一控制指示; 和 /或, 还用于当所述计时器到达所述第三发送时刻时, 生成第三控制指示;
所述第一生成器, 还用于依据所述调度器生成的所述三控制指示, 向所述第二转换器发送所述第三光标签, 和 /或, 所述第二生成器, 还用 于依据所述调度器生成的所述第一控制指示, 向所述第二转换器发送所 述第一光包载荷;
所述第二转换器, 还用于对所述第一生成器发送的所述第三光标签 和 /或所述第二生成器发送的所述第一光包载荷进行电光转换处理, 以获 得对应的第二光信号, 以及向所述光交换设备发送所述第二光信号。
5、 根据权利要求 3或 4所述的设备, 其特征在于, 所述调度器具 体用于:
发送所述第二光标签之后, 启动预设的计时器, 以使得所述计时器 开始计时;
当所述计时器到达预设的第一时长时, 确定到达所述第一光包载荷 的第一发送时刻, 则生成所述第一光包载荷的第一控制指示;
当所述计时器到达预设的第二时长时, 确定到达所述第三光标签的 第三发送时刻, 若所述第三光标签已经生成, 生成所述第三光标签的第 三控制指示, 若所述第三光标签没有生成, 生成所述第二光包载荷的第 二控制指示, 以及在所述第三光标签生成后, 生成所述第三光标签的第 三控制指示。
6、 根据权利要求 2所述的设备, 其特征在于, 所述第一生成器具体 用于:
依据所述数据帧的路由信息和预设的光标签格式, 生成所述第一光 标签;
其中, 所述第一光标签包括光标签定界符、 目的端口信息、 优先级 信息、 长度信息; 所述光标签定界符用于指示第一光标签的开始位置, 所述目的端口信息用于指示所述第一光标签对应的第一光包载荷的目的 端口, 所述优先级信息用于指示所述第一光标签对应的第一光包载荷的 优先级, 所述长度信息用于指示所述第一光标签的长度。
7、 根据权利要求 2所述的设备, 其特征在于, 所述第二生成器具体 用于:
依据所述数据帧和预设的光包载荷格式, 生成所述第一光包载荷; 其中, 所述第一光包载荷包括结束符、 所述数据帧、 起始符和前导 码; 所述结束符用于指示所述数据帧的开始位置, 所述起始符用于指示 所述数据帧的结束位置, 所述前导码用于接收设备依据所述前导码进行 时钟同步处理, 以准确接收所述数据帧。
8、 一种光交换设备, 其特征在于, 所述光交换设备包括:
控制器, 用于接收光分组的发送设备在发送第二光标签与发送对应 的第二光包载荷之间的保护时长内,发送的第三光标签和 /或第一光包载 荷; 其中, 所述第二光标签先发送, 所述第二光包载荷后发送; 所述第 一光包载荷为在发送所述第二光标签之前已经发送的第一光标签对应的 光包载荷, 所述第三光标签为所述第二光包载荷之后的第三光包载荷所 对应的光标签;
所述控制器, 依据所述第三光标签获得对应的第三控制信息, 所述 第三控制信息用于光开关矩阵依据所述控制器获得的所述第三控制信息, 进行所述第三光标签对应的所述第三光包载荷的交换处理; 和 /或, 所述 光开关矩阵, 用于依据第一控制信息, 进行所述第一光包载荷的交换处 理, 所述第一控制信息为所述控制器依据所述第一光标签获得的。
9、 权利要求 8所述的光交换设备, 其特征在于,
所述控制器具体用于: 依据所述第三光标签获得对应的第三控制信 息,以及依据预设的第一时长向所述光开关矩阵发送所述第三控制信息; 所述光开关矩阵具体用于: 依据所述控制器发送的所述第三控制信 息,建立传输第三光包载荷的光链路,以及在获得所述第三光包载荷后, 通过所述光链路进行所述第三光标签对应的所述第三光包载荷的交换处 理。
10、 根据权利要求 9所述的光交换设备, 其特征在于, 所述控制器依据预设的第一时长向所述光开关矩阵发送所述第三控 制信息具体包括: 获得所述第三控制信息后, 启动计时器, 所述计时器 开始计时; 当所述计时器到达所述第一时长时, 向所述光开关矩阵发送 所述第三控制信息。
1 1、 根据权利要求 9所述的光交换设备, 其特征在于, 所述第三光 标签包含长度信息, 所述控制器依据预设的第一时长向所述光开关矩阵 发送所述第三控制信息具体包括:
比较所述第三光标签的前一个光标签包含的长度信息与预设的长度 阔值;
若所述长度信息小于或者等于所述长度阈值, 将所述第三控制信息 发送给所述光开关矩阵;
若所述长度信息大于所述长度阈值, 在获得所述第三控制信息后, 启动计时器, 所述计时器开始计时, 以及在所述计时器到达所述第一时 长时, 向所述光开关矩阵发送所述第三控制信息。
12、 一种光分组的发送方法, 其特征在于, 所述方法包括:
获得第一光包载荷和 /或第三光标签;
获得第二光标签和与所述第二光标签对应的第二光包载荷;
在发送所述第二光标签与发送所述第二光包载荷之间的保护时长内, 向光交换设备发送获得的所述第三光标签和 /或所述第一光包载荷, 以便 于所述光交换设备依据所述第三光标签, 进行所述第三光标签对应的第 三光包载荷的交换处理, 和 /或, 以便于所述光交换设备依据第一光包载 荷对应的第一光标签, 进行所述第一光包载荷的交换处理;
其中, 所述第二光标签先发送, 所述第二光包载荷后发送; 所述第 一光包载荷为与在发送所述第二光标签之前已经发送的第一光标签所对 应的光包载荷, 所述第三光标签为与所述第二光包载荷之后的第三光包 载荷所对应的光标签。
13、 根据权利要求 12所述的方法, 其特征在于, 所述在发送所述 第二光标签与发送所述第二光包载荷之间的保护时长内, 向光交换设备 发送获得的所述第三光标签和 /或所述第一光包载荷, 包括:
对所述第一生成器进行监控, 获得所述第三光标签的生成状态, 和 / 或, 用于对所述第二生成器进行监控, 获得所述第一光包载荷的生成状 态; 所述生成状态包括已经生成或者没有生成;
发送所述第二光标签之后, 依据所述第一光包载荷的生成状态和 / 或所述第一光标签的生成状态, 确定所述保护时长内, 所述第一光包载 荷的第一发送时刻和 /或所述第三光标签的第三发送时刻;
发送所述第二光标签之后, 开启预设的计时器, 所述计时器开始计 时;
当所述计时器到达所述第一发送时刻时, 对所述第一光包载荷进行 电光转换处理, 以获得对应的第二光信号; 和 /或, 当所述计时器到达所 述第三发送时刻时, 所述第三光标签进行电光转换处理, 以获得对应的 第二光信号;
向所述光交换设备发送所述第二光信号。
14、 根据权利要求 13所述的方法, 其特征在于, 所述依据所述第 一光包载荷的生成状态和 /或所述第一光标签的生成状态,确定所述保护 时长内, 所述第一光包载荷的第一发送时刻和 /或所述第三光标签的第三 发送时刻, 包括: 发送所述第二光标签之后, 启动预设的计时器, 以使得所述计时器 开始计时;
当所述计时器到达预设的第一时长时,确定发送所述第一光包载荷; 当所述计时器到达预设的第二时长时,且所述第三光标签已经生成, 确定发送所述第三光标签, 若所述第三光标签没有生成, 确定发送所述 第二光包载荷, 以及在所述第三光标签生成后, 确定发送所述第三光标 签。
15、 一种光分组的处理方法, 其特征在于, 所述方法包括:
接收光分组的发送设备在发送第二光标签与发送对应的第二光包载 荷之间的保护时长内, 发送的第三光标签和 /或第一光包载荷; 其中, 所 述第二光标签先发送, 所述第二光包载荷后发送; 所述第一光包载荷为 在发送所述第二光标签之前已经发送的第一光标签对应的光包载荷, 所 述第三光标签为所述第二光包载荷之后的第三光包载荷所对应的光标签; 依据所述第三光标签获得对应的第三控制信息; 依据所述第三控制 信息, 进行所述第三光标签对应的所述第三光包载荷的交换处理; 和 / 或, 依据第一控制信息, 进行所述第一光包载荷的交换处理, 所述第一 控制信息为依据所述第一光标签获得的。
16、 根据权利要求 15所述的方法, 其特征在于, 所述依据所述第 三控制信息,进行所述第三光标签对应的所述第三光包载荷的交换处理, 包括:
依据预设的第一时长和所述第三控制信息, 建立传输第三光包载荷 的光链路;
通过所述光链路进行所述第三光标签对应的所述第三光包载荷的交 换处理。
17、 根据权利要求 16所述的方法, 其特征在于, 所述依据第一控 制信息, 进行所述第一光包载荷的交换处理, 包括:
获得所述第一控制信息后, 启动计时器, 以使得所述计时器开始计 时;
当所述计时器到达所述第一时长时, 依据所述第一控制信息, 建立 传输第一光包载荷的光链路。
18、 根据权利要求 16所述的方法, 其特征在于, 所述第三光标签 包含长度信息, 所述依据预设的第一时长和所述第三控制信息, 建立传 输第三光包载荷的光链路, 包括:
比较所述第三光标签的前一个光标签包含的长度信息与预设的长度 阔值;
若所述长度信息小于或者等于所述长度阔值, 依据所述第三控制信 息, 建立传输第三光包载荷的光链路;
若所述长度信息大于所述长度阈值, 在获得所述第三控制信息后, 启动计时器, 以使得所述计时器开始计时, 以及在所述计时器到达所述 第一时长时,依据所述第三控制信息,建立传输第三光包载荷的光链路。
PCT/CN2014/079085 2014-06-03 2014-06-03 光分组的发送方法、设备、处理方法及光交换设备 WO2015184587A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2016571143A JP6353932B2 (ja) 2014-06-03 2014-06-03 光パケット送出方法及びデバイス、光パケット処理方法、並びに光スイッチングデバイス
EP14893899.6A EP3142275A4 (en) 2014-06-03 2014-06-03 Optical packet sending method and device, processing method and optical switching device
PCT/CN2014/079085 WO2015184587A1 (zh) 2014-06-03 2014-06-03 光分组的发送方法、设备、处理方法及光交换设备
CN201480077406.8A CN106464412B (zh) 2014-06-03 2014-06-03 光分组的发送方法、设备、处理方法及光交换设备
KR1020167036569A KR102030573B1 (ko) 2014-06-03 2014-06-03 광 패킷 전송 방법 및 장치, 처리 방법 및 광 스위칭 장치
US15/367,458 US10149025B2 (en) 2014-06-03 2016-12-02 Optical packet sending method and device, optical packet processing method, and optical switching device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/079085 WO2015184587A1 (zh) 2014-06-03 2014-06-03 光分组的发送方法、设备、处理方法及光交换设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/367,458 Continuation US10149025B2 (en) 2014-06-03 2016-12-02 Optical packet sending method and device, optical packet processing method, and optical switching device

Publications (1)

Publication Number Publication Date
WO2015184587A1 true WO2015184587A1 (zh) 2015-12-10

Family

ID=54765929

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079085 WO2015184587A1 (zh) 2014-06-03 2014-06-03 光分组的发送方法、设备、处理方法及光交换设备

Country Status (6)

Country Link
US (1) US10149025B2 (zh)
EP (1) EP3142275A4 (zh)
JP (1) JP6353932B2 (zh)
KR (1) KR102030573B1 (zh)
CN (1) CN106464412B (zh)
WO (1) WO2015184587A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464412B (zh) * 2014-06-03 2018-11-13 华为技术有限公司 光分组的发送方法、设备、处理方法及光交换设备
WO2016201704A1 (zh) * 2015-06-19 2016-12-22 华为技术有限公司 一种光开关控制方法及装置
CN109274425B (zh) * 2018-11-02 2021-11-30 国网四川省电力公司广安供电公司 一种智能跳纤系统的设计方法
US11502756B2 (en) * 2020-06-23 2022-11-15 Infinera Corporation Data synchronization in optical networks and devices
CN112291016B (zh) * 2020-10-30 2021-09-17 台州科技职业学院 非正交调制下的伪正交线路编码实现标签信号调制方法
CN113794956B (zh) * 2021-07-27 2022-07-22 北京理工大学 一种光分组交换的方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1343082A (zh) * 2001-11-01 2002-04-03 上海交通大学 多波长标记方式的光分组交换技术
CN101005330A (zh) * 2006-12-30 2007-07-25 电子科技大学 基于串行排列光正交码标签的光分组交换方法
CN102231864A (zh) * 2011-06-20 2011-11-02 东南大学 基于光码字标签的光分组组播发送、接收方法及其装置

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493120B1 (en) * 1999-02-17 2002-12-10 Alcatel Optical fiber-delay line buffers with void filling
US6721315B1 (en) * 1999-09-30 2004-04-13 Alcatel Control architecture in optical burst-switched networks
US6665495B1 (en) * 2000-10-27 2003-12-16 Yotta Networks, Inc. Non-blocking, scalable optical router architecture and method for routing optical traffic
US6757497B2 (en) * 2001-01-30 2004-06-29 The Regents Of The University Of California Optical layer multicasting using a single sub-carrier header and a multicast switch with active header insertion via reflective single sideband optical processing
US20020191251A1 (en) * 2001-06-19 2002-12-19 Ferguson Bruce A. All optical switching routing system
FR2834411B1 (fr) * 2002-01-03 2005-04-29 Cit Alcatel Procede et dispositif de gestion de paquets a multiplexage a repartition temporelle et repartition sur longueurs d'onde pour reseaux optiques
KR100467321B1 (ko) * 2002-06-17 2005-01-24 한국전자통신연구원 광 버스트 스위칭 망에서의 스케줄링 방법 및 헤더 패킷 데이터 자료구조
KR100487201B1 (ko) * 2003-02-04 2005-05-04 삼성전자주식회사 전기 버퍼를 이용한 대용량 광 라우터
US7848649B2 (en) * 2003-02-28 2010-12-07 Intel Corporation Method and system to frame and format optical control and data bursts in WDM-based photonic burst switched networks
EP1635494B1 (en) * 2003-06-19 2010-04-21 Sony Corporation Radio communication system, reception device and reception method for multi-carrier transmission
EP1608100A1 (en) 2004-06-17 2005-12-21 Mitsubishi Electric Information Technology Centre Europe B.V. Method for transmitting TDD frames with increased data payload
FR2875085B1 (fr) * 2004-09-08 2006-12-15 Cit Alcatel Station pour reseau optique apte a inserer des paquets dans un train de paquets en transit
KR100603254B1 (ko) * 2004-12-27 2006-07-24 삼성전자주식회사 광 버스트 스위칭 네트워크에서 빈전송구간 채움 및버스트 데이터 전송 방법
EP1744476A1 (en) * 2005-07-12 2007-01-17 Alcatel Transmission method and processing unit for a modulated optical signal
CN101582718B (zh) * 2009-06-12 2011-09-21 北京科技大学 一种基于单链路内波长使用率的波长保护方法
CN101977336B (zh) * 2010-11-24 2013-02-13 电子科技大学 基于布拉格衍射原理的光分组交换系统和方法
WO2012082838A1 (en) * 2010-12-14 2012-06-21 University Of Houston Dense wavelength division multiplexing multi-mode switching systems and methods for concurrent and dynamic reconfiguration with different switching modes
JP5411195B2 (ja) * 2011-03-30 2014-02-12 富士通テレコムネットワークス株式会社 光パケット交換システム
JP5426604B2 (ja) * 2011-04-26 2014-02-26 富士通テレコムネットワークス株式会社 光パケット交換システム
US8565114B2 (en) * 2011-07-29 2013-10-22 Nokia Corporation Cognitive radio resource utilization
US9960872B2 (en) * 2012-03-08 2018-05-01 Marvell International Ltd. Systems and methods for performing a soft-block of a queue based on a size of a remaining period of a guard band
US8971321B2 (en) * 2012-12-11 2015-03-03 Futurewei Technologies, Inc. System and method for accelerating and decelerating packets
CN106464412B (zh) * 2014-06-03 2018-11-13 华为技术有限公司 光分组的发送方法、设备、处理方法及光交换设备

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1343082A (zh) * 2001-11-01 2002-04-03 上海交通大学 多波长标记方式的光分组交换技术
CN101005330A (zh) * 2006-12-30 2007-07-25 电子科技大学 基于串行排列光正交码标签的光分组交换方法
CN102231864A (zh) * 2011-06-20 2011-11-02 东南大学 基于光码字标签的光分组组播发送、接收方法及其装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3142275A4 *

Also Published As

Publication number Publication date
KR102030573B1 (ko) 2019-10-10
US20170085971A1 (en) 2017-03-23
JP2017525186A (ja) 2017-08-31
CN106464412B (zh) 2018-11-13
EP3142275A1 (en) 2017-03-15
KR20170010006A (ko) 2017-01-25
CN106464412A (zh) 2017-02-22
JP6353932B2 (ja) 2018-07-04
EP3142275A4 (en) 2017-06-07
US10149025B2 (en) 2018-12-04

Similar Documents

Publication Publication Date Title
WO2015184587A1 (zh) 光分组的发送方法、设备、处理方法及光交换设备
JP5249682B2 (ja) 保護継電装置用通過時間固定装置
JPH11187051A (ja) 媒体アクセスコントローラからのパケットデータを伝送するための方法および装置
JP5649505B2 (ja) 同期制御システム
CN104185094A (zh) 传输数据的方法、装置和系统
US8624762B2 (en) Variable bitrate equipment
CN103220775A (zh) 一种实现数据同步的方法、装置和系统
JP5578023B2 (ja) 局側装置、宅側装置、光通信システム、および光通信システムの制御方法
US9369212B2 (en) System, method and apparatus for power saving using burst-mode transmission over point-to-point physical connections
CN106506134B (zh) 一种分组传送网的线路差动保护数据同步方法和系统
CN111200473A (zh) 一种基于fpga的分布式系统时钟同步控制器
JP2013153285A (ja) 加入者側通信装置、加入者側ゲートウェイ装置及び宅内通信システム
JP5300099B2 (ja) ネットワーク制御装置、通信速度変更方法及びプログラム
CN111147178B (zh) 一种基于fpga的分布式系统时钟同步集中器
WO2012159409A1 (zh) 动态速率数据业务的定帧方法和装置
KR20120051632A (ko) 링형 토폴로지를 갖는 분산 시스템에서의 클럭 동기화 방법 및 장치
JP5853737B2 (ja) 中継装置、中継装置制御方法、及び、中継装置制御プログラム
JP5919165B2 (ja) 子局装置、1対n通信システム及び子局装置の消費電力制御プログラム
WO2011157031A1 (zh) 用于同步数字系列系统的时钟调整方法和线卡
US20230224139A1 (en) Synchronized Control of Sensors in an Ethernet Network
JP7285806B2 (ja) ネットワークシステムおよび光トランシーバ
EP4210288A1 (en) Synchronized control of sensors in an ethernet network
WO2022201288A1 (ja) 信号転送装置、信号転送方法、信号転送プログラム、及び信号転送システム
US20210274047A1 (en) Voice communication terminal, information processing method for voice communication terminal, program, distribution server, and information processing method for distribution server
JP2003298614A (ja) 回線接続装置及び通信システム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14893899

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2016571143

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014893899

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014893899

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 20167036569

Country of ref document: KR

Kind code of ref document: A