Tale of nets - 03 ( TCP )



Now, because we know what is called as a protocol. Let’s see some of the protocols that are being used in the networking. Sometimes these may sound more technical but bear with it coz sometime you have to make the dots hoping that someday they will be connected just like Steve Jobs said.


            Before going to that we have make some new terms. They are client and the server. It’s also not that hard concept to understand. Imagine you have a great pizza place near your house and you want to orders or request some pizzas to watch the game. What you do is you call the pizza place tell them what you want. If you are lucky and they haven’t ran out of pizzas you will get or receive your pizzas through a delivery guy. If they haven’t the particular pizza that you ordered you will get a no for an answer and that is something page requested not found error in the web. Obviously what you ordered is not there. So here you are the client and pizza place is the server. What client does is request something and what server does is replying for that requests and if the requested thing are there just send them and if not send an error message.


TCP (Transmission Control Protocol)

      
        This is a connection oriented protocol. That means whenever the client want to talk with the server it has to make a connection with the server. Say client is asking 3 web pages from the web server, it has to make 3 connections to do that.
This uses something called 3way handshaking. It’s simply like this.


  • First the client asks for a connection request from the server. It’s like asking server “Hey there sever, can we talk for a while?” and server receives the message. (Client sends Synchronized packet to server and server receives it) SYN

  • If the server is in a mood to connect with other clients he will send a message to the requested client.(Server sends Synchronized – Acknowledgement to the client and he gets the message) SYN-ACK

  • Client sends Acknowledgement and server receives the Acknowledgement. ACK



And voila. :D
A TCP connection is established between client and server.





           Normally when data or connection request or connection reply or whatever that is transmitted between clients and servers they are being sent as packets. When a TCP protocol is used what it uses is TCP packets. In a TCP packet lots of details are there like address numbers of the  source ports, destination ports, sequence numbers of the packets and so much details.


We don’t always use TCP protocol for everything. Generally its good for sending sequenced messages or packets, to send the data with delivery guarantee (because acknowledgement is there) ant to filter traffic.


Time gets into serious things now :) ......



Share:

Tale of nets - 02 ( Agreements )

OK then. One common term we most of the time use in networking is “protocol”. The word itself seems a bit technical and some what dangerous,isn’t it. But actually its not. Its very simple concept when you understand it right.

Image1 - HTTP protocol used for communication between web server and a client


Everyone has eaten some toffees right. Lest take toffees for example. Say you made some toffees for an event and you want to send them to your friend Joey. (This is the same Joey from friends : p). There is a way you send them to him and there is a way joey eats them and its something simple we follow in our day today life..


First you made the toffees. And you wrap each and everyone one of them and put them in a box. And you label Joeys address on the box and send him it. Now of course when joey recived your toffee box he just can't eat it right. The simple things he has to do is first open the box and then unwrap the toffees and eat them


Why does he has to follow these instructions ??? Because you have made them that way.
So a protocol is an agreement or set of instructions that both parties in the communication have to follow. Take our toffee example again. What happens if either one of us does not follow the required convention. It s gonna be messy. Either I can't send the toffees to joey or he cant eat them properly. So the bottom line is if you want to eat toffees properly you have to follow a certain protocol. :P


And This thing also should be said.
In Order to a communication to happen you need 3 thing.
  • A message sender
  • A message reciver
  • A communication medium.


(and of course a message :D)
image 2

Forget about computer networksLet's say we are talking, like in a conversation. For real. There is me, message sender.There is you, message receiver. And there is our communication medium, the air. And that’s communication.


And also for the communication to be successful. There should be some things like protocols, timing, synchronisation stuff like that. Without these things the messages will be transferred and communication will be happened. But it will  be gibberish to the recevier

More on about these later.........





(Resources
  http://www.highteck.net/images/34-HTTP-protocol.jpg,  https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNunXl5cRpF_Y-ufvK8JhivyLHYLoXIsr-mlYG4tIGYgFhINYXzqSBzlmiL2N8dusbv0yk-eFUZ1WOmxfqSV53aQlHilJLLPo9OGQweYtCoH9ZB4Kv-Sb5zATz_XQqn05b14_mZ9yvgyek/s1600/comm+pic.png    )


Share:

Tale of nets - 01 (Where it all began )

Where it all began…


However the first computer was built and they were happy about it. Here they means the computer techie guys coz at that time normal people couldn't afford to use computers like now. Of course there were not computers like we have now. They were the large computer, large like fitting in a room and the were not called computers at least. They were called mainframes or supercomputers. Although their sizes were like jumbos they were very slow and couldn't do super-duper tasks like controlling a rocket or something like that. How ever they can't be blamed. At least they have made a very large equipment that does something, right. :)

One large mainframe in those days














In order to work with these Mainframes they needed nodes or some may call them as terminals. So they were very not mobile. The equipment’s could not have been transported another place. So here comes the word. They were centralized not distributed.
Mean while , the DOD(Dept of defence) in America were building and experimenting on their first distributed system ARPANET. I cant really recall what the letters that stand for but you are free to google it :p .It was a military project and later it was opened for the privileged research groups at Big universities in the states.
So how ever lots of System Network Architectures were proposed for this system. Some big companies like IBM proposed some architectures named like SNA,DNA,DCA,BNA. Seriously ,these names are not that important but if you are craving for more , just google them. Most of these architectures included following functionalities.
  • ·        File transfer from node to node
  • ·        Remote printing
  • ·        Terminal transfer(remote logging)
  • ·        Remote file access

Lots of architecture and there were no one accepted standard. That later became a huge problem. So networking and system companies had their own infrastructure and standards. This was kinda ok because most of the time for an organizations networking and systems requirements they bought everything from a one company. But the problem came when they needed to do an upgrade or switch between the companies or infrastructure. It was like pain in everywhere for the tech guys. So there became a need for a everyone accepted standard.

So then we had the OSI standards or commonly known as OSI rreference model. This was 7 layered model for systems for ttransmitting data over a network. However this was not a perfect model. This had some issues. Issues like existing companies not migrating to this standard. How ever with the invention of UNIX this time of the decade these problems slowly came to an end and OSI model slowly transformed into the TCP/IP model that we use today.
I should say this. OSI is not TCP/IP. But in a way they are not that different also. Its like the same little girl but much older and much prettier now. We will discuss the similarities and differences of them later.How eer what happened there was ARPANET started with only 4 nodes and then it became a network with 50 nodes and so and It became the word wide web or the internet that we use today. So just because ARPANET adapted to TCP/IP and it became very popular TCP/IP is the standard now and that it. 

More on later ...


Share: