My Github address

Notes on data Structures and Algorithms

Notes for geek Time iOS Developer Class

IOS large factory interview high frequency algorithm summary

Summary of iOS interview materials

Proxy server

  • The characteristics of
    • It doesn’t produce content itself
    • The middle position forwards upstream and downstream requests and responses
      • Downstream client: it is the server
      • Upstream facing server: it is the client

Forward agent

  • Forward proxy, the object of the proxy is the client

role

  • Hide the client identity
  • Circumventing firewalls (breaking access restrictions)
  • Internet Access control
  • Data filtering

The reverse proxy

  • Reverse proxy, the object of the proxy is the server

role

  • Hiding server Identity
  • Safety protection
  • Load balancing

Principles of the packet capture tool

  • Charles packet capture tool principle: started in the clientForward agentService.

Proxy server-related header fields

  • Via: Append the host name (or domain name) of each proxy server that passes through
  • X-forwarded-for: indicates the IP address of the appended request
  • X-real-ip: indicates the Real IP address of the client

  • 1
    • X – Forwarded – For: 14.14.14.14
    • X – Real – IP: 14.14.14.14
    • Via: proxy1
  • 2
    • X – Forwarded – For: 14.14.14.14 220.11.11.11
    • X – Real – IP: 14.14.14.14
    • Via: proxy1, proxy2
  • 3
    • Via: proxy2
  • 4
    • Via: proxy2, proxy1

CDN

  • Content Delivery Network (CDN) or Content Distribution Network
    • Utilize the server closest to each user
    • Faster and more reliable delivery of music, images, videos and other resource files (usually static resources) to users

Before and after using CDN

  • CDN operators have set up computer rooms in major hub cities all over the country and even the world
    • A large number of nodes with high storage and bandwidth are deployed to build a cross-carrier and cross-regional private network
  • The content owner pays a fee to the CDN operator, which delivers its content to the end user

Before using a CDN

After using the CDN