Tutorial on Network Programming with Python

Posted by Anonymous 0 komentar
The TCP/IP network protocol suite is the standard method for intermachine communication. Though originally integral only to the UNIX operating system, its usage spread to all OS types, and it is the basis of the entire Internet. This document will briefly introduce the subject of TCP/IP programming using the Python language. See http://heather.cs.ucdavis.edu/˜matloff/Networks/Intro/ NetIntro.pdf for a more detailed introduction to networks and TCP/IP.

A network means a Local Area Network. Here machines are all on a single cable, or as is more common now, what amounts to a single cable (e.g. multiple wires running through a switch). The machines on the network communicate with each other by the MAC addresses, which are 48-bit serial numbers burned into their network interface cards (NICs). If machine A wishes to send something to machine B on the same network, A will put B’s MAC address into the message packet. B will see the packet, recognize its own MAC address as destination, and accept the packet.

An internet—note the indefinite article and the lower-case i—is simply a connection of two or more networks. One starts, say, with two networks and places a computer on both of them (so it will have two NICs). Machines on one network can send to machines on the other by sending to the computer in common, which is acting as a router. These days, many routers are not full computers, but simply boxes that do only routing. One of these two networks can be then connected to a third in the same way, so we get a three-network internet, and so on. In some cases, two networks are connected by having a machine on one network connected to a machine on the other via a high-speed phone line, or even a satellite connection. Download free Tutorial on Network Programming with Python here

0 komentar:

Post a Comment