CN108063713A - A kind of processing method and processing device of network request - Google Patents
A kind of processing method and processing device of network request Download PDFInfo
- Publication number
- CN108063713A CN108063713A CN201610986361.7A CN201610986361A CN108063713A CN 108063713 A CN108063713 A CN 108063713A CN 201610986361 A CN201610986361 A CN 201610986361A CN 108063713 A CN108063713 A CN 108063713A
- Authority
- CN
- China
- Prior art keywords
- network request
- request
- network
- terminal
- analysis result
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Abstract
The invention discloses a kind of processing method and processing devices of network request, it is related to Internet technical field, main purpose is the network request that terminal generates when opening VPN services in local parsing and analysis result is counted, shows, with the speed of response for improving terminal statistics and showing network request analysis result.The main technical solution of the present invention is:The network request of terminal applies is obtained in Virtual Private Network;The network request is preserved into the caching of terminal;It is parsed according to the message format of network request in the caching, obtains the analysis result of the network request;The analysis result is counted and showed.Present invention is mainly used for the network requests generated to terminal local to carry out processing locality.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of processing method and processing devices of network request.
Background technology
Virtual Private Network (Virtual Private Network, abbreviation VPN) refers to establishing in common network special
With the technology of network.VPN network can be understood as being to fictionalize the enterprises special line come.It can be by special encrypted logical
Interrogate agreement connection, established on internet between two or more intranets of different places one it is proprietary logical
Interrogate circuit.Usually, for the terminal in VPN network after VPN services are opened, the all-network request in the terminal will be by virtual
Network interface card obtains and is sent to vpn server, is received the network request of terminal by vpn server and the network request is solved
Network request, is forwarded in corresponding destination server by analysis further according to the result of parsing, and receives destination server return
Data.Meanwhile terminal is when counting and showing the particular content for the network request locally initiated, then is needed to vpn server
The analysis result of terminal network request is obtained, so as to be counted and be showed.
However in existing VPN network, vpn server generally requires to provide VPN network service to great amount of terminals, at this point,
Vpn server just needs to handle substantial amounts of network request simultaneously, since processing capacity is relatively limited, will result in and is lined up processing
Phenomenon so that substantial amounts of network request can not obtain timely processing, so as to which each terminal of no normal direction feeds back corresponding network request
Analysis result, cause terminal that can relatively lag behind when counting and showing the analysis result of network request, influence the use of user
Operating experience.
The content of the invention
In view of this, the present invention provides a kind of processing method and processing device of network request, and main purpose is opening VPN
The network request that terminal generates in local parsing and counts analysis result, showed during service, to improve terminal statistics
With the speed of response for showing network request analysis result.
In order to achieve the above objectives, present invention generally provides following technical solutions:
On the one hand, the present invention provides a kind of processing method of network request, this method includes:
The network request of terminal applies is obtained in Virtual Private Network;
The network request is preserved into the caching of terminal;
It is parsed according to the message format of network request in the caching, obtains the analysis result of the network request;
The analysis result is counted and showed.
Preferably, before being parsed according to the message format of network request in the caching, the method further includes:
The request message of the network request is read from the caching;
The header information in the request message is analyzed, the header information includes:The version of message, agreement, source address
With port numbers and destination address and port numbers;
The message format of the network request is determined according to the header information.
Preferably, the message format according to network request in the caching is parsed, and obtains the network request
Analysis result include:
Destination address in the request message determines that the network request target to be accessed takes with port numbers
Business device;
The field location of the request data in the request message is determined according to the message format;
The request data is extracted according to the field location.
Preferably, the network request that terminal applies are obtained in Virtual Private Network includes:
Microsoft Loopback Adapter is established in the terminal, and the Microsoft Loopback Adapter is used to configure virtual network interface, connection for the terminal
The virtual special network server;
The network request of terminal applies is obtained in the Virtual Private Network using the Microsoft Loopback Adapter.
Preferably, parsed according to the message format of network request in the caching, obtain the network request
After analysis result, the method further includes:
The network request destination server to be accessed is extracted from the analysis result;
The network request is sent to the destination server.
On the other hand, the present invention also provides a kind of processing unit of network request, which includes:
Acquiring unit, for obtaining the network request of terminal applies in Virtual Private Network;
Storage unit, the network request for the acquiring unit to be obtained are preserved into the caching of terminal;
Resolution unit for being parsed according to the message format of the network request cached in the storage unit, obtains
The analysis result of the network request;
Processing unit, the analysis result for being obtained to the resolution unit are counted and showed.
Preferably, described device further includes:
Reading unit, for before resolution unit is parsed according to the message format of network request in the caching,
The request message of the network request is read from the caching;
Analytic unit, for analyzing the header information in the request message that the reading unit obtains, the header information
Including:Version, agreement, source address and the port numbers and destination address and port numbers of message;
Determination unit, the header information for being obtained according to the analytic unit determine the message lattice of the network request
Formula.
Preferably, the resolution unit includes:
Determining module determines that the network request is wanted for the destination address in the request message and port numbers
The destination server of access;
The determining module is additionally operable to, and the field of the request data in the request message is determined according to the message format
Position;
The request data is extracted in extraction module, the field location for being determined according to the determining module.
Preferably, the acquiring unit includes:
Creation module, for establishing Microsoft Loopback Adapter in the terminal, the Microsoft Loopback Adapter is used for as terminal configuration virtually
Network interface connects the virtual special network server;
Acquisition module, the Microsoft Loopback Adapter for being established using the creation module are obtained eventually in the Virtual Private Network
Hold the network request of application.
Preferably, described device further includes:
Extraction unit for being parsed in the resolution unit according to the form of network request in the caching, obtains
After the analysis result of the network request, the network request destination service to be accessed is extracted from the analysis result
Device;
Transmitting element, for the network request to be sent to the destination server that the extraction unit obtains.
It is to service to open in VPN according to a kind of processing method and processing device for network request that the invention described above is proposed
In the case of, it obtains the network request that terminal applies are sent and completes parsing operation in terminal local, analysis result is presented in end
In end, meanwhile, according to obtained analysis result, it can determine the network request destination server to be accessed, and by the network
Request is sent in destination server.Network request processing mode under being serviced compared with existing VPN, the present invention realize pair
The localization parser of network request is with showing so that the network request analysis result to be showed need not be again from vpn server
It holds to obtain, but analysis result can be directly obtained from terminal, counting so as to improve terminal and showing local network
Speed of response during request analysis result.For vpn server, since vpn server being not required to be returned again to terminal
The analysis result of network request is returned, therefore, the processing pressure of vpn server can be mitigated, and reduce transmission analysis result
Occupied bandwidth resources.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field
Technical staff will be apparent understanding.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of process flow figure for network request that the embodiment of the present invention proposes;
Fig. 2 shows the process flow figure for another network request that the embodiment of the present invention proposes;
Fig. 3 shows a kind of form of network request message;
Fig. 4 shows a kind of processing unit composition frame chart for network request that the embodiment of the present invention proposes;
Fig. 5 shows the processing unit composition frame chart for another network request that the embodiment of the present invention proposes.
Specific embodiment
Exemplary embodiment of the present invention is more fully described below with reference to accompanying drawings.Although the present invention is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here
It is limited.It is to be able to be best understood from the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention
Completely it is communicated to those skilled in the art.
An embodiment of the present invention provides a kind of processing method of network request, as shown in Figure 1, this method is applied to make
In terminal with VPN network service function, the network request that terminal generates is subjected to dissection process in terminal local to realize, it is right
This embodiment of the present invention provides step in detail below:
101st, the network request of terminal applies is obtained in VPN network.
At present, after the realization of VPN network service technology usually opens VPN services in the terminal, system will intercept automatically
The network request that all applications generate in the terminal, and these network requests are all sent to what vpn server was unified
Dissection process.Specific mode is to create Microsoft Loopback Adapter in the terminal, and the Microsoft Loopback Adapter is for the logical of terminal and vpn server
Letter connection is obtained the network request of all applications in terminal by the Microsoft Loopback Adapter.Equally it is to utilize Microsoft Loopback Adapter in this step
The characteristic of the network request of all applications in the terminal that can be obtained during VPN services is opened, in the situation that VPN services are opened
Under, directly acquire the network request that Microsoft Loopback Adapter is intercepted.The network that these network requests include terminal system itself please
Ask and terminal on the network request of third-party application installed.
102nd, network request is preserved into the caching of terminal.
When the Microsoft Loopback Adapter of terminal gets network request, terminal can cache the network request, and the present invention is real
It applies and does not limit specific cache way in example, can be that network request is directly extracted from Microsoft Loopback Adapter, and by the network request
It preserves into the caching of terminal or replicates the network request acquired in Microsoft Loopback Adapter, and the network request that will be replicated
It preserves into the caching of terminal.
It should be noted that when network request is cached, the embodiment of the present invention does not limit cached network request
Quantity, can only cache a network request, the network request is deleted after being parsed, then cache next, also may be used
To be that a queue is established in the caching of terminal, network request is buffered in queue, then seriatim carries out dissection process.
103rd, parsed according to the message format of network request in terminal buffers, obtain the parsing knot of the network request
Fruit.
Wherein, the form of network request refers to the mode that client is interacted with server-side, such as is wrapped in http agreements
The network request mode included is exactly to look into, change, increase, delete, i.e. tetra- kinds of get, post, put, delete to what Internet resources carried out.Root
According to the specific form of network request, the parsing of different modes is carried out to network request packet, so as to obtain corresponding network request
Analysis result, that is, the associated parameter data in network request is obtained, for example, the address and port of access target server
Number, the type of request data, date, size etc..
Generally, network request is transmitted in the form of message, and difference may be employed in different network requests
Message format, such as IP packet, TCP message, UDP messages.
104th, obtained analysis result is counted and showed.
This step is that the obtained analysis result of step 103 is analyzed in terminal local, for counting
Supplemental characteristic, corresponding data and existing data will carry out collect statistics in extraction analysis result, and show for needs
Supplemental characteristic, then corresponding data content is visually exported according to the specific form showed.Wherein, statistics and exhibition
Existing concrete mode is not the emphasis of the embodiment of the present invention, and it is one kind in existing application that realization method, which does not limit,.This step
In rapid, what is embodied is that the analysis result for counting and showing is obtained from terminal local, without being serviced to VPN
Device obtains corresponding data content.
It can be seen that the processing method of network request used by the embodiment of the present invention with reference to above-mentioned realization method, be
In the case where VPN services are opened, obtain the network request that terminal applies are sent and complete parsing operation in terminal local, will solve
Analyse result presentation in the terminal, meanwhile, according to obtained analysis result, it can determine the network request destination service to be accessed
Device, and the network request is sent in destination server.Network request processing mode under being serviced compared with existing VPN,
The embodiment of the present invention is realized to the localization parser of network request with showing so that the network request analysis result to be showed
It need not be obtained again from vpn server end, but analysis result can be directly obtained from terminal, existed so as to improve terminal
Speed of response when counting and showing local network request analysis result.For vpn server, due to being not required
Vpn server returns to the analysis result of network request to terminal again, therefore, can mitigate the processing pressure of vpn server, and
Reduce and send the occupied bandwidth resources of analysis result.
Below in order to which a kind of processing method of network request proposed by the present invention is explained in more detail, particularly in VPN
After service is opened, to network request terminal local specific processing mode, it is specific as shown in Fig. 2, step included by this method
Suddenly it is:
201st, the network request of terminal applies is obtained in VPN network.
The network request of all applications in the terminal is obtained using the Microsoft Loopback Adapter established in terminal.This step it is main in
Hold with the step 101 in above-described embodiment, for details, reference can be made to above-mentioned step, details are not described herein again.
202nd, network request is preserved into the caching of terminal.
This step content for details, reference can be made to above-mentioned steps, details are not described herein again with the step 102 in above-described embodiment.
203rd, parsed according to the message format of network request in terminal buffers, obtain the parsing knot of the network request
Fruit.
First, network request is parsed, it is necessary to first obtain network request, be from the caching of terminal in the embodiment of the present invention
The cached network request of extraction extracts the request message of the network request.
Secondly, determine to extract the message format of network request, in the embodiment of the present invention by taking HTTP request message as an example into
Row explanation, a HTTP request message is by request row (request line), request header (header), null and request data
4 parts form, as shown in figure 3, be the general format of request message, wherein, request row is by requesting method field, url field
With 3 field compositions of http protocol version field, they use space-separated.For example, GET/index.html HTTP/1.1.
The requesting method of http protocol has GET, POST, HEAD, PUT, DELETE, OPTIONS, TRACE, CONNECT.It is described herein most
Common GET methods and POST method;Request header is by key/value to forming, and often row is a pair of, and keyword and value are emitted with English
Number ":" separate.Request header notice server is related to the information of client request, and typical request header has:User-Agent:
Generate browser type, the Accept of request:The identifiable content type list of client, Host:The host name of request allows
Multiple domain names exist together an IP address, i.e. fictitious host computer;It is a null after the last one request header, sends the carriage return character and change
Row symbol notifies that there is no request headers below server;Request data does not use in GET methods, but makes in POST method
With.POST method is applicable to the occasion that client fills in list.It is with the relevant most-often used request header of request data
Content-Type and Content-Length.
As it can be seen that the message format for determining network request is exactly the number of each component in the header information for obtain request message
It is believed that breath, wherein, the key data information for distinguishing message format includes:Version, agreement, source address and the port of message
Number and destination address and port numbers etc..In this regard, the present invention implements to be given at the data obtained under java environment in request message
The pseudocode of information:
Version=(byte) (buffer.get ()>>4);
ProtocolNum=(short) (buffer.get () &0xFF);
Protocol=getProtolByNum (protocolNum);
Byte [] addressBytes=new byte [4];
buffer.get(addressBytes,0,4);
DestinationAddress=InetAddress.getByAddress (addressBytes).
The process for performing above-mentioned pseudocode is mainly according to the version number of first 4 definite IP agreements of request message, that is, is sentenced
Disconnected is version for IP v4 or IP v6, currently used more for IP v4, data value 0100;The number of 5-12 is obtained again
According to judging used protocol type, such as tcp agreements, udp agreements with this;32 are obtained shared by destination address afterwards, i.e.,
The data of 4 bytes, and byte arrays addressBytes is converted into IP address, that is, mesh using the java functions provided
Mark address.
In practical applications, often while definite network request message format, according to different field in message
Content and position can be obtained by the associated parameter data in network request, that is, the parsing to the network request.
Finally, which is parsed according to identified message format, obtains the analysis result of the network request.And root
According to above-mentioned example, field distribution of the purpose in each several part in message is determined of network request message format is determined, to network
The parsing of request message is then the process converted by obtaining the data of each several part field.Namely according to message format come
The data of the field of different position in message are obtained, associated parameter data included in network request is obtained with what this came.
204th, obtained analysis result is counted and showed.
This step content for details, reference can be made to above-mentioned steps, details are not described herein again with the step 104 in above-described embodiment.
205th, the network request is sent to by destination server according to the analysis result of network request.
Network request is parsed in real time due to that can be realized in terminal local, and obtains the relevant parameter number of the network request
According to therefore, the embodiment of the present invention, which is based on the feature, to carry out local operation to network request.For example, according to analysis result
Target address information, it is possible to know the address of the network request destination server to be accessed, it can be real according to the address
In the case that present VPN services are opened, which is sent directly to destination server, without being serviced by VPN
The forwarding of device.In this way, the pending network request that terminal is sent to vpn server can be reduced, so as to introduce vpn server
Live load, simultaneously as be the network request that terminal directly transmits, what destination server was fed back for the network request
Data message will be also returned directly in the terminal, be needed not move through the forwarding of vpn server, so be also improved network request
Treatment effeciency and response speed.
In addition, before network request is sent to destination server, the connectedness of the destination server can also be carried out
Judge, accessed with determining that the destination server can not be transferred by vpn server.In this regard, the embodiment of the present invention is unlimited
Surely it is determine the connectedness of destination server or pre-set server white list can to limit using PING instructions
The destination server directly accessed.
Further, as the realization to the above method, an embodiment of the present invention provides a kind of processing dresses of network request
It puts, the device embodiment is corresponding with preceding method embodiment, and for ease of reading, present apparatus embodiment is no longer implemented preceding method
Detail content in example is repeated one by one, it should be understood that the device in the present embodiment, which can correspond to, realizes that preceding method is real
Apply the full content in example.The device carries out the local of network request for that can use in the terminal of VPN network service function
Change is handled, specifically as shown in figure 4, the device includes:
Acquiring unit 41, for obtaining the network request of terminal applies in Virtual Private Network;
Storage unit 42, the network request for the acquiring unit 41 to be obtained are preserved into the caching of terminal;
Resolution unit 43, for being parsed according to the message format of the network request cached in the storage unit 42,
Obtain the analysis result of the network request;
Processing unit 44, the analysis result for being obtained to the resolution unit 43 are counted and showed.
Further, as shown in figure 5, described device further includes:
Reading unit 45, for carrying out parsing it according to the message format of network request in the caching in resolution unit 43
Before, the request message of the network request is read from the caching;
Analytic unit 46, for analyzing the header information in the request message that the reading unit 45 obtains, the header
Information includes:Version, agreement, source address and the port numbers and destination address and port numbers of message;
Determination unit 47, the header information for being extracted according to the analytic unit 46 determine the message of the network request
Form.
Further, as shown in figure 5, the resolution unit 43 includes:
Determining module 431 determines the network request for the destination address in the request message and port numbers
The destination server to be accessed;
The determining module 431 is additionally operable to, and the request data in the request message is determined according to the message format
Field location;
The request data is extracted in extraction module 432, the field location for being determined according to the determining module 431.
Further, as shown in figure 5, the acquiring unit 41 includes:
Creation module 411, for establishing Microsoft Loopback Adapter in the terminal, the Microsoft Loopback Adapter is used for as terminal configuration void
Intend network interface, connect the virtual special network server;
Acquisition module 412, for utilizing the Microsoft Loopback Adapter of the creation module 411 foundation in the Virtual Private Network
Obtain the network request of terminal applies.
Further, as shown in figure 5, described device further includes:
Extraction unit 48, for being parsed in the resolution unit 43 according to the form of network request in the caching,
After obtaining the analysis result of the network request, the network request target to be accessed is extracted from the analysis result
Server;
Transmitting element 49, for the network request to be sent to the destination server that the extraction unit 48 obtains.
In conclusion used by the embodiment of the present invention network request processing method and processing device, be VPN service open
In the case of, it obtains the network request that terminal applies are sent and completes parsing operation in terminal local, analysis result is presented in
In terminal, meanwhile, according to obtained analysis result, it can determine the network request destination server to be accessed, and by the net
Network request is sent in destination server.Network request processing mode under being serviced compared with existing VPN, the embodiment of the present invention
Realize to the localization parser of network request with showing so that the network request analysis result to be showed need not again from
Vpn server end obtains, but analysis result can be directly obtained from terminal, so as to improve terminal is counting and is showing
Speed of response during local network request analysis result.For vpn server, since vpn server is not required again
The analysis result of network request is returned to terminal, therefore, the processing pressure of vpn server can be mitigated, and reduce transmission
The occupied bandwidth resources of analysis result.
The processing unit of the network request includes processor and memory, and above-mentioned acquiring unit, storage unit, parsing are single
Member and processing unit etc. in memory, above-mentioned journey stored in memory are performed by processor as program unit storage
Sequence unit realizes corresponding function.
Comprising kernel in processor, gone in memory to transfer corresponding program unit by kernel.Kernel can set one
Or more, by adjusting kernel parameter come now switch in fact VPN service when by terminal generate network request in local parsing simultaneously
Analysis result is counted, is showed, with the speed of response for improving terminal statistics and showing network request analysis result.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one deposit
Store up chip.
It is first when being performed on data processing equipment, being adapted for carrying out present invention also provides a kind of computer program product
The program code of beginningization there are as below methods step:The network request of terminal applies is obtained in Virtual Private Network;By the net
Network request is preserved into the caching of terminal;It is parsed according to the message format of network request in the caching, obtains the net
The analysis result of network request;The analysis result is counted and showed.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program
Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the application
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the application
The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only memory (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.It defines, calculates according to herein
Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements are not only including those elements, but also wrap
Include other elements that are not explicitly listed or further include for this process, method, commodity or equipment it is intrinsic will
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
Also there are other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or the embodiment in terms of combining software and hardware can be used in the application
Form.It is deposited moreover, the application can be used to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
It these are only embodiments herein, be not limited to the application.To those skilled in the art,
The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent substitution,
Improve etc., it should be included within the scope of claims hereof.
Claims (10)
1. a kind of processing method of network request, which is characterized in that the described method includes:
The network request of terminal applies is obtained in Virtual Private Network;
The network request is preserved into the caching of terminal;
It is parsed according to the message format of network request in the caching, obtains the analysis result of the network request;
The analysis result is counted and showed.
2. according to the method described in claim 1, it is characterized in that, the message format according to network request in the caching into
Before row parsing, the method further includes:
The request message of the network request is read from the caching;
The header information in the request message is analyzed, the header information includes:Version, agreement, source address and the end of message
Slogan and destination address and port numbers;
The message format of the network request is determined according to the header information.
3. the according to the method described in claim 2, it is characterized in that, message format according to network request in the caching
It is parsed, obtaining the analysis result of the network request includes:
Destination address in the request message determines the network request destination server to be accessed with port numbers;
The field location of the request data in the request message is determined according to the message format;
The request data is extracted according to the field location.
4. the according to the method described in claim 1, it is characterized in that, net that terminal applies are obtained in Virtual Private Network
Network request includes:
Establish Microsoft Loopback Adapter in the terminal, the Microsoft Loopback Adapter is used to configure virtual network interface for the terminal, described in connection
Virtual special network server;
The network request of terminal applies is obtained in the Virtual Private Network using the Microsoft Loopback Adapter.
5. according to the method described in claim 3, it is characterized in that, the message format according to network request in the caching into
Row parsing, after obtaining the analysis result of the network request, the method further includes:
The network request destination server to be accessed is extracted from the analysis result;
The network request is sent to the destination server.
6. a kind of processing unit of network request, which is characterized in that described device includes:
Acquiring unit, for obtaining the network request of terminal applies in Virtual Private Network;
Storage unit, the network request for the acquiring unit to be obtained are preserved into the caching of terminal;
Resolution unit for being parsed according to the message format of the network request cached in the storage unit, obtains described
The analysis result of network request;
Processing unit, the analysis result for being obtained to the resolution unit are counted and showed.
7. device according to claim 6, which is characterized in that described device further includes:
Reading unit, for before resolution unit is parsed according to the message format of network request in the caching, from institute
State the request message that the network request is read in caching;
Analytic unit, for analyzing the header information in the request message that the reading unit obtains, the header information includes:
Version, agreement, source address and the port numbers and destination address and port numbers of message;
Determination unit, the header information for being obtained according to the analytic unit determine the message format of the network request.
8. device according to claim 7, which is characterized in that the resolution unit includes:
Determining module determines that the network request to be accessed for the destination address in the request message with port numbers
Destination server;
The determining module is additionally operable to, and the field bit of the request data in the request message is determined according to the message format
It puts;
The request data is extracted in extraction module, the field location for being determined according to the determining module.
9. device according to claim 6, which is characterized in that the acquiring unit includes:
Creation module, for establishing Microsoft Loopback Adapter in the terminal, the Microsoft Loopback Adapter is used to configure virtual network for the terminal
Interface connects the virtual special network server;
Acquisition module, the Microsoft Loopback Adapter for being established using the creation module obtains terminal in the Virtual Private Network should
Network request.
10. device according to claim 8, which is characterized in that described device further includes:
Extraction unit for being parsed in the resolution unit according to the form of network request in the caching, obtains described
After the analysis result of network request, the network request destination server to be accessed is extracted from the analysis result;
Transmitting element, for the network request to be sent to the destination server that the extraction unit obtains.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610986361.7A CN108063713B (en) | 2016-11-09 | 2016-11-09 | Network request processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610986361.7A CN108063713B (en) | 2016-11-09 | 2016-11-09 | Network request processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108063713A true CN108063713A (en) | 2018-05-22 |
CN108063713B CN108063713B (en) | 2021-02-12 |
Family
ID=62137852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610986361.7A Active CN108063713B (en) | 2016-11-09 | 2016-11-09 | Network request processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108063713B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113852635A (en) * | 2021-09-26 | 2021-12-28 | 招商银行股份有限公司 | Task processing method and device, terminal equipment and storage medium |
CN114363031A (en) * | 2021-12-29 | 2022-04-15 | 中国电信股份有限公司 | Network access method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103765851A (en) * | 2011-06-30 | 2014-04-30 | 思杰系统有限公司 | Systems and methods for transparent layer 2 redirection to any service |
CN103840994A (en) * | 2012-11-23 | 2014-06-04 | 华耀(中国)科技有限公司 | System and method for user side to access intranet through VPN |
CN105847319A (en) * | 2016-02-22 | 2016-08-10 | 乐视移动智能信息技术(北京)有限公司 | Mobile terminal network request method and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102457565B (en) * | 2010-11-03 | 2015-12-16 | 中国电信股份有限公司 | The method of mobile terminal network visiting and proxy server |
-
2016
- 2016-11-09 CN CN201610986361.7A patent/CN108063713B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103765851A (en) * | 2011-06-30 | 2014-04-30 | 思杰系统有限公司 | Systems and methods for transparent layer 2 redirection to any service |
CN103840994A (en) * | 2012-11-23 | 2014-06-04 | 华耀(中国)科技有限公司 | System and method for user side to access intranet through VPN |
CN105847319A (en) * | 2016-02-22 | 2016-08-10 | 乐视移动智能信息技术(北京)有限公司 | Mobile terminal network request method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113852635A (en) * | 2021-09-26 | 2021-12-28 | 招商银行股份有限公司 | Task processing method and device, terminal equipment and storage medium |
CN114363031A (en) * | 2021-12-29 | 2022-04-15 | 中国电信股份有限公司 | Network access method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108063713B (en) | 2021-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104580192B (en) | The treating method and apparatus of the network access request of application program | |
US8095622B1 (en) | Methods and systems for collecting information transmitted over a network | |
US8121148B2 (en) | Protocol stack using shared memory | |
US8856279B2 (en) | Method and system for object prediction | |
JP4363847B2 (en) | Digital TV application protocol for interactive TV | |
US8291007B2 (en) | System and method to accelerate client/server interactions using predictive requests | |
US7975025B1 (en) | Smart prefetching of data over a network | |
US10630758B2 (en) | Method and system for fulfilling server push directives on an edge proxy | |
US20110125749A1 (en) | Method and Apparatus for Storing and Indexing High-Speed Network Traffic Data | |
US20130094501A1 (en) | Processing data packets in performance enhancing proxy (pep) environment | |
US7171464B1 (en) | Method of tracing data traffic on a network | |
CN110719215B (en) | Flow information acquisition method and device of virtual network | |
CN110769009B (en) | User identity authentication method and system | |
CN108063712A (en) | The sending method and device of a kind of network request | |
CN111917900A (en) | Request processing method and device for domain name proxy | |
WO2015024490A1 (en) | Monitoring nat behaviors through uri dereferences in web browsers | |
CN107465690A (en) | A kind of passive type abnormal real-time detection method and system based on flow analysis | |
CN116634046A (en) | Message processing method and device, electronic equipment and storage medium | |
CN103368872A (en) | Data packet forwarding system and method | |
CN108063713A (en) | A kind of processing method and processing device of network request | |
TWI294087B (en) | Systems and methods for file transfer management | |
CN109670131A (en) | The processing of Resource Description File, the acquisition methods of page resource and intermediate server | |
CN109525682B (en) | Service processing method, device, network element entity and computer readable storage medium | |
CN113179317B (en) | Test system and method for content rewriting device | |
CN106664223B (en) | Method and device for detecting number of shared access hosts |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |