Академический Документы
Профессиональный Документы
Культура Документы
Geoff Molloy
Communications and Computing
Branch
Bureau of Meteorology
Australia
Agenda
7,
_
Office
V
V
rnet w
V
wall
7,
ce
rnet
Cabinet-1
Network Topology
GTS
Regional
Offices
Internet
Head Office
Public Addresses
WEB FTP
Message Switch
IP Address format
1111111111222222222233
01234567890123456789012345678901
--+-------------+-----------------------------------------------ClassA|0|NET_ID|HOST_ID|
|-+-+-----------+---------------+-------------------------------|
ClassB|1|0|NET_ID|HOST_ID|
|-+-+-+-------------------------+---------------+---------------|
ClassC|1|1|0|NET_ID|HOST_ID|
|-+-+-+-+---------------------------------------+---------------|
ClassD|1|1|1|0|MULTICAST_ID|
|-+-+-+-+-------------------------------------------------------|
ClassE|1|1|1|1|EXPERIMENTAL_ID|
--+-+-+-+--------------------------------------------------------
IP Addresses
Must have public addresses for inter-agency
communications.
Private addresses may be used within your
organisation.
Network Address Translation (NAT) is used
to convert between private and public
addresses
WMO allocates public addresses for GTS:
possible allocation for hosts, but cannot be
used for Internet connection.
IP addresses (cont.)
GTS Allocation: 193.105.177.0 to
193.105.184.0
Private address allocations:
10.0.0.0 to 10.255.255.255
172.16.0.0 to 172.16.255.255
192.168.0.0 to 192.168.255.255
IP addresses (cont.)
Get IP address from ISP
Possibly get IP address from WMO
_ m .1.1
m
_t Cabinet-1
BGP Routing
193.105.180.129
193.105.180.130
NAT Table:
Firewall
134.178.6.5
202.203.190.1 = 10.1.1.1
Firewall
10.1.1.1
7,
_
Office
V
V
rnet w
V
wall
7,
ce
rnet
Cabinet-1
Regional
Offices
Internet
Head Office
Public Addresses
WEB FTP
Message Switch
Routing
Two types of routing: Static and Dynamic
An internal routing protocol is used within
your network.
The GTS uses BGP for routing (static routes
can sometimes be used for stub networks)
ATTACHMENT II-15
Use of TCP/IP on the GTS give examples of
setting up BGP Routing on a Cisco router
does not cover use of NAT.
BGP
Used by WMO on GTS
Uses a tcp connection on port 179 between
to routers to send updates.
Each Network is given an Autonomous
System (AS) number.
WMO have allocated AS numbers out of
the private AS address range for the GTS
GTS AS Numbers
Private range: 64512 through 65535
MTN Centres and reserve:
64512
to 64639
RA I: 64640 to 64767
RA II: 64768 to 64895
RA III: 64896 to 65023
RA IV: 65024 to 65151
RA V: 65152 to 65279
RA VI: 65280 to 65407
Antarctic and reserve:
65408 to
65535
NetworkNextHopMetricLocPrfWeightPath
*>140.90.88.0/24193.105.178.2206452064513i
*>202.245.36.0193.105.178.22064520?
*>202.245.39.0193.105.178.220064520i
*>205.156.51.96/27193.105.178.2206452064513i
Totalnumberofprefixes4
gatekeeper-gw#
BGP Conifiguration
router bgp 64512
no synchronization
network 134.178.0.0
redistribute ospf 101 metric 20 match internal
neighbor 193.105.178.22 remote-as 64520
neighbor 193.105.178.22 distribute-list 10 out
neighbor 193.105.178.22 filter-list 4 in
neighbor 193.105.178.22 filter-list 1 out
!
ip as-path access-list 1 permit ^$
ip as-path access-list 4 permit ^64520$
ip as-path access-list 4 permit _64520$
ip as-path access-list 4 permit _64513$
!
access-list 10 permit 134.178.6.0 0.0.0.255
access-list 10 deny any
Sh tcp
Sh ip route
Sh ip bgp neighbor 1.1.1.1 route
Sh ip bgp neighbor 1.1.1.1 advert
NAT
Static and Dynamic
Static needed for GTS so that hosts inside
the network can be contacted and for
security.
NAT addresses must appear in BGP routing
table.
TCP overview
Connection oriented and reliable.
TCP uses a port number to define
connections
Connection defined by source IP
address/source port and destination IP
address and destination port
Can have multiple connections to the same
TCP port number
UDP
Connectionless not reliable
Not used for GTS transfers
Examples: used for network management
(SNMP), voice data
FTP
Uses 2 TCP connections: Control (port 21)
and data (port 20)
Two modes: normal and passive.
Used for transferring files.
FTP Operation
Normal
Client host - connects to port 21
Client host give me file on port 2345
Client/2345 host/20 connects to port 2345
Passive
Client host - connects to port 21
Client host give me file on port 2345
Client host/2345 connects to port 2345
FTP Commands
get Retrieve a file
put send a file
binary
send or retrieve a file in raw binary
format (no processing)
cd Change directories on the remote
system
rename Rename a file on the remote
system
Hash
display a hash symbol which
indicates how much data has been sent.
Ls List the directory on the remote system.
FTP Example
C:\>ftpgorgon.ho.bom.gov.au
Connectedtogorgon.ho.bom.gov.au.
220gorgonFTPserver(Version1.7.212.5WedMay3012:19:42GMT2001)ready.
User(gorgon.ho.bom.gov.au:(none)):anonymous
331Passwordrequiredforanonymous.
Password:
230Usergvmloggedin.
ftp>cdtemp
250CWDcommandsuccessful.
ftp>binary
200TypesettoI.
ftp>putinfo.txt
200PORTcommandsuccessful.
150OpeningBINARYmodedataconnectionforINFO.TXT.
226Transfercomplete.
ftp:833bytessentin0.01Seconds83.30Kbytes/sec.
ftp>renameinfo.txttofinal.txt
550info.txt:Nosuchfileordirectory.
ftp>renameINFO.TXTfinal.txt
350Fileexists,readyfordestinationname.
250RNTOcommandsuccessful.
ftp>ls
200PORTcommandsuccessful.
150OpeningASCIImodedataconnectionforfilelist.
test.zip
final.txt
226Transfercomplete.
ftp:62bytesreceivedin0.00Seconds62000.00Kbytes/sec.
ftp>
WMO Standards
FTP transfer
Socket Connections
Message
length
Message
nnn
type
SOH CR CR LF or CR CR LF Heading
(8 characters) (2 characters)
nnnnn
Message length
Message length : Length from SOH to ETX (e.g. 00001826 = 1826bytes)
Message type AN: Alphanumeric, BI: Binary, FX: facsimile
CR CR LF ETX
Socket Programming
See ATTACHMENT II-15
Use of TCP/IP on the GTS
(8 characters)
00
nnnnn
Message 2
CR CRLF ETX length
(8 chacs)
Message length
Option 1. Starting Line and End of Message present
Message length : Length from SOH to ETX (e.g. 00001826 = 1826bytes)
Format
Message 1
Identifier CR CR LF Heading
length
01
(8 characters)
Text
Message 2 Format
Identifier
length
(8 characters) 01
Message length
Option 2. Starting Line and End of Message absent
Message length : Length from first CR to end of Text (e.g. 00001826 = 1826bytes)
File renaming
most centres detect the presence of a new file by
scanning a directory.
To avoid problems with the receiving centre
processing a file before it has completely arrived,
all sending centres must be able to remotely
rename the files they send
The file shall be sent with the extent .tmp and
then renamed
Recommended that a separate directory be used
for each host system which is initiating FTP
sessions to avoid the possibility of filename
duplication
FTP suggestions
Use format identifier 00
This allows the WMO request/repeat service to recover
missing data.
Socket/FTP Comparison
Sockets:
Quick, low overhead
Requires programming
Request/Repeat system can be slow
FTP
More Delays
Standard clients (less programming)
Easy to see failures and repeat transmission.
FTP requirements:
Exchange user-id and password of receive accounts
Exchange directory names
Agree on format identifier preferably 00 (include
WMO header/trailer)
Agree on filenames. Suggest:
Exchange information on maximum messages to be in a
file and delays before sending a file and delays before
reading a file (not essential but is useful information)
Agree on 3 or 5 digit sequence numbers
Email Standard
Proposed standard in documentation.
END