CN105245446B - A kind of file transmitting method and gateway - Google Patents
A kind of file transmitting method and gateway Download PDFInfo
- Publication number
- CN105245446B CN105245446B CN201510608336.0A CN201510608336A CN105245446B CN 105245446 B CN105245446 B CN 105245446B CN 201510608336 A CN201510608336 A CN 201510608336A CN 105245446 B CN105245446 B CN 105245446B
- Authority
- CN
- China
- Prior art keywords
- message
- gateway
- field
- agreement
- user equipment
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000004044 response Effects 0.000 claims abstract description 33
- 238000012790 confirmation Methods 0.000 claims abstract description 24
- 238000012546 transfer Methods 0.000 claims abstract description 20
- 230000005540 biological transmission Effects 0.000 claims description 11
- 238000012986 modification Methods 0.000 claims description 9
- 230000004048 modification Effects 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000013475 authorization Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- PWPJGUXAGUPAHP-UHFFFAOYSA-N lufenuron Chemical compound C1=C(Cl)C(OC(F)(F)C(C(F)(F)F)F)=CC(Cl)=C1NC(=O)NC(=O)C1=C(F)C=CC=C1F PWPJGUXAGUPAHP-UHFFFAOYSA-N 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of file transmitting method and gateways, for solving HTTP2.0 upgrading bring device version upgrade problem.The method of the present invention includes: that gateway obtains the message that user equipment is sent, the upgrade information of the hypertext transfer protocol HTTP2.0 agreement of the user equipment is carried in the message, includes following critical field in the upgrade information: link field, upgrade field, setting field;The gateway parsing identifies the upgrade information;The gateway modifies respectively to the critical field in the upgrade information, so that the message received is identified as the confirmation message after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement by server end.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of file transmitting method and gateway.
Background technique
The father Di Mubeinasili of WWW (English: World Wide Web, english abbreviation: WWW) is early in 1990
Just propose hypertext transfer protocol (English: Hyper Text Transport Protocol, english abbreviation: HTTP) year,
HTTP is the basic agreement of WWW.So-called hypertext is compared with traditional text.Traditional text, either books calculate
The text file of machine, be all it is linear, reader read when, it is necessary to sequentially read page by page, the nonoptional leeway of reader.
Hypertext unlike this, its not instead of linear structure, a nonlinear reticular structure.Reader is when reading, just
It is read downwards in a sequential manner not necessarily like when reading linear article, but selectively reads oneself interested part.
Current HTTP1.x is to obtain data using more quintuple forms connection server, when user's request data GET is reached
Gateway, gateway carry out DPI (English: Deep packet inspection, Chinese: deep message detection) analysis, obtain
The accurate charge information of user.It is to there are different stream IDs to carry out transmission data, different stream IDs the insides inside identical five-tuple after HTTP2.0
GET carry out the matching rule of correspondence, exactly because and this five-tuple inside have very multiple stream transmission different business data, it is identical
There is also the data of multiple streams inside message, cause Service control to need more accurate, thinner, it is not firm that gateway is based on five-tuple
With needing the complete upgrading of base flow ID.
HTTP2.0 upgrades to server and gateway synchronous belt.When especially server also supports HTTP2.0,
Gateway is with regard to passive, because HTTP2.0 may be supported there are no comprehensive still than version earlier by now netting many versions, and mesh
It is preceding to support HTTP2.0 to need to spend a large amount of manpower and time cycle using on-line apparatus edition upgrading.
Summary of the invention
The present invention provides a kind of file transmitting method and gateways, for solving HTTP2.0 upgrading bring device version
Upgrade problem.
First aspect present invention provides a kind of file transmitting method, comprising:
Gateway obtains the message that user equipment is sent, and the hypertext transfer protocol of the user equipment is carried in the message
The upgrade information of HTTP2.0 agreement includes following critical field in the upgrade information: link field, upgrade field, setting word
Section;
The gateway parsing identifies the upgrade information;
The gateway modifies respectively to the critical field in the upgrade information, so that server end will receive
To the message be identified as the confirmation message after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement.
In conjunction with the first aspect of the present invention, in the first implementation of first aspect present invention, the gateway is to institute
It states the critical field in upgrade information and modifies respectively and specifically include:
The gateway inverts the corresponding character string of the critical field respectively.
In conjunction with the first aspect of the present invention, in second of implementation of first aspect present invention, the gateway is to institute
It states the critical field in upgrade information and modifies respectively and specifically include:
The gateway deletes the critical field.
Second in conjunction with the first of the first aspect of the present invention or first aspect implementation or first aspect is real
Existing mode, in the third implementation of first aspect present invention, the gateway parsing identifies that the upgrade information specifically wraps
It includes:
The gateway records the critical field, and carries out deep message detection DPI analysis.
Second aspect of the present invention provides a kind of gateway, comprising:
Acquiring unit carries the super text of the user equipment for obtaining the message of user equipment transmission in the message
The upgrade information of this transport protocol HTTP2.0 agreement includes following critical field: link field, upgrading in the upgrade information
Field, setting field;
Recognition unit identifies the upgrade information for parsing;
Unit is modified, for modifying respectively to the critical field in the upgrade information, so that server end
The message received is identified as after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement really
Recognize message.
In conjunction with the second aspect of the present invention, in the first implementation of second aspect of the present invention, the modification unit
Specifically for the corresponding character string of the critical field is inverted respectively.
In conjunction with the second aspect of the present invention, in second of implementation of second aspect of the present invention, the modification unit
Specifically for the critical field is deleted.
Second in conjunction with the first of the second aspect of the present invention or second aspect implementation or second aspect is real
Existing mode, in the third implementation of second aspect of the present invention, the recognition unit is specifically used for recording the keyword
Section, and carry out deep message detection DPI analysis.
As can be seen from the above technical solutions, the invention has the following advantages that gateway obtains the message that user equipment is sent,
The upgrade information of the hypertext transfer protocol HTTP2.0 agreement of the user equipment, the upgrade information are carried in the message
In include following critical field: link field, upgrade field, setting field;The gateway parsing identifies the upgrade information;Institute
It states gateway to modify to the critical field in the upgrade information respectively, so that the report that server end will receive
Text is identified as the confirmation message after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement.Thus by user
Equipment wants that the information for being upgraded to HTTP2.0 falls back to HTTP1.x, allows user equipment to perceive less than and still can continue business, both
User can be allowed to continue business, also can control user's stream.
Detailed description of the invention
Fig. 1 is one embodiment flow diagram of file transmitting method provided by the present invention;
Fig. 2 is another embodiment flow diagram of file transmitting method provided by the present invention;
Fig. 3 is another embodiment flow diagram of file transmitting method provided by the present invention;
Fig. 4 is one embodiment structural schematic diagram of gateway provided by the present invention;
Fig. 5 is another example structure schematic diagram of gateway provided by the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without making creative work
Example, shall fall within the protection scope of the present invention.
It will be appreciated that though may be described in embodiments of the present invention using term first, second etc. each user or
Terminal, but user or terminal should not necessarily be limited by these terms.These terms are only used to for user or terminal being distinguished from each other out.For example,
In the case where not departing from range of embodiment of the invention, the first user can also be referred to as second user, similarly, second user
The first user can also be referred to as;Likewise, second user can also be referred to as third user etc., the embodiment of the present invention is to this
With no restrictions.
To understand convenient for reader, simple introduction is done to ken according to the present invention and application scenarios first:
The course of work of HTTP is typical client/server operating mode, and client is WWW browser, and server is
It is www server.The course of work of HTTP uses request/response handshake mode: 1. client connects, and both sides set up one
TCP connection;2. client issues request;3. server processing requests return to response;4. server closing connects.
The main feature of HTTP is as follows:
1) simple and quick
HTTP itself was not only simple, but also can effectively handle a large amount of requests.After client computer is connect with server, client computer must
The information that must be transmitted is requesting method and path.Exactly because HTTP is simple, so that HTTP server program small scale, and
Simply.Therefore quickly via the communication speed of HTTP, compared with other agreements, time overhead is much smaller.
2) connectionless
HTTP is a connectionless protocol.It is meant that connection only handles a request, client computer and clothes every time for limitation
It is engaged in submitting a request after device connection, be disconnected at once after client computer is connected to response.Using this connectionless protocol, do not having
When having request, server will not there the spare time wait, server more will not complete one request after also original request
It does not put.Just looking like using connectionless protocol is to write letter, once finishing writing letter sending, just it is over.Other side, which writes in reply, new information, then
Write another envelope letter.And keep connection protocol just similar with making a phone call.Both sides say by turns it is many after just hang up.In session electricity
It is occupied always to talk about line.For connectionless protocol, one side of server, which implements, to be easier, and can be made full use of online
Resource.
3) stateless
HTTP is stateless agreement: being requested each time, content, state and the performance of response are not as historical data
Remain into next stage use.It is both advantage and disadvantage.On the one hand, due to not having state, agreement does not have transaction
Memory capability.If subsequent transaction needs previous processed for information about, these information must protect outside agreement
It deposits.Lacking state means that required foregoing information must reappear, and certainly will cause to connect every time will transmit more information.Separately
On the one hand, also make HTTP burden few just because of lacking state, the speed of service is high, and server response is fast.
4) content negotiation
When server can provide multiform expression response to the request of client, need using content negotiation mechanism,
Web server is set to select the resource entity with most suitable expression-form for being able to satisfy user's requirement.Because very
It source server or the intermediate server of caching is provided does not have a unified best resource formal standard when more, and user
Browser is held also not necessarily to have the ability to handle all entity types.
5) it is easy to expand
It publishes as one using agreement, HTTP has good expandability, and what it was transmitted has been not only super
Text data.It is required on this basis for the research of application developer, exploitation, requesting method and sound can be readily added
State is answered, is run among customized system.By the server of expansion, it is able to respond the browser of original standard,
The dedicated CLIENT PROGRAM that user oneself exploitation can be distinguished makes corresponding response processing.
Http protocol development
WWW alliance set up after, organized IETF (English: Internet Engineering Task Force, Chinese: because
Special net engineering task force) group further improves and publication http protocol.So far, http protocol experienced 0.9,1.0,1.1 3
A stage.
1) HTTP/0.9 feature:
1. being used for the succinct fast protocol of various data informations;
2. having typical statelessness;
3. connectionless property;
4. not being available content negotiation;
5. picture can not be shown and be handled.
2) HTTP/1.0 feature:
1. single quick;
2. statelessness;
3. connectionless property;
4. not being available content negotiation;
5. increasing metamessage: adding a block message, the i.e. information of information before key data.It enables the server to mention
For information about for transmission data.For example, which kind of type transmission object is, with which kind of written;
6. supporting the form of plurality of kinds of contents, such as picture, audio.
3) HTTP/1.1 feature:
1. duration connects: allowing to request the browser an of web page to initiate primary connection can be above and below server
Carry multiple files;
2. still statelessness, but can provide state control;
3. having newly increased resource request: increased on the basis of original GET, HEAD, POST several method OPTIONS,
PUT, DELETE and TRACE;
4. authentication: a kind of basic access authorization method of simple " challenge-response " formula.Process is first by server
Identity is issued to client and identifies request, then confirmation message is issued by client;
5. using content negotiation mechanism;
6. (Cache) mechanism of caching: by the content for the web server response that previous client requests and request is corresponding
It is stored temporarily in the memory or physical storage of machine, so that can use when handling new client's request.
3) HTTP/2.0 is introduced:
HTTP2.0, that is, hypertext transfer protocol 2.0 is Hypertext Transfer Protocol Next Generation.It is the Hypertext by IETF
Transfer Protocol Bis (httpbis) work group develops.It is first after being issued from http1.1 in 1999
It updates.HTTP2.0 carries out interoperability testing for the first time in August, 2013.The fortune for the HTTP semantic optimization that HTTP/2.0 is provided
It is defeated.
One HTTP/2.0 connection passes through a TCP connection (the application-level agreement [TCP] operated above).Client
It is TCP connection promoter.The HTTP/2.0 agreement of logical construction: framing, streams and application program mapping.Client can be sent out
It plays HTTP2.0 and negotiates upgrading, if server supports HTTP2.0 agreement, the 100OK that server just replys HTTP2.0 is true
Recognize, otherwise the 100OK confirmation of direct response HTTP1.x.Client can also directly initiate HTTP2.0 request message, server
The request of necessary response HTTP2.0.
The present invention provides a kind of file transmitting method, this method is mainly executed by gateway;Referring to Fig. 1, institute of the present invention
One embodiment of the file transmitting method of offer includes:
101, gateway obtains the message that user equipment is sent, and the Hyper text transfer of the user equipment is carried in the message
The upgrade information of agreement HTTP2.0 agreement, include following critical field in the upgrade information: link field, is set upgrade field
Set field;
It should be noted that user equipment initiates TCP connection, TCP connection is established with server, gateway obtains user equipment
The message of transmission carries the upgrade information of the hypertext transfer protocol HTTP2.0 agreement of the user equipment in the message, described
It include following critical field in upgrade information: link field Connection, upgrade field Upgrade, setting field HTTP2-
Setting。
102, the gateway parsing identifies the upgrade information;
It should be noted that gateway identifies that the critical field in the upgrade information, recording key information are DPI, content
Charging.
103, the gateway modifies respectively to the critical field in the upgrade information, so that server end will
The message received is identified as the confirmation after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement
Message.
It should be noted that gateway modifies respectively to the critical field in the upgrade information, such as distinguish
Connection, Upgrade, HTTP2-Setting field in HTTP header field is inverted or is upset the suitable of character string
Sequence;Or delete Connection, Upgrade, HTTP2-Setting field, if the mode that selection is deleted, is answered in server
Before the confirmation message for answering user equipment HTTP1.x agreement, also need for the above-mentioned critical field deleted to be added in HTTP header field,
To guarantee the correctness of TCP sequence.
In the embodiment of the present invention, gateway obtains the message that user equipment is sent, and carries the user equipment in the message
Hypertext transfer protocol HTTP2.0 agreement upgrade information, include following critical field: connective word in the upgrade information
Section, upgrade field, setting field;The gateway parsing identifies the upgrade information;The gateway is in the upgrade information
The critical field is modified respectively, so that the message received is identified as the report of HTTP1.x agreement by server end
The confirmation message of the literary backward user equipment response HTTP1.x agreement.To which user equipment is wanted the letter for being upgraded to HTTP2.0
Breath falls back to HTTP1.x, allows user equipment to perceive less than and still can continue business, and user can be allowed to continue business, can also be controlled
User's stream processed.
Referring to Fig. 2, another embodiment of file transmitting method provided by the present invention includes:
201, gateway obtains the message that user equipment is sent, and the Hyper text transfer of the user equipment is carried in the message
The upgrade information of agreement HTTP2.0 agreement, include following critical field in the upgrade information: link field, is set upgrade field
Set field;
202, the gateway parsing identifies the upgrade information;
Step 201,202 are corresponded to reference to related description in step 101,102, and details are not described herein again.
203, the gateway inverts the corresponding character string of the critical field respectively, so that server end will receive
To the message be identified as the confirmation message after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement.
It should be noted that the gateway inverts the corresponding character string of the critical field respectively, such as distinguish
Connection, Upgrade, HTTP2-Setting field in HTTP header field is inverted;For example, system pass through by
Ensure the correctness of data transmission after HTTP Upgrade request modification, the upgrading header field of HTTP to HTTP2.0 is according to following lattice
Formula:
GET/default.htm HTTP/1.1
Host:server.example.com
Connection:Upgrade,HTTP2-Settings
Upgrade:h2c
HTTP2-Settings:<base64url encoding of HTTP/2SETTINGS payload>
Gateway UGW need to identify Connection, Upgrade, HTTP2-Setting field portions in example, and by its
Reversion:
GET/default.htm HTTP/1.1
Host:server.example.com
noitcennoC:Upgrade,HTTP2-Settings
edargpU:h2c
sgnitteS-2PTTH:<base64url encoding of HTTP/2SETTINGS payload>
In above-described embodiment, the character string sequence of Connection, Upgrade, HTTP2-Setting field can also be beaten
The random or several letters of increase/reduction, also can reach same effect.
In the embodiment of the present invention, gateway obtains the message that user equipment is sent, and carries the user equipment in the message
Hypertext transfer protocol HTTP2.0 agreement upgrade information, include following critical field: connective word in the upgrade information
Section, upgrade field, setting field;The gateway parsing identifies the upgrade information;The gateway is corresponding by the critical field
Character string inverted respectively so that after the message received is identified as the message of HTTP1.x agreement by server end
To the confirmation message of the user equipment response HTTP1.x agreement.To which user equipment is wanted that the information for being upgraded to HTTP2.0 is returned
HTTP1.x is fallen on, user equipment is allowed to perceive less than and still can continue business, user can be allowed to continue business, also can control use
Family stream.
Referring to Fig. 3, another embodiment of file transmitting method provided by the present invention includes:
301, gateway obtains the message that user equipment is sent, and the Hyper text transfer of the user equipment is carried in the message
The upgrade information of agreement HTTP2.0 agreement, include following critical field in the upgrade information: link field, is set upgrade field
Set field;
302, the gateway parsing identifies the upgrade information;
Step 301,302 are corresponded to reference to related description in step 101,102, and details are not described herein again.
303, the gateway deletes the critical field, so that the message received is identified as by server end
To the confirmation message of the user equipment response HTTP1.x agreement after the message of HTTP1.x agreement.
It should be noted that the gateway deletes the critical field, for example, by HTTP header field Connection,
Upgrade, HTTP2-Setting field are deleted;For example, system ensures data after by by HTTP Upgrade request modification
The correctness of transmission, the upgrading header field of HTTP to HTTP2.0 is according to following format:
GET/default.htm HTTP/1.1
Host:server.example.com
Connection:Upgrade,HTTP2-Settings
Upgrade:h2c
HTTP2-Settings:<base64url encoding of HTTP/2SETTINGS payload>
Gateway UGW need to identify Connection, Upgrade, HTTP2-Setting field portions in example, and by its
It deletes:
GET/default.htm HTTP/1.1
Host:server.example.com
After selecting deletion mode, TCP layer needs to safeguard left and right sides sequence number:
After gateway UGW has modified the HTTP request header field of user equipment (UE) initiation, TCP sequence can change therewith, therefore net
The correctness of TCP sequence need to be guaranteed by closing UGW, avoid the mistake that protocol level occurs.
In the embodiment of the present invention, gateway obtains the message that user equipment is sent, and carries the user equipment in the message
Hypertext transfer protocol HTTP2.0 agreement upgrade information, include following critical field: connective word in the upgrade information
Section, upgrade field, setting field;The gateway parsing identifies the upgrade information;The gateway deletes the critical field,
So that the message received is identified as after the message of HTTP1.x agreement to the user equipment response by server end
The confirmation message of HTTP1.x agreement.To which user equipment wanted that the information for being upgraded to HTTP2.0 falls back to HTTP1.x, user is allowed
Device-aware less than and still can continue business, can allow user continue business, also can control user stream.
For ease of understanding, file transmitting method in the embodiment of the present invention is specifically retouched with a concrete application scene below
It states:
User equipment initiates TCP connection, establishes TCP connection with server, and gateway obtains the message that user equipment is sent, should
The upgrade information of the hypertext transfer protocol HTTP2.0 agreement of the user equipment is carried in message, is wrapped in the upgrade information
Include following critical field: link field Connection, upgrade field Upgrade, setting field HTTP2-Setting.
Gateway identifies that the critical field in the upgrade information, recording key information are DPI, content charging.
The gateway inverts the corresponding character string of the critical field respectively, so that server end will receive
The message is identified as the confirmation message after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement.Such as
Connection, Upgrade, HTTP2-Setting field in HTTP header field are inverted respectively;For example, system is logical
The correctness of data transmission will be ensured by crossing after HTTP Upgrade request modification, the upgrading header field of HTTP to HTTP2.0 according to
Lower format:
GET/default.htm HTTP/1.1
Host:server.example.com
Connection:Upgrade,HTTP2-Settings
Upgrade:h2c
HTTP2-Settings:<base64url encoding of HTTP/2SETTINGS payload>
Gateway UGW need to identify Connection, Upgrade, HTTP2-Setting field portions in example, and by its
Reversion:
GET/default.htm HTTP/1.1
Host:server.example.com
noitcennoC:Upgrade,HTTP2-Settings
edargpU:h2c
sgnitteS-2PTTH:<base64url encoding of HTTP/2SETTINGS payload>
Or the character string sequence of Connection, Upgrade, HTTP2-Setting field can also be upset, or increase
Plus/minus lacks several letters, also can reach same effect.
Message will be sent to service after the reversion of above-mentioned Connection, Upgrade, HTTP2-Setting field by gateway
The message received is identified as after the message of HTTP1.x agreement to the user equipment response by device end, server end
The confirmation message of HTTP1.x agreement, i.e. HTTP1.x 200OK.
File transmitting method is illustrated above, will be illustrated below from structure of the angle of device to gateway,
Referring to Fig. 4, the gateway includes:
Acquiring unit 401 carries the super of the user equipment for obtaining the message of user equipment transmission in the message
The upgrade information of text transfer protocol HTTP2.0 agreement includes following critical field: link field, liter in the upgrade information
Grade field, setting field;
Recognition unit 402 identifies the upgrade information for parsing;
Unit 403 is modified, for modifying respectively to the critical field in the upgrade information, so that server
The message received is identified as after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement by end
Confirmation message.
In the embodiment of the present invention, acquiring unit 401 obtains the message that user equipment is sent, and carries the use in the message
The upgrade information of the hypertext transfer protocol HTTP2.0 agreement of family equipment includes following critical field in the upgrade information: even
Connect field, upgrade field, setting field;The parsing of recognition unit 402 identifies the upgrade information;Unit 403 is modified to the liter
The critical field in grade information is modified respectively, so that the message received is identified as by server end
To the confirmation message of the user equipment response HTTP1.x agreement after the message of HTTP1.x agreement.To which user equipment be wanted to rise
Grade falls back to HTTP1.x to the information of HTTP2.0, allows user equipment to perceive less than and still can continue business, can allow user
Continuation business also can control user's stream.
Gateway in based on the above embodiment, optionally, in one embodiment, the modification unit 403 is specifically used
It is inverted respectively in by the corresponding character string of the critical field, so that the message received is identified as by server end
To the confirmation message of the user equipment response HTTP1.x agreement after the message of HTTP1.x agreement.
Gateway in based on the above embodiment, optionally, in one embodiment, the modification unit 403 is specifically used
It is deleted in by the critical field, so that after the message received is identified as the message of HTTP1.x agreement by server end
To the confirmation message of the user equipment response HTTP1.x agreement.
Gateway in based on the above embodiment, optionally, in one embodiment, the recognition unit 402 is specifically used
In recording the critical field, and carry out deep message detection DPI analysis.
Embodiment shown in Fig. 4 is illustrated the specific structure of gateway from the angle of functional unit, below in conjunction with Fig. 5
Shown in embodiment be illustrated from specific structure of the hardware point of view to gateway:
As shown in figure 5, the gateway includes: receiver 501, transmitter 502, processor 503 and memory 504.Memory
504 may include read-only memory and random access memory, and provide instruction and data to processor 503.Memory 504
A part can also include nonvolatile RAM.
Memory 504 stores following element, executable modules or data structures perhaps their subset or
Their superset:
Operational order: including various operational orders, for realizing various operations.
Operating system: including various system programs, for realizing various basic businesses and the hardware based task of processing.
The present embodiments relate to gateway can have than more or fewer components illustrated in fig. 5, can combine
Two or more components, or can have different components and configure or set up, all parts can include one or more
The combination of hardware, software or hardware and software including a signal processing and/or specific integrated circuit is realized.
In the embodiment of the present invention, the processor 503 is for performing the following operations:
The message that user equipment is sent is obtained, the hypertext transfer protocol of the user equipment is carried in the message
The upgrade information of HTTP2.0 agreement includes following critical field in the upgrade information: link field, upgrade field, setting word
Section;
Parsing identifies the upgrade information;
It modifies respectively to the critical field in the upgrade information, so that described in server end will receive
Message is identified as the confirmation message after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement.
In the embodiment of the present invention, processor 503 obtains the message that user equipment is sent, and carries the user in the message
The upgrade information of the hypertext transfer protocol HTTP2.0 agreement of equipment includes following critical field in the upgrade information: connection
Field, upgrade field, setting field;The parsing of processor 503 identifies the upgrade information, and to described in the upgrade information
Critical field is modified respectively, so that after the message received is identified as the message of HTTP1.x agreement by server end
To the confirmation message of the user equipment response HTTP1.x agreement.To which user equipment is wanted that the information for being upgraded to HTTP2.0 is returned
HTTP1.x is fallen on, user equipment is allowed to perceive less than and still can continue business, user can be allowed to continue business, also can control use
Family stream.
Optionally, in one embodiment, which is specifically used for:
The corresponding character string of the critical field is inverted respectively, so that the message that server end will receive
It is identified as the confirmation message after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement.
Optionally, in one embodiment, which is specifically used for:
The critical field is deleted, so that the message received is identified as HTTP1.x agreement by server end
To the confirmation message of the user equipment response HTTP1.x agreement after message.
Optionally, in one embodiment, which is specifically used for:
The critical field is recorded, and carries out deep message detection DPI analysis.
The associated description of above-mentioned apparatus can correspond to associated description and effect refering to embodiment of the method part and be understood,
This place, which is not done, excessively to be repeated.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (6)
1. a kind of file transmitting method characterized by comprising
Gateway obtains the message that user equipment is sent, and the hypertext transfer protocol of the user equipment is carried in the message
The upgrade information of HTTP2.0 agreement includes following critical field in the upgrade information: link field, upgrade field, setting word
Section;
The gateway parsing identifies the upgrade information;
The gateway modifies respectively to the critical field in the upgrade information, so that server end will receive
The message is identified as the confirmation message after the message of HTTP1.x agreement to the user equipment response HTTP1.x agreement;
The gateway parsing identifies that the upgrade information specifically includes:
The gateway records the critical field, and carries out deep message detection DPI analysis.
2. the method according to claim 1, wherein the gateway is to the keyword in the upgrade information
Section is modified respectively to be specifically included:
The gateway inverts the corresponding character string of the critical field respectively.
3. the method according to claim 1, wherein the gateway is to the keyword in the upgrade information
Section is modified respectively to be specifically included:
The gateway deletes the critical field.
4. a kind of gateway characterized by comprising
Acquiring unit, for obtaining the message of user equipment transmission, the hypertext that the user equipment is carried in the message is passed
The upgrade information of defeated agreement HTTP2.0 agreement includes following critical field in the upgrade information: link field, upgrade field,
Field is set;
Recognition unit identifies the upgrade information for parsing;
Unit is modified, for modifying respectively to the critical field in the upgrade information, so that server end will connect
The message received disappears after being identified as the message of HTTP1.x agreement to the confirmation of the user equipment response HTTP1.x agreement
Breath;
Wherein, the recognition unit specifically for recording the critical field, and carries out deep message detection DPI analysis.
5. gateway according to claim 4, which is characterized in that the modification unit is specifically used for the critical field pair
The character string answered is inverted respectively.
6. gateway according to claim 4, which is characterized in that the modification unit is specifically used for deleting the critical field
It removes.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510608336.0A CN105245446B (en) | 2015-09-22 | 2015-09-22 | A kind of file transmitting method and gateway |
PCT/CN2016/086551 WO2017049971A1 (en) | 2015-09-22 | 2016-06-21 | Packet transmission method and gateway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510608336.0A CN105245446B (en) | 2015-09-22 | 2015-09-22 | A kind of file transmitting method and gateway |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105245446A CN105245446A (en) | 2016-01-13 |
CN105245446B true CN105245446B (en) | 2019-02-19 |
Family
ID=55042954
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510608336.0A Active CN105245446B (en) | 2015-09-22 | 2015-09-22 | A kind of file transmitting method and gateway |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105245446B (en) |
WO (1) | WO2017049971A1 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105245446B (en) * | 2015-09-22 | 2019-02-19 | 上海华为技术有限公司 | A kind of file transmitting method and gateway |
CN112448933B (en) * | 2019-09-02 | 2022-12-23 | 浙江宇视科技有限公司 | Method and system for self-adapting compatible platform inter-domain protocol |
CN114338272A (en) * | 2021-12-30 | 2022-04-12 | 上海集度汽车有限公司 | Communication control method, device, vehicle and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101505307A (en) * | 2009-03-09 | 2009-08-12 | 华为技术有限公司 | Message processing method, network node and system oriented to service architecture |
CN103227788A (en) * | 2013-04-17 | 2013-07-31 | 广州市和声信息技术有限公司 | Method and system realizing communication between web-based application and SIP equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9219616B2 (en) * | 2011-05-25 | 2015-12-22 | Cisco Technology, Inc. | Supporting multiple IEC-101/IEC-104 masters on an IEC-101/IEC-104 translation gateway |
CN102546800B (en) * | 2012-01-06 | 2015-03-25 | 华为技术有限公司 | Handshake and communication methods for gateway, gateway and Web communication system |
CN102694754A (en) * | 2012-06-07 | 2012-09-26 | 广州睿哲网络科技有限公司 | Application gateway technology and system for realizing content interchange of Internet protocol version 4/Internet protocol version 6 (IPv4/IPv6) websites |
CN105245446B (en) * | 2015-09-22 | 2019-02-19 | 上海华为技术有限公司 | A kind of file transmitting method and gateway |
-
2015
- 2015-09-22 CN CN201510608336.0A patent/CN105245446B/en active Active
-
2016
- 2016-06-21 WO PCT/CN2016/086551 patent/WO2017049971A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101505307A (en) * | 2009-03-09 | 2009-08-12 | 华为技术有限公司 | Message processing method, network node and system oriented to service architecture |
CN103227788A (en) * | 2013-04-17 | 2013-07-31 | 广州市和声信息技术有限公司 | Method and system realizing communication between web-based application and SIP equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105245446A (en) | 2016-01-13 |
WO2017049971A1 (en) | 2017-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106528432B (en) | The construction method and device of test scene data bury a test method | |
Subramanian et al. | Hands-On RESTful API Design Patterns and Best Practices: Design, develop, and deploy highly adaptable, scalable, and secure RESTful web APIs | |
US11050607B2 (en) | Proxy with a function as a service (FAAS) support | |
EP2183881B1 (en) | Cross-domain communication | |
CN103078881B (en) | Internet resources Download Info share control system and method | |
CN104426862B (en) | Realize method, system and browser that cross-domain request logs in | |
CN102999636B (en) | Pop-up in webpage is carried out method and the browser of intercept process | |
CN103944944B (en) | Method, electronic equipment and the system of sharing web page link | |
US8984164B2 (en) | Methods for reducing latency in network connections and systems thereof | |
CN105205072B (en) | The methods of exhibiting and system of webpage information | |
EP2817730A1 (en) | System and method for context specific website optimization | |
CN105245446B (en) | A kind of file transmitting method and gateway | |
JP2013196063A (en) | Cookie sharing program, web server with cookie sharing function, cookie sharing system and cookie sharing method | |
CN103501331A (en) | Data transmission method, data transmission equipment and data transmission system | |
CN104518968B (en) | The method and Transparent proxy server of a kind of Message processing | |
JP2005327154A (en) | Html file processing method and program | |
JP5488349B2 (en) | Relay device, relay method, and relay program | |
CN102984218B (en) | Browser and login method thereof and system | |
US20130204935A1 (en) | Dynamic sharing of a webservice | |
CN104954363A (en) | Method and device for generating interface document | |
CN104506616B (en) | Browser client sends the method, apparatus and system of information | |
CN102299869A (en) | Method, client and system for storing network link in instant messaging | |
CN110119483A (en) | Display methods, device, terminal device and the storage medium of multimedia file | |
JP2007086932A (en) | Access log-recording system and access log recording-method | |
CN105227514A (en) | Based on document transmission processing method and the browser of browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |