CN104038506A - Kernel implementing method and system for captive portal based on ECOS system - Google Patents

Kernel implementing method and system for captive portal based on ECOS system Download PDF

Info

Publication number
CN104038506A
CN104038506A CN201410293134.7A CN201410293134A CN104038506A CN 104038506 A CN104038506 A CN 104038506A CN 201410293134 A CN201410293134 A CN 201410293134A CN 104038506 A CN104038506 A CN 104038506A
Authority
CN
China
Prior art keywords
message
transmission control
control protocol
http request
forced gate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410293134.7A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201410293134.7A priority Critical patent/CN104038506A/en
Publication of CN104038506A publication Critical patent/CN104038506A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a kernel implementing method and a kernel implementing system for a captive portal based on an ECOS system. The kernel implementing method comprises the steps that: a transmission control protocol is stimulated between a server end and a client to perform a first handshake; the client sends an HTTP request data package; the server end analyzes the HTTP request data package, and judges whether the data port number of the HTTP request data package is a default port number, if not, the HTTP request data package is forwarded to a bridge forwarding layer, if yes, whether the overall flag bit in the captive portal layer of the server end is one is judged, if yes, the HTTP request data package is sent to a bridge forwarding layer, and if not, the HTTP request data package is sent to a captive portal layer; the transmission control protocol is stimulated between the server end and the client to perform a second handshake and a third handshake; the client sends a request for reading an HTTP request message with information marked by uniform resource locator, and the captive portal layer discards the HTTP request message, counterfeits and sends the HTTP request message with main information which has 2000k fields. According to the kernel implementing method and the kernel implementing system, the captive portal function is really achieved, pushing speed is fast, and users do not need to configure by themselves.

Description

