preview

Improving HTTP Performance Using Stateless TCP

Better Essays

Improving HTTP Performance Using “Stateless” TCP In this paper a server side approach is made which can reduce processing load per connection. The advantages of running web servers over a basic transport protocol that is similar to TCP are studied here. The stateless TCP for HTTP decreases the kernel resources required per TCP connection. So it increases the number of client initiated HTTP connections per second. Stateless TCP modifications decreases the server’s CPU usage and other TCP memory requirements. This helps to serve small webpages under overloaded situations. Two Algorithms (David A Hayes, Improving http performance using stateless tcp, 2011) are mentioned that show the basic operation of stateless TCP, one for incoming packets and one for outgoing packets from server. These include few rules to react to incoming control packets and also information to deal with application data. Algorithm 1: incoming Every TCP packet is captured which arrives at port 80 and following operations are performed, 1. If it’s a TCP SYN packet, send back a TCP SYN/ACK 2. If TCP DATA packet a) Store ack number and start timer b) Send TCP ACK packet back to sender, correct sequence and ack number c) Send TCP payload to server via UDP socket 3. If a TCP FIN packet,send back TCP FIN/RST/ACK and delete data and timer stored at 2a 4. If none of above drop the packet Algorithm 2: outgoing Event 1: On a local UDP socket send a request on port 80 and perform these 1. Check if source and

Get Access