The content of the invention
The technical problems to be solved by the invention are:TCP agent is solved under thin ap mode due to the reply message at AP ends
Can not correctly encapsulation tunnel send to server and can not in thin ap mode with the problem of can be in thin ap mode there is provided one kind
The lower method and system for realizing TCP agent function.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:
A kind of method that TCP agent is realized under thin ap mode, including:
Cable service end sends TCP message to wireless aps end and carries out forward process;
The port numbers of SYN messages in TCP message are revised as at wireless aps end the port of the TCP agent unit acquiescence
Number;
Wireless aps are extracted the SYN messages and sent to TCP agent unit;
The SYN messages that TCP agent unit simulation wireless client is sended over to the cable service end reply ACK
Message;
TCP agent unit obtains wireless client IP, and the IP of the wireless aps is substituted with the wireless client IP;
Wireless client MAC Address is obtained, the MAC Address of the wireless aps is substituted with the wireless client MAC Address;
At wireless aps end, the TCP agent unit includes the wireless client IP and the wireless visitor with amended
The ACK messages encapsulation tunnel of family end MAC Address is sent to server through AC ends.
Another technical scheme that the present invention is provided is:
The system of TCP agent is realized under a kind of thin ap mode, including wireless client, wireless aps end, the AC being sequentially connected
End and cable service end;The wireless aps end includes modification unit, extraction unit and the TCP agent unit being sequentially connected;It is described
TCP agent unit includes reply unit, first processing units, second processing unit and the encapsulation unit being sequentially connected, described time
Multiple unit is connected with the cable service end, and first processing units and the second processing unit connects the wireless client,
The encapsulation unit connects the AC ends;
The cable service end, forward process is carried out for sending TCP message to wireless aps end;
The modification unit, wireless aps end the port numbers of the SYN messages in TCP message are revised as the TCP agent list
The port numbers of member acquiescence;
The extraction unit, extracts the SYN messages for wireless aps and sends to TCP agent unit;
The reply unit, is sended over for TCP agent unit simulation wireless client to the cable service end
The SYN messages reply ACK messages;
The first processing units, obtain wireless client IP for TCP agent unit, are replaced with the wireless client IP
For the IP of the wireless aps;
The second processing unit, for obtaining wireless client MAC Address, is replaced with the wireless client MAC Address
For the MAC Address of the wireless aps;
The encapsulation unit, at wireless aps end, the TCP agent unit to include the wireless client with amended
The ACK messages encapsulation tunnel of end IP and the wireless client MAC Address is sent to server through AC ends.
The beneficial effects of the present invention are:Operation TCP agent function under the thin ap mode of prior art is different from, AP ends
TCP message just can not correctly encapsulation tunnel be forwarded to AC ends carry out be forwarded to cable service end, cause due to TCP generations can not be realized
Reason function and the frequent packet loss of Radio Link, message retransmission cross problem influence and the data-transmission efficiency drop of wired service end occur
It is low, the deficiency of influence Consumer's Experience impression.Present invention offer is a kind of to be realized the method for TCP agent under thin ap mode and be
System, wireless aps end is obtained after the SYN messages in the TCP message that cable service end is sended over, and the port numbers of SYN messages are repaiied
The port numbers of TCP agent unit acquiescence are changed to, TCP agent unit simulation wireless client replys SYN reports described in cable service end
The ACK confirmation messages of text;It is packaged again after replacing the IP and MAC Address of wireless aps with the IP and MAC Address of wireless client
Tunnel is sent.TCP agent function can equally be run under thin ap mode by realizing, and be disguised oneself as wireless visitor using TCP agent function
The ACK messages of SYN messages described in the Quick-return of family end, cable service end, which distributes SYN messages, can wait the ACK messages of reply, such as
Fruit ACK messages reply slow, then performance is low.And the ACK messages of reply can be packaged tunnel and be forwarded to server, allow server
It is considered well to be communicated with wireless aps end, Radio Link message retransmission does not occur due to eating dishes without rice or wine packet loss problem,
Ultimately result in server cable service end reduce data send efficiency of transmission, but ensure server cable service end with
The efficiency of transmission of maximum performance is transmitted, and sends data to wireless aps end, and optimization TCP transmission agreement makes in a wireless device
Transmission quality, keeps the efficiency of transmission of maximum performance, lifting and the experience effect of user in the utilization that it is transmission.
Embodiment
To describe the technology contents of the present invention in detail, feature, the objects and the effects being constructed, below in conjunction with embodiment
And coordinate accompanying drawing to be explained in detail.
The design of most critical of the present invention is:Wireless aps energy Quick-return cable service end, and TCP agent unit is with wireless
The IP and MAC Address of client carry out the reply message of agency's forwarding TCP message, to ensure the reply message by agency's forwarding
Correctly server can be forwarded to by encapsulation tunnel.
Fig. 1 to Fig. 4 is referred to, the present invention provides a kind of method that TCP agent is realized under thin ap mode, including:
Cable service end 400 sends TCP message to wireless aps end 200 and carries out forward process;
Wireless aps end 200 port numbers of the SYN messages in TCP message are revised as what the TCP agent unit 230 was given tacit consent to
Port numbers;
Wireless aps are extracted the SYN messages and sent to TCP agent unit 230;
The SYN reports that 100 pairs of the wireless client of simulation of the TCP agent unit 230 cable service end 400 is sended over
Text replys ACK messages;
TCP agent unit 230 obtains wireless client 100IP, and the wireless aps are substituted with the wireless client 100IP
IP;
Wireless client 100MAC addresses are obtained, the wireless aps are substituted with the wireless client 100MAC addresses
MAC Address;
At wireless aps end 200, the TCP agent unit 230 includes the wireless client 100IP and institute with amended
The ACK messages encapsulation tunnel for stating wireless client 100MAC addresses is sent to server through AC ends 300.
It was found from foregoing description, the beneficial effects of the present invention are:The present invention provides one kind and can realized under thin ap mode
The method and system of TCP agent, the port numbers that TCP agent unit 230 will reply the SYN messages at cable service end 400 are revised as
The port numbers that TCP agent unit 230 is given tacit consent to, the IP and MAC of wireless aps are replaced with the IP and MAC Address of wireless client 100
Tunnel transmission is packaged behind location again.TCP agent function can equally be run under thin ap mode by realizing, and utilize TCP agent work(
The ACK messages of cable service end 400SYN messages described in the Quick-return of wireless client 100 can be pretended, and ACK messages can be entered
Row encapsulation tunnel is forwarded to server, allows server to be considered well to be communicated with wireless aps end 200, Radio Link is not
Have and message retransmission occur due to eating dishes without rice or wine packet loss problem, ultimately resulting in server reduces what data were sent at cable service end 400
Efficiency of transmission, but ensure that cable service end 400 is transmitted with the efficiency of transmission of maximum performance, send data to wireless aps
End 200, the transmission quality that uses in a wireless device of optimization TCP transmission agreement keeps the efficiency of transmission of maximum performance, lifting with
It is the experience effect of user in the utilization transmitted.
It should be noted that in WLAN wireless network environments, being lost due to the decline of Radio Link communication quality
Bag is serious, the problem of message retransmission is excessive, and combines TCP transmission agreement retransmission mechanism, slow turn-on mechanism and data transfer negotiation
The characteristics of mechanism, the message transmission rate that will result directly in cable service end 400 declines, and has a strong impact on the utilization using it as transmission
Consumer's Experience.If for wanting to solve the above problems under thin ap mode, it is contemplated that be managed using by wireless controller, adjusting
System and the wireless aps of control, are improved from TCP agent with assistant.And TCP agent is used under thin ap mode, solve well
Certainly above mentioned problem is, it is necessary to meet following 2 points simultaneously:
(1) TCP agent unit 230 needs that terminal device (i.e. cable service end 400 and centralized management controller AC can be received
The TCP message 300) sended over is held, and ACK messages are replied to the SYN messages in TCP message.
(2) thin AP equipment must be able to TCP message tunnel encapsulation being transmitted to AC ends 300 into CAPWAP tunnel message, by AC
TCP message is forwarded to server by end 300.
The present invention solves the problems, such as to cause the data of cable service end 400 due to data wireless links packet loss in TCP transmission
The problem of transmission rate declines and needs to wait.In order to solve the situation that cable service end 400 waits wireless client 100,
TCP agent function is used under thin ap mode, when the message of cable data reaches wireless aps end 200, TCP agent unit
230 users for first substituting wireless client 100 quickly reply the ACK confirmation messages of SYN messages in TCP message, and thin AP moulds
Formula is not in corresponding to due to IP and MAC Address, it is impossible to the message at wireless aps end 200 is correctly directly packaged into transmission extremely
AC ends 300 are, it is necessary to modify, specifically, needing the IP and MAC Address at wireless aps end 200 all replacing with wireless client
The IP and MAC Address at end 100, the TCP message that TCP agent unit 230 could be allowed to forward normally can enter AC ends by encapsulation tunnel
300, allow server end to be considered carrying out communication transfer with wireless client 100, allow cable service end 400 to think Radio Link
Transmission quality not because wireless client 100 and as bottleneck, still at cable service end 400 to pass to greatest extent
Defeated speed carries out the transmission of message.
After the TCP message that the transmission of AC ends 300 is received at cable service end 400, it will reply message to AC ends 300, AC
End 300 carries out tunnel encapsulation and sent to wireless aps again, by the data buffering of wireless AP devices, retransmits to wireless client
100 receive.
Further, described " cable service end 400 sends TCP message to wireless aps end 200 and carries out forward process " wraps afterwards
Include:
The TCP message enters the layer protocol stack of wireless aps three from the bridge of wireless aps.
In ICP/IP protocol, with seven layer protocol stacks, and the information such as IP of the TCP message is in seven layer protocol stacks
Three layer protocol stacks, then, it is necessary to will be described after wireless aps receive the TCP message that the wire server end is sended over
TCP message from the bridge of wireless aps enter the layer protocol stack of wireless aps seven in third layer protocol stack handled.
Further, it is described " wireless aps end 200 port numbers of the SYN messages in TCP message to be revised as the TCP generations
Manage the port numbers that unit 230 is given tacit consent to " be specially:
The port numbers of the SYN messages are revised as 5000 port numbers that the TCP agent unit 230 is given tacit consent to.If not yet
There is modification, TCP agent unit 230 can not be received.
It is further, described that " TCP agent unit 230 obtains wireless client 100IP, with the wireless client 100IP
Include after the IP " for substituting the wireless aps:
The bridge of the ACK messages through wireless aps is entered into wireless aps two-layer protocol stack.
, it is necessary to which the bridge of the ACK messages through wireless aps is entered when the MAC Address for carrying out the ACK messages is replaced
The replacement of MAC Address could be carried out by entering into wireless aps in the two-layer protocol stack of MAC Address storage location.
Further, described " obtaining wireless client 100MAC addresses " is specially:Obtained by the ARP table for searching wireless aps
Take wireless client 100MAC addresses.
The TCP agent unit 230 just can obtain the wireless client associated by searching the ARP table of wireless aps
100 MAC Address.
Fig. 5 and Fig. 6 is referred to, another technical scheme that the present invention is provided is:
Realize the system of TCP agent under a kind of thin ap mode, including be sequentially connected wireless client 100, wireless aps end
200th, AC ends 300 and cable service end 400;The wireless aps end 200 includes modification unit 210, the extraction unit being sequentially connected
220 and TCP agent unit 230;The TCP agent unit 230 includes reply unit 231, the first processing units being sequentially connected
232nd, second processing unit 233 and encapsulation unit 234, the reply unit 231 are connected with the cable service end 400, described
First processing units 232 and second processing unit 233 connect the wireless client 100, and the encapsulation unit 234 connects described
AC ends 300;
The cable service end 400, forward process is carried out for sending TCP message to wireless aps end 200;
The modification unit 210, the port numbers of the SYN messages in TCP message are revised as the TCP by wireless aps end 200
The port numbers that agent unit 230 is given tacit consent to;
The extraction unit 220, extracts the SYN messages for wireless aps and sends to TCP agent unit 230;
The reply unit 231, for 100 pairs of the wireless client of simulation of the TCP agent unit 230 cable service end
The 400 SYN messages sended over reply ACK messages;
The first processing units 232, wireless client 100IP is obtained for TCP agent unit 230, with described wireless
Client 100IP substitutes the IP of the wireless aps;
The second processing unit 233, for obtaining wireless client 100MAC addresses, uses the wireless client
100MAC addresses substitute the MAC Address of the wireless aps;
The encapsulation unit 234, at wireless aps end 200, the TCP agent unit 230 to include institute with amended
The ACK messages encapsulation tunnel for stating wireless client 100IP and the wireless client 100MAC addresses is sent through AC ends 300
To server.
It was found from foregoing description, the beneficial effects of the present invention are:The present invention provides and realizes TCP generations under a kind of thin ap mode
The system of reason, is just quickly reported by being received at wireless aps end 200 after the TCP message that cable service end 400 is sent to the TCP
SYN messages in text reply ACK confirmation messages to the cable service end 400 with the identity of wireless client 100, so as to
Confirm that the wireless client 100 in Radio Link is eated dishes without rice or wine packet loss problem in the absence of transmission, utilize first processing units 232 and second
Processing unit 233 substitutes the IP and MAC Address of the wireless aps with the wireless client 100IP and MAC Address, to ensure
Stating ACK messages correctly can be forwarded to AC ends 300 by encapsulation tunnel, and then send to server end, allow wire server to think
It is well to be communicated with wireless aps end 200, Radio Link message retransmission does not occur due to eating dishes without rice or wine packet loss problem, most
Cause to reduce the efficiency of transmission that data are sent at cable service end 400 eventually, but ensure that server is imitated with the transmission of maximum performance
Rate is transmitted, and sends data to wireless aps end 200, optimizes the transmission quality that TCP transmission agreement is used in a wireless device,
Keep the efficiency of transmission of maximum performance, lifting and the experience effect of user in the utilization that it is transmission.
Further, the wireless aps end 200 also includes the first guidance unit 240, and first guidance unit 240 is distinguished
It is connected with the AC ends 300 and the modification unit 210;
First guidance unit 240, for receiving after the TCP message that the cable service end 400 is sended over
The TCP message is entered into the layer protocol stack of wireless aps three from the bridge of wireless aps.
The TCP message is entered by the layer protocol stack of wireless aps seven by the bridge of wireless aps by the first guidance unit 240
Third layer, to handle the IP being stored in three layer protocol stacks and port numbers etc..
Further, the wireless aps end 200 also includes the second guidance unit 235, and second guidance unit 235 is distinguished
It is connected with the first processing units 232 and second processing unit 233;
Second guidance unit 235, for the bridge of the ACK messages through wireless aps to be entered into wireless aps two-layer protocol
Stack.
Further, the second processing unit 233, specifically for obtaining wireless visitor by searching the ARP table of wireless aps
Family end 100MAC addresses.
Second processing unit 233 in the TCP agent unit 230 by search the ARP table of wireless aps just can obtain with
Contact wireless client 100 MAC Address.
In summary, the method and device of TCP agent is realized under a kind of thin ap mode that the present invention is provided, reality is not only able to
The ACK confirmation messages that wireless client 100 quickly replys SYN messages now are substituted by wireless aps, and can be by TCP agent work(
Can by change after IP and MAC Address it is correct be packaged tunnel and send to AC ends 300 be forwarded to server, allow server end
Think that normal and wireless aps end 200 carries out data communication, the cable service end 400 is not transmitted by data wireless links
The influence of packet loss problem and there is the problem of wired data communication transmission rate of service end 400 declines, it is ensured that cable service end 400
The transmission of data is carried out with the transmission rate of maximum performance, Consumer's Experience for the application of transmission with it is improved.
Embodiments of the invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.