Networking in Python

Invite Friends
Facebook Twitter Google+ LinkedIn Email
Virtual Practice Lab
Practice Test
Networking in Python

Networking in Python

This lesson covers the essentials of networking in Python, specifically focusing on:


  • 32 bits
  • Old, but used everywhere
  • Covered in RFC 791
  • No built in security, trivial checksum


  • 128 bits
  • Not used everywhere for a variety of reasons
  • Covered in RFC 2460
  • Built in security, less trivial checksum


  • Connection oriented
  • Reliable (sort of)
  • Sequence and acknowledgement #s
  • Governed by RFC 793
  • One-to-one communication


  • 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


  • The Berkley Software Distribution (BSD) socket
  • The import socket
  • listen (listenqueue)
  • send (string)
  • recv (bufsize[,flags])
  • close()
Coming Soon
Learn on the go.
The app designed for the modern cyber security professional.
Get it on Google PlayGet it on the App Store
Practice Labs and Exam Vouchers

Congratulations! You're taking the first step to getting certified. Get some hands on experience with available practice labs OR save some money, support Cybrary, and purchase discounted exam vouchers. Ready to earn your next industry certification? Join cyber security's largest community and start learning today.


Upcoming Industry Events

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Cybrary On The Go

Get the Cybrary app for Android for online and offline viewing of our lessons.

Get it on Google Play

Support Cybrary

Donate Here to Get This Month's Donor Badge

Skip to toolbar

We recommend always using caution when following any link

Are you sure you want to continue?