CN106230810B - Sound state flow analysis method - Google Patents

Sound state flow analysis method Download PDF

Info

Publication number
CN106230810B
CN106230810B CN201610610115.1A CN201610610115A CN106230810B CN 106230810 B CN106230810 B CN 106230810B CN 201610610115 A CN201610610115 A CN 201610610115A CN 106230810 B CN106230810 B CN 106230810B
Authority
CN
China
Prior art keywords
message
sound state
flow analysis
state flow
source station
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.)
Active
Application number
CN201610610115.1A
Other languages
Chinese (zh)
Other versions
CN106230810A (en
Inventor
黄韬
吴兴利
戴云伟
林金印
王丽
唐天龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NANJING USPEED NETWORK TECHNOLOGY Co Ltd
Original Assignee
NANJING USPEED NETWORK TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NANJING USPEED NETWORK TECHNOLOGY Co Ltd filed Critical NANJING USPEED NETWORK TECHNOLOGY Co Ltd
Priority to CN201610610115.1A priority Critical patent/CN106230810B/en
Publication of CN106230810A publication Critical patent/CN106230810A/en
Application granted granted Critical
Publication of CN106230810B publication Critical patent/CN106230810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides sound state flow analysis system and methods, the system includes user terminal, router, interchanger, Cache caching and sound state flow analysis module, pass through three-way handshake principle, sound state flow analysis module is deployed in the server between router and Cache caching, pass through the sound state flow analysis module, judge resource type, changes sequence number and the confirmation number of user's TCP message, guide the data flow of user;Realize dynamic static requests separation, static content is returned from caching system, and dynamic content needs not move through agency's processing judgement, connection is directly established with source station, this mode will greatly improve response speed.

Description

Sound state flow analysis method
Technical field
The present invention relates to computer network data transmission technique fields, in particular to sound state flow analysis system and side Method.
Background technique
Dynamic static content mainly carries out judgement identification by way of suffix name.Static content can cache, and pass through caching Mode can substantially reduce repeated accesses Internet bandwidth flow, on the one hand can promote subscriber response time, another aspect energy Enough reduce bandwidth Meteorological.Therefore dynamic content cannot be needed to return source station by cache way and be obtained due to dynamic change Newest dynamic content.
Under conventional situation, if using the mode of proxy access to request as static content, while caching system has the content Caching, then flow is introduced caching system by agency, and static content is returned to agency, finally returned that user by caching system.Such as Fruit request is dynamic content, then by flux and flow direction source station, dynamic content is returned to agency, eventually flows to user agency by source station. By the way of traditional, no matter dynamic or static content require by agency, easily cause agency handle bottleneck problem.
Summary of the invention
The technical problem to be solved by the present invention is to provide dynamic passive flow for the defects of aforementioned background art and deficiency Analysis system and method are measured, realizes dynamic static requests separation, static content is returned from caching system, and dynamic content needs not move through generation Reason processing judgement, directly establishes connection, this mode will greatly improve response speed with source station.
Sound state flow analysis system provided by the invention, the system include server, user terminal, router, interchanger, Cache caching, deploys sound state flow analysis module on the server, by the sound state flow analysis module, Judge resource type, changes sequence number and the confirmation number of user's TCP message, guide the data flow of user.
The server setting is between router and Cache caching.
Sound state flow analysis module is deployed in by sound state flow analysis method, this method by three-way handshake principle Between router and Cache caching, by the sound state flow analysis module, judges resource type, change user's TCP message Sequence number and confirmation number, guide the data flow of user.
This method specifically includes the following steps:
Step 1, user terminal initiate TCP connection request to source station, and the TCP connection request is by the upstream on router Amount strategy introduces interchanger, then flows to sound state flow analysis module from the interchanger;
Step 2, the sound state flow analysis module replicates the message that the TCP connection is requested, by duplication Message is sent to source station from first port, and the message of duplication is sent to Cache caching from second port;
Step 3, the source station receive the message about TCP connection request and return to confirmation message to user terminal;It is described dynamic Quiescent flow analysis module rejects the confirmation message that Cache caching returns, and the Cache caching is prevented to establish with user terminal Connection;
Step 4 after the user terminal receives the confirmation message of source station return, initiates confirmation and receives message, by duplication Message is sent to source station from first port, and the message of duplication is sent to Cache caching from second port;Complete user terminal With the TCP connection of source station;
Step 5, user initiate HTTP message, flow to the request of HTTP message described in sound state flow analysis module analysis Type;And realize the content transmission between source station or Cache caching and user terminal.
The step 5 specifically:
If the resource of the request be it is static, it is slow that the sound state flow analysis module establishes user terminal and Cache User's request message is sent to Cache caching by the connection deposited, while sound state flow analysis module initiates RESET order to source It stands, disconnects;
If the resource of the request is that dynamically, it is slow to Cache that sound state flow analysis module initiates RESET order It deposits, while request message information being sent from first port, realize that source station is directly connected to user terminal.
The method of the type for flowing to the request of HTTP message described in sound state flow analysis module analysis is to pass through user Hold the format of the suffix name of the address URL in the TCP connection request content initiated.
In the step 4, message, when source station receives, message information are received by the confirmation that the first port issues It is constant;Message is received by the confirmation that the second port issues, when Cache caching receives, message information change.
The invention adopts the above technical scheme compared with prior art, has following technical effect that
The system and method judges resource type when user initiates HTTP request, changes the sequence of user's TCP message Number and confirmation number, guide the data flow of user.Static content processing mode is consistent with traditional scheme, is dispatched to caching system; Dynamic resource is directly returned to user by source station, alleviates the pressure of proxy server.
This method realizes dynamic static requests separation, and static content is returned from caching system, and dynamic content needs not move through agency Processing judgement, directly establishes connection with source station, and this mode will greatly improve response speed, utmostly alleviates agency's clothes Business device handles the bottleneck problem of dynamic static content.
Detailed description of the invention
Fig. 1 is the structural schematic diagram that traditional proxy mode realizes sound state separation scheme;
Fig. 2 is that TCP establishes connection three-way handshake process schematic diagram;
Fig. 3 is the structural schematic diagram of sound state flow analysis system of the present invention;
Fig. 4 is the flow chart of sound state flow analysis method of the present invention.
Specific embodiment
The present invention provides sound state flow analysis system and method, and to make the purpose of the present invention, technical solution and effect are more Add it is clear, it is clear, and referring to attached drawing and give an actual example that the present invention is described in more detail.It should be appreciated that described herein Specific implementation is not intended to limit the present invention only to explain the present invention.
As shown in Figure 1, traditional sound state flow scheduling scheme judges in application layer according to the URL suffix name that user requests Dynamic resource, is transparent to source station, static scheduling of resource to caching system by dynamic static types.The disadvantage is that user's request Uplink and downlink flow all passes through proxy server, cannot achieve dynamic resource by source station and is directly returned to user.
Sound state flow analysis method according to the present invention passes through Seq, Ack value change during modification TCP transmission Realize the purpose of dynamic static requests separation.As shown in Fig. 2, it is former to be related to TCP connection three-way handshake during using TCP transmission Reason;Two parameters are mainly concerned in whole process:
(1) sequence number of Sequence Number:TCP packet, the sequence number are used to track the data volume of end transmission, For solving the problems, such as network packet random ordering.
(2) Acknowledgment Number: comprising confirmation number in each packet, receiving end is used to by confirmation number Notice send end data be properly received, solution never packet loss the problem of.
It is realized by above-mentioned two key parameter and quickly establishes connection with source station or Cache caching.
It is the structural schematic diagram of the first embodiment provided by the invention refering to Fig. 3.For the sound state flow analysis system The structure of system.Specifically:
Sound state flow analysis system includes server, user terminal, router, interchanger, Cache caching, in the clothes Sound state flow analysis module is deployed on business device, by the sound state flow analysis module, judges resource type, change is used The sequence number of family TCP message and confirmation number, guide the data flow of user.The server setting is slow in router and Cache Between depositing.
This invention sound state flow analysis system major function have TCP message copy transmissions, configured transmission control with And sound state requirement analysis main modular.
1, TCP message copy transmissions function: replicating TCP message content, wherein critical field include source port, Destination port, Sequence Number(abbreviation Seq), Acknowledgement Number(abbreviation Ack) etc..Copy packet It is sent after information to multiple ports.
2, configured transmission control function: this is the nucleus module of system, now sets up the process of TCP connection three-way handshake in fact Middle parameter such as replys, establishes connection, disconnects at the control actions.It is main include according to demand to during TCP transmission Seq and The value of Ack, which is modified, prevents Cache caching system pair more preferably to control the connection of the gentle deposit system in source station and user, to realize The functions such as user's TCP connection message is replied, transmission RESET order disconnects.
3, sound state requirement analysis function: carrying out url analysis to Client-initiated request data, judges dynamic static content master It will be according to for information suffix name in url.It determines that dynamic static types are convenient for later period flux and flow direction: then being flowed to if it is static content slow Deposit system then flows to source station if it is dynamic content.
It is different from the prior art, which realizes dynamic static requests separation, and static content is from caching System returns, and dynamic content needs not move through agency's processing judgement, connection is directly established with source station, this mode will mention significantly High response speed.
It is the structural schematic diagram of second of embodiment provided by the invention refering to Fig. 4, which embodies dynamic quiescent flow Analysis system main working process schematic diagram.
Sound state flow analysis system is deployed between router and Cache caching, instead of the agency in traditional scheme Server.Illustrate the working principle of sound state flow analysis system according to user's actual access situation.Main scheduling controlling process As follows, it is to be randomly provided that wherein the Seq sequence number, Ack of TCP transmission process, which receive confirmation initial value, is convenient for principle of specification mistake Journey.
1. user initiates TCP connection request, due to introducing interchanger in router setting uplink traffic strategy, so TCP connection request flux and flow direction interchanger simultaneously flows to sound state flow analysis system from port 0.
2. TCP message copy transmissions function replicates TCP message after TCP message reaches sound state flow analysis system At two parts, go out respectively from port 1, port 2.1 flux and flow direction source station of port, 2 flux and flow direction Cache of port caching.This process Any information of TCP message is not changed.
It shakes hands for the first time: Seq=1000
3. source station and Cache caching can all reply SYN+ACK, the SYN+ACK that wherein source station is replied directly passes through router User is returned to, without sound state flow analysis module.Sound state flow analysis module device will prevent Cache from caching at this time SYN+ACK message return, and record Seq the and Ack value of the message, in order to user be prevented to establish the link with Cache. Have who is replied whom is just established the feature of connection with fastly since TCP establishes connection.If not preventing, there is Cache and reply faster Situation user just establishes connection with caching system.If later period user's request content is dynamic requests, user and source station can not be established Connection.
Second handshake: Ack=1001 message Seq=2000 that source station is replied at this time;The message that Cache caching is replied Seq=5000 Ack=1001。
4. after user receives the message of source station reply, initiating ACK message (Ack=2001 Seq=1001), similarly passing through ACK message is copied into two parts by interchanger and sound state flow analysis system, the system, is gone out respectively from port 1, port 2.Its In, the message gone out from port 1 is constant, and the message gone out from port 2 is modified.Third time is shaken hands: port 1 is gone out at this time Ack=2001 the message information that source station receives constant Seq=1001.By three-way handshake process, user and source station TCP are completed Connection.The message information gone out from port 2 is changed to Ack=5001 Seq=1001.
During the three-way handshake that above-mentioned TCP is established, the uplink traffic of user is backed up by dynamic quiescent flow point Analyse module.
5. after completing TCP connection, user initiates HTTP message, and the resource will be analyzed by flowing to sound state flow analysis module Type.
(1) if the resource of the request be it is static, request message is transmitted directly to Cache caching process, simultaneously Sound state flow analysis system initiates RESET order to source station, disconnects;
(2) if the resource of the request is dynamically, to initiate RESET order and cache to Cache, while request message is believed Breath is normally gone out from port 1, is realized the direct transmission of source station and user, is needed not move through any middle-agent's process.
It is different from the prior art, when improved scheme user initiates HTTP request, judges resource type, change user The sequence number of TCP message and confirmation number, guide the data flow of user.Static content processing mode is consistent with traditional scheme, adjusts Spend caching system;Dynamic resource is directly returned to user by source station, alleviates the pressure of proxy server.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, all to utilize this Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field is included within the scope of the present invention.

Claims (4)

1. sound state flow analysis method, which is characterized in that this method is by three-way handshake principle, by sound state flow analysis mould Block is deployed between router and Cache caching, by the sound state flow analysis module, judges resource type, change is used The sequence number of family TCP message and confirmation number, guide the data flow of user;
If the resource of the request be it is static, the sound state flow analysis module establish user terminal and Cache caching Connection, and user's request message is sent to Cache caching, while sound state flow analysis module initiates RESET order to source It stands, disconnects;
If the resource of the request is that dynamically, sound state flow analysis module is initiated RESET order and cached to Cache, together When request message information is sent from first port, realize source station directly transmitted with user terminal.
2. sound state flow analysis method according to claim 1, which is characterized in that this method specifically includes following step It is rapid:
Step 1, user terminal initiate TCP connection request to source station, and the TCP connection request is by the uplink traffic plan on router Interchanger is slightly introduced, then flows to sound state flow analysis module from the interchanger;
Step 2, the sound state flow analysis module replicate the message that the TCP connection is requested, by the message of duplication It is sent to source station from first port, and the message of duplication is sent to Cache caching from second port;
Step 3, the source station receive the message about TCP connection request and return to confirmation message to user terminal;The sound state Flow analysis module rejects the confirmation message that Cache caching returns, and prevents the Cache caching from establishing with user terminal and connects It connects;
Step 4 after the user terminal receives the confirmation message of source station return, initiates confirmation and receives message, by the message of duplication It is sent to source station from first port, and the message of duplication is sent to Cache caching from second port;Complete user terminal and source The TCP connection stood;
Step 5, user initiate HTTP message, flow to the type of the request of HTTP message described in sound state flow analysis module analysis; And realize the content transmission between source station or Cache caching and user terminal.
3. sound state flow analysis method according to claim 2, which is characterized in that described to flow to sound state flow analysis The method of the type of the request of HTTP message described in module analysis is URL in the TCP connection request content initiated by user terminal The format of the suffix name of location.
4. sound state flow analysis method according to claim 2, which is characterized in that in the step 4, by described The confirmation that Single port issues receives message, and when source station receives, message information is constant;The confirmation issued by the second port Message is received, when Cache caching receives, message information change.
CN201610610115.1A 2016-07-29 2016-07-29 Sound state flow analysis method Active CN106230810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610610115.1A CN106230810B (en) 2016-07-29 2016-07-29 Sound state flow analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610610115.1A CN106230810B (en) 2016-07-29 2016-07-29 Sound state flow analysis method

Publications (2)

Publication Number Publication Date
CN106230810A CN106230810A (en) 2016-12-14
CN106230810B true CN106230810B (en) 2019-07-02

Family

ID=57535539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610610115.1A Active CN106230810B (en) 2016-07-29 2016-07-29 Sound state flow analysis method

Country Status (1)

Country Link
CN (1) CN106230810B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107528908A (en) * 2017-09-04 2017-12-29 北京新流万联网络技术有限公司 The method and system of HTTP transparent proxy caches
CN110278581B (en) * 2018-03-16 2021-09-28 中兴通讯股份有限公司 Method, device and system for reporting wireless access network flow and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1182589A2 (en) * 2000-08-17 2002-02-27 International Business Machines Corporation Provision of electronic documents from cached portions
CN103051706A (en) * 2012-12-19 2013-04-17 新浪网技术(中国)有限公司 Dynamic webpage request processing system and method for dynamic website
CN103064932A (en) * 2012-12-24 2013-04-24 乐视网信息技术(北京)股份有限公司 System and method for processing static page
CN103347089A (en) * 2013-07-16 2013-10-09 星云融创(北京)信息技术有限公司 Method and device for separating and accelerating dynamic resources and static resources of website
CN105745905A (en) * 2013-11-22 2016-07-06 阿尔卡特朗讯公司 Delivery and storage of content within a network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7085894B2 (en) * 2003-09-11 2006-08-01 International Business Machines Corporation Selectively accepting cache content

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1182589A2 (en) * 2000-08-17 2002-02-27 International Business Machines Corporation Provision of electronic documents from cached portions
CN103051706A (en) * 2012-12-19 2013-04-17 新浪网技术(中国)有限公司 Dynamic webpage request processing system and method for dynamic website
CN103064932A (en) * 2012-12-24 2013-04-24 乐视网信息技术(北京)股份有限公司 System and method for processing static page
CN103347089A (en) * 2013-07-16 2013-10-09 星云融创(北京)信息技术有限公司 Method and device for separating and accelerating dynamic resources and static resources of website
CN105745905A (en) * 2013-11-22 2016-07-06 阿尔卡特朗讯公司 Delivery and storage of content within a network

Also Published As

Publication number Publication date
CN106230810A (en) 2016-12-14

Similar Documents

Publication Publication Date Title
CN103491065B (en) A kind of Transparent Proxy and its implementation
CN111683117B (en) Method, equipment and storage medium
CN106533883B (en) A kind of method for building up, the apparatus and system of network special line
CN106105164A (en) Agent intercepts
CN101039309B (en) Link sharing service apparatus and communication method thereof
WO2018107387A1 (en) Data transmission method, device, system, electronic device, and computer program product
CN104160680B (en) Cheating Technology for transparent proxy cache
WO2017161760A1 (en) Data transmission method and device
CN105610632A (en) Virtual network device and related method
CN104519130B (en) A kind of data sharing caching method across IDC
CN105959228B (en) Traffic processing method and transparent cache system
US9350765B2 (en) Multi-session web acceleration
CN107517229A (en) Generation, transmission method and the relevant apparatus of a kind of time source-routed information
CN106230810B (en) Sound state flow analysis method
CN108390955A (en) Domain Name acquisition method, Website access method and server
CN109347925A (en) Caching method, caching edges server, caching Core server and caching system
US20150006622A1 (en) Web contents transmission method and apparatus
CN102170456A (en) Method, device and system for acquiring content in PPN (peer-to-peer network)
CN106330386A (en) Method and device for adjusting transmission layer parameter
CN109862055A (en) A kind of satellite network communications method, agent service device and gateway
CN106131039A (en) The processing method and processing device of SYN flood attack
CN110083466A (en) A kind of data transmission method and device of small routine
CN103607311B (en) System and method for reestablishing TCP connection seamlessly
CN105245464A (en) Network acceleration method based on Android system
CN102387062B (en) Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant