CN106302240A - Received server-side client concurrently connects and data processing method - Google Patents
Received server-side client concurrently connects and data processing method Download PDFInfo
- Publication number
- CN106302240A CN106302240A CN201610695774.XA CN201610695774A CN106302240A CN 106302240 A CN106302240 A CN 106302240A CN 201610695774 A CN201610695774 A CN 201610695774A CN 106302240 A CN106302240 A CN 106302240A
- Authority
- CN
- China
- Prior art keywords
- data
- write pointer
- server
- relief area
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/72—Admission control; Resource allocation using reservation actions during connection setup
- H04L47/722—Admission control; Resource allocation using reservation actions during connection setup at the destination endpoint, e.g. reservation of terminal resources or buffer space
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9005—Buffering arrangements using dynamic buffer space allocation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9021—Plurality of buffers per packet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/90—Buffering arrangements
- H04L49/9047—Buffering arrangements including multiple buffers, e.g. buffer pools
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention relates to technical field of electric power communication, be specifically related to a kind of received server-side client and concurrently connect and data processing method, comprise the following steps: server end opens up one piece of end to end relief area;Setting buffers read pointer and write pointer;Received server-side client is asked, receiving and place the data into the buffer zone address that write pointer points to afterwards, write pointer is from increasing a data unit simultaneously, and read pointer points to next data cell, then receive next connection request, and the data received are not done any process;Server end is that the data of relief area process a task of opening up specially, and this task reads the data of the buffer location that write pointer points to, and then data are done corresponding process, and then read pointer is from increasing a data unit, until overlapping with write pointer;The present invention can respond the request of more client at short notice, and the data of client are processed and transfers to another task individually to perform, and improves server response efficiency.
Description
Technical field
The present invention relates to technical field of electric power communication, be specifically related to a kind of received server-side client and concurrently connect sum
According to processing method.
Background technology
In power monitoring field, along with development and the increase of user of the Internet, the visitor faced by master station server end
Family terminal number amount gets more and more.When the request of existing most of received server-side clients, directly process the data of user,
Just beginning to respond to next user's request after returning to the corresponding response of client, therefore data processing time becomes restriction service
The bottleneck of device end response;It addition, in minority server, generate multiple process or thread parallel process multiple users and asks
Asking, process or thread can be on-demand or be generated in advance, and multiple processes simultaneously run or thread will consume substantial amounts of system money
Source, if client number of requests is too much, will certainly cause what customer in response end asked to slow.
For the problems referred to above, we separate reception and the process of data in the urgent need to a kind of technology, make server exist
As far as possible many client requests can be responded in certain time.
Summary of the invention
In order to solve the deficiency in above-mentioned technical problem, it is an object of the invention to: a kind of received server-side visitor is provided
Family end concurrently connects and data processing method, it is possible to process the data of client efficiently, response.
The present invention solves that the technical scheme that its technical problem is used is:
Described received server-side client concurrently connects and data processing method, comprises the following steps:
A, server end open up one piece of end to end relief area;
B, setting buffers read pointer and write pointer, and it is simultaneously directed to the head of buffer queue;
C, received server-side client are asked, and receive and place the data into the buffer zone address that write pointer points to afterwards,
Write pointer is from increasing a data unit simultaneously, and read pointer points to next data cell, then receives next connection request, and
The data received are not done any process;
D, server end are that the data of relief area process a task of opening up specially, and this task reads the slow of write pointer sensing
Rushing the data of zone position, then data are done corresponding process, client carries out response, then read pointer is from increasing data
Unit, until overlapping with write pointer.
Further preferably, the relief area in step a is circle queue relief area, and the size of circle queue relief area is fixed.
Compared with prior art, the method have the advantages that
The present invention can respond the request of more client at short notice, and the data of client are processed and transfers to another
Individual task individually performs, and improves server response efficiency.
Accompanying drawing explanation
The FB(flow block) of Fig. 1 present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings the embodiment of the present invention is described further:
Embodiment 1
The most described received server-side client concurrently connects and data processing method, comprises the following steps:
A, server end open up one piece of end to end relief area;
B, setting buffers read pointer and write pointer, and it is simultaneously directed to the head of buffer queue;
C, received server-side client are asked, and receive and place the data into the buffer zone address that write pointer points to afterwards,
Write pointer is from increasing a data unit simultaneously, and read pointer points to next data cell, then receives next connection request, and
The data received are not done any process;
D, server end are that the data of relief area process a task of opening up specially, and this task reads the slow of write pointer sensing
Rushing the data of zone position, then data are done corresponding process, client carries out response, then read pointer is from increasing data
Unit, until overlapping with write pointer.
Wherein, the relief area in step a is circle queue relief area, and the size of circle queue relief area is fixed.
Claims (2)
1. a received server-side client concurrently connects and data processing method, it is characterised in that comprise the following steps:
A, server end open up one piece of end to end relief area;
B, setting buffers read pointer and write pointer, and it is simultaneously directed to the head of buffer queue;
C, received server-side client are asked, and receive and place the data into the buffer zone address that write pointer points to afterwards, simultaneously
Write pointer is from increasing a data unit, and read pointer points to next data cell, then receives next connection request, and the most right
The data received do any process;
D, server end are that the data of relief area process a task of opening up specially, and this task reads the relief area that write pointer points to
Then data are done corresponding process by the data of position, and client carries out response, and then read pointer is from increasing a data sheet
Position, until overlapping with write pointer.
Received server-side client the most according to claim 1 concurrently connects and data processing method, it is characterised in that
Relief area in step a is circle queue relief area, and the size of circle queue relief area is fixed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610695774.XA CN106302240A (en) | 2016-08-19 | 2016-08-19 | Received server-side client concurrently connects and data processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610695774.XA CN106302240A (en) | 2016-08-19 | 2016-08-19 | Received server-side client concurrently connects and data processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106302240A true CN106302240A (en) | 2017-01-04 |
Family
ID=57661936
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610695774.XA Pending CN106302240A (en) | 2016-08-19 | 2016-08-19 | Received server-side client concurrently connects and data processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106302240A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391281A (en) * | 2017-08-09 | 2017-11-24 | 腾讯科技(深圳)有限公司 | A kind of data processing method of server, device and storage medium |
CN112235204A (en) * | 2020-10-13 | 2021-01-15 | 中移(杭州)信息技术有限公司 | Data reporting method, system, electronic equipment and storage medium |
CN113992608A (en) * | 2021-10-25 | 2022-01-28 | 北京科东电力控制系统有限责任公司 | Method, device and storage medium for optimizing network receiving and transmitting packet path |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1833206A1 (en) * | 2006-03-10 | 2007-09-12 | Mitel Networks Corporation | Method for distributing connection attempts to a server |
CN102944837A (en) * | 2012-11-25 | 2013-02-27 | 山东电力集团公司滨州供电公司 | Device for monitoring breaker state |
CN203722267U (en) * | 2013-12-09 | 2014-07-16 | 山东智洋电气有限公司 | Communication power supply management terminal |
US20150365274A1 (en) * | 2014-06-11 | 2015-12-17 | International Business Machines Corporation | Live partition mobility with shared persistent reservations |
-
2016
- 2016-08-19 CN CN201610695774.XA patent/CN106302240A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1833206A1 (en) * | 2006-03-10 | 2007-09-12 | Mitel Networks Corporation | Method for distributing connection attempts to a server |
CN102944837A (en) * | 2012-11-25 | 2013-02-27 | 山东电力集团公司滨州供电公司 | Device for monitoring breaker state |
CN203722267U (en) * | 2013-12-09 | 2014-07-16 | 山东智洋电气有限公司 | Communication power supply management terminal |
US20150365274A1 (en) * | 2014-06-11 | 2015-12-17 | International Business Machines Corporation | Live partition mobility with shared persistent reservations |
Non-Patent Citations (1)
Title |
---|
蒙博宇: "环形缓冲区的实现", 《STM32自学笔记-第2版》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107391281A (en) * | 2017-08-09 | 2017-11-24 | 腾讯科技(深圳)有限公司 | A kind of data processing method of server, device and storage medium |
CN112235204A (en) * | 2020-10-13 | 2021-01-15 | 中移(杭州)信息技术有限公司 | Data reporting method, system, electronic equipment and storage medium |
CN113992608A (en) * | 2021-10-25 | 2022-01-28 | 北京科东电力控制系统有限责任公司 | Method, device and storage medium for optimizing network receiving and transmitting packet path |
CN113992608B (en) * | 2021-10-25 | 2024-01-05 | 北京科东电力控制系统有限责任公司 | Network transceiver packet path optimization method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3255553B1 (en) | Transmission control method and device for direct memory access | |
CN110493030B (en) | Network optimization method and device, computer equipment and storage medium | |
US10878525B2 (en) | System and method of user behavior based service dispatch | |
CN103237031B (en) | Time source side method and device in order in content distributing network | |
CN109857577B (en) | Access control method, device, medium, and electronic apparatus | |
CN104915839A (en) | Order pushing method and device | |
CN105208125A (en) | Message transmission method, device and system | |
CN110991903A (en) | Service personnel allocation method, device, equipment and storage medium | |
CN106302240A (en) | Received server-side client concurrently connects and data processing method | |
CN109815405B (en) | Gray level shunting method and system | |
CN110287146A (en) | Using the method, equipment and computer storage medium of downloading | |
US20190370293A1 (en) | Method and apparatus for processing information | |
CN102932358B (en) | Third party's file of content-based distributing network is rewritten and is accelerated distribution method and device | |
CN107301084B (en) | Virtual machine migration method and device of cluster server, server and storage medium | |
JP5961471B2 (en) | Output comparison method in multiple information systems | |
CN107819823A (en) | A kind of information processing method, server and computer-readable recording medium | |
CN103067495A (en) | Method and device pushing information | |
CN108289165B (en) | Method and device for realizing camera control based on mobile phone and terminal equipment | |
CN104125220A (en) | Method for achieving rapid data exchange and response of cell phone application and background database | |
CN105162814A (en) | Prompting method and apparatus based on information of interest | |
CN115410580A (en) | Voice recognition method, device, equipment and medium for command scheduling system | |
CN105912477B (en) | A kind of method, apparatus and system that catalogue is read | |
CN110858240A (en) | Front-end module loading method and device | |
CN109471574B (en) | Method and device for configuring resources | |
CN112769960A (en) | Active flow control method and system based on Nginx 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 |