CN102904764A - Data transmission device and transmission method thereof - Google Patents
Data transmission device and transmission method thereof Download PDFInfo
- Publication number
- CN102904764A CN102904764A CN2012104607584A CN201210460758A CN102904764A CN 102904764 A CN102904764 A CN 102904764A CN 2012104607584 A CN2012104607584 A CN 2012104607584A CN 201210460758 A CN201210460758 A CN 201210460758A CN 102904764 A CN102904764 A CN 102904764A
- Authority
- CN
- China
- Prior art keywords
- data
- queue
- transfer
- receiving
- client
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Communication Control (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a data transmission device, which comprises a data transmission client and a data transmission server, wherein the data transmission client is provided with two message queues; the first message queue is a first sending queue, and the second message queue is a receiving queue; the first sending queue is used for receiving data sent by a user side; the first receiving queue is used for receiving data sent the data transmission server; the data transmission server is also provided with two message queues; the first message queue is a second receiving queue, and the second message queue is a second sending queue; the data transmission server receives the data from the data transmission client through network connection and sends the data to the second receiving queue; the second sending queue receives data sent by a network of a network management system; and the data transmission server reads the data from the second sending queue and sends the data to the data transmission client through a transmission control protocol (TCP) or a user datagram protocol (UDP).
Description
Technical field
The application designs a kind of data transmission device and transmission method thereof, and the especially fault data of network management system transmission belongs to the communications field.
Background technology
Network management system is a software and hardware combining take software as main the distribute network application system, its objective is supervising the network, and network-efficient is normally moved.The fault data bag of current network management system based on snmp protocol is based on udp protocol and transmits, because udp protocol itself is check and retransmission mechanism not, especially occur when unusual when the communication of network management system, the phenomenon of lost data packets will often occur in transport process, can not guarantee the integrality that data transmit, namely can not guarantee the consistency of fault data between the managed object that webmaster gathers.Therefore, how improving validity and the fail safe of the fault data of network management system, is the technical problem that those skilled in the art need solution badly.
Summary of the invention
The invention provides a kind of data transmission device, comprise the first module and the second module, described the first module is the transfer of data client, and described the second module is the data transfer server end; Described transfer of data client, it has two message queues, and the first message queue is the first transmit queue, and the second message queue is the first receiving queue; Wherein, the first transmit queue is used for receiving the data that user side sends over, and the first receiving queue is used for receiving the data that described data transport service end sends over;
Described data transfer server end also has two message queues, and the first message queue is the second receiving queue, and the second message queue is the second transmit queue; Wherein, described data transfer server end receives data from the transfer of data client by network connection, and above-mentioned data are sent in the second receiving queue; Described the second transmit queue receives the data that the network management system network sends, described data transfer server end reading out data from the second transmit queue, and by TCP or udp protocol described data are sent to the transfer of data client.
Wherein, the described data that described the first transmit queue receives are the fault message of the call failure of voice gateways system, and it is any or combinations thereof by caller information, called party information, gap information.
Wherein, the described data that described the first receiving queue receives are the director data that network management system sends, the instruction of especially restarting process.
The present invention also provides a kind of data transmission method, and the first module is provided, and described the first module is the transfer of data client, and the second module is provided, and described the second module is the data transfer server end; Described transfer of data client, it has two message queues, and the first message queue is the first transmit queue, and the second message queue is the first receiving queue; Wherein, the first transmit queue is used for receiving the data that user side sends over, and the first receiving queue is used for receiving the data that described data transport service end sends over;
Described data transfer server end also has two message queues, and the first message queue is the second receiving queue, and the second message queue is the second transmit queue; Wherein, described data transfer server end receives data from the transfer of data client by network connection, and above-mentioned data are sent in the second receiving queue; Described the second transmit queue receives the data that the network management system network sends, described data transfer server end reading out data from the second transmit queue, and by TCP or udp protocol described data are sent to the transfer of data client.
Wherein, when the speed of obtaining described data when the transfer of data client from the first transmit queue sends to the speed of data of the first transmit queue less than user side, then the data of the first transmit queue are full, the significant data that user side will be sent, be cached to first this locality, and the unessential data that user side will send are abandoned.
Wherein, described significant data is the fault data of voice gateways in the network management system.
If described transfer of data client sends data failure to the data transfer server end, and these data to send unsuccessfully be not situation about making a mistake because of network connection (for example socket connection), then resend above-mentioned data.
If retransmit behind certain number of times still unsuccessful, then with described data buffer storage in this locality, send again after a while, feed back successfully until data send.
If described transfer of data client sends data failure to the data transfer server end, and it unsuccessfully is because the situation that network connection (for example socket connects) makes a mistake that these data send, the data buffer storage that does not just send is to local, when transfer of data client and data transfer server end rebulid TCP or UDP and are connected, send first the data in the cache file after the successful connection, send again the data in described the first transmit queue.
Description of drawings
Fig. 1 is the system construction drawing of the embodiment of the invention
Embodiment
For making the purpose, technical solutions and advantages of the present invention express clearlyer, the present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
Referring to accompanying drawing 1, accompanying drawing 1 has provided the Organization Chart of data transmission device system.This data transmission device comprises two modules, module 1 is that transfer of data client (Client) 1, module 2 are data transfer server end (Server) 2, transfer of data client 1 is connected with the data transfer server end can pass through LAN or WAN or INTERNET connection, and specifically adopts Transmission Control Protocol or udp protocol to communicate.
Described transfer of data client 1, have two message queues, first message queue is transmit queue 11, transmit queue 11 is used for receiving the data that user side (accompanying drawing 1 is not shown) sends over, network management system managed object for example, especially, voice gateways system, call distribution system etc. can be referred to as user side.Transfer of data client 1 is reading out data from transmit queue 11, by TCP or udp protocol described data is sent to data transfer server end 2.Described data for example can be, the fault message of the call failure of voice gateways system comprises caller, called and time slot information etc.
Second message queue is receiving queue 12, receiving queue 12 is used for the data that receive data transmission service end module 2 sends, user side initiatively obtains described data from receiving queue 12, described data for example can be, the director data that network management system sends, the instruction of especially restarting process.
If the overabundance of data in the described transmit queue 11, following situation namely appears, for example, when transfer of data client 1 is obtained described data from transmit queue 11 speed sends to the speed of data of transmit queue 11 less than user side, then the data in the transmit queue 11 are more long-pending fuller, will occur to preserve the data that user side sends over, at this moment, because transmit queue is full, the significant data that just must will send some user sides, for example the fault data of voice gateways in the network management system is cached to first this locality, and the unessential data that user side will send are abandoned.By this operation, the significant data that user side will send preferentially can be preserved, guaranteed that the significant data in the system can transmit effectively.
In addition, the present invention has also carried out following consideration.That is, when sending unsuccessfully, data how effectively to operate.Be divided into two kinds of situations, the first situation is: if described transfer of data client 1, send data failure to data transfer server end 2, and it unsuccessfully is not the situation that (for example socket connects) makes a mistake because network connection that these data send, and need to resend above-mentioned data, if retransmit behind certain number of times still unsuccessful, be traditionally arranged to be 5 times, so also need this data buffer storage in this locality, send again after a while, feed back successfully until data send.
Another situation, if described transfer of data client 1, send data failure to data transfer server end 2, and it unsuccessfully is because the situation that network connection (for example socket connects) makes a mistake that these data send, the data buffer storage that then preferentially will need not send is in local file, when transfer of data client 1 and data transfer server end 2 rebulid TCP or UDP and are connected, send first the data in the cache file after the successful connection, send again the data in the described transmit queue 11.
Described data transfer server end 2 also has two message queues, first message queue is receiving queue 21, data transfer server end 2 is by the data of network connection reception from transfer of data client 1, and above-mentioned data are sent in the receiving queue 21, process for network management system (not shown in the accompanying drawing 1), especially network manager.
Second message queue is transmit queue 22, receives the data that the network management system network sends, and described data for example can be the director data that network management system sends, the instruction of especially restarting process.Data transfer server end 2 is reading out data from transmit queue 22, by TCP or udp protocol described data is sent to transfer of data client 1.
In addition, the present invention has also carried out following consideration.Namely, data transfer server end 2 effective supervising the networks connect (for example socket connects) resource, when within the regular hour, described data transport service end 2 does not receive the data that transfer of data client 1 sends, data transport service end 2 will disconnect network connection with transfer of data client 1, and discharge related resource.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.
Claims (9)
1. a data transmission device comprises the first module and the second module, and described the first module is the transfer of data client, and described the second module is the data transfer server end; Described transfer of data client, it has two message queues, and the first message queue is the first transmit queue, and the second message queue is the first receiving queue; Wherein, the first transmit queue is used for receiving the data that user side sends over, and the first receiving queue is used for receiving the data that described data transport service end sends over;
Described data transfer server end also has two message queues, and the first message queue is the second receiving queue, and the second message queue is the second transmit queue; Wherein, described data transfer server end receives data from the transfer of data client by network connection, and above-mentioned data are sent in the second receiving queue; Described the second transmit queue receives the data that the network management system network sends, described data transfer server end reading out data from the second transmit queue, and by TCP or udp protocol described data are sent to the transfer of data client.
2. device as claimed in claim 1, the described data that described the first transmit queue receives are the fault message of the call failure of voice gateways system, it is any or combinations thereof by caller information, called party information, gap information.
3. device as claimed in claim 1, the described data that described the first receiving queue receives are the director data that network management system sends, the instruction of especially restarting process.
4. a data transmission method provides the first module, and described the first module is the transfer of data client, and the second module is provided, and described the second module is the data transfer server end; Described transfer of data client, it has two message queues, and the first message queue is the first transmit queue, and the second message queue is the first receiving queue; Wherein, the first transmit queue is used for receiving the data that user side sends over, and the first receiving queue is used for receiving the data that described data transport service end sends over;
Described data transfer server end also has two message queues, and the first message queue is the second receiving queue, and the second message queue is the second transmit queue; Wherein, described data transfer server end receives data from the transfer of data client by network connection, and above-mentioned data are sent in the second receiving queue; Described the second transmit queue receives the data that the network management system network sends, described data transfer server end reading out data from the second transmit queue, and by TCP or udp protocol described data are sent to the transfer of data client.
5. method as claimed in claim 4, when the speed of obtaining described data when the transfer of data client from the first transmit queue sends to the speed of data of the first transmit queue less than user side, then the data of the first transmit queue are full, the significant data that user side will be sent, be cached to first this locality, and the unessential data that user side will send are abandoned.
6. method as claimed in claim 5, described significant data is the fault data of voice gateways in the network management system.
7. method as claimed in claim 4, if described transfer of data client sends data failure to the data transfer server end, and it unsuccessfully is not because the situation that network connection (for example socket connects) makes a mistake then resends above-mentioned data that these data send.
8. method as claimed in claim 7, if retransmit behind certain number of times still unsuccessful, then with described data buffer storage in this locality, send again after a while, feed back successfully until data send.
9. method as claimed in claim 4, if described transfer of data client sends data failure to the data transfer server end, and it unsuccessfully is because the situation that network connection (for example socket connects) makes a mistake that these data send, the data buffer storage that does not just send is to local, when transfer of data client and data transfer server end rebulid TCP or UDP and are connected, send first the data in the cache file after the successful connection, send again the data in described the first transmit queue.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210460758.4A CN102904764B (en) | 2012-11-15 | 2012-11-15 | A kind of data transmission device and transmission method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210460758.4A CN102904764B (en) | 2012-11-15 | 2012-11-15 | A kind of data transmission device and transmission method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102904764A true CN102904764A (en) | 2013-01-30 |
CN102904764B CN102904764B (en) | 2016-08-31 |
Family
ID=47576813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210460758.4A Active CN102904764B (en) | 2012-11-15 | 2012-11-15 | A kind of data transmission device and transmission method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102904764B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105827686A (en) * | 2015-11-16 | 2016-08-03 | 广东亿迅科技有限公司 | Data transmission method |
CN107665139A (en) * | 2016-07-29 | 2018-02-06 | 北京新唐思创教育科技有限公司 | The implementation method and device drawn for the real time bidirectional in online teaching |
CN112667527A (en) * | 2021-01-15 | 2021-04-16 | 北京云上曲率科技有限公司 | Method for ensuring data acquisition accuracy of client and client |
CN113301103A (en) * | 2021-02-05 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data processing system, method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6301257B1 (en) * | 1997-03-19 | 2001-10-09 | Nortel Networks Limited | Method and apparatus for transmitting data frames between switches in a meshed data network |
CN101119566A (en) * | 2007-09-24 | 2008-02-06 | 中兴通讯股份有限公司 | Module and method for implementing voice cache on mobile terminal |
CN101132257A (en) * | 2006-08-24 | 2008-02-27 | 华为技术有限公司 | Condition report transmission method and sending terminal equipment thereof |
CN101494652A (en) * | 2009-02-27 | 2009-07-29 | 中国电子科技集团公司第五十四研究所 | Method for reinforcing TCP protocol performance in satellite communication system |
CN102394925A (en) * | 2011-10-28 | 2012-03-28 | 广东电网公司电力科学研究院 | Communication method and device for remote monitoring diagnosis center and area regulation center |
-
2012
- 2012-11-15 CN CN201210460758.4A patent/CN102904764B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6301257B1 (en) * | 1997-03-19 | 2001-10-09 | Nortel Networks Limited | Method and apparatus for transmitting data frames between switches in a meshed data network |
CN101132257A (en) * | 2006-08-24 | 2008-02-27 | 华为技术有限公司 | Condition report transmission method and sending terminal equipment thereof |
CN101119566A (en) * | 2007-09-24 | 2008-02-06 | 中兴通讯股份有限公司 | Module and method for implementing voice cache on mobile terminal |
CN101494652A (en) * | 2009-02-27 | 2009-07-29 | 中国电子科技集团公司第五十四研究所 | Method for reinforcing TCP protocol performance in satellite communication system |
CN102394925A (en) * | 2011-10-28 | 2012-03-28 | 广东电网公司电力科学研究院 | Communication method and device for remote monitoring diagnosis center and area regulation center |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105827686A (en) * | 2015-11-16 | 2016-08-03 | 广东亿迅科技有限公司 | Data transmission method |
CN107665139A (en) * | 2016-07-29 | 2018-02-06 | 北京新唐思创教育科技有限公司 | The implementation method and device drawn for the real time bidirectional in online teaching |
CN112667527A (en) * | 2021-01-15 | 2021-04-16 | 北京云上曲率科技有限公司 | Method for ensuring data acquisition accuracy of client and client |
CN113301103A (en) * | 2021-02-05 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data processing system, method and device |
CN113301103B (en) * | 2021-02-05 | 2024-03-12 | 阿里巴巴集团控股有限公司 | Data processing system, method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102904764B (en) | 2016-08-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106330414B (en) | Message transmission method and device | |
EP2590348B1 (en) | Method and apparatus for transmitting and receiving media streams | |
US8843175B2 (en) | Apparatus and methods for mitigating protocol-induced back-offs in a communication network | |
US9456384B2 (en) | Message processing method, device, and system | |
JP2014524092A (en) | System and method for reliable virtual bidirectional data stream communication with single socket point-to-multipoint performance | |
US9571409B2 (en) | Maximum transmission unit negotiation method and data terminal | |
CN103532822A (en) | Management method for message delivery, server and system thereof | |
WO2019105317A1 (en) | Method for sending service packet, network device, and system | |
CN105262836A (en) | Information push method of server and push information reception method of client | |
CN103548315A (en) | Method and apparatus for high performance low latency real time notification delivery | |
CN102904764A (en) | Data transmission device and transmission method thereof | |
US10972923B2 (en) | Information processing method and device | |
CN102801692B (en) | A kind of transmission control protocol optimization method and system connecting based on division | |
EP2933963A1 (en) | Offload method, device and system | |
CN111385068B (en) | Data transmission method, device, electronic equipment and communication system | |
US20160204904A1 (en) | Service Message Transmitting Method and Device | |
CN104168273A (en) | Method and system for achieving TCP proxy in thin AP mode | |
CN111740897B (en) | Method for information processing, electronic device, and storage medium | |
US11444882B2 (en) | Methods for dynamically controlling transmission control protocol push functionality and devices thereof | |
JP2017092692A (en) | Data transmission control system and method, and data transmission control program | |
CN109586931B (en) | Multicast method and terminal equipment | |
KR102302772B1 (en) | Apparatus and method for managing buffers for rate pacing | |
CN115348336A (en) | Universal transmission architecture for heterogeneous data streams | |
WO2019015487A1 (en) | Data retransmission method, rlc entity and mac entity | |
CN109688085B (en) | Transmission control protocol proxy method, storage medium and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210108 Address after: No.2006 Xiyuan Avenue, Chengdu, Sichuan 611731 Patentee after: University of Electronic Science and technology of Sichuan foundation for education development Address before: Room 402, area a, Liye building, science and Technology Park, China sensor network university, Taike Park, Wuxi New District, Wuxi City, Jiangsu Province, 214135 Patentee before: WUXI UESTC TECHNOLOGY DEVELOPMENT Co.,Ltd. |