69
2.1 Chapter 2 Network Models Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

Embed Size (px)

Citation preview

Page 1: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.1

Chapter 2

Network Models

Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Page 2: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.2

Network Models

n  Network Architecture: n  A) Hardware: at the core of any network;

e.g.) Tx/Rx devices, modems, codecs, physical links, switches

n  B) Software: to derive the core H/W to communicate end users. The S/W is so complex as its task. Hence it is divided into

Page 3: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.3

n  subtasks each of which is confined to a set of related processes to perform a specific function.

n  --Each subtask S/W is called a “ Layer” n  --Layers are stacked over each other forming the net model stack, e.g., ISO, TCP/IP

Page 4: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.4

2-1 LAYERED TASKS

We use the concept of layers in our daily life. As an example, let us consider two friends who communicate through postal mail. The process of sending a letter to a friend would be complex if there were no services available from the post office.

Sender, Receiver, and Carrier Hierarchy

Topics discussed in this section:

Page 5: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.5

Figure 2.1 Tasks involved in sending a letter

Page 6: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.6

2-2 THE OSI MODEL

Established in 1947, the International Standards Organization (ISO) is a multinational body dedicated to worldwide agreement on international standards. An ISO standard that covers all aspects of network communications is the Open Systems Interconnection (OSI) model. It was first introduced in the late 1970s.

Layered Architecture Peer-to-Peer Processes Encapsulation

Topics discussed in this section:

Page 7: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.7

Layered Architecture n  OSI model is composed of seven ordered

layers. n  Figure 2.3 shows the layers involved when

message is sent from device A to device B n  Each layer defines a family of function

distinct from those of the other layers. n  The OSI model allows complete

interoperability.

Page 8: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.8

ISO is the organization. OSI is the model.

Note

Page 9: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.9

Figure 2.2 Seven layers of the OSI model

Page 10: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.10

Figure 2.3 The interaction between layers in the OSI model

Page 11: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.11

Network Models (cont..)

n  ! Each Layer has a “Peer-to-Peer” protocol

that seems to represent (and carry out) the rest of the network task, yet it does only a specific part and delegate the rest to the layer beneath it (via its interface). It also has an “ interface” that defines the services that is provided to the layer above it.

Page 12: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.12

Figure 2.4 An exchange using the OSI model

Page 13: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.13

Encapsulation

n  “Encapsulation”: Each layer has its own PDU that’s passes (as a parameter) to the layer beneath, which in turn adds a “ header ”(at layer 2 also adds trailer”) before assign to the next layer (except the physical layer).

n  Why “header” and “trailer”? n  Physical movement of information PDU is “vertical” yet the user thinks (At each peer –to-peer) layer that info moves” horizontal” (pipe)

Page 14: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.14

2-3 LAYERS IN THE OSI MODEL

In this section we briefly describe the functions of each layer in the OSI model.

Physical Layer Data Link Layer Network Layer Transport Layer Session Layer Presentation Layer Application Layer

Topics discussed in this section:

Page 15: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.15

Figure 2.5 Physical layer

Page 16: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.16

1) Physical Layer

n  1) Physical Layer: PDU , bit stream.

n  Moves bit sequence over a physical link. n  Defines the following: n  a) Physical characteristics of EIA interfaces and medium. n  b) Bit representation: encoding/decoding, electrical/optical. n  c) Data rate: (b/s) bit TX duration. n  d) Bits synch: sender and receiver clock synch and same data rate. n  e) Line configuration: Point-to-point, Multipoint n  f) Physical Topology: Mesh, ring, bus, and hybrid. n  g) Transfer mode: Simplex, F/d, and H/d

Page 17: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.17

The physical layer is responsible for movements of individual bits from one hop (node) to the next.

Note

Page 18: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.18

Figure 2.6 Data link layer

Page 19: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.19

2) Data Link Layer

n  2) Data Link Layer: PDU frame with header/trailer

n  Functions: n  a. Framing n  b. Physical Addressing: Sender/receiver addresses in the

frame header. n  c. Flow Control: To prevent fast sender from flooding a

slower receiver with frames. n  d. Error Control: To Increase physical layer reliability by

adding mechanism to detect and ReTx damages and lost frames. (Trailer)

n  e. Access Control: Control the access to the physical medium among all connected devices.

Page 20: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.20

The data link layer is responsible for moving frames from one hop (node) to the next.

Note

Page 21: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.21

Figure 2.7 Hop-to-hop delivery

Page 22: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.22

Figure 2.8 Network layer

Page 23: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.23

3) Network Layer

n  Network Layer: PDU packets (headers only) n  Responsible for the source to destination