A kind of kernel implementation method and system of the forced gate based on ECOS system
Technical field
The invention belongs to computer network communication technology field, relate to a kind of kernel implementation method and system, particularly relate to a kind of kernel implementation method and system of the forced gate based on ECOS system.
Background technology
Along with the development of the Internet, network application, Network increase sharply, and user is except using original internet browsing business, IPTV (Web TV), and other business such as IP Phone (networking telephone) also increase and.Expansion along with Operator Specific Service, the needed equipment configuration effort of user is also just more and more, need a kind of mechanism, facilitate user to understand the latest news of operator, also can allow operator make the transmission services such as some publicity, advertisement, notice, or allow user know the running status of the access device of oneself simultaneously.So-called transmission service, operator is pushed to forced gate website in face of user, allows user when accessing first, is automatically brought on forced gate website, allows user understand some important informations, advertisement, publicity etc.
Forced gate is that a kind of restricted network connects, and wherein all client side HTTP requests are all redirected to the website of provider.Then this website may point out terms and conditions, input payment information or the input authority that user agrees to operator to verify former payment agreement, or the details of advertisement and operator are provided.If in the http of the redirected client of kernel request, will realize tcp simulation three-way handshake, be redirected with retransmission mechanism and the machine-processed URL that realizes user's survey of http message forgery of tcp.
And existing techniques in realizing forced gate function is by revising DNS name resolution module.For example, user need to access www.google.com network address, first the dnsproxy program of customer access equipment is intercepted and captured this DNS query message, if user inquires about for the first time, just return to the IP address of forced gate, rather than the IP address of the google website that should return, what user browser showed like this is exactly the forced gate page.But the shortcoming of this scheme is DNS only just can come into force when doing domain name mapping, if user directly inputs the access of IP address, has just walked around DNS name resolution module, can not eject forced gate, cannot really realize forced gate function.
Thereby, how a kind of kernel implementation method and system of the forced gate based on ECOS system are provided, when solving in prior art that if user directly inputs IP address, can not eject persistent erection door, cannot really realize the defect of forced gate function, the real practitioner in the art's technical problem urgently to be resolved hurrily that become.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of kernel implementation method and system of the forced gate based on ECOS system, if be used for solving prior art user while directly inputting IP address, can not eject forced gate, cannot really realize the problem of forced gate function.
For achieving the above object and other relevant objects, one aspect of the present invention provides a kind of kernel implementation method of the forced gate based on ECOS system, the kernel that is applied to comprise the forced gate based on embedded configurable operations system of client and server end is realized system, the kernel implementation method of the described forced gate based on ECOS system comprises: step 1, when user need access the Internet, between described server end and described client, analogue transmission control protocol shakes hands to set up the communication linkage based on transmission control protocol for the first time; Described server end has forced gate layer and bridge forwards layer; Step 2, described client sends HTTP request data package to described server end; Step 3, described server end is resolved described HTTP request data package, judges whether the data terminal slogan of described HTTP request data package is default port number; If described data terminal slogan is default port number, judge in the forced gate layer of described server end, whether global flag position puts 1, if global flag position does not put 1 in described forced gate layer, described HTTP request data package is sent to described forced gate layer; Step 4, analogue transmission control protocol second and shaking hands for the third time between described server end and described client; Step 5, when described server end and described client are set up after described communication linkage, described client send request read the information being indicated by URL(uniform resource locator) HTTP request message to described forced gate layer, forced gate layer described in described server end abandons this HTTP request message, forge the HTTP request message that another carries the main body message of 200 OK fields, and be sent to described client.
Preferably, when the data terminal slogan of the described HTTP request data package of judgement is not default port, described HTTP request data package is forwarded to described bridge and forwards layer.
Preferably, in described forced gate layer, during global flag position 1, described HTTP request data package is sent to described bridge and forwards layer.
Preferably, the step of described analogue transmission control protocol second handshake comprises: forge the second transmission control protocol message, attribute field in described the second transmission control protocol message is set to sync message and confirmation message, the second transmission control protocol message of forging is sent to described client and to reply described client, sends the sync message of the first transmission control protocol message, create a timer, whether judgement is replying about receiving the confirmation message of described the second transmission control protocol message over described client in the time of described timer defined, if not, represent described the second transmission control protocol message dropping, again transmit described the second transmission control protocol to described client, if so, analogue transmission control protocol is shaken hands for the third time, the step that described analogue transmission control protocol is shaken hands for the third time comprises: receive that described client replys about receiving the confirmation message of described the second transmission control protocol message, delete described timer, described forced gate layer receive that described client replys about receiving after the confirmation message of described the second transmission control protocol message, in communication linkage established state.
Preferably, the kernel implementation method of the described forced gate based on ECOS system also comprises: described forced gate layer also receives the termination message of the second transmission control protocol message of client transmission; Described forced gate layer is receiving described client reply about receiving the confirmation message of described the second transmission control protocol message or stopping message, forge another confirmation message, another confirmation message of forging is sent to described client to notify this communication linkage to close.
Preferably, to be redirected what adopt be refreshing and redirect redirecting technique based on HTML to URL(uniform resource locator).
Preferably, to carry form be <meta http-equiv=" refresh " content=" the time delay redirect time to described main body message, url=operator Redirect URL/" HTML of >, if the described time delay redirect time is 0, represent redirect immediately, if the described time delay redirect time is greater than 10s, represent normal use, described forced gate layer creates another timer, whether judgement replys about carrying the confirmation message of HTTP request message of the main body message of 200 OK fields described in receiving surpassing described client in the time of described another timer defined, if, represent described client to described in carry the HTTP request message of the main body message of 200 OK fields, and the described HTTP request message that carries the main body message of 200 OK fields is replied to confirmation message, described forced gate layer receives the confirmation message that described client is replied, delete described another timer, if not, again carry the HTTP request message of the main body message of 200 OK fields described in transmission.
The present invention also provides a kind of kernel of the forced gate based on ECOS system to realize system on the other hand, be applied to embedded configurable operations system, the kernel of the described forced gate based on ECOS system is realized system and is comprised: server end, comprise that forced gate layer and bridge forward layer, for when user need access the Internet, and between client, analogue transmission control protocol shakes hands to set up the communication linkage based on transmission control protocol for the first time; When described client sends HTTP request data package to described server end, described server end is used for resolving described HTTP request data package, whether the data terminal slogan that judges described HTTP request data package is default port number, if not, described HTTP request data package is forwarded to described bridge and forwards layer; If so, judge in the described forced gate layer of described server end, whether global flag position puts 1, if so, described HTTP request data package is sent to described bridge and forwards layer; If not, described HTTP request data package is sent to described forced gate layer, analogue transmission control protocol second and shaking hands for the third time; When described server end and described client are set up after described communication linkage, described client sends request the HTTP request message during to described forced gate layer that reads the information being indicated by URL(uniform resource locator), described server end is used for abandoning this HTTP request message, again forge the HTTP request message that another carries the main body message of 200 OK fields, and be sent to described client.
Preferably, described forced gate layer is used for: analogue transmission control protocol is shaken hands for the first time, that described forced gate layer receives is that described client sends, for asking the first transmission control protocol message with the communication linkage of its foundation based on transmission control protocol, described the first transmission is controlled message and is comprised sync message, wherein, described forced gate layer is initially in the state of intercepting of intercepting described the first transmission control protocol message, after receiving described sync message, described forced gate layer is in sync message accepting state, analogue transmission control protocol second handshake, forge the second transmission control protocol message, attribute field in described the second transmission control protocol message is set to sync message and confirmation message, the second transmission control protocol message of forging is returned back to described client and to reply described client, send the sync message of the first transmission control protocol message, create a timer, whether judgement is replying about receiving the confirmation message of described the second transmission control protocol message over described client in the time of described timer defined, if not, represent described the second transmission control protocol message dropping, again transmit described the second transmission control protocol to described client, if so, analogue transmission control protocol is shaken hands for the third time, analogue transmission control protocol is shaken hands for the third time, receive that described client replys about receiving the confirmation message of described the second transmission control protocol message, delete described timer, described forced gate layer is receiving described client reply about receiving after the confirmation message of described the second transmission control protocol message, in communication linkage established state.
As mentioned above, kernel implementation method and the system of the forced gate based on ECOS system of the present invention, have following beneficial effect:
First: the kernel implementation method of the described forced gate based on ECOS system and system have fundamentally solved prior art and directly inputted after the access of IP address user, can not eject forced gate, have really realized forced gate function;
Second: kernel implementation method and the system pushing speed of the described forced gate based on ECOS system are fast, and user is without configuration voluntarily.
Accompanying drawing explanation
Fig. 1 is shown as the flow chart of the kernel implementation method of the forced gate based on ECOS system of the present invention.
Fig. 2 is shown as the kernel of the forced gate based on ECOS system of the present invention and realizes system principle structure chart.
Element numbers explanation
The kernel of 1 forced gate based on ECOS system is realized system
11 server ends
111 forced gate layers
112 bridges forward layer
S1~S9 step
Embodiment
Below, by specific instantiation explanation embodiments of the present invention, those skilled in the art can understand other advantages of the present invention and effect easily by the disclosed content of this specification.The present invention can also be implemented or be applied by other different embodiment, and the every details in this specification also can be based on different viewpoints and application, carries out various modifications or change not deviating under spirit of the present invention.It should be noted that, in the situation that not conflicting, the feature in following examples and embodiment can combine mutually.
It should be noted that, the diagram providing in following examples only illustrates basic conception of the present invention in a schematic way, satisfy and only show with assembly relevant in the present invention in graphic but not component count, shape and size drafting while implementing according to reality, during its actual enforcement, kenel, quantity and the ratio of each assembly can be a kind of random change, and its assembly layout kenel also may be more complicated.
Basic principle of the present invention is: when user logins the Internet web, the http message of request is sent to ADSL bridge, because this http request is based on tcp, and this programme is to realize at the inner nuclear layer of ecos, so the packet connecting that first the forced gate module of this programme will send tcp to user is done the three-way handshake of simulating, to set up tcp, connect.Then user can send http get request, forced gate module just abandons this get request, then put a flag bit, represent to have pushed the pressure page, then copy the http bag of a 200Ok, the body the inside of http carry " <HTML><HEADGreat T.GreaT.GT<meta http-equiv=" REFRESH " content=" 0; URL=operator push website address " ></HEAD>LEssT.L TssT.LT/HTML> ", user receives after the HTTP request of this 200 OK, will login the website that operator pushes.When user logins the Internet web again, whether forced gate module can put 1 in judgement symbol position, realizes and does not affect user's function of surfing the Net.
Embodiment mono-
The present embodiment provides a kind of kernel implementation method of the forced gate based on ECOS system, the kernel that is applied to comprise the forced gate based on embedded configurable operations system of client and server end is realized system, refer to Fig. 1, be shown as the flow chart of the kernel implementation method of the forced gate based on ECOS system, the kernel implementation method of the described forced gate based on ECOS system comprises:
S1, when user need access Internet WEB, between described server end and described client, analogue transmission control protocol shakes hands to set up the communication linkage based on transmission control protocol for the first time.Described server end has forced gate layer and bridge forwards layer.Step S1 is specially: analogue transmission control protocol is shaken hands for the first time, that forced gate layer described in described server end receives is that described client sends, for asking the first transmission control protocol message with the communication linkage of its foundation based on transmission control protocol, described the first transmission control protocol message comprises sync message; Wherein, described forced gate layer is initially in the state of intercepting of intercepting described the first transmission control protocol message; After receiving described the first sync message, described forced gate layer is in sync message accepting state.
S2, described client sends HTTP request data package to described server end.In the present embodiment, the packet that described HTTP request data package is web-page requests.
S3, described server end is resolved described HTTP request data package, and judges whether the data terminal slogan of described HTTP request data package is default port number; Be to take out the port number field in described the first transmission control protocol after described server end receives described the first transmission control protocol message, judge whether this port number field is the default port number (80 port) of described HTTP request data package, if not, perform step S4, be about to described HTTP request data package and be forwarded to described bridge forwarding layer; If so, continue execution step S5.
S5, judges in the forced gate layer of described server end, whether global flag position puts 1, if so, represents that described user surfs the Net for the first time, just returns to step S4, is about to described HTTP request data package and sends to described bridge to forward layer; If not, perform step S6.
S6, is sent to described forced gate layer by described HTTP request data package, starts forced gate function.
S7, analogue transmission control protocol second handshake between described server end and described client, particularly, described forced gate layer is forged the second transmission control protocol message, attribute field in described the second transmission control protocol message is set to sync message and confirmation message, the second transmission control protocol message of forging is sent to described client with the sync message in the first transmission control protocol message of replying described client and sending, create a timer, whether judgement is replying about receiving the confirmation message of described the second transmission control protocol message over described client in the time of described timer defined, if not, represent described the second transmission control protocol message dropping, again transmit described the second transmission control protocol to described client, if so, carry out S8S8, analogue transmission control protocol is shaken hands for the third time,
Particularly, receive that described client replys about receiving the confirmation message of described the second transmission control protocol message, delete described timer.Described forced gate layer is after receiving the confirmation message about described the second transmission control protocol message of described client reply, and described forced gate layer is in the communication linkage established state based on transmission control protocol.
S9, when described server end and described client are set up after described communication linkage, described client send request read the information being indicated by URL(uniform resource locator) HTTP request message to described forced gate layer, described forced gate layer abandons this HTTP request message, again forge the HTTP request message of another main body message that carries 200 OK fields to realize URL (URL(uniform resource locator) is redirected), the flag bit field of the TCP section of this HTTP request message is set to and stops message or confirmation message, and the described HTTP request message that carries the main body message of 200 OK fields is sent to described client.It is refreshing and redirect redirecting technique based on HTML that URL(uniform resource locator) is redirected what adopt.In the main body message of the described 200OK of carrying field, carry following hypertext markup voice (HTML voice).It is <meta http-equiv=" refresh " content=" the time delay redirect time that described main body message is carried form; Url=operator Redirect URL/" HTML of >.Because search engine can read HTML voice, thus for described, refresh and redirect redirecting technique, i.e. automatic redirect method, search engine can detect automatically.If the described time delay redirect time is 0, represent redirect immediately, if time delay redirect event is 0, just can be regarded as cheating, thereby pays for, if the described time delay redirect time is greater than 10s (more than being generally 10s), represent normal use, described forced gate layer creates another timer, whether judgement replys about carrying the confirmation message of HTTP request message of the main body message of 200 OK fields described in receiving surpassing described client in the time of described another timer defined, if, represent described client to described in carry the HTTP request message of the main body message of 200 OK fields, and the described HTTP request message that carries the main body message of 200 OK fields is replied to confirmation message, described forced gate layer receives the confirmation message that described client is replied, delete described another timer, if not, again carry the HTTP request message of the main body message of 200 OK fields described in transmission.
S10, described forced gate layer receives the termination message of the second transmission control protocol message of client transmission; Described forced gate layer is receiving described client reply about receiving the confirmation message of described the second transmission control protocol message or stopping after message, forge another confirmation message, another confirmation message of forging is sent to described client to notify this communication linkage to close.
The kernel implementation method of the forced gate based on ECOS system described in the present embodiment has fundamentally solved prior art and has directly inputted after the access of IP address user, can not eject forced gate, really realized forced gate function, pushing speed is fast, and user is without configuration voluntarily.
Embodiment bis-
The present embodiment provides a kind of kernel of the forced gate based on ECOS system to realize system 1, be applied to embedded configurable operations system (ECOS system), refer to Fig. 2, the kernel that is shown as the forced gate based on ECOS system is realized the principle assumption diagram of system 1, the kernel of the described forced gate based on ECOS system is realized system and is comprised server end 11 and client 12, and described server end 11 comprises that forced gate layer 111 and bridge forward layer 112.In the present embodiment, described server end 11 is ADSL bridge device.And forced gate layer 111 and bridge forwarding layer 112 are located in the kernel of described ADSL bridge device.
Wherein, described server end 11 is for when user need access the Internet, and between described client 12, analogue transmission control protocol shakes hands to set up the communication linkage based on transmission control protocol for the first time.Analogue transmission control protocol is shaken hands for the first time, forced gate layer described in described server end 11 111 receive described client 12 that send, for asking the first transmission control protocol message with the communication linkage of its foundation based on transmission control protocol, described the first transmission control protocol message comprises sync message; Wherein, described forced gate layer 111 is initially in the state of intercepting of intercepting described the first transmission control protocol message; After receiving described the first sync message, described forced gate layer is in sync message accepting state.
Described client 12 is for sending HTTP request data package to described server end 11.In the present embodiment, the packet that described HTTP request data package is web-page requests.
Described server end 11 when receiving described HTTP request data package for resolving described HTTP request data package, whether the data terminal slogan that judges described HTTP request data package is default port number, be that in described server end 11, forced gate layer 111 takes out the port number field in described the first transmission control protocol after receiving described the first transmission control protocol message, judge whether this port number field is the default port number (80 port) of described HTTP request data package, if not, described HTTP request data package is forwarded to described bridge and forwards layer 112; If so, judge in the forced gate layer 111 of described server end 11, whether global flag position puts 1, if so, represents that described user surfs the Net for the first time, just send to described bridge to forward layer 112 described HTTP request data package; If not, described HTTP request data package is sent to described forced gate layer 111, starts forced gate function.
Forced gate layer 111 described in described server end 11 also for and described client between analogue transmission control protocol second handshake, described forced gate layer 111 is forged the second transmission control protocol message, attribute field in described the second transmission control protocol message is set to sync message and confirmation message, the second transmission control protocol message of forging is sent to described client 12 with the sync message in the first transmission control protocol message of replying described client 12 and sending, create a timer, whether judgement is replying about receiving the confirmation message of described the second transmission control protocol message over described client 12 in the time of described timer defined, if not, represent described the second transmission control protocol message dropping, again transmit described the second transmission control protocol to described client 12, if so, analogue transmission control protocol is shaken hands for the third time, analogue transmission control protocol is shaken hands for the third time, receive that described client 12 replys about receiving the confirmation message of described the second transmission control protocol message, delete described timer.Described forced gate layer 111 is after receiving the confirmation message about described the second transmission control protocol message of described client 12 replies, and described forced gate layer 111 is in the communication linkage established state based on transmission control protocol.
When described server end 11 is set up after described communication linkage with described client 12, described client 12 also reads the HTTP request message of the information being indicated by URL(uniform resource locator) to the forced gate layer 111 of described server end 11 for sending request.
The HTTP request message that forced gate layer 111 described in described server end 11 reads when described client 12 sends request the information being indicated by URL(uniform resource locator) is during to described server end 11, described forced gate layer 111 abandons the HTTP request message that the information being indicated by URL(uniform resource locator) is read in this request, again forge the HTTP request message of another main body message that carries 200 OK fields to realize URL (URL(uniform resource locator) is redirected), the flag bit field of TCP section that the HTTP request message of the information being indicated by URL(uniform resource locator) is read in this request is set to and stops message or confirmation message, and the described HTTP request message that carries the main body message of 200 OK fields is sent to described client 12.It is refreshing and redirect redirecting technique based on HTML that URL(uniform resource locator) is redirected what adopt.In the described main body message that carries 200 OK fields, carry following hypertext markup voice (HTML voice).It is <meta http-equiv=" refresh " content=" the time delay redirect time that described main body message is carried form; Url=operator Redirect URL/" HTML of >.Because search engine can read HTML voice, thus for described, refresh and redirect redirecting technique, i.e. automatic redirect method, search engine can detect automatically.If the described time delay redirect time is 0, represent redirect immediately, if time delay redirect event is 0, just can be regarded as cheating, thereby pays for, if the described time delay redirect time is greater than 10s (more than being generally 10s), represent normal use, described forced gate layer 111 creates another timer, whether judgement replys about carrying the confirmation message of HTTP request message of the main body message of 200 OK fields described in receiving surpassing described client 12 in the time of described another timer defined, if, represent that described client 12 carries the HTTP request message of the main body message of 200 OK fields described in receiving, and the described HTTP request message that carries the main body message of 200 OK fields is replied to confirmation message, described forced gate layer 111 receives the confirmation message that described client 12 is replied, delete described another timer, if not, again carry the HTTP request message of the main body message of 200 OK fields described in transmission.
Forced gate layer 111 described in described server end 11 is also for receiving the termination message of the second transmission control protocol message of described client 12 transmissions.Described forced gate layer 111 is receiving described client 12 replies about receiving the confirmation message of described the second transmission control protocol message or stopping after message, forge another confirmation message, another confirmation message of forging is sent to described client 12 to notify this communication linkage to close.
For example, user will access wWW.GOOGLE.COMnetwork address, by kernel implementation method and the system of the forced gate based on ECOS system of the present invention, user browser shows is exactly that the forced gate page of operator's appointment is to user, to facilitate user more to understand the latest news of operator and some important business such as propaganda or advertising.
In sum, the kernel implementation method of the forced gate based on ECOS system of the present invention and system have fundamentally solved prior art and have directly inputted after the access of IP address user, can not eject forced gate, really realized forced gate function, pushing speed is fast, and user is without configuration voluntarily.
So the present invention has effectively overcome various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all can, under spirit of the present invention and category, modify or change above-described embodiment.Therefore, such as in affiliated technical field, have and conventionally know that the knowledgeable, not departing from all equivalence modifications that complete under disclosed spirit and technological thought or changing, must be contained by claim of the present invention.

