Link layer process, Computer Networking

Assignment Help:

Each link layer process will have two connections: one "up" to the appropriate IP layer process, and one "sideways" to the link layer process on the simulated machine at the other end of its link.

Each link layer uses variable-length frames with these ?elds in this order:

  • Source (1 byte)
  • Destination (1 byte)
  • Protocol (1 byte)
  • Length, in bytes, of data ?eld (1 byte)
  • Data (0-MTU bytes)

There is no CRC. You must ensure that every frame sent among link processes has correct values for all ?elds. The MTUs are as follows:

  • A-R1 = 64 bytes
  • B-R1 = 64
  • C-R2 = 80
  • D-R2 = 80
  • R1-R2 = 56

Notice that all MTUs must be 255 or less because each link layer's frame length ?eld is a single byte.

The link addresses of A, B, C, D are 2, 3, 5, and 7, respectively. The link address of R1 to be used by A and B is 11. The link address of R2 to be used by C and D is 13. R1 and R2 are attached to a third link. The link address of R1 to be used by R2 is 17. The link address of R2 to be used by R1 is 19. The protocol number for IP is 42.

A link layer process is simple: it calls select(2), awaiting input on either connection. When input is available from the IP process, it is read, encapsulated in a single frame if possible, and then the frame is written into the connection to the other link process. (If the IP process attempts to send an IP datagram that is too big to ?t in a single frame, an error should be returned. On UNIX, this error is EMSGSIZE.)

When input is available from the other link process it is veri?ed to be a frame carrying IP data, and, if so, the frame's header is stripped and its data ?eld written into the IP connection. If the frame is erroneous, it is silently dropped.


Related Discussions:- Link layer process

What are the benefits of wireless devices, What are the benefits of wireles...

What are the benefits of wireless devices One benefit is that if everyone uses standard, everyone can talk to anyone. Another benefit is that extensive use of any standard will

Explain communications channels, A communications channel is pathways over ...

A communications channel is pathways over which information can be communicate. It may be described by a physical wire that connects communicating devices, or by a radio, laser, or

Objectives of parallel programming, OBJECTIVES After reading this unit,...

OBJECTIVES After reading this unit, you should be able to: Describe the basics of parallel programming; Explain the parallel programming based on message passing;

Bit stuffing, bit stuffing program in python

bit stuffing program in python

What is client/server, Clients and Servers are dividing logical entities th...

Clients and Servers are dividing logical entities that work together over a network to accomplish a task. Many systems with very dissimilar architectures that are connected togethe

What is a jam signal, What is a jam signal A jam signal is broadcasts ...

What is a jam signal A jam signal is broadcasts to network by the transmitting stations that detected the collision to ensure that all stations know of the collision. Every st

What is the difference among tftp and ftp application, What is the differen...

What is the difference among TFTP and FTP application layer protocols? The Trivial File Transfer Protocol (TFTP) permits a local host to get files from a remote host but does n

What are the control frames for lost tokens, Control Frames for Lost Tokens...

Control Frames for Lost Tokens If station goes down ... token lost Predecessor listens for data frame or token Noticing none, retransmits token Sends whofoll

Distributed route computation, In distributed routing computation, every pa...

In distributed routing computation, every packet switch calculates its routing table locally and transmit messages to the neighbors. It also updates information regularly. If a pac

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd