Giter Club home page Giter Club logo

cnet_atop-downapproach_lab's Introduction

CNet: A Top-down Approach LAB

My solution of ComputerNetworking: A Top-down Approach Labs and Problems.

The Lectures of CNet please check:

講義のノートはこちらに取ります:

CNet Lectures

Lab  Solution 問題文の日本語翻訳
WiresharkLAB 0 - -
Socket Prog1 A1 TCP/UDP Socket
LAB 1: WebServer L1 ウェブサーバ
LAB 2: UDPPinger L2 UDP Pinger
LAB 3: SMTP L3 メールサーバ

Notes

WiresharkLAB0

Actually, this lab is from CS144.

DEMO: Wireshark

Wireshark is an application that lets you actually observe the datagrams being sent and received on your machine over the Internet.

We filtered for packets with a particular IP address (given by Keith):

demo

Image: screenshot of Wireshark filter box, with ip.dst == 171.64.65.14 filter applied. This filters for IP packets with destination IP address 171.64.65.14.

We then pinged that IP address from a terminal window

$ ping 171.64.65.14

APPENDIX:Wireshark

A Network Packet Analyzer

You could filter the particular IP dst to examine its packet info.

Socket Programming: Creating Network Applications

  • Implementation: Conform Protocol Standard
  • Proprietary APP: Choose Port

127.0.0.1 is local hostname.

Socket Programming with UDP

Unreliable; Datagram

Socket Programming with TCP

Coneection-oriented; Reliable

Lab 1: WebServer

Based on TCP Protocol

Modular: Socket, Sys

Function:

  • socket.socket(socket.AF_INET, socket.SOCK_STREAM): Initialization

  • socket.bind((serverAdress, serverPort)): Bind socket (Usually Used For Server)

  • socket.recv(buffer size): Receive obj

  • socket.recvfrom(buffersize, (serverAddress, serverPort)): Receive obj from server

cnet_atop-downapproach_lab's People

Contributors

peterwrighten avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.