Claims (9)

1. the kernel implementation method of the forced gate based on ECOS system, the kernel that is applied to comprise the forced gate based on embedded configurable operations system of client and server end is realized system, it is characterized in that, the kernel implementation method of the described forced gate based on ECOS system comprises:
Step 1, when user need access the Internet, between described server end and described client, analogue transmission control protocol shakes hands to set up the communication linkage based on transmission control protocol for the first time; Described server end has forced gate layer and bridge forwards layer;
Step 2, described client sends HTTP request data package to described server end;
Step 3, described server end is resolved described HTTP request data package, judges whether the data terminal slogan of described HTTP request data package is default port number; If described data terminal slogan is default port number, judge in the forced gate layer of described server end, whether global flag position puts 1, if global flag position does not put 1 in described forced gate layer, described HTTP request data package is sent to described forced gate layer;
Step 4, analogue transmission control protocol second and shaking hands for the third time between described server end and described client;
Step 5, when described server end and described client are set up after described communication linkage, described client send request read the information being indicated by URL(uniform resource locator) HTTP request message to described forced gate layer, forced gate layer described in described server end abandons this HTTP request message, forge the HTTP request message that another carries the main body message of 200 OK fields, and be sent to described client.
2. the kernel implementation method of the forced gate based on ECOS system according to claim 1, it is characterized in that: when the data terminal slogan of the described HTTP request data package of judgement is not default port, described HTTP request data package is forwarded to described bridge and forwards layer.
3. the kernel implementation method of the forced gate based on ECOS system according to claim 1, is characterized in that: in described forced gate layer, during global flag position 1, described HTTP request data package is sent to described bridge and forwards layer.
4. the kernel implementation method of the forced gate based on ECOS system according to claim 1, is characterized in that:
The step of described analogue transmission control protocol second handshake comprises: forge the second transmission control protocol message, attribute field in described the second transmission control protocol message is set to sync message and confirmation message, the second transmission control protocol message of forging is sent to described client and to reply described client, sends the sync message of the first transmission control protocol message, create a timer, whether judgement is replying about receiving the confirmation message of described the second transmission control protocol message over described client in the time of described timer defined, if not, represent described the second transmission control protocol message dropping, again transmit described the second transmission control protocol to described client, if so, analogue transmission control protocol is shaken hands for the third time,
The step that described analogue transmission control protocol is shaken hands for the third time comprises: receive that described client replys about receiving the confirmation message of described the second transmission control protocol message, delete described timer; Described forced gate layer receive that described client replys about receiving after the confirmation message of described the second transmission control protocol message, in communication linkage established state.
5. the kernel implementation method of the forced gate based on ECOS system according to claim 1, is characterized in that: the kernel implementation method of the described forced gate based on ECOS system also comprises: described forced gate layer also receives the termination message of the second transmission control protocol message of client transmission; Described forced gate layer is receiving described client reply about receiving the confirmation message of described the second transmission control protocol message or stopping message, forge another confirmation message, another confirmation message of forging is sent to described client to notify this communication linkage to close.
6. the kernel implementation method of the forced gate based on ECOS system according to claim 1, is characterized in that: it is refreshing and redirect redirecting technique based on HTML that URL(uniform resource locator) is redirected what adopt.
7. the kernel implementation method of the forced gate based on ECOS system according to claim 1, is characterized in that: it is <meta http-equiv=" refresh " content=" the time delay redirect time that described main body message is carried form, url=operator Redirect URL/" HTML of >, if the described time delay redirect time is 0, represent redirect immediately, if the described time delay redirect time is greater than 10s, represent normal use, described forced gate layer creates another timer, whether judgement replys about carrying the confirmation message of HTTP request message of the main body message of 200 OK fields described in receiving surpassing described client in the time of described another timer defined, if, represent described client to described in carry the HTTP request message of the main body message of 200 OK fields, and the described HTTP request message that carries the main body message of 200 OK fields is replied to confirmation message, described forced gate layer receives the confirmation message that described client is replied, delete described another timer, if not, again carry the HTTP request message of the main body message of 200 OK fields described in transmission.
8. the kernel of the forced gate based on ECOS system is realized a system, is applied to embedded configurable operations system, it is characterized in that, the kernel of the described forced gate based on ECOS system is realized system and comprised:
Server end, comprises that forced gate layer and bridge forward layer, and for when user need access the Internet, and between client, analogue transmission control protocol shakes hands to set up the communication linkage based on transmission control protocol for the first time; When described client sends HTTP request data package to described server end, described server end is used for resolving described HTTP request data package, whether the data terminal slogan that judges described HTTP request data package is default port number, if not, described HTTP request data package is forwarded to described bridge and forwards layer; If so, judge in the described forced gate layer of described server end, whether global flag position puts 1, if so, described HTTP request data package is sent to described bridge and forwards layer; If not, described HTTP request data package is sent to described forced gate layer, analogue transmission control protocol second and shaking hands for the third time;
When described server end and described client are set up after described communication linkage, described client sends request the HTTP request message during to described forced gate layer that reads the information being indicated by URL(uniform resource locator), described server end is used for abandoning this HTTP request message, again forge the HTTP request message that another carries the main body message of 200 OK fields, and be sent to described client.
9. the kernel of the forced gate based on ECOS system according to claim 8 is realized system, it is characterized in that: described forced gate layer is used for:
Analogue transmission control protocol is shaken hands for the first time, that described forced gate layer receives is that described client sends, for asking the first transmission control protocol message with the communication linkage of its foundation based on transmission control protocol, described the first transmission is controlled message and is comprised sync message; Wherein, described forced gate layer is initially in the state of intercepting of intercepting described the first transmission control protocol message; After receiving described sync message, described forced gate layer is in sync message accepting state;
Analogue transmission control protocol second handshake, forge the second transmission control protocol message, attribute field in described the second transmission control protocol message is set to sync message and confirmation message, the second transmission control protocol message of forging is returned back to described client and to reply described client, send the sync message of the first transmission control protocol message, create a timer, whether judgement is replying about receiving the confirmation message of described the second transmission control protocol message over described client in the time of described timer defined, if not, represent described the second transmission control protocol message dropping, again transmit described the second transmission control protocol to described client, if so, analogue transmission control protocol is shaken hands for the third time,
Analogue transmission control protocol is shaken hands for the third time, receive that described client replys about receiving the confirmation message of described the second transmission control protocol message, delete described timer; Described forced gate layer is receiving described client reply about receiving after the confirmation message of described the second transmission control protocol message, in communication linkage established state.
CN201410293134.7A 2014-06-25 2014-06-25 Kernel implementing method and system for captive portal based on ECOS system Pending CN104038506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410293134.7A CN104038506A (en) 2014-06-25 2014-06-25 Kernel implementing method and system for captive portal based on ECOS system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410293134.7A CN104038506A (en) 2014-06-25 2014-06-25 Kernel implementing method and system for captive portal based on ECOS system

