摘要 |
Provided are a data transmission method and apparatus based on a serial server. In the method, when receiving a data packet sent by a serial terminal, a serial server starts a timer, judges whether other data packets sent by the serial terminal are received within a timing duration of the timer, and caches the data packet and restarts the timer when the other data packets are received, or otherwise sends the cached data packet to a first far-end network device. In the embodiments of the present invention, since after receiving a data packet from a serial terminal a serial server starts a timer, when the data packet is received again within the duration range of the timer it is considered that the data packet is sent by the serial terminal, and the data packet is cached, or otherwise it is considered that the data sending process of the serial terminal ends, and accordingly the cached data packet is sent to a far-end network device, so as to recombine the cached data packet, thereby reducing the configuration requirement and resource consumption of the far-end network device, and improving the operation efficiency of the far-end network device. |