Docsity

Network Layer - Local Area Network - Lecture Slides, Slides of Network security

Partial preview of the text

Download Network Layer - Local Area Network - Lecture Slides and more Slides Network security in PDF only on Docsity!

Network Layer

(Part I: Addressing)

5- 1

Routers Connect Many Subnets (e.g., Ethernet) to Form a Network

source

destination

data

Router

Router Router

Router 5- 2

Big Argument Between the Internet and

Telephone Communities

  • The network layer must do the routing job. (No argument about this service.)
  • However, should the network (the network layer) or the hosts (the transport layer) do the reliable delivery, in- sequence delivery, congestion control, quality-of-service guarantee jobs? (The end-to-end argument v.s. performance improvement v.s. misbehaving users .)
  • Also, should connectionless or connection-oriented be used in the network? (The datagram v.s. virtual-circuit)

The telephone community wants to make network complicated but end hosts simple, the Internet community takes the opposite view! (^) Docsity.com5- 4

Virtual Circuit

  • Before sending packets, a routing path needs to be chosen and set up first.
  • Like traditional circuits, but no physical circuit is set up between a sender and a receiver.
  • Instead, the routers on the VC from the sender to the receiver each is configured with a VC ID.
  • All packets belonging to a flow carry the same VC ID and will take the same routing path in networks.
  • Resource may or may not be reserved for a VC.
    • Voice circuit (TDM)
    • Data circuit
  • Used in ATM or Frame Relay networks (most backbone networks of Internet) 5- 5

Naming and Addressing

5- 7

Name and Address Are the First Step toward Routing

  • When we want to send a packet to a

machine, we must be able to identify it first.

  • Otherwise, how do we let the network know our intended destination machine.
  • Thus, every machine (router or host) must have a text name or numerical address for us to identify it.

In Internet, actually, a machine may have multiple addresses, each associated with an network interface.5- 8

Hierarchical Naming Has Many Good Properties

  • The problem of using non hierarchical naming - Different naming authorities may choose the same name. - Need to check every naming authority to avoid the name conflict problem - Is not scalable with a large number of naming authorities like Internet
  • Hierarchical naming such as www.csie.nctu.edu.tw solves this problem. Internet uses a hierarchical naming scheme. (^) 5- 10

Hierarchical Addressing Allows Aggregation

and Saves Routing Table Space

  • If nonhierarchical (flat) addressing is used, each

router needs to maintain a routing entry for every machine.

  • If hierarchical addressing is used, each router only

needs to maintain a routing entry for every subnet.

  • A big saving in router’s memory.
  • However, may not result in optimal routing paths

Internet uses a hierarchical addressing scheme.

5- 11

IPv4 Address Classes and Format

Machines on the same network are aggregated together by sharing the same network address.

Internet routers use the network address portion of a packet’s destination address to route packets.

5- 13

A Network Can Be Further Partitioned

into Subnets By Using Subnet Masks

  • The size of a network may be too big.
    • E.g., the class-A and class-B have 2^24 and 2^16 host addresses, respectively.
    • Using flat addressing inside an organization will increase the router’s routing table size and slow down packet forwarding.
    • Further partitioning the network into multiple subnets solve these problems.
  • The subnet mask indicates which part inside the host address field should be treated as subnet address.

Internet uses subnet masks extensively. (^) 5- 14

The Address Shortage Crisis of Internet Is Caused by Inefficient Uses

  • The size of a class-A network is too big.
    • No organization would have 2^24 = 16777216 computers.
    • However, www.mit.edu’s IP address is 18.181.0.31.
  • The size of a class-B network may still be too big for

most organizations.

  • 2^16 = 65536 computers. Does NCTU have 65536 computers?
  • The size of a class-C network is too small for most

organizations.

  • 2^8 = 256 computers. CSIE has more than 256 computers, not to mention NCTU! The current crisis is that most allocated IP addresses are not being used! 5- 16Docsity.com

IPv6 Uses 128-Bit Addresses to End This Crisis

  • With 2^128 addresses, every square inch on the earth can have 4 IP addresses!
  • Source and destination address fields in an IP header now become larger bandwidth overhead for small-size packets.

Some researchers joke that in LAN, why don’t we just transport telnet’s characters by putting them in the source and destination address fields of a packet. (^) 5- 17

A CIDR Example

5- 19

Dynamic Host Configuration Protocol (DHCP)

Also Mitigates This Crisis

  • DHCP can dynamically assign an IP address

to a host. When the host no longer needs to

use it, the IP address will be reclaimed.

  • Very useful and efficient in using IP

addresses

  • E.g. Notebook computers moving around
  • E.g., ISP’s modem server (PPP)
  • A user do not need to ask which IP address he

can/should use for his host.

In Win98, just check the “自動取得IP位址” option. 5- 20Docsity.com