+++++++++ User space Process Communication, TCP Protocol basics, HTTP protocol Basics

Source: Internet
Author: User

Communication knowledge of the network process

Bare sockets, segments, shards, MTU

Process address, user space, kernel space

Inter-process communication, socket

TCP protocol

HTTP protocol

Hypertext definition, Hyper-text format

Web resources:

Dynamic

Static

Access to the portal, the resources being accessed

Cross-site references/hotlinking

Uri,url,run relationship, subset

URL format

Host address + process address (port)


Bare Sockets : TCP,UDP protocol Encapsulation message without calling the transport layer

Process Address : Port identification with TCP,UDP protocol, port (16bits)

IANA Internet Assign number Agent Internet address name Assignment Agency

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/A5/DD/wKioL1nEi-OhSXPdAAA9eJ52Fhs877.png "title=" Qq20170922120434.png "alt=" Wkiol1nei-ohsxpdaaa9ej52fhs877.png "/>


specific features : Process completion by user-space

Common functionality : When the process of user space is completed by the kernel, it is necessary to initiate syscall to kernel space when using common functions


Inter-process communication

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/07/2D/wKiom1nEkgTjBAm3AAAX_uoRj4o417.png "title=" Qq20170922123007.png "alt=" Wkiom1nekgtjbam3aaax_uorj4o417.png "/>


Socket: The kernel is provided by Syscall, the process in user space needs to communicate with the host across the network, it needs to be based on socket programming


Socket type

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/07/2D/wKiom1nEk-3xXLhQAAAoZfmI8Es988.png "style=" float : none; "title=" Qq20170922123805.png "alt=" Wkiom1nek-3xxlhqaaaozfmi8es988.png "/>


Socket domain

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/A5/DE/wKioL1nEk7ejvrR-AAAtPn8bBsM858.png "style=" float : none; "title=" Qq20170922123815.png "alt=" Wkiol1nek7ejvrr-aaatpn8bbsm858.png "/>


Socket programming

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/07/2D/wKiom1nElBuS1eYzAABGPtQRsoI520.png "title=" Qq20170922123901.png "alt=" Wkiom1nelbus1eyzaabgptqrsoi520.png "/>


TCP protocol

Based on SOCKET communication, Socket_stream

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/A5/E2/wKioL1nEt5fzevL2AADMGNPi4B4338.png "title=" Qq20170922151112.png "alt=" Wkiol1net5fzevl2aadmgnpi4b4338.png "/>

MTU: Maximum Transmission unit

Segment: When the MTU size is greater than 1500bytes, the IP packets need to be segmented

Shard: When the path MTU minimum is less than 1500, fragmentation is required


HTTP protocol

Hyper Text Transfer Protocol Transfer Hypertext Protocol 80/tcp Socket_stream

Hypertext: Text developed by the HTML programming language (a link in a webpage jumps to another page, a link is called a hypertext link)

Hypertext format

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/07/31/wKiom1nEuS7Tii_KAAA2TqP_0qY316.png "title=" Qq20170922151706.png "alt=" Wkiom1neus7tii_kaaa2tqp_0qy316.png "/>


0.9 plain Text

1.0 support MIME, extension method, weak caching mechanism

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/A5/E2/wKioL1nEuHezY3RsAABFaz2unFQ496.png "title=" Qq20170922151504.png "alt=" Wkiol1neuhezy3rsaabfaz2unfq496.png "/>


2.0 Mime,method, caching mechanism enhanced, spdy Advantage Integration (Spdy accelerate the acquisition of resources)


Working mode

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/07/31/wKiom1nEuYCBD953AAAlcUj8SoQ102.png "title=" Qq20170922151834.png "alt=" Wkiom1neuycbd953aaalcuj8soq102.png "/>


Requested content: Web content

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/07/31/wKiom1nEueCB4nuCAABCqEa_Dcc852.png "title=" Qq20170922152010.png "alt=" Wkiom1neuecb4nucaabcqea_dcc852.png "/>


There are multiple resources in a page : Each page is a resource, each page has multiple hyperlinks, and each link corresponds to a resource

Access Portal : given address

Accessed Resource : The address referenced in the page

hotlinking/cross-site reference : A resource from a Web site from a resource on another server

URL: Identifies each resource or identifies the location of each resource

Subset of URIs: Url,urn

URL format

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/07/32/wKiom1nEu22Sdw8MAAAvYMzWsRw367.png "title=" Qq20170922152647.png "alt=" Wkiom1neu22sdw8maaavymzwsrw367.png "/>



Add

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/A5/DF/wKioL1nEmv6xSAWDAABSp-1g3Tg608.png "title=" Qq20170922130903.png "alt=" Wkiol1nemv6xsawdaabsp-1g3tg608.png "/>

Setfacl-m U:username:mode FILE ...

Setfacl-m G:groupname:mode FILE ...

Setfacl-x U:username:mode FILE ...

Setfacl-x G:groupname:mode FILE ...

This article is from the "Reading" blog, make sure to keep this source http://sonlich.blog.51cto.com/12825953/1967781

+++++++++ User space Process Communication, TCP Protocol basics, HTTP protocol Basics

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.