Radio broadcast
multicast multicast
Unicast unicasetPhysical Layer:
simplex
half duplex
DuplexHub hub: Flooding
LAN: broadcast mechanism based
WAN: Point to PointEthernet - data link layer
data transmission: Ethernet II frame structure
type may be embodied in the upper layer protocol
destination addr (NIC physical address)
Source addr
Data 46-1500bytesTable cam switch
port corresponding to the mac address, this address is learned from the source address
switches for blocking collision domainsPartition router broadcast domain
VLAN broadcast domains may be separated -trunk coupled
on a network with VLAN physically, logically different network segments
VLAN information in the data frame transmitted in frame, insertingTCPIP stack
Bridging vmnet0
host only vmnet1
NAT vmnet8
other vmnet6 / 10 etc.TCP header (header):
a 20-byte fixedServer ports generally fixed (destination port)
client port (Source Port) require different
cat / etc / services
server port used
grep 9527 / etc / servicesPacket number seq
acknowledgment ACK number
the TCP sliding window (window size) is determined according to the network each send / receiving several packagesFlag bit: 0/1 two states
the RST RESET
PSH Push buffer or not
the URG pointer Urgent
the ACK Acknowledgment Number
the FIN Finish
the SYN Synchronize Sequence Number (communication request and you)TCP three-way handshake:
requesting end: SYN = 1 other bits are 0 seq = x
Reflector: SYN = 1 ACK = 1 seq = y ( Reflector their packet number) ack = x + 1
requester:
the ACK =. 1 SEQ = x + 1 ack = y + 1TCP four wave:
requesting end: FIN = 1, seq = u
Reflector 1: ACK = 1, seq = v, ack = u + 1
Reflector 2: FIN = 1, ACK = 1, seq = w, ack = u + 1
requester: ACK = 1, seq = u + 1, ack = w + 1 ( waiting 2MSL)ICMP protocol
determining network state, often used with the pingttl: path length through each of a number of routers, the initial value minus one
Linux network
Guess you like
Origin www.cnblogs.com/linux521/p/10993621.html
Recommended
Ranking