set to 0x8888 (the port and address can be changed according to the actual situation, or the parameter can be used for input)Set the server address to 192.168.1.104.Author: kikilizhm # 163.com (replace # @)*/# Include # Include # Include # Include # Include # Include Int main (){Int sfp, nfp;/* defines two descriptors */Struct sockaddr_in s_add, c_add;Int sin_size;Unsigned short portnum = 0x8888;/* server port used */Printf ("Hello, welcome to my ser
port is set to 0x8888 (ports and addresses can be changed depending on the situation, or passed in with parameters)
Server address set to 192.168.1.104
Author: kikilizhm#163.com (change # to @)
*/
#include
#include
#include
#include
#include
#include
int main ()
{
int SFP,NFP; / * Define two descriptors * /
struct sockaddr_in s_add,c_add;
int sin_size;
unsigned short portnum=0x8888; / * Use port on server *
:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)Em3 Link encap:ethernet HWaddr ec:f4:bb:d0:0b:64Up broadcast multicast mtu:1500 metric:1RX packets:0 errors:0 dropped:0 overruns:0 frame:0TX packets:0 errors:0 dropped:0 overruns:0 carrier:0collisions:0 txqueuelen:1000RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)memory:dbe80000-dbf0000003. Check the driver required for the network cardUse the Ethtool command to view the NIC driver information since the spec
, but still do not know the specific network card driver model, at this time can be queried by the following command:# Lspci-nn | grep "Eth "
01:00.0 Ethernet Controller [0200]: Intel Corporation 82599EB 10-gigabit sfi/sfp+ Network Connection [8086:10FB] (rev.) 01:00.1 Ethernet Controller [0200]: Intel Corporation 82599EB 10-gigabit sfi/sfp+ netwo RK Connection [8086:10FB] (rev.) 03:00.0
physical technology, this layer is widely deployed Ethernet, the other is POS, DWDM and so on.3, SFC monitoring aspects of OAMSFC's operations are primarily at the service level, and are based on this to define the SFC's OAM framework, and the following are some aspects that SFC must be able to monitor:1> Service functionService functions can be divided into SFC-aware and SFC-aware, an SFC-aware service function is able to parse an SFC packet with a service function forwarding component and a s
-2014 by Cisco SyStems, inc.compiled Thu 27-feb-14 14:53 by niduttaboard type:0x100401cpu Board = rev:0x3========= FPGA ver:01. 0f cbc:16.72dti programmed with latest Imagetimex programmed with latest Imagemlan init done:ready to connect to th E networkbcm5482phyinit (): Port 0--SFP not Presentbcm5482phyinit (): Port 1--and SFP not Presentset_chassis_typ e:chassis_type=0xef0400 found=trueasr9001e (p40x0 PPC
The solution for handling 300 or less Ge Fiber switches in Internet cafes is analyzed. The solution for Internet cafes with 150 computers is different from that for Internet cafes with 200 computers. The solution for medium-scale Internet cafes is provided below. Internet cafe owners can check their seats and find their own methods.
About 150 Internet cafes
The network center uses the RHS4616GMS fully-managed Gigabit Optical Fiber switch. It provides 8 Gigabit
local data reads and writes, P2P, or even Intranet DoS .... Is it still unable to explain the bottleneck affecting the performance of Internet cafes?
About 150 Optical Fiber Switches
1. The network center uses the RHS4616GMS full-gigabit managed optical fiber switch. It provides 8 Gigabit SFP Optical Fiber ports, 8 independent 10/100/1000Base-T ports, and 48 Gbps backboard bandwidth, it can fully meet the network performance requirements of the entir
With 500 computers, the Gigabit Optical Fiber switch solution is required. Internet cafes need to support port mirroring, port aggregation, QOS, and other functions of the Gigabit Optical Fiber switch, to meet different network application requirements. Internet cafes with a large number of computers should also have other solutions.
300-about 500 Internet cafes
The network center uses two RHS4624GMS fully Gigabit managed Ge Optical Fiber switches for 10 Gigabit cascade. It can provide 32 Gigabi
managed Internet cafe optical fiber switch. It provides 8 Gigabit SFP Optical Fiber ports, 8 independent 10/100/1000Base-T ports, and 48 Gbps backboard bandwidth, it can fully meet the network performance requirements of the entire Internet cafe. It also supports ARP security, port VLAN, and 802.1 QVLAN, Port Mirroring, port aggregation, QOS, and other functions to meet different network application requirements.
2. Eight
Optical fiber is generally made from Z (SiO2) after special pulling process. It no longer uses electronic signals to transmit data, but uses optical pulse to transmit signals, it features high bandwidth, large transmission capacity, low signal loss, and long transmission distance.
Therefore, the emergence of the Internet cafe Optical Fiber solution will undoubtedly bring a spring breeze to the entire Internet cafe. The development of the Internet cafe industry has gone through countless leaps an
changed according to the actual situation, or use Parameter passed in) the server address is set to 192.168.1.104 Author: kikilizhm#163.com (change # to @)*/#include#include#include#include#includeinch.h>#includestring.h>intMain () {intSFP,NFP;/*define two descriptors*/ structsockaddr_in S_add,c_add; intsin_size; unsigned Shortportnum=0x8888;/*Server Port Usage*/printf ("hello,welcome to my server!\r\n"); SFP= Socket (Af_inet, Sock_stream,0); if(-1=
/************************************* file name: SERVER.CTCP package and unpacking implementation algorithm author: ma hai qq:284358503email: [Email protected]*/#include#include#include#include#includeinch.h>#includestring.h>#include#include#includestring.h>#defineBuf_size 1024*5//#define TCP_PACK_DEBUG 1 intMain () {intnbufuselen=0;//the length used in the buffer intnrevoncelen=0;//the length read at a time intnpacklen=0;//the length of each packet, including the head and two length and
The following picture is taken from the UNIX Network programming Volume One, the framework of this simple C/s programService-side Programs#include #include #include #include #include #include intMain () {intSFP,NFP;/ * Define two descriptors * / structSockaddr_in S_add,c_add;intSin_size;unsigned Shortportnum=0x8888;/ * Use port on server * / printf("Hello,welcome to my server!\r\n"); SFP = socket (af_inet, Sock_stream,0);if(-1= =
Program to read the content of the file and output it to the screen in reverse order # include # Include # Include # Define n 5000
Void main (){File * SFP;Int I;Char Buf [N];If (SFP = fopen ("C: \ datafile.txt", "R") = NULL){Printf ("source file cannot be opened! \ N ");Exit (1 );}I = 0;While (! Feof (SFP )){Buf [I ++] = fgetc (
the SFP pointer to the User-Defined signal processing function:
Void (* SFP) (INT );
The SFP type can be obtained by removing the SFP declared above, namely void (*) (INT ). In addition, the return value of the signal function is a pointer to the User-Defined signal processing function before the call
have previously defined a pointer SFP that points to a user-defined signal handler function:
void (*SFP) (int);
The type of SFP can be obtained by removing the SFP from the above declaration, Void (*) (int). In addition, the return value of the signal function is a pointer to the user-define
Often meet someone in the QQ group to ask about the product of Huawei's specific model number of the meaning of today's summary of the content to be posted for your reference.
LI (Lite software Image) indicates that the device is a weak feature version.
SI (Standard software Image) indicates that the device is a standard version and contains the underlying features.
EI (Enhanced software Image) indicates that the device is an enhanced version and contains some advanced features.
HI (Hyper softwa
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.