Python Learning---network programming 1217[all]

Source: Internet
Author: User

OSI seven-layer model: physical layer, Data link layer, network layer, transport layer, session layer, expression layer, application layer

Application layer: Tftp,http,snmp,ftp,smtp,dns,telnet, etc.

Transport Layer: TCP,UDP

Network layer: IP,ICMP,OSPF,EIGRP,IGMP

Data Link layer: SLIP,CSLIP,PPP,MTU

"Pictures from the network"

Network communication Elements :

A:ip Address (1) is used to identify a separate host on the network

(2) IP address = Network address + host address (network number: Used to identify the network/network segment where the host is located. Host number: Used to identify the host in the network)

(3) Special IP address: 127.0.0.1 (local loopback address, reserved address, dotted decimal) can be used to simply test the NIC for failure. Represents the native.

B: Port number: (1) The logical address used to identify the process. Different processes have different port identities.

(2) port: to identify these applications by sending the data to the application specified by the other, the network applications are identified by numbers. To address these numbers conveniently, these numbers are referred to as ports. (This port is a logical port)

C: Transport protocol : rules for communication. For example: TCP, UDP protocol (like two people have to communicate in the same language)

①, udp:user Datagram Protocol User Datagram Protocol

Features: For no connection: the source and destination ports do not need to be connected before transmitting data, each datagram size is limited to 64K (8 bytes), and the unreliable protocol for message. (That is, the data sent is not necessarily received) transmission rate is fast, high efficiency; real life examples: Post Office, real-time online chat, video conferencing ... such as

②, Tcp:transmission Control Protocol Transmission Protocol

Features: Connection-oriented: the need to establish a connection before the transmission of data, a large number of data transmission during the connection process, through the "three-time handshake" to complete the connection, is a safe and reliable protocol, slow transmission speed, low efficiency.

Socket-Server/client programming

Python Learning---socket programming

server-side concurrent chat [Socketserver]

Python Learning---socketserver programming

Remote execution Commands

Python Learning---remote execution commands

Network File Upload

Python Learning---web file upload

Python Learning---network programming 1217[all]

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.