Network Architecture

Network Architecture

CS architecture

  • Client game
  • cs definition client client / sever Service
  • He is a client (consumer) -----> server (surcharge)

Server (application) one is enough, the client (application) that we want to have more than one

Server and client are applications that are both certain village store data, which store data better

  • Server: A lot of people can use and update it, others can take directly, but also to ensure data security
  • Client: very fast, if the account password is saved locally. Security is very low, the client does not networking, data will not be updated

BS Architecture

  • Web games
  • bs definition -----> browser browser / server

The client (browser) / server program on the browser

The composition of the Internet and the Internet

Edge portion: client / server, the ordinary computer, abundance receiving and transmitting data

Transmission equipment transmission networks, routing, base station responsible for data: the core part

Popular Science Edition

1 Open your browser

2 Enter www.taobao.com ------> addressed to Taobao server

3 Press the enter key clients to www.taobao.com parsed into Taobao address (Hangzhou -)

4 sends a command to Taobao, Taobao lets you send data to

5 client rendering data

Composition of the Internet

Hardware: network available to you

Software: applications for specific tasks

OSIs seven agreements

The Internet is composed of hardware and software, data transmission, can only be transmitting electrical signals, 0 and 1, osi protocol to 0 and 1 from meaningless to meaningful things

Physical Layer

Transfer data between the computer and the computer

  • Cable / cable: transmitting a signal, two computers are connected, if a cable is connected to the United States from China, is enough as long as the physical layer

    Client --- 01001101001000001111001011010001001-- server

data link layer

Let the computer under the same local area network connected together

The 0,011,100,011 1,111,010,001 110,011,110,101,001 become meaningful groups, each group of a few

Ethernet protocol: 0 predetermined physical layer format of a transmission and

head:

Recipient Address:
Data Types

From address

data: Content

  • Sender address is the mac address, the address of the network card on your computer, this address is fixed, and each computer has a fixed mac address
  • Broadcast: You must know your computer's mac address, mac address of the recipient as well as by a piece of equipment (switches), but the switch does not know the mac address of the computer that corresponds to the station, will broadcast in the form of a switch the computer sent to all computers, the recipient will receive a parsing this command to get the content, and then the switch will record the mac addresses of the two computers

Based on the above LAN

Network layer

To allow different LANs following computers connected together

Called the ip address, mac address only know that can not connect to other computers within a local area network, only to be identified because the mac address switch, then different LAN switches are not the same, so now define a new address which shows that the LAN, through the router

On the basis of the data link layer and upper header packet time ip

Already know Taobao ip address and mac address, you will own mac address and ip address to send out together, the router receives Taobao ip address, routed Taobao ip address and mac address, comes with mac address (router ) and ip address (ip address of the router)

mac address (local area network) + ip address (the Internet) to find unique worldwide computer

Transport Layer

  • Organization data network to bring
  • Port number, to find a stationary application, a port number corresponding to an application
  • mac address (local area network) + ip address (the Internet) + port number can be found on the world's only unique computer application

== 0 and 1 transmits data to the application tcp / udp protocol ==

application

0 and 1 to the specific features

Abstraction Layer

The client and server applications want to communicate, two data must be the same

socket abstraction layer is to write a unique worldwide application on your computer that enables the client, the server can also be

Written using the socket client server to write a paper copy of the software architecture cs

Guess you like

Origin www.cnblogs.com/zhuyuanying123--/p/11086541.html
Recommended