delivery of packet, possibly across multiple networks.

n  Address logical IP address n  a. Source host system to destination host system delivery,

utilizing the data link layer for peer-to-peer delivery. n  b. Physical addresses at the D.L are not enough; we need to

add logical addressing in the packet header, of the sender and receiver.

Page 24: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.24

Network Layer (cont..)

n c. Routing: To route packets over the subnet cloud of routers and switches, make the optimal routing decisions (src- destination)

n d. Internetworking: resolve any Net protocols conflicts while moving in the subnet.

Page 25: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.25

The network layer is responsible for the delivery of individual packets from

the source host to the destination host.

Note

Page 26: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.26

Figure 2.9 Source-to-destination delivery

Page 27: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.27

Figure 2.10 Transport layer

Page 28: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.28

4) Transport Layer:

n  The most important layer since it abstracts the complete details of the subnet to the user.

n  It communicates a meaningful data unit called message (group of related packets) between users over the subnet trying for the most optimal utilization of the subnet.

Page 29: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.29

4) Transport Layer: (cont..)

n  Responsibilities: n  a) Service Access Point Addressing: (SAP) The network logical address is for src_sys

to destination not src_user_process to destination_user_process, hence we need another address mechanism => SAP addresses within the same system for user message delivery.

Page 30: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.30

Transport Layer: (cont..)

n  b) Segmentation and reassembly: of segments=> packets

A Process (user) message is divided into segments (if needed) each with n seg. Sequence number to aid in assembly (incorrect order) related segments into the original message at the destination/transportation layer.

Page 31: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.31

Transport Layer: (cont..)

n  c) Connection control:

n  1) Connection reliable service • In connection oriented TCP, guarantees delivery in order with ACK of segments.

n  2) Connectionless unreliable service •  -no ACK, -no guarantee)

n  d) Flow Control: As in the data Link Layer but all

the message level “end-users”.

Page 32: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.32

Transport Layer: (cont..)

n  e) Error Control: Like the DLL, but process_to_process delivery of messages.

n  Errors(damaged, loss or duplicate)cause reTransmission of messages.

Page 33: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.33

The transport layer is responsible for the delivery of a message from one process to another.

Note

Page 34: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.34

Figure 2.11 Reliable process-to-process delivery of a message

Page 35: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.35

Figure 2.12 Session layer

Page 36: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.36

5) Session Layer:

n  Session Layer: ( Nwk dialog controller) n  It established, maintain and synchronizes

the interaction among communicating system. n  a. Dialog Controls H/Duplex or F/Duplex n  b. Synchronization: Checkpoints are added to

data streams for dividing into units of independent ACK. Communication robustness in case of crashes.

Page 37: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.37

The session layer is responsible for dialog control and synchronization.

Note

Page 38: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.38

Figure 2.13 Presentation layer

Page 39: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.39

The presentation layer is responsible for translation, compression, and encryption.

Note

Page 40: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.40

6) Presentation Layer

n  Presentation Layer: n  a. Translation: ASCII,--.EBCDIC. Abstract

syntax notation (ASN).

n  b. Encryption: To secure information Tx for privacy

n  c. Compression: For efficient utilization of bandwidth.

Page 41: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.41

Figure 2.14 Application layer

Page 42: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.42

The application layer is responsible for providing services to the user.

Note

Page 43: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.43

7) Application Layer:

n  Application Layer: n  1) Virtual terminal”putty”to allow remote

logins (emulations) n  2) File transfer , access, and management n  3) Mail Service, n  4) Directory service. n  SMTP, FTP, HTTP, DNS, SNMP, TELNET.

Page 44: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.44

Figure 2.15 Summary of layers

Page 45: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.45

OSI

Page 46: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.46

2-4 TCP/IP PROTOCOL SUITE

The layers in the TCP/IP protocol suite do not exactly match those in the OSI model. The original TCP/IP protocol suite was defined as having four layers: host-to-network, internet, transport, and application. However, when TCP/IP is compared to OSI, we can say that the TCP/IP protocol suite is made of five layers: physical, data link, network, transport, and application.

Physical and Data Link Layers Network Layer Transport Layer Application Layer

Topics discussed in this section:

Page 47: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.47

Figure 2.16 TCP/IP and OSI model

Page 48: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.48

n  1) Physical Layer: Very Vague, it can be LAN, MAN, WAN.

n  2) Network Layer: n  Internet Protocol (IP) is used best-effort-

delivery unreliable connectionless datagram protocol (no end control flow).

n  At the network layer there are other protocol to help the poor IP:

n  a) Address Resolution Protocol: physical (MAC) logical (IP)

Page 49: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.49

n  Address translation. n  b) Internet Control Msg Protocol (ICMP):

Help in reporting any failure/congestion of a subnet part(s), aiding in the subnet robustness.

n  c) Internet Group Msg Protocol (IGMP) Single source broadcasts to multi group destinations.

Page 50: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.50

n  3) Transport Layer: Proc-to-Proc client/

server. A) User Datagram Protocol: UDP --- Connectionless unreliable Transport Protocol, with very limited error checking (checksum) --- No error/ flow control

Page 51: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.51

n  B) Transmission Control Protocol: TCP n  ---Reliable connection oriented (stream) transport

protocol. n  ---Establishes connection src_dest, before data Tx. n  ---Ordered/ ACK segment Tx with segment numbers.

n  C) Stream Control Tx Protocol: SCTP Connection oriented reliable transport protocol to

supports voice IP (Internet telephony) combining the best of UDP and TCP

Page 52: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.52

2-5 ADDRESSING

Four levels of addresses are used in an internet employing the TCP/IP protocols: physical, logical, port, and specific.

Physical Addresses Logical Addresses Port Addresses Specific Addresses

Topics discussed in this section:

Page 53: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.53

Figure 2.17 Addresses in TCP/IP

Page 54: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.54

Figure 2.18 Relationship of layers and addresses in TCP/IP

Page 55: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.55

Physical Address

n  Physical address (Link address) is the address of a node as defined by its LAN or WAN.

n  Lowest level address n  Have authority over the LAN or WAN nwks. n  The size and format of these addresses vary

depending on the nwk. n  Eg : Ethernet uses 6-byte physical address.

Page 56: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.56

In Figure 2.19 a node with physical address 10 sends a frame to a node with physical address 87. The two nodes are connected by a link (bus topology LAN). As the figure shows, the computer with physical address 10 is the sender, and the computer with physical address 87 is the receiver.

Example 2.1

Page 57: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.57

Figure 2.19 Physical addresses

Page 58: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.58

As we will see in Chapter 13, most local-area networks use a 48-bit (6-byte) physical address written as 12 hexadecimal digits; every byte (2 hexadecimal digits) is separated by a colon, as shown below:

Example 2.2

07:01:02:01:2C:4B

A 6-byte (12 hexadecimal digits) physical address.

Page 59: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.59

Logical Address

n  Necessary for universal communications that are independent of underlying physical networks.

n  Different nwks can have different address format.

n  An address defined in network layer. n  Logical address in the internet is 32-bit

address

Page 60: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.60

Figure 2.20 shows a part of an internet with two routers connecting three LANs. Each device (computer or router) has a pair of addresses (logical and physical) for each connection. In this case, each computer is connected to only one link and therefore has only one pair of addresses. Each router, however, is connected to three networks (only two are shown in the figure). So each router has three pairs of addresses, one for each connection.

Example 2.3

Page 61: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.61

Figure 2.20 IP addresses

Page 62: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.62

Port addresses

n  A method is needed to label the different processes .( addresses are needed)

n  Process communicating with another process

eg : Comp. A can communicate with comp.C by using TELNET. At the same time comp .A communicate with comp. B by using FTP

Page 63: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.63

Figure 2.21 shows two computers communicating via the Internet. The sending computer is running three processes at this time with port addresses a, b, and c. The receiving computer is running two processes at this time with port addresses j and k. Process a in the sending computer needs to communicate with process j in the receiving computer. Note that although physical addresses change from hop to hop, logical and port addresses remain the same from the source to destination.

Example 2.4

Page 64: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.64

Figure 2.21 Port addresses

Page 65: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.65

The physical addresses will change from hop to hop, but the logical addresses usually remain the same.

Note

Page 66: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.66

Example 2.5

As we will see in Chapter 23, a port address is a 16-bit address represented by one decimal number as shown.

753

A 16-bit port address represented as one single number.

Page 67: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.67

The physical addresses change from hop to hop, but the logical and port addresses usually remain the same.

Note

Page 68: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.68

Exercise 1

n  Figure 1, shows an internet path between two hosts involves a hop across network A, a packet-switching network, to a router and then another hop across packet-switching network B. Suppose that packet switching network A carries the packet between the first host and the router over a two-hop path involving one intermediate packet switch. Suppose also that the second network is an Ethernet LAN.

n  Sketch the sequence of IP and non-IP packets and frames that are generated as an IP packet goes from host 1 to host 2.

Page 69: Chapter 2 Network Models - UniMAP Portalportal.unimap.edu.my/portal/page/portal30/Lecturer Notes... · 2.11 Network Models ... 2.43 7) Application Layer: ! ... and application. However,

2.69

Figure 1