Publications (1)

Publication Number Publication Date
CN104038506A true CN104038506A (en) 2014-09-10

Family

ID=51469095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410293134.7A Pending CN104038506A (en) 2014-06-25 2014-06-25 Kernel implementing method and system for captive portal based on ECOS system

Country Status (1)

Country Link
CN (1) CN104038506A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6470027B1 (en) * 1999-04-30 2002-10-22 At&T Corp. System and method for providing message redirection in networked environments
CN1549161A (en) * 2003-05-21 2004-11-24 深圳市中兴通讯股份有限公司南京分公 Method for forced push-off web
CN101873329A (en) * 2010-06-29 2010-10-27 迈普通信技术股份有限公司 Portal compulsory authentication method and access equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6470027B1 (en) * 1999-04-30 2002-10-22 At&T Corp. System and method for providing message redirection in networked environments
CN1549161A (en) * 2003-05-21 2004-11-24 深圳市中兴通讯股份有限公司南京分公 Method for forced push-off web
CN101873329A (en) * 2010-06-29 2010-10-27 迈普通信技术股份有限公司 Portal compulsory authentication method and access equipment

Similar Documents

Publication Publication Date Title
CN101267299B (en) A method and system for securely display data on the webpage
US8396939B2 (en) Content distribution management device, terminal, program, and content distribution system
CN104580192B (en) The treating method and apparatus of the network access request of application program
US9684628B2 (en) Mechanism for inserting trustworthy parameters into AJAX via server-side proxy
US20090282468A1 (en) Systems and methods of network operation and information processing, including use of persistent/anonymous identifiers throughout all stages of information processing and delivery
EP2773080A1 (en) Sharing control system and method for network resources download information
US20090024737A1 (en) Website monitoring and cookie setting
US20110209075A1 (en) Page resource processing method and system
CN107341160A (en) A kind of method and device for intercepting reptile
CN101741872B (en) Method and device for acquiring information of target resources
WO2011041465A1 (en) Enhanced website tracking system and method
US9083761B1 (en) Reduced latency for subresource transfer
CN102687116A (en) Managed channel for asynchronous requests
KR20100059823A (en) Method for enriching content of a web page with presence information
CN103607454B (en) The method that android system browser arranges privately owned proxy server
Viscomi et al. Using WebPageTest: web performance testing for novices and power users
CN106557584A (en) A kind of web site collection method and device
CN106850572A (en) The access method and device of target resource
CN101378407B (en) Method, system and equipment for pushing information
CN104462242B (en) Webpage capacity of returns statistical method and device
CN105279156B (en) Network information communication means and network information browsing apparatus
CN102984266A (en) Interactive processing method and device for data
CN105930512A (en) Advertisement insertion method, apparatus and system, server and client
CN105677688B (en) Page data loading method and system
WO2014118548A1 (en) Tracking system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140910