The 1th Chapter Network Programming Foundation (1)--Network protocol

Source: Internet
Author: User
Tags file transfer protocol

Network Game Type: the angle of development
    1. Peer client-to-server
    2. Online games based on the hall
    3. Network Game of pure C/s structure
Network Communication Protocol

Protocol (PROTOCOL): A collection of two rules that control the exchange of data between entities.

    • Syntax (data format, encoding, signal power equality)
    • Semantics (including control information for coordination and error handling)
    • Timing (including speed matching and sequencing, etc.)
OSI model:

High-level protocols tend to handle user services and various application requests

The underlying protocol is biased towards handling the actual information transmission

Application Layer (application) Providing services to applications News
Presentation Layer (Presentation) Provides a common language for heterogeneous machine communication, processing of data News
Conversation Layer (session) Enables the app to establish and maintain sessions and synchronize sessions. Conversation management, Data flow synchronization, and resynchronization. News
Transport Layer (Transport) End-to-end buffering, using shunt/confluence, multiplexing/multiplexing technology to adjust the differences of the above communication subnet, but also have error recovery, flow control function. News
Networking Layer (Network) Routing Features for multiple networks Package
Data Link Layer Manage Data formats Frame
Physical Layer (physical) Provides a reliable environment for data transmission -bit

TCP/IP protocol: DARPA model
Application Layer (application) OSI Application Layer Provides the application with the ability to access other layer services and defines the protocol that the application uses to Exchange data.
Transport Layer (Transport) Transport Layer and partial session layer functionality Responsible for providing session and datagram communication services to the application layer. Core: TCP/UDP
Networking Layer (Network) Network layer A packet forwarding mechanism that is responsible for addressing, packaging, and routing from one computer to the final destination through one or more routers.
Network access Layer (networks access) Physical layer and Data link layer Responsible for placing TCP/IP packets on the network's transport media and receiving TCP/IP packets from the network transport media.

TCP/IP protocol family

1.IP

Inter-network protocol (Internet Protocol): Responsible for the routing of data between hosts and the storage of data on the network, while providing packet forwarding service for ICMP, TCP and UDP. Users typically do not involve this layer.

2.ARP

Address Resolution Protocol, which handles error and transmission control of information and hosts.

3.RARP

Reverse Address Resolution protocol (Reverse addresses Resolution Protocol), which maps hardware addresses to network addresses.

4.ICMP

Internet Control Message Protocol (PROTOCOL), which handles error and transmission control of information and hosts.

5.TCP

Transfer Control Protocol (Transmission Control Protocol), which is a reliable, connection-oriented full-duplex byte stream protocol for user processes. It mainly provides the virtual circuit service for the user process, and establishes the check for reliable data transmission. Most network user programs use TCP.

6.UDP

Subscriber Datagram Protocol (user Datagram Protocol), which is a non-connection protocol provided to the user process. Used to transfer data without being executed for correctness checks.

7.FTP

File Transfer Protocol, which allows the user to communicate with another host in the form of file manipulation (file increment, delete, change, check, transmit, etc.).

8.SMTP

Easy Mail Delivery protocol (simple email Transfer Protocol), the SMTP protocol transmits e-mail between systems.

9.TTP

Terminal Protocol (Telnet Terminal Protocol), which allows the user to access the remote host in a virtual terminal mode.

10.HTTP

Hypertext Transfer Protocol (hypertext Transfer Protocol), which transmits files written in Hypertext Markup Language (Html,hyper Text Markup Language), which is what people often say about web pages.

11.TFTP

The Simple File Transfer Protocol (Trivial files Transfer Protocol), which transmits "simple" files, differs from FTP in that it uses UDP port 69, so it can traverse many firewalls.

The 1th Chapter Network Programming Foundation (1)--Network protocol

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.