Connectionless multiplexing and de multiplexing, Computer Networking

Assignment Help:

Connectionless Multiplexing  and De multiplexing

Java program running in a host can create a UDP socket  with the  line

Datagram's socket my socket =  new datagram's socket

When a UDP socket  is created in this  manner the transport  layer  automatically assigns  a port  number to the socket.  In particular  the transport  layer assigns a port  number in the range  1024 to 65535 that  is currently not being used  by any  other UDP  port in the  host.  Alternatively a java  program could create  a socket  with the line.

Datagram socket  my socket =  new  data grams socket 9157

In this  cases the  application assigns a specific port number namely 9157 to the UDP  socket. If  the application  developer writing the code  were implementing the server side  of a well known protocol. Then  the developer would have  to assign the corresponding well  known protocol. Then  the developer  would  have t assign the corresponding  well known  port number typically  the client  side of the application. The transport  layers  automatically  assign  the port  number whereas the server side  of the application assigns a specific  port number

Suppose a process in host a with  USP  port 9157  wants  to send  a chunk of  applications data to  process will UDP  post 64281 in host B. The  transport layer in host  a creates a transport layer segment that  includes the application data the source port number 9157 the destination port  number 64281 and  two other values. The  transport  layer than  passes the resulting segment to the network layer. The  network layer encapsulates the segment in an IP datagram and makes a best effort attempt to deliver the segment to the receiving  host. If  the segment  arrives at the receiving host. B could be running  receiving host examines the destination port number in the segment 64281 and delivers  the segment to its socket identified by port 64281. Note that host B could be  running  multiple processes  each with  it own UDP socket  and associated  port  number. As USP segments  arrive from  the network host B  directs  each segment the  appropriate socket by examining  the segment  destination port number.

It is  important  to note  that UDP  socket is fully  identified by a two  tuple  consisting of a  destination IP address  and destination port number  as a consequence if two USP segments  have different  source  IP addresses  and source port numbers. But  have the same  destination IP address and destination port  number  then the two  segments  will be directed to the  same destination  process via the  same  destination socket.

The  purpose of  source  port number is shown in figure 44. In A to B segment  the source  port number solves as part of a return address when B wants to send a segment back  to A the destination port in  the B to A  segment will take  its vale from  the source  port value  of the A to B segment. In UDP server layer  servers a method to extract the  port number  form the  segment it receives from  the client it the sends a new  segment  to the  client  with  the extracted source  port number  serving as the destination  port number  in this  new  segment.

 

 


Related Discussions:- Connectionless multiplexing and de multiplexing

Describe the main factors of switching delay, Describe the main factors of ...

Describe the main factors of switching delay No. The speed of propagation is 200,000 km/sec or 200 meters/µsec. In 10 µsec signal travels 2 km. Therefore, each switch adds equi

Describe techniques used in location based services, Question: a) Comp...

Question: a) Compare Bluetooth and WIFI based networks over the following factors: Data rate, Range, Application Focus, Battery Power, Frequency Band, Security. b) Differe

asymmetric multiprocessing, Describe what is meant by Asymmetric Multiproc...

Describe what is meant by Asymmetric Multiprocessing (AMP)? Ans) It imposses hierarchy and a division of labour between processors. Only one designated processor, the master, co

Asynchronous or statistical time division multiplexing, Asynchronous or Sta...

Asynchronous or Statistical Time Division Multiplexing As we  have seen  synchronous  TDM does not  guarantee that the full capacity of a link in sued. In fact it is more like

Explain cube interconnection networks, Cube: It's a 3 dimensional intercon...

Cube: It's a 3 dimensional interconnection network.  In Cube PE s   are organised in a cube structure.  Figure 11: Cube interconnection network

Framing, different framing methods

different framing methods

Bandwidth allocation , Consider figure.  Assume a new flow E is added that ...

Consider figure.  Assume a new flow E is added that takes a path from R1 to R2 to R6. How does the max-min bandwidth allocation change for the 5 flows?

Internet mail access protocol - application layer, Internet  Mail Access P...

Internet  Mail Access Protocol Another  mail access  protocols  is internet  mail access  protocols  version 4 (  IMAP4). IMAP4 is  similar to POP3 but it  has more  feature

Why it is necessary to have layering in a network, Why it is necessary to h...

Why it is necessary to have layering in a network? A computer network is a very complex system. It becomes very difficult to execute as a single entity. The layered approach di

What is a hypertext link, A hypertext link is a special tag that links sing...

A hypertext link is a special tag that links single page to another page or resource. If you click the link, the browser goes to the link's destination.

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