Video Description

Networking in Python This lesson covers the essentials of networking in Python, specifically focusing on: IPv4 - 32 bits

  • Old, but used everywhere

  • Covered in RFC 791

  • No built in security, trivial checksum

IPv6 - 128 bits

  • Not used everywhere for a variety of reasons

  • Covered in RFC 2460

  • Built in security, less trivial checksum

TCP - Connection oriented

  • Reliable (sort of)

  • Sequence and acknowledgement

s

  • Governed by RFC 793

  • One-to-one communication

UDP - Connectionless

  • Unreliable (not exactly)

  • No sequence and acknowledgement

s

  • Governed by RFC 768

  • One-to-one or one-to-many communication

Useful ports (just to name a few) - 20/21 FTP

  • 22 ssh

  • 23 telnet

  • 53 DNS

Sockets: - The Berkley Software Distribution (BSD) socket

  • The import socket

  • listen (listenqueue)

  • send (string)

  • recv (bufsize[,flags])

  • close()

Course Modules