Docsity

Computer Networks - Introduction to Computer Security - Lecture Slides, Slides of Computer Security

Partial preview of the text

Download Computer Networks - Introduction to Computer Security - Lecture Slides and more Slides Computer Security in PDF only on Docsity!

Computer Networks

Before Internet

  • Isolated, local packet-switching networks
    • only nodes on the same network could communicate
  • Each network is autonomous:
    • different services
    • different interfaces
    • different protocols

Internet

Connect Existing Networks:

  • ARPANET, Packet Radio, and Packet Satellite
  • NCP not sufficient Develop new protocol
  • 1970s: Transmission Control Protocol (Kahn and Vinton)
    • Based on packet switching technology
    • Good for file transfer and remote terminal access
  • Divide TCP into 2 protocols
    • Internet Protocol (IP): addressing and forwarding of packets
    • Transmission Control Protocol (TCP): sophisticated services, e.g. flow control, recovery
  • 1980: TCP/IP adopted as a DoD standard
  • 1983: ARPANET protocol officially changed from NCP to TCP/IP
  • 1985: Existing Internet technology
  • 1995: U.S. Federal Networking Council (FNC) define the term Internet

Goals (Clark’88)

Connect existing networks

1. Survivability

2. Support multiple types of services

3. Must accommodate a variety of networks

4. Allow distributed management

5. Allow host attachment with a low level of

effort

6. Be cost effective

7. Allow resource accountability

Layering

• Organize a network system into logically

distinct entities

– the service provided by one layer is based only on

the service provided by the lower level entity

Without Layering

• Each application has to be implemented

for every network technology!

SMTP FTP^ HTTP

Coaxial cable

Fiber optic

Application

Transmission Media

Layering

• Advantages

  • Modularity – protocols easier to manage and maintain
  • Abstract functionality –lower layers can be changed

without affecting the upper layers

  • Reuse – upper layers can reuse the functionality provided

by lower layers

• Disadvantages

  • Information hiding – inefficient implementations

TCP/IP Networking Model

 TCP/IP has a different layered model

Network Access Layer Physical Connection LAN Connection

Internetwork Layer (IP) WAN Connectivity Unreliable Datagram Service

Transport Layer (TCP) Error Correction Reliable Connection

Application Layer

Internet Layer

 Transports data from one end-user system to another

end-user systems by hopping across as many physical

connections as necessary

 Provides a mechanism to connect many LANs

together effectively

 Connectionless and unreliable datagram protocol

 Protocols:

  • Internet Protocol
  • Routing Protocol
  • Supporting Protocol

IP Header

  • Comments
    • HLen – header length only in 32-bit words (5 <= HLen <= 15)
    • TOS (Type of Service): now split in
      • Differentiated Service Field (6 bits)
      • remaining two bits used by ECN (Early Congestion Notification)
    • Length – the length of the entire datagram/segment; header + data
    • Flags: Don’t Fragment (DF) and More Fragments (MF)
    • Fragment offset – all fragments excepting last one contain multiples of 8 bytes
    • Header checksum - uses 1’s complement

Version HLen (^) TOS Length Identification Flags Fragment offset

Source address Destination address

TTL Protocol Header checksum

(^0 4 8 16 19 )

Options (variable)

20 bytes

Routing Protocols

  • Enable routing decisions to be made
  • Manage and periodically update routing tables, stored at each router
  • Autonomous collection of routers:
    • Under single administration
    • Use same routing protocol: Interior Gateway Protocol (IGP)
    • Use Exterior Gateway Protocol (EGP) to communicate other systems
  • Router : “which way” to send the packet closer. (Keep routing table small and allow to handle unlimited number of systems.)
  • Protocol types:
    • Reachability
    • Distance vector

Supporting Protocols

• Handle specific tasks

– Address Resolution Protocol (ARP)

– Reverse Address Resolution Protocol (RARP)

– Internet Control Message Protocol (ICMP)

– Internet Group Management Protocol (IGMP)

Domain Name Resolution

 Domain Name Resolution: looking up a logical name

and finding a physical IP address

 There is a hierarchy of domain name servers

 Each client system uses one domain name server

which in turn queries up and down the hierarchy to

find the address

 If your server does not know the address, it goes up

the hierarchy possibly to the top and works its way

back down

Transport Layer (TCP)

 Present a reliable end-to-end pipe to the application

 Data either arrives in the proper order or the

connection is closed

 Keeps buffers in the sending and destination system to

keep data which has arrived out of order or to

retransmit if necessary

 Provides individual connections between applications