The sampled-grating distributed Bragg reflector (SGDBR) laser is a typical and important photonic integrated device, and has potential wide application to agile optical networks. A new dynamic model for this device has been developed, which combines the traveling-wave method for the active region and the transfer-matrix method for the passive sections into a single procedure. The behaviors of wavelength switching of the SGDBR laser, which include the transient spectrum and mode competition, have been studied in detail using this model. A new efficient way has been proposed to improve the wavelength switching performance only by increasing the coupling coefficients without changing the carrier density.SGDBR, traveling-wave method, transfer-matrix method, digital filter approach, wavelength switching Widely tunable lasers, which can set output wavelength according to the requirement, have attracted broad commercial attention and been viewed as the step stones toward the next generation agile optical networks. They are now playing an important role in optical networking, not only sparing dozens of fixed wavelength DFB lasers, but also becoming one of the key enablers for automatic wavelength provisioning and wavelength routing, furthermore to realize the dynamic bandwidth resource allocation and improve the network reliability, etc. [1] . Among various solutions for widely tunable lasers, sampled-grating DBR (SGDBR) lasers are the most promising candidates due to their wide tuning range and superior output performance. Furthermore, it also has potential application to optical packet/burst switching and wavelength switching due to its fast switching speed [2−4] .Both theoretical and experimental studies have verified that switching delay is mainly limited by the carrier lifetime in the passive sections and mode competition behaviors [5,6] . Many theoretical models have been established for analyzing the switching phenomena of the three-section DBR lasers [7−9] . However, limited by their complicated device structure of four-section SGDBR laser, these conventional dynamic models do not work very efficiently, especially the analysis of the dynamic behaviors during wavelength switching.The time-domain traveling-wave (TDTW) model is a powerful tool for simulating the dynamic behaviors and has been verified to give robust and reliable results for various types of lasers [10,11] . The essence of this model is that the bidirectional optical fields are operated in the time domain and moved forward each time-step t by a distance determined by the group velocity: z=v g t, and keep a consistent manner with the carrier density and optical gain [10] . However, its time-step should be small enough restricted by the Nyquist condition, and therefore, it is a challenging task to apply it to the SGDBR lasers due to their large dimension. Furthermore, the complex structure of the sampled grating further en-