The invention discloses a PWE3 (Pseudo-Wire Emulation Edge to Edge) device and a method for reading and writing data in a
jitter buffer of the device. The method comprises the steps as follows: setting cycles at intervals, counting residual data amount in the
jitter buffer, and obtaining a statistics PDV (
path delay value) according to the residual data amount and a TDM (
time division multiplexing)
business data rate V; ensuring the difference value between the statistics PDV and the current PDV, decreasing the current PDV according to a set step width if the absolute value of the difference value is larger than a set threshold value and the difference value is negative, and increasing the current PDV according to the set step width if the absolute value of the difference value is larger than the set threshold value and the difference value is positive; and determining data amount PDVt according to the TDM
business data rate V and the current PDV, and starting to read data from the
jitter buffer after data is started to be written in the jitter buffer and until the data amount reaches PDVt. According to the embodiment of the invention, the PDV used for reading and writing jitter buffer data is adjusted dynamically according to a specific step width, so that the balance between
delay and
packet loss can be realized effectively.