Docsity

computer network programming, Schemes and Mind Maps of Network Programming

Partial preview of the text

Download computer network programming and more Schemes and Mind Maps Network Programming in PDF only on Docsity!

Computer Network

Programming

Source:

Department of Computer Science and Engineering

University of South Carolina

Dr. Khalid Al-Hussaini

OSI and TCP/IP

Reference Models

Layer 1 : Physical Layer Application Presentation Session Transport Network Data link Physical  Responsibilities:  Transmission of a raw bit stream  Forms the physical interface between devices  Issues:  mechanical and electrical interfaces  time per bit  distances

Layer 2 : Data Link Layer Application Presentation Session Transport Network Data link Physical  Responsibilities:  Provides reliable transfer of information between two adjacent nodes  Provides frame-level error control  Provides flow control  Issues:  framing (dividing data into chunks)  header & trailer bits  addressing 10110110101 01100010011 10110000001

Layer 4 : Transport Layer Application Presentation Session Transport Network Data link Physical  Responsibilities:  provides virtual end-to-end links between peer processes.  end-to-end flow control  Issues:  headers  error detection  reliable communication

Layer 5 : Session Layer Application Presentation Session Transport Network Data link Physical  Responsibilities:  Establishes, manages, and terminates a communication session with remote systems  Groups several user-level connections into a single “session”  Many protocol suites do not include a Presentation Layer.

Layer 7 : Application Layer Application Presentation Session Transport Network Data link Physical  Responsibilities:  Anything not provided by any of the other layers  Implements communication between two applications of the same type  Examples:  FTP  HTTP  SMTP/POP 3 /IMAP (email)

Problems  Seven layers not widely accepted  Standardized before implemented  Top three layers “fuzzy”  Internet or TCP/IP layering widespread

Hybrid Reference Model Transport Network Application Host A Transport Network Application Host B Network Data link Physical Data link Physical Data link Physical Router

Header encapsulation and stripping Transport Network Application Host A Transport Network Application Host B Data TH AH Data DH DT AH Data NH TH AH Data Data link NH TH AH Data Physical Data link Physical

What are the headers? Physical: no header - just a bunch of bits. Data Link:  address of the receiving endpoints  address of the sending endpoint  length of the data  checksum.

Network layer header - examples  protocol suite version  type of service  length of the data  packet identifier  fragment number  time to live  protocol  header checksum  source network address  destination network address

Connecting Networks  Repeater: physical layer  Bridge: data link layer  Router: network layer  Gateway: network layer and above.

Repeater  Copies bits from one network to another  Does not look at any bits  Allows the extension of a network beyond physical length limitations REPEATER