


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



2/4/2009 shankar
intro and internet context slide 1
2/4/2009 shankar
-^ Confidentiality:
Information should be accessible only to select few.
-^ Integrity:
When A receives information supposedly from B, the information originated from B and has not been changed by anybody else. • Non-repudiation:
After B receives information from A, A cannot claim it never
sent the information and B cannot claim it never received it. • Anonymity:
The sender of a message is guaranteed to be from a given set S of users, but the sender cannot be further identified. BRIEFLY COVERED. • Availability:
A is not prevented from viewing information because of lack of resources (because of malicious users imposing unnatural workload, denial-of-service attack). NOT COVERED. • Others??
2/4/2009 shankar
intro and internet context slide 3
-^ Confidentiality:
storing the information in a physically "secure" place (in a
bank, in a safe, under the mattress, in your head, etc). • Integrity:
putting the information on hard-to reproduce paper (eg, dollar bills), affixing a hard-to reproduce signature, etc. • Non-repudiation:
having a trusted third party record the exchange of
information (e.g., postal service registered mail, sub-poena, etc).^ o^ C more trusted than B because^ •^
C is appointed a government; C employs B; C is bigger than B; • C has acted fairly in the past; etc.
-^ Unique issues arising with computers^ o^
Much higher rate of transactions. o Much larger and more dynamic set of users o Information is in soft (not hard) copy
2/4/2009 shankar
-^ Cryptography:^ o^
keys + encryption/decryption algorithms (known) o encryption: plaintext + key
^ ciphertext
o^ decryption: plaintext
^ ciphertext + same/related key
o^ Solves static (trust/communication) situation • Key-distribution protocols/distributed algorithms
o^ use cryptographic functions to manage dynamic users o^ key distribution, authentication, … o^ Kerberos, PKI, … • Implementation of crypto and key-distribution o^ OS/PL/runtime protection issues^ ^
user memory protection, access control, no stack overflow, … uC vs Java, trojan horses, runtime protection, code review, … o^ Sys admin issues
2/4/2009 shankar
intro and internet context slide 5
-^ The original Internet consists of host nodes attached to a channel. •^ Every node has an IP address (“nid” for short), which identifiesthe node to the rest of the Internet. •^ The channel allows any node x to send IP packets to any other node y.All that node x needs to know is node y’s IP address,which goes in the packet header. •^ Messages sent from node x to node y are received subject toloss, reordering, and duplication.
host nodes
channel connecting all hosts
2/4/2009 shankar
-^ IP entity: Internet id = nid (= 32-bit IP address in IPv4) •^ UDP entity: Internet id = [local nid, protocol id (= “UDP”)] •^ TCP entity: Internet id = [local nid , protocol id (= “TCP”)] •^ UDP and TCP use (16-bit) port numbers •^ App entity: Internet id = access point to which it is attached.^ •^ UPD access point = [protocol id, local nid, local port#]^ •^ TCP access point = [protocol id, local nid, local port#
remote nid, remote port#]
-^ Can also have application-specific ids: ‘Alice’, ‘Bob’, URL, etc.Recognizable only by appropriate “peer” apps.
IP entity
UDP access point^ = [ local nid, local udp port # ]
app
TCP entity app UDP entity
app
TCP access point^ = [local nid, local tcp port #,^ remote nid, remote tcp port # ]^ Internet channel
app layer transport layer IP layer
2/4/2009 shankar
intro and internet context slide 7
-^ IP packet: [header, payload]^ •^ header = [sndr node id, dst node id, protocol id]^ •^ payload = transport protocol message •^ UDP packet: [header, payload]^ •^ header = [protocol id, sndr node id, sndr port number,
rcvr node id, rcvr port number]
-^ payload = application message • TCP packet: [header, payload] •^ header = [protocol id, sndr node id, sndr port number,
rcvr node id, rcvr port number]
-^ payload = application message
2/4/2009 shankar
-^ App can
attach
as client, supplying remote nid and remote port#
-^ UDP entity attaches app to any unattached local port(fails if no local port is unattached). •^ app's local nid, local port#, remote nid, remote port# fixed at this point. • App can
attach
as server, supplying local port#
-^ UDP entity attaches app to local port#(fails if local port# is already attached). •^ app’s local nid, local port# are fixed at this point. • An attached client app can do a
send, supplying data.
-^ UDP entity constructs and sends UDP packet with data in payloadand local nid/port#, remote nid/port# in header. • An attached server app can do a
send, supplying data and remote nid/port#.
-^ UDP entity constructs and sends packet with data in payloadand local nid/port#, remote nid/port# in header. • An attached app can do a
receive
Blocks until UDP entity gets an incoming packet for local nid/port#,at which point the call returns and the packet is passed to the app. • UDP packets are subject to loss, reordering, duplication. • An attached app can
detach
, freeing up its local port#.
2/4/2009 shankar
intro and internet context slide 13
appB tcpB
appA^
Internet
connect
listen
(tcp conn 3-way handshake) accept
app data exchange app disconnection
accept
tcp disconnect handshake
connected
connected