首页 文章 精选 留言 我的

精选列表

搜索[IM通道],共10000篇文章
优秀的个人博客,低调大师

刚性通道时代——架构

机房设施 机柜:1U=44.5mm,机柜外侧高度常用高度2m、2.2m和2.6m,2.2m的比较多。机柜的宽度一般是600mm。机柜的深度一般常用300mm、600mm。 传输设备和光缆之间不会直接对接,中间经过一个ODF。 ODF作为传输设备和线路专业的分工界面。 ODF一侧熔接光缆,另外一侧通过尾纤与传输设备的光口连接,在建设基站时进站光缆熔接到ODF上,该基站需要使用第几芯,就用尾纤连接到ODF对应的端子上,这样规范的安装方式便于后期维护工作。 DDF:数字配线架,接E1 网络架构 ▎面临环路容量不足的问题如何解决? 1、环路升级 将原本155M光口全部换成622M 2、拆环 分为跳点拆环和中间拆环 3、新建系统 水平分区,垂直分层,是传送网的一个基本的思路。 ▎传送网分层建设的优点: 1、缓解中心局压力 2、减少光缆资源消耗,提高网络安全性 3、经济地提高网络容量,成本较低 架构优化的两个方向:容量(设备能力不足、槽位不足等)、安全性(超大环、同缆环、超长链等) 我们对于网路容量给带宽利用率设定一个门限值,一般是70%左右。 超长链,一般指链上节点5个以上的。怎么改造?新建一条光缆把链改成环。 很多建不了光缆的地方只能使用微波,微波的稳定性比较差,所以有条件了就要建光缆改造成光纤通信。还有一些在网运行多年的厂家已经停产的设备,设备性能较差而且厂家也无法提供正常的技术服务,有条件就要换成新的。 机房的稳定性:主要是产权、面积,至于其他的电源、承重等问题,相对都是次要的,都可以想办法。 网络架构的一致性:整网考虑,而不是独立的个体。 光缆也要分层去建设。杜绝接入层使用汇聚光缆的可能性,把接入层彻底屏蔽掉。 管道的建设应该是有倾向性的,核心、汇聚节点之间的路由、主干道路上的资源应该相对丰富,因为业务量大、业务等级较高。 基础架构的重点就是:稳定!稳定!再稳定! 本文转自Grodd51CTO博客,原文链接:http://blog.51cto.com/juispan/1970053,如需转载请自行联系原作者

优秀的个人博客,低调大师

Java NIO(三)Channel 通道

java nio channel 和 流有一些小小的区别: 你能在channel进行读写二者,但是流只能进行读者其一。 channel能异步进行读写。 channel一般从(借助)buffer进行读写。 如下图所示: image.png Channel Implementations 以下是Java NIO中最重要的Channel实现: FileChannel DatagramChannel SocketChannel ServerSocketChannel The FileChannel 从文件读取数据。 The DatagramChannel 可以通过UDP在网络上读写数据。 The SocketChannel 可以通过TCP在网络上读写数据。 The ServerSocketChannel允许您监听传入的TCP连接,就像Web服务器一样。 为每个传入的连接创建一个SocketChannel。 实战 Here is a basic example that uses a FileChannel to read some data into a Buffer: 一个简单的例子:用FileChannel去读数据从Buffer里 RandomAccessFile aFile = new RandomAccessFile("data/nio-data.txt", "rw"); FileChannel inChannel = aFile.getChannel(); ByteBuffer buf = ByteBuffer.allocate(48); int bytesRead = inChannel.read(buf); while (bytesRead != -1) { System.out.println("Read " + bytesRead); buf.flip(); while(buf.hasRemaining()){ System.out.print((char) buf.get()); } buf.clear(); bytesRead = inChannel.read(buf); } aFile.close(); 注意buf.flip()的调用,首先读入一个缓冲区,然后将内容弹出,然后读出数据。

优秀的个人博客,低调大师

java nio 通道之pipe实现

这个pipe和linux系统上用来连接两个进程的pipe不是同一概念, 主要是在JVM内部,用来实现不同线程之间的数据同步。 这倒让我想起了go语言的channel技术。 package com.ronsoft.books.nio.channels; import java.nio.ByteBuffer; import java.nio.channels.Channels; import java.nio.channels.Pipe; import java.nio.channels.ReadableByteChannel; import java.nio.channels.WritableByteChannel; import java.util.Random; public class PipeTest { public static void main(String[] args) throws Exception { // TODO Auto-generated method stub WritableByteChannel out = Channels.newChannel(System.out); ReadableByteChannel workerChannel = startWorker(10); ByteBuffer buffer = ByteBuffer.allocate(100); while (workerChannel.read(buffer) >= 0) { buffer.flip(); out.write(buffer); buffer.clear(); } } private static ReadableByteChannel startWorker(int reps) throws Exception { Pipe pipe = Pipe.open(); Worker worker = new Worker(pipe.sink(), reps); worker.start(); return (pipe.source()); } private static class Worker extends Thread { WritableByteChannel channel; private int reps; Worker(WritableByteChannel channel, int reps) { this.channel = channel; this.reps = reps; } public void run() { ByteBuffer buffer = ByteBuffer.allocate(100); try { for (int i = 0; i < this.reps; i++) { doSomeWork(buffer); while (channel.write(buffer) > 0) { } } this.channel.close(); } catch (Exception e) { e.printStackTrace(); } } } private static String [] products = { "No good deed ges unpunished", "To be, or what?", "No matter where you go, there you are", "Just say \"Yo\"", "My karma ran over my dogma" }; private static Random rand = new Random(); private static void doSomeWork(ByteBuffer buffer) { int product = rand.nextInt(products.length); buffer.clear(); buffer.put(products[product].getBytes()); buffer.put("\r\n".getBytes()); buffer.flip(); } } Just say "Yo" No good deed ges unpunished To be, or what? No good deed ges unpunished To be, or what? Just say "Yo" Just say "Yo" No matter where you go, there you are No good deed ges unpunished Just say "Yo"

资源下载

更多资源
优质分享App

优质分享App

近一个月的开发和优化,本站点的第一个app全新上线。该app采用极致压缩,本体才4.36MB。系统里面做了大量数据访问、缓存优化。方便用户在手机上查看文章。后续会推出HarmonyOS的适配版本。

Mario

Mario

马里奥是站在游戏界顶峰的超人气多面角色。马里奥靠吃蘑菇成长,特征是大鼻子、头戴帽子、身穿背带裤,还留着胡子。与他的双胞胎兄弟路易基一起,长年担任任天堂的招牌角色。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

用户登录
用户注册
修改密码
忘